Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7264347&view=ms.vss-test-web.build-test-results-tab&runId=67617676&resultId=100033&paneView=debug

A single test was failing on Windows-only:

BuildReleaseArm64(True)
apkdiff regression test failed with exit code: 3
stdErr: Error: apkdiff: PackageSize decrease 8,192 is 3,072 bytes more than the threshold 5,120. apk1 size: 9,521,310 bytes, apk2 size: 9,513,118 bytes.
Error: apkdiff: Size regression occured, 1 check(s) failed.

Most notably a single file changed:

14,556 classes.dex

I believe this started failing in 35db527, due to a combination of changes:

  • dotnet/runtime#77386 introduced libSystem.Security.Cryptography.Native.Android.jar in the Mono runtime packs.

  • We updated .apkdesc files before including the new .jar.

  • We added appropriate logic to include the new .jar.

The result was we have .apkdesc files that don't match the full set of changes in 35db527. Then in 8872d04 the app size changed beyond the threshold for a test to fail.

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7264347&view=ms.vss-test-web.build-test-results-tab&runId=67617676&resultId=100033&paneView=debug

A single test was failing on Windows-only:

    BuildReleaseArm64(True)
    apkdiff regression test failed with exit code: 3
    stdErr: Error: apkdiff: PackageSize decrease 8,192 is 3,072 bytes more than the threshold 5,120. apk1 size: 9,521,310 bytes, apk2 size: 9,513,118 bytes.
    Error: apkdiff: Size regression occured, 1 check(s) failed.

Most notably a single file changed:

    14,556 classes.dex

I believe this started failing in 35db527, due to a combination of
changes:

* [dotnet/runtime#77386][0] introduced
  `libSystem.Security.Cryptography.Native.Android.jar` in the Mono
  runtime packs.

* We updated `.apkdesc` files *before* including the new `.jar`.

* We added appropriate logic to include the new `.jar`.

The result was we have `.apkdesc` files that don't match the full set
of changes in 35db527. Then in 8872d04 the app size changed beyond
the threshold for a test to fail.

[0]: dotnet/runtime#77386
Got these from CI again...
@jonathanpeppers jonathanpeppers marked this pull request as draft February 1, 2023 19:42
@jonathanpeppers
Copy link
Member Author

Need to investigate more:

  8,192 Package size difference -0.09% (of 9,521,310)
stdErr: Error: apkdiff: PackageSize decrease 8,192 is 3,072 bytes more than the threshold 5,120. apk1 size: 9,521,310 bytes, apk2 size: 9,513,118 bytes.
Error: apkdiff: Size regression occured, 1 check(s) failed.
Expected: True
But was:  False

@jonathanpeppers
Copy link
Member Author

I don't think this is needed anymore.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
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