Skip to content

Conversation

@radekdoulik
Copy link
Member

Use apkdiff and description files to check for apk size regression.

The new ApkDiffCheckRegression tool task handles running apkdiff
tool and creates TestResult file for convenient CI reporting.

Use apkdiff and description files to check for apk size regression.

The new `ApkDiffCheckRegression` tool task handles running `apkdiff`
tool and creates `TestResult` file for convenient CI reporting.
@radekdoulik
Copy link
Member Author

Note that this is draft PR with wrong Xamarin.Forms_Performance_Integration-Signed-Debug.apkdesc to test the creation of TestResult xml file and picking it up by CI.

@radekdoulik
Copy link
Member Author

Looks like we don't run instrumentation tests with Debug configuration. Maybe we should start running them again?

@radekdoulik radekdoulik marked this pull request as ready for review April 17, 2020 11:07
@radekdoulik radekdoulik requested a review from jonpryor as a code owner April 17, 2020 11:07
@jonpryor jonpryor merged commit 75dc590 into dotnet:master Apr 17, 2020
jonpryor pushed a commit that referenced this pull request Apr 17, 2020
Use `apkdiff` (2e28f2e) and `.apkdesc` description files to check
for `.apk` size regressions.  This allows for more informative and
useful messages when `.apk` size regressions occur, e.g.

	Saving apk description to '../../../bin/TestRelease/Xamarin.Forms_Performance_Integration-Signed.apkdesc'
	 Size difference in bytes ([*1] apk1 only, [*2] apk2 only):

	100,000 assemblies/Mono.Android.dll
	Error: apkdiff: Assembly 'assemblies/Mono.Android.dll' size increase 100,000 is 48,800 bytes more than the threshold 51,200.

	    492 lib/armeabi-v7a/libmonodroid.so
	    216 lib/x86/libmonodroid.so
	Summary:

	100,000 Assemblies 0.71% (of 14,080,480)
	    708 Shared libraries 0.01% (of 11,855,444)
	      0 Package size difference 0.00% (of 21,007,581)
	Error: apkdiff: Size regression occured, 1 check(s) failed.

The new `<ApkDiffCheckRegression/>` task handles running the `apkdiff`
tool and creates `TestResult*.xml` files for convenient CI reporting
of `.apk` size regressions.

Add `tests/apk-sizes-reference/*.apkdesc` files to contain "expected
sizes" for verification.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 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