-
Notifications
You must be signed in to change notification settings - Fork 10
Simplifying apk size reporting #512
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
Conversation
cf199d8 to
0caddf6
Compare
337fc21 to
a18b36a
Compare
4659ed4 to
f7546bc
Compare
75b7c9b to
500cc0d
Compare
500cc0d to
da8fe5f
Compare
| cp ./bazel-bin/examples/android/android_app.apk bazel_apk_baseline/ | ||
| APK_PATH=$(find bazel-bin/examples/android -name "android_app.apk" | head -n 1) | ||
| SIZE_FILE=ci/hello_world_bazel_x86_64_main_size.txt | ||
| stat -c%s "$APK_PATH" > "$SIZE_FILE" |
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.
could we take advantage of the effort you're putting revisiting all this and compute the aar / so size instead?
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.
totally, will explore. My main concern is increased build time but i can try to optimize other places
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.
yeah I think building the aar with a stripped so in parallel should be what we use to measure
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.
you can add it as a pre-step for Build Bazel APK and then I think you can use the generated aar for the //examples/android:android_app apk generation?
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.
perfect, will do as a follow up (had this already wip https://github.com/bitdriftlabs/capture-sdk/pull/378/files)
will be merging this soon (after more verification), to prevent broken state on main with that caching issue
ba7e4c4 to
6a2e95e
Compare
792c8cd to
913f2ca
Compare
913f2ca to
c2a4fc4
Compare
📦 Bazel APK(x86_64) Size Report
|
What
Relying on
uses: actions/cache/save@v3seems flaky as often times we can get errors likeProposal here is to store the size on a file under ci directory
NOTE: As a follow up will handle aar size via script https://github.com/bitdriftlabs/capture-sdk/pull/378/files
Verification
Run without main check by commenting locally
if: github.ref == 'refs/heads/main' && success()so we can have the size being store logic run.