-
Notifications
You must be signed in to change notification settings - Fork 937
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
Target Android 15: Add ELF alignment verification CI check #5634
base: feature/mike/android-15
Are you sure you want to change the base?
Conversation
d80c3b0
to
3eae73b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works as expected. I’d like to get a summary of the task to make it clear why the workflow failed. At the moment it seems that only the CI tests failed.
run: chmod +x scripts/check_elf_alignment.sh | ||
|
||
- name: Check native libraries alignment | ||
run: ./scripts/check_elf_alignment.sh ${{ steps.find-apk.outputs.apk_path }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provided by Google with a couple of tweaks with exit status so we can fail the workflow
we're adding the check in the android_tests as we already need an apk to run the tests, so we're not having to build multiple apks and slowing everything down we considered after PR merge but that meant the person would only find out after that something they are using is not aligned
563db61
to
d836cb4
Compare
3eae73b
to
629b8ff
Compare
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Task/Issue URL: https://app.asana.com/0/488551667048375/1209378846484863
Description
Added ELF alignment verification to the CI pipeline to ensure native libraries are properly aligned at 16KB or 64KB boundaries. This includes a new shell script that checks alignment in APK files and reports any misaligned libraries.
A passing build using playDebug: https://github.com/duckduckgo/Android/actions/runs/13291887849/job/37114510525?pr=5634
A failing build using internalDebug (because of Flipper which we know about)
https://github.com/duckduckgo/Android/actions/runs/13292470506/job/37116369658?pr=5634
Steps to test this PR
ELF Alignment Verification
./gradlew androidTestsBuild
./scripts/check_elf_alignment.sh path/to/your/app.apk
UI changes
No UI changes in this PR