Page MenuHomeGitPull.it

Build 617
PassedPublic

Drydock: Publish Builded APK

When
Completed at Jun 29 2023, 18:16 · Built for 2 s
Status
Passed
Description

The command is:

/opt/reyboz/android/bin/publish-latest-branch-build.sh ${buildable.revision}

Source code:

P23

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

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

1 empty logs are hidden. Show all logs.

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

1Current directory:
2 /var/drydock/workingcopy-112/repo/libre-busto
3Calculating sha256sum of:
4 ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk
5File info
6-rw-r--r-- 1 phabricator-android-builder phabricator-android-builder 7299744 Jun 29 18:16 ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk
7Cleaning old builds
8Update checksums
9Published here:
10https://lab.reyboz.it/builds/libre-busto/HEAD-libre-busto.apk
11Cleaning
12Done
13

Drydock: Run Command APK sign

When
Completed at Jun 29 2023, 18:16 · Built for 3 s
Status
Passed
Description

This script is available here on gargantua.reyboz.it accessible to the Unix user phabricator-android-builder:

/opt/reyboz/android/bin/align-sign-fabione.sh

In general it does that:

sign-fabione.sh
#!/bin/sh
# https://gitpull.it/harbormaster/step/view/16/

BASEDIR="app/build/outputs/apk/gitpull"
OUT="app-gitpull-signed.apk"
APK_UNSIGNED="app-gitpull-unsigned.apk"
APK_ALIGNED="app-gitpull-unsigned-aligned.apk"

KEYSTORE="/home/phabricator-android-builder/private-resources/gitpullkeystore-libre-busto.jks"
PASSPHRASE="<omissis>

echo "Entering in $BASEDIR"
cd "$BASEDIR"

echo "Aligning zip"
~/bin/zipalign -v -p 4 "$APK_UNSIGNED" "$APK_ALIGNED"

echo "Signing APK"
# NOTE: keep keystore unsescaped
~/bin/apksigner sign --ks "$KEYSTORE" --out "$OUT" --ks-pass pass:"$PASSPHRASE" "$APK_ALIGNED"

echo "Sign concluded with exit status $?"
1 empty logs are hidden. Show all logs.

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

1113 6101158 res/y9.xml (OK - compressed)
1114 6101533 res/yC.xml (OK - compressed)
1115 6102512 res/yO.9.png (OK)
1116 6102773 res/yP.xml (OK - compressed)
1117 6103364 res/yR.xml (OK - compressed)
1118 6104364 res/yX.png (OK)
1119 6108714 res/ya.xml (OK - compressed)
1120 6109689 res/yf.xml (OK - compressed)
1121 6110024 res/yw.png (OK)
1122 6111828 res/yx.xml (OK - compressed)
1123 6112294 res/z1.xml (OK - compressed)
1124 6112533 res/z3.xml (OK - compressed)
1125 6112804 res/z6.png (OK)
1126 6113708 res/z61.png (OK)
1127 6114892 res/zH.xml (OK - compressed)
1128 6115415 res/zH1.xml (OK - compressed)
1129 6115963 res/zH2.xml (OK - compressed)
1130 6116427 res/zL.xml (OK - compressed)
1131 6116747 res/zq.xml (OK - compressed)
1132 6117172 res/zt.png (OK)
1133 6121652 resources.arsc (OK)
1134Verification succesful
1135Signing APK
1136Sign concluded with exit status 0
1137

Drydock: Assemble debug APK

When
Completed at Jun 29 2023, 18:16 · Built for 2 m, 56 s
Status
Passed
Description

This step will build an .apk using Gradle.

sudo apt install openjdk-11-jre-headless

Then aliased this gradle:

https://gitlab.com/fdroid/fdroidserver/-/blob/master/gradlew-fdroid

Build Log 2705 (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-112/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 2704 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

53w: /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/data/MatoPatternsDownloadWorker.kt: (58, 13): Variable 'notificationManager' is never used
54w: /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/data/MatoTripsDownloadWorker.kt: (96, 13): Variable 'notificationManager' is never used
55w: /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt: (73, 13): Variable 'USGS_SAT' is never used
56w: /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 36): Parameter 'view' is never used, could be renamed to _
57w: /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt: (41, 42): Parameter 'motionEvent' is never used, could be renamed to _
58
59> Task :app:compileGitpullJavaWithJavac
60
61> Task :app:dexBuilderGitpull
62> Task :app:mergeGitpullJavaResource
63> Task :app:mergeDexGitpull
64> Task :app:compileGitpullArtProfile
65> Task :app:lintVitalAnalyzeGitpull
66> Task :app:packageGitpull
67> Task :app:createGitpullApkListingFileRedirect
68Daemon will be stopped at the end of the build after running out of JVM memory
69> Task :app:lintVitalReportGitpull
70
71> Task :app:lintVitalGitpull
72
73> Task :app:assembleGitpull
74
75BUILD SUCCESSFUL in 2m 54s
7639 actionable tasks: 39 executed
77

Drydock: Clean Gradle

When
Completed at Jun 29 2023, 18:13 · Built for 26 s
Status
Passed
Description

Clean Gradle directory to avoid nasty errors like:

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

1 empty logs are hidden. Show all logs.

Build Log 2702 (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 (subsequent builds will be faster)
4> Task :app:clean
5
6BUILD SUCCESSFUL in 24s
71 actionable task: 1 executed
8

Lease BusTO Working Copy

When
Completed at Jun 29 2023, 18:12 · Built for 3 s
Status
Passed

Wait for Previous Commits to Build

When
Completed at Jun 29 2023, 18:12 · Built for 1 s
Status
Passed

Event Timeline