Repository navigation
[tests] Make APK size decreases inconclusive - #12957
Merged
Merged
Conversation
Size improvements should not fail APK size regression tests merely because the reference descriptions need updating. Recheck threshold violations without treating decreases as regressions. Mark decrease-only changes inconclusive while preserving failures for size increases and tool errors. Keep size diagnostics and attachments, add result-classification cases, and update the documentation. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The behavior is correctly implemented and tested; only a non-blocking diagnostic improvement remains.
Review effort: Balanced
Findings: 1
What changed in this PR
Updates APK-size regression tests so improvements are inconclusive while genuine regressions and tool failures still fail.
Changes:
- Rechecks threshold violations without decrease detection.
- Adds result-classification tests.
- Documents the revised behavior.
| File | Description |
|---|---|
BuildTest2.cs |
Classifies decrease-only violations as inconclusive. |
ApkSizeRegressionChecks.md |
Documents failure and inconclusive outcomes. |
Comment on lines
+353
to
+354
| var (increaseCode, _, _) = RunApkDiffCommand ($"{regressionCheckArgs} {apkDescReferencePath} {apkFile}", Path.Combine (Root, b.ProjectDirectory, "apkdiff-increases.log")); | ||
| return increaseCode; |
jonathanpeppers
approved these changes
Sep 30, 2026
9 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

APK size improvements should not fail regression tests just because the
reference
.apkdescfiles need updating.When
apkdiffreports threshold violations, rerun the comparison without--descrease-is-regression. If that succeeds, mark the resultinconclusive instead of failing. Increases beyond the thresholds still
fail, even when accompanied by decreases, and tool errors remain failures.
Preserve the size diff, current
.apkdescattachment, and reference-updateguidance. Add result-classification cases covering decrease-only changes,
increases, tool errors, and timeouts, and update the documentation.
Full-build tests were not run: the local SDK build is unavailable, and the
full-build run was skipped by agreement.