Repository navigation
ADFA-6957: Skip advzip on CI builds of branches other than stage - #2318
Merged
Merged
Conversation
Step 2 of the ADFA-6953 plan. recompressApk ran advzip -3 on every CI build. On the Universal APK job that pass took 209 s in a normal stage build and 307 s in an ADFA-6956 measurement run, the largest single cost in the job. advzip now runs only for release APKs and for CI builds of stage, which most testers install. Feature-branch and PR builds use the Deflater BEST_COMPRESSION path that local builds and advzip-less machines already use. The jar assets stay deflated (ADFA-4188); only the final 7z-level pass is skipped. Size cost, measured on a current CI debug APK (ADFA-6956 run 45761026069, recompressing each deflated entry with zlib level 9, the Deflater path's settings): 77,080,750 bytes with advzip, about 2.88 MB (+3.74%) more without it. The agreed limit was 5%. recompressApk now logs a line when it skips advzip, so the CI log shows which path ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
From the independent review: keying advzip on GITHUB_REF_NAME in the build script also kept it in the scheduled analyze and instrumentation builds, which build stage, though nobody installs those APKs. The workflow that publishes the APK now opts in instead. - recompressApk runs advzip for release APKs and for builds run with -Padvzip, read the same way as the existing -Pzopfli. No branch name in the build script. - debug.yml passes -Padvzip only when GITHUB_REF_NAME is stage, and installs advancecomp only then. So stage builds published to App Tester keep advzip, while branch builds and the scheduled analyze and instrumentation builds skip it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
davidschachterADFA
marked this pull request as ready for review
November 26, 2026 06:00
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
itsaky-adfa
approved these changes
Nov 27, 2026
Brings #2318 up to date with stage (1cd37e7) so it can merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
davidschachterADFA
added a commit
that referenced
this pull request
Nov 27, 2026
Resolves the conflict with #2318 (ADFA-6957) in debug.yml: this branch moved the four check steps out of the build job into the checks job, and #2318 added a comment above the advzip step next to them. The build job keeps #2318's comment, its stage-only advancecomp install and its -Padvzip logic, and not the four steps, which stay in the checks job. The PR's own diff against stage is the same as before the merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ADFA-6957
Step 2 of the ADFA-6953 CI speed-up plan: only stage builds and release builds run
advzip -3now.What changes
recompressApkinapp/build.gradle.ktsruns advzip for release APKs, and for debug APKs only when Gradle gets-Padvzip.-Pzopfli. Only its presence counts.DeflaterBEST_COMPRESSIONpath, which local builds already use. The jar assets stay deflated (ADFA-4188); only the final 7z-level pass is skipped.Skipping advzip: .....github/workflows/debug.ymlpasses-Padvziponly when the branch isstage, and installs advancecomp only then.Stage builds published to App Tester keep advzip. Feature-branch builds skip it, and so do the scheduled
analyze.ymlandinstrumentation-test.ymlbuilds, whose APKs nobody installs. Those two workflows need no change: they skip advzip because they don't pass-Padvzip, though they buildstage. Release builds (release.yml) keep advzip because their build type is release. That workflow installs advancecomp itself, and the 2026-11-25 release run (45610420469) loggedCompressing 1968 entries with advzip -3for both APKs.Why
The advzip pass was the largest single step in the Universal APK job: 209 s in a normal stage build (run 45716776726), and 307 s in an ADFA-6956 measurement run. The size cost is small:
The limit agreed on ADFA-6953 was 5%.
Results (run 45763215760, first commit)
Skipping advzip: ..., andrecompressApk completed in 21063ms, against 209 to 307 s with advzip.Final commit (run 45764362108): the log shows
Skipping advzip: only release APKs and builds with -Padvzip use it (ADFA-6957), andrecompressApk completed in 21112ms. The assemble step took 255 s, the "Install advancecomp" step was skipped, and the APK is again 79,964,334 bytes.Verification
flox. WithGITHUB_REF_NAME=stageit passes-Padvzipto Gradle, and with any other branch it passes nothing.recompressApk:release.yml(always advzip),debug.ymlon stage and on other branches, the scheduled analyze and instrumentation builds, standalone-PrecompressAbiruns, and local assembles. It also checked the Deflater path's output: the same signed and aligned structure, only the compressed bytes differ. It found nothing blocking. Its two suggestions, the-Padvzipopt-in and installing advancecomp only on stage, are in this PR.stage. The first stage build after merge should logCompressing N entries with advzip -3, and I'll check that log.Sites checked
isCiCdis used elsewhere inapp/build.gradle.kts, for the assemble finalizers and the asset downloads. Those decide whetherrecompressApkruns at all, not how it compresses, so they are unchanged. ARCHITECTURE.md saysrecompressApkruns for "release always, debug in CI only", which is still true.🤖 Generated with Claude Code
https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
Code Reviewer: Code Reviewer couldn't review this pull request
The pull request author does not have access to AI for the associated Atlassian organization.