-
Notifications
You must be signed in to change notification settings - Fork 42
F-Droid build failed #260
Comments
Yep, Java 11. I'm already making a PR, just fighting to get one of the many way to run F-Droid server working... |
It would be great if the above PR could be merged soonish. Then F-Droid bot can copy a working build script when it picks up v2.6.0, which I am going to tag for the bot sometime late this Sunday (2021-10-03). That said, the build for v2.5.0 will still fail because of the "Unknown Maven Repo". Hence the PR doesn't remove the |
Here's a new MR: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/9885 |
Here is the diffoscope as to why F-Droid's build pipeline fails: $ diffoscope verifier-prod-2.6.0-2600-signed.apk ch.admin.bag.covidcertificate.verifier_2600.apk
--- apk-official-signed.apk
+++ apk-fdroid-unsigned.apk
├── zipinfo {}
│ @@ -1,8 +1,8 @@
│ -Zip file size: 9921218 bytes, number of entries: 808
│ +Zip file size: 9845778 bytes, number of entries: 805
│ -rw-rw-rw- 0.0 unx 55 b- defN 81-Jan-01 01:01 META-INF/com/android/build/gradle/app-metadata.properties
│ -rw-rw-rw- 0.0 unx 8419692 b- defN 81-Jan-01 01:01 classes.dex
│ -rw-rw-rw- 0.0 unx 471540 b- defN 81-Jan-01 01:01 classes2.dex
│ -rw-rw-rw- 0.0 unx 9249884 b- defN 81-Jan-01 01:01 classes3.dex
│ -rw-rw-rw- 0.0 unx 27241 b- defN 81-Jan-01 01:01 assets/faq/config.json
│ -rw-rw-rw- 0.0 unx 2898 b- defN 81-Jan-01 01:01 assets/impressum/de/impressum.html
│ -rw-rw-rw- 0.0 unx 2684 b- defN 81-Jan-01 01:01 assets/impressum/de/licence.html
│ @@ -800,11 +800,8 @@
│ -rw---- 0.0 fat 424 b- defN 81-Jan-01 01:01 res/z1.xml
│ -rw---- 0.0 fat 396 b- defN 81-Jan-01 01:01 res/z3.xml
│ -rw---- 0.0 fat 1116 b- defN 81-Jan-01 01:01 res/zH.xml
│ -rw---- 0.0 fat 1264 b- defN 81-Jan-01 01:01 res/zI.xml
│ -rw---- 0.0 fat 1388 b- defN 81-Jan-01 01:01 res/zl.xml
│ -rw---- 0.0 fat 840 b- defN 81-Jan-01 01:01 res/zq.xml
│ -rw---- 0.0 fat 1046104 b- stor 81-Jan-01 01:01 resources.arsc
│ --rw-rw-rw- 0.0 unx 73262 b- defN 81-Jan-01 01:01 META-INF/CERT.SF
│ --rw-rw-rw- 0.0 unx 1297 b- defN 81-Jan-01 01:01 META-INF/CERT.RSA
│ --rw-rw-rw- 0.0 unx 73188 b- defN 81-Jan-01 01:01 META-INF/MANIFEST.MF
│ -808 files, 22263224 bytes uncompressed, 9820772 bytes compressed: 55.9%
│ +805 files, 22115477 bytes uncompressed, 9753990 bytes compressed: 55.9%
├── filetype from file(1)
│ @@ -1 +1 @@
│ -Zip archive data, at least v0.0 to extract, compression method=store
│ +Zip archive data, at least v0.0 to extract, compression method=deflate The diff in the │ -Zip archive data, at least v0.0 to extract, compression method=store
│ +Zip archive data, at least v0.0 to extract, compression method=deflate |
Here is my current progress on hunting this down. I'm posting this because maybe someone can give a pointer what else to try, or maybe it'll help someone in the future.
The bytes at offset 8 and 9 indicate the compression method. Bytes 16+17 are expected to be different since they are the CRC (which will differ since one zip contains the signature files). More digging shows that this was introduced between v2.0.0 and v2.1.0 (the latter didn't make it to F-Droid since it contained a JAR):
With a To find out next:
And by "locally" I mean: our Dockerfile as well as my local install of the Android SDK on both my MacOS and Ubuntu laptops -- all three arrive at STORE. |
The build failed. Could you please take a look? https://monitor.f-droid.org/builds/log/ch.admin.bag.covidcertificate.wallet/2600#site-footer Thanks! |
The error message in that build is caused by the missing Java 11. Until we can hunt down why on earth F-Droid zips it differently than my local development environment and our Docker container do, you can disable the build again. If you or someone else from community who know the F-Droid build environment better than I do have any guesses, please do let me know :) |
Maybe @obfusk ? Could you please take a look? |
Here's a status update, comparing v2.6.1 the official and F-Droid's CI builds:
The F-Droid docs mention 2 potential culprits. However opting out from zipflinger is deprecated and will be removed from Android Gradle Plugin 8.0, and for "ZIP entry info" it describes only the problem not a potential solution. We'll continue to look into it. |
This is a potential workaround to help F-Droid reproduce our builds again. See #260 (comment) for some background.
As a workaround, I created a release for F-Droid that is exactly the same as the main release but with This shouldn't impact F-Droid users much, since the last release on F-Droid also had minSdk 24. See my PR here https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10000. It would be awesome if someoneone could have a look! |
Thanks! |
Could you please take a look? Thanks!
The text was updated successfully, but these errors were encountered: