Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use fdroidserver patch for publish workflow #2422

Closed
wants to merge 2 commits into from

Conversation

provokateurin
Copy link
Member

Signed-off-by: provokateurin <kate@provokateurin.de>
@wrenix
Copy link
Contributor

wrenix commented Aug 28, 2024

Damit, that would be to easy

@provokateurin
Copy link
Member Author

I'm not sure if the remaining problem is related to the first problem or not

@wrenix
Copy link
Contributor

wrenix commented Aug 28, 2024

I am not sure, i believe the ignoriering of stats folder (like in my patch) is related to something that happens before. That the .apk files are not detected.

I am more or less just a user of fdroid. I have use that fdroidserver just for nightly three years ago .... So have no clue. And believe it should dive into a big code review, now. I do not know if I would do that.

@provokateurin
Copy link
Member Author

Makes sense. Thanks for the patch btw 👍

@provokateurin provokateurin deleted the ci/fix-publish branch August 28, 2024 13:46
@wrenix
Copy link
Contributor

wrenix commented Aug 28, 2024

Found this different between last success and last failure:

 DEBUG: adding IdentityFile to /home/runner/.ssh/config
 DEBUG: Reading 'config.yml'
 DEBUG: ipfs_cid not found, skipping CIDv1 generation
 DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/app-armeabi-v7a-debug.apk
 DEBUG: Resigning app-armeabi-v7a-debug.apk with provided debug.keystore
 DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/app-armeabi-v7a-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-armeabi-v7a-debug.apk
+DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/app-arm64-v8a-debug.apk
+DEBUG: Resigning app-arm64-v8a-debug.apk with provided debug.keystore
+DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/app-arm64-v8a-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-arm64-v8a-debug.apk
 DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/app-x86_64-debug.apk
 DEBUG: Resigning app-x86_64-debug.apk with provided debug.keystore
 DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/app-x86_64-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk
-DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/app-arm64-v8a-debug.apk
+DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/fdroid/repo/app-armeabi-v7a-debug.apk
+DEBUG: Resigning app-armeabi-v7a-debug.apk with provided debug.keystore
+DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/fdroid/repo/app-armeabi-v7a-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-armeabi-v7a-debug.apk
+DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/fdroid/repo/app-arm64-v8a-debug.apk
 DEBUG: Resigning app-arm64-v8a-debug.apk with provided debug.keystore
-DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/app-arm64-v8a-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-arm64-v8a-debug.apk
+DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/fdroid/repo/app-arm64-v8a-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-arm64-v8a-debug.apk
+DEBUG: Stripping mystery signature from /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk
+DEBUG: Resigning app-x86_64-debug.apk with provided debug.keystore
+DEBUG: > /usr/bin/apksigner sign --ks /home/runner/.***/debug.keystore --ks-pass env:FDROID_KEY_STORE_PASS --key-pass env:FDROID_KEY_PASS --ks-key-alias *** --in /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk

Looks for me like duplicated signing is added, where the second has the problem with same input than output.

E.g. --in /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk --out /home/runner/work/neon/neon/fdroid/repo/app-x86_64-debug.apk

Maybe that is the problem.

@provokateurin
Copy link
Member Author

I doubt it, it says it is resigning the files. I also wouldn't know why this would cause the files to be missing.

@wrenix
Copy link
Contributor

wrenix commented Aug 28, 2024

I do. Is it okay to run some tests?

I believe, that the in of fdroid/repo should not happen and that code prevent it (but does not work anymore):

if d == 'fdroid' and root == cibase:
  dirs.remove(d)

see
https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/nightly.py?ref_type=heads#L435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants