Skip to content

[tests] Make APK size decreases inconclusive - #12957

Merged
jonathanpeppers merged 1 commit into
mainfrom
simonrozsival-apkdesc-size-decreases
Sep 30, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
simonrozsival-apkdesc-size-decreases

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

APK size improvements should not fail regression tests just because the
reference .apkdesc files need updating.

When apkdiff reports threshold violations, rerun the comparison without
--descrease-is-regression. If that succeeds, mark the result
inconclusive instead of failing. Increases beyond the thresholds still
fail, even when accompanied by decreases, and tool errors remain failures.

Preserve the size diff, current .apkdesc attachment, and reference-update
guidance. 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.

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]>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The behavior is correctly implemented and tested; only a non-blocking diagnostic improvement remains.

Review effort: Balanced
Findings: 1 Medium severity

Open (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
jonathanpeppers merged commit d11ab01 into main Sep 30, 2026
45 checks passed
@jonathanpeppers
jonathanpeppers deleted the simonrozsival-apkdesc-size-decreases branch September 30, 2026 19:52
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants