Page MenuHomeGitPull.it

Build 852
FailedPublic

History

Drydock: Assemble debug APK

When
Completed at May 14 2025, 19:18 · Built for 36 s
Status
Failed
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 4980 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

194 at org.gradle.internal.Factories$1.create(Factories.java:31)
195 at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
196 at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
197 at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:114)
198 at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157)
199 at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126)
200 ... 2 more
201Caused by: com.android.aaptcompiler.ResourceCompilationException: Failed to compile values resource file /var/drydock/workingcopy-79/repo/libre-busto/app/build/intermediates/incremental/gitpull/mergeGitpullResources/merged.dir/values-fr/values-fr.xml
202 at com.android.aaptcompiler.ResourceCompiler.compileTable(ResourceCompiler.kt:192)
203 at com.android.aaptcompiler.ResourceCompiler.access$compileTable(ResourceCompiler.kt:1)
204 at com.android.aaptcompiler.ResourceCompiler$getCompileMethod$1.invoke(ResourceCompiler.kt:138)
205 at com.android.aaptcompiler.ResourceCompiler$getCompileMethod$1.invoke(ResourceCompiler.kt:138)
206 at com.android.aaptcompiler.ResourceCompiler.compileResource(ResourceCompiler.kt:123)
207 ... 32 more
208Caused by: java.lang.IllegalStateException: Can not extract resource from com.android.aaptcompiler.ParsedResource@4f6fa086.
209 at com.android.aaptcompiler.TableExtractor.extractResourceValues(TableExtractor.kt:270)
210 at com.android.aaptcompiler.TableExtractor.extract(TableExtractor.kt:181)
211 at com.android.aaptcompiler.ResourceCompiler.compileTable(ResourceCompiler.kt:188)
212 ... 36 more
213
214
215* Get more help at https://help.gradle.org
216
217BUILD FAILED in 34s
218

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

1Found 8.1 via distributionUrl
2Running /home/phabricator-android-builder/versions/8.1/bin/gradle --stacktrace assembleGitpull
3> Task :app:buildKotlinToolingMetadata
4> Task :app:preBuild UP-TO-DATE
5> Task :app:preGitpullBuild UP-TO-DATE
6> Task :app:generateGitpullBuildConfig
7> Task :app:generateGitpullResValues
8> Task :app:checkGitpullAarMetadata
9> Task :app:mapGitpullSourceSetPaths
10> Task :app:generateGitpullResources
11
12> Task :app:mergeGitpullResources
13
14> Task :app:createGitpullCompatibleScreenManifests
15> Task :app:extractDeepLinksGitpull
16> Task :app:mergeGitpullResources FAILED
17
18> Task :app:processGitpullMainManifest
19/var/drydock/workingcopy-79/repo/libre-busto/app/src/gitpull/AndroidManifest.xml Warning:
20 provider#org.acra.attachment.AcraContentProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present
219 actionable tasks: 9 executed
22

Drydock: Clean Gradle

When
Completed at May 14 2025, 19:17 · Built for 53 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 4977 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1Found 8.1 via distributionUrl
2Running /home/phabricator-android-builder/versions/8.1/bin/gradle clean
3Starting a Gradle Daemon (subsequent builds will be faster)
4> Task :app:clean
5
6BUILD SUCCESSFUL in 52s
71 actionable task: 1 executed
8

Lease BusTO Working Copy

When
Completed at May 14 2025, 19:16 · Built for 3 s
Status
Passed

Abort Older Builds

When
Completed at May 14 2025, 19:16 · Built instantly
Status
Passed