Page MenuHomeGitPull.it

Build 583
PassedPublic

You are viewing an older run of this build. View Current Build

Properties

Drydock: Publish Builded APK

When
Completed at Jun 6 2023, 12:34 · Built instantly
Status
Failed
Description

The command is:

/home/phabricator-android-builder/repos/libre-busto-ci-cd/bin/publish-latest-branch-build.sh ${buildable.revision}

Source code:

https://gitpull.it/source/libre-busto-ci-cd/browse/master/bin/publish-latest-branch-build.sh

(ex P23)

This step will copy the built .apk to an indexed HTTP directory exposed by Apache, signing them:

https://lab.reyboz.it/builds/libre-busto/

1 empty log is hidden Show all logs.

Build Log 2463 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

1sha256sum: ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk: No such file or directory
2

Drydock: Run Command

When
Completed at Jun 6 2023, 12:34 · Built instantly
Status
Failed
This build step has since been deleted on the build plan. Some information may be omitted.

Build Log 2461 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

1Failed to load signer "signer #1"
2java.io.FileNotFoundException: ~/private-resources/gitpullkeystore-libre-busto.jks (No such file or directory)
3 at java.base/java.io.FileInputStream.open0(Native Method)
4 at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
5 at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
6 at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
7 at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:361)
8 at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:248)
9 at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
10 at com.android.apksigner.ApkSignerTool.getSignerConfig(ApkSignerTool.java:419)
11 at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:336)
12 at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
13

Build Log 2460 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1Entering in app/build/outputs/apk/gitpull
2Signing APK
3

Drydock: Assemble debug APK

When
Completed at Jun 6 2023, 12:34 · Built for 2 m, 25 s
Status
Passed
Description

This step will build an .apk using Gradle using this fantastic Docker image:

https://gitlab.com/fabmazz/android-fdroid-build-container/-/tree/ubuntu

The mentioned script is just a wrapper doing this:

/home/phabricator-android-builder/bin/docker_launch_build_fabio_asd.sh
#!/bin/bash
set -euo pipefail

if [ -z "$1" ]; then
    echo "Uso: $0 <cartella-sorgente>"
    exit 1
fi

SOURCE_DIR="$(realpath "$1")"
#CONTAINER_NAME="${CONTAINER_NAME:-fabmazza/android-build-fdroid:ubuntu}"
CONTAINER_NAME="${CONTAINER_NAME:-fdroid-asder}"

# Eat the first argument.
# So we pass all the other shit to gradle.
shift

if [ ! -d "$SOURCE_DIR" ]; then
    echo "Errore: '$SOURCE_DIR' non è una cartella valida"
    exit 1
fi

if [[ "$UID" = 0 ]]; then
        echo "Do not run as root."
        exit 2
fi

GID=$(id -g)

echo "[INFO] User info: $(id)"
echo "[INFO] UID=$UID"
echo "[INFO] GID=$GID"
echo "[INFO] CONTAINER_NAME=$CONTAINER_NAME"
echo "[INFO] SOURCE_DIR=$SOURCE_DIR"

## From this point, say what we are doing.
set -x

docker run \
  -e DESIRED_UID="$UID" \
  -e DESIRED_GID="$GID" \
  --rm \
  -v "$SOURCE_DIR":/home/vagrant/appbuild:Z \
   "$CONTAINER_NAME" \
  launch_build_local $@

Build Log 2459 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

1Note: Some input files use or override a deprecated API.
2Note: Recompile with -Xlint:deprecation for details.
3/var/drydock/workingcopy-79/repo/libre-busto/app/src/gitpull/AndroidManifest.xml:4: Error: Mock locations should only be requested in a test or debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation]
4 <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
5 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6
7 Explanation for issues of type "MockLocation":
8 Using a mock location provider (by requiring the permission
9 android.permission.ACCESS_MOCK_LOCATION) should only be done in debug
10 builds (or from tests). In Gradle projects, that means you should only
11 request this permission in a test or debug source set specific manifest
12 file.
13
14 To fix this, create a new manifest file in the debug folder and move the
15 <uses-permission> element there. A typical path to a debug manifest
16 override file in a Gradle project is src/debug/AndroidManifest.xml.
17
181 errors, 0 warnings
19
20

Build Log 2458 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1Found 7.5.1 via distributionUrl
2Running /home/phabricator-android-builder/versions/7.5.1/bin/gradle --stacktrace assembleGitpull
3Starting a Gradle Daemon, 4 stopped Daemons could not be reused, use --status for details
4> Task :app:buildKotlinToolingMetadata
5> Task :app:preBuild UP-TO-DATE
6> Task :app:preGitpullBuild UP-TO-DATE
7> Task :app:compileGitpullAidl NO-SOURCE
8> Task :app:compileGitpullRenderscript NO-SOURCE
9> Task :app:generateGitpullBuildConfig
10> Task :app:generateGitpullResValues
11> Task :app:checkGitpullAarMetadata
12> Task :app:mapGitpullSourceSetPaths
13> Task :app:generateGitpullResources
14> Task :app:createGitpullCompatibleScreenManifests
15> Task :app:extractDeepLinksGitpull
16
17> Task :app:processGitpullMainManifest
18/var/drydock/workingcopy-79/repo/libre-busto/app/src/gitpull/AndroidManifest.xml:39:9-45:51 Warning:
19 provider#org.acra.attachment.AcraContentProvider@android:authorities was tagged at AndroidManifest.xml:39 to replace other declarations but no other declaration present
20
21> Task :app:mergeGitpullResources
22> Task :app:processGitpullManifest
23> Task :app:extractProguardFiles UP-TO-DATE
24> Task :app:javaPreCompileGitpull
25> Task :app:mergeGitpullJniLibFolders
26> Task :app:mergeGitpullNativeLibs NO-SOURCE
27> Task :app:stripGitpullDebugSymbols NO-SOURCE
28> Task :app:extractGitpullNativeSymbolTables NO-SOURCE
29> Task :app:mergeGitpullNativeDebugMetadata NO-SOURCE
30> Task :app:processGitpullManifestForPackage
31> Task :app:checkGitpullDuplicateClasses
32> Task :app:desugarGitpullFileDependencies
33> Task :app:mergeGitpullShaders
34> Task :app:compileGitpullShaders NO-SOURCE
35> Task :app:generateGitpullAssets UP-TO-DATE
36> Task :app:mergeGitpullAssets
37> Task :app:compressGitpullAssets
38> Task :app:processGitpullJavaRes NO-SOURCE
39> Task :app:collectGitpullDependencies
40> Task :app:sdkGitpullDependencyData
41> Task :app:writeGitpullAppMetadata
42> Task :app:writeGitpullSigningConfigVersions
43> Task :app:mergeGitpullArtProfile
44> Task :app:processGitpullResources
45> Task :app:optimizeGitpullResources
46> Task :app:kaptGenerateStubsGitpullKotlin
47
48> Task :app:kaptGitpullKotlin
49/var/drydock/workingcopy-79/repo/libre-busto/app/build/tmp/kapt3/stubs/gitpull/it/reyboz/bustorino/data/gtfs/GtfsAgency.java:26: warning: Primary key constraint on gtfsId is ignored when being merged into it.reyboz.bustorino.data.gtfs.GtfsAgency
50 private it.reyboz.bustorino.data.gtfs.GtfsFeed feed;
51 ^
52
53> Task :app:compileGitpullKotlin
54w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt: (73, 13): Variable 'USGS_SAT' is never used
55w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 36): Parameter 'view' is never used, could be renamed to _
56w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 42): Parameter 'motionEvent' is never used, could be renamed to _
57
58> Task :app:compileGitpullJavaWithJavac
59
60> Task :app:dexBuilderGitpull
61> Task :app:mergeGitpullJavaResource
62> Task :app:mergeDexGitpull
63> Task :app:compileGitpullArtProfile
64> Task :app:packageGitpull
65> Task :app:createGitpullApkListingFileRedirect
66> Task :app:lintVitalAnalyzeGitpull
67
68Daemon will be stopped at the end of the build after running out of JVM memory
69
70> Task :app:lintVitalReportGitpull
71
72> Task :app:lintVitalGitpull
73
74> Task :app:assembleGitpull
75
76BUILD SUCCESSFUL in 2m 23s
7739 actionable tasks: 38 executed, 1 up-to-date
78

Drydock: Run Gradle Lint Command

When
Completed at Jun 6 2023, 12:32 · Built for 2 m, 46 s
Status
Passed
This build step has since been deleted on the build plan. Some information may be omitted.

Build Log 2457 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

1Note: Some input files use or override a deprecated API.
2Note: Recompile with -Xlint:deprecation for details.
3

Build Log 2456 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1Found 7.5.1 via distributionUrl
2Running /home/phabricator-android-builder/versions/7.5.1/bin/gradle lint
3> Task :app:preBuild UP-TO-DATE
4> Task :app:preDebugBuild UP-TO-DATE
5> Task :app:compileDebugAidl NO-SOURCE
6> Task :app:compileDebugRenderscript NO-SOURCE
7> Task :app:generateDebugBuildConfig
8> Task :app:generateDebugResValues
9> Task :app:checkDebugAarMetadata
10> Task :app:mapDebugSourceSetPaths
11> Task :app:generateDebugResources
12> Task :app:createDebugCompatibleScreenManifests
13> Task :app:extractDeepLinksDebug
14
15> Task :app:processDebugMainManifest
16/var/drydock/workingcopy-79/repo/libre-busto/app/src/debug/AndroidManifest.xml:39:9-45:51 Warning:
17 provider#org.acra.attachment.AcraContentProvider@android:authorities was tagged at AndroidManifest.xml:39 to replace other declarations but no other declaration present
18
19> Task :app:mergeDebugResources
20> Task :app:processDebugManifest
21> Task :app:preDebugAndroidTestBuild SKIPPED
22> Task :app:javaPreCompileDebug
23> Task :app:processDebugAndroidTestManifest
24> Task :app:compileDebugAndroidTestRenderscript NO-SOURCE
25> Task :app:extractProguardFiles
26> Task :app:generateDebugAndroidTestResValues
27> Task :app:processDebugManifestForPackage
28> Task :app:processDebugResources
29> Task :app:kaptGenerateStubsDebugKotlin
30
31> Task :app:kaptDebugKotlin
32/var/drydock/workingcopy-79/repo/libre-busto/app/build/tmp/kapt3/stubs/debug/it/reyboz/bustorino/data/gtfs/GtfsAgency.java:26: warning: Primary key constraint on gtfsId is ignored when being merged into it.reyboz.bustorino.data.gtfs.GtfsAgency
33 private it.reyboz.bustorino.data.gtfs.GtfsFeed feed;
34 ^
35
36> Task :app:compileDebugKotlin
37w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt: (73, 13): Variable 'USGS_SAT' is never used
38w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 36): Parameter 'view' is never used, could be renamed to _
39w: /var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 42): Parameter 'motionEvent' is never used, could be renamed to _
40
41> Task :app:compileDebugJavaWithJavac
42
43> Task :app:bundleDebugClassesToCompileJar
44> Task :app:lintAnalyzeDebug
45
46> Task :app:lintReportDebug
47Wrote HTML report to file:///var/drydock/workingcopy-79/repo/libre-busto/app/build/reports/lint-results-debug.html
48
49> Task :app:lintDebug
50> Task :app:lint
51
52BUILD SUCCESSFUL in 2m 44s
5323 actionable tasks: 23 executed
54Daemon will be stopped at the end of the build after running out of JVM memory
55

Drydock: Clean Gradle

When
Completed at Jun 6 2023, 12:29 · Built for 17 s
Status
Passed
Description

Clean Gradle directory to avoid nasty errors like:

https://gitpull.it/harbormaster/build/273/

1 empty log is hidden Show all logs.

Build Log 2454 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1Found 7.5.1 via distributionUrl
2Running /home/phabricator-android-builder/versions/7.5.1/bin/gradle clean
3Starting a Gradle Daemon, 3 stopped Daemons could not be reused, use --status for details
4> Task :app:clean
5
6BUILD SUCCESSFUL in 15s
71 actionable task: 1 executed
8

Lease BusTO Working Copy

When
Completed at Jun 6 2023, 12:29 · Built for 5 s
Status
Passed

Wait for Previous Commits to Build

When
Completed at Jun 6 2023, 12:29 · Built instantly
Status
Passed
This build step has since been deleted on the build plan. Some information may be omitted.