Page MenuHomeGitPull.it

Build 733
PassedPublic

Drydock: Publish Builded APK

When
Completed at Jan 23 2024, 11:38 · Built for 1 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 3248 (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 8561731 Jan 23 11:38 ./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 Jan 23 2024, 11:38 · Built for 2 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 3246 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1220 7148744 res/yq.png (OK)
1221 7149956 res/yw.png (OK)
1222 7151760 res/yx.xml (OK - compressed)
1223 7152280 res/z1.xml (OK - compressed)
1224 7152521 res/z11.xml (OK - compressed)
1225 7152876 res/z12.xml (OK - compressed)
1226 7153204 res/z3.xml (OK - compressed)
1227 7153472 res/z6.png (OK)
1228 7154376 res/z61.png (OK)
1229 7155560 res/zB.xml (OK - compressed)
1230 7155922 res/zH.xml (OK - compressed)
1231 7156485 res/zL.xml (OK - compressed)
1232 7156808 res/zN.xml (OK - compressed)
1233 7157160 res/zZ.png (OK)
1234 7157517 res/z_.xml (OK - compressed)
1235 7157768 res/zq.xml (OK - compressed)
1236 7158231 res/zs.ttf (OK - compressed)
1237 7206632 res/zt.png (OK)
1238 7211108 res/zw.png (OK)
1239 7211616 res/zy.png (OK)
1240 7211860 resources.arsc (OK)
1241Verification succesful
1242Signing APK
1243Sign concluded with exit status 0
1244

Drydock: Assemble debug APK

When
Completed at Jan 23 2024, 11:38 · Built for 2 m, 46 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 3245 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

1Note: Some input files use or override a deprecated API.
2Note: Recompile with -Xlint:deprecation for details.
3e: /home/phabricator-android-builder/.gradle/caches/transforms-3/3233d6ddde389e715b15b715970cb3ed/transformed/paho.mqtt.android-4.1/jars/classes.jar!/META-INF/serviceLibrary_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
4/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]
5 <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7
8 Explanation for issues of type "MockLocation":
9 Using a mock location provider (by requiring the permission
10 android.permission.ACCESS_MOCK_LOCATION) should only be done in debug
11 builds (or from tests). In Gradle projects, that means you should only
12 request this permission in a test or debug source set specific manifest
13 file.
14
15 To fix this, create a new manifest file in the debug folder and move the
16 <uses-permission> element there. A typical path to a debug manifest
17 override file in a Gradle project is src/debug/AndroidManifest.xml.
18
191 errors, 0 warnings
20
21

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

81w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:72 'LocationProvider' is deprecated. Deprecated in Java
82w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:182:89 'TEMPORARILY_UNAVAILABLE: Int' is deprecated. Deprecated in Java
83w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:184:34 'LocationProvider' is deprecated. Deprecated in Java
84w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:184:51 'AVAILABLE: Int' is deprecated. Deprecated in Java
85
86> Task :app:compileGitpullJavaWithJavac
87
88> Task :app:lintVitalAnalyzeGitpull
89
90> Task :app:dexBuilderGitpull
91> Task :app:mergeGitpullJavaResource
92> Task :app:mergeDexGitpull
93> Task :app:compileGitpullArtProfile
94> Task :app:packageGitpull
95> Task :app:createGitpullApkListingFileRedirect
96Daemon will be stopped at the end of the build after running out of JVM memory
97> Task :app:lintVitalReportGitpull
98
99> Task :app:lintVitalGitpull
100
101> Task :app:assembleGitpull
102
103BUILD SUCCESSFUL in 2m 45s
10440 actionable tasks: 40 executed
105

Drydock: Clean Gradle

When
Completed at Jan 23 2024, 11:35 · Built for 17 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 3242 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

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

Lease BusTO Working Copy

When
Completed at Jan 23 2024, 11:35 · Built for 3 s
Status
Passed

Wait for Previous Commits to Build

When
Completed at Jan 23 2024, 11:35 · Built instantly
Status
Passed

Event Timeline