Commit 1a2beea
[ci] Check APK sizes on Azure Pipelines (#4133)
Future-Followup: #4169
The `RecordApkSizes` target was overlooked in the initial split up
and porting efforts for our `.apk` tests (fd8336c). `RecordApkSizes`
calculates the sizes of or test `.apk` files and compares them against
a baseline. This change ensures that we will report a failure in our
Azure Pipelines build if any project's `.apk` size drifts too far from
the baseline.
In order for the `.apk` size comparisons to continue to "make sense" --
in that many of the sizes in
`TestResult-Xamarin.Forms_Tests-values-Release.csv` are for AOT builds,
while fd8336c didn't build those projects with AOT enabled, resulting
in incomparable results -- we need to ensure that we're building the
appropriate build config, by setting `$(AotAssemblies)`=True. This
fixes a build-time failure:
error MSB4018: The "ProcessApkSizes" task failed unexpectedly. [/Users/runner/runners/2.164.3/work/1/s/tests/Xamarin.Forms-Performance-Integration/Droid/Xamarin.Forms.Performance.Integration.Droid.csproj]
error MSB4018: System.Collections.Generic.KeyNotFoundException: The given key 'apk-Release-Profiled' was not present in the dictionary. [/Users/runner/runners/2.164.3/work/1/s/tests/Xamarin.Forms-Performance-Integration/Droid/Xamarin.Forms.Performance.Integration.Droid.csproj]
Finally, update `TestResult-Xamarin.Forms_Tests-values-Release.csv`
to contain values which won't cause the build to fail. Unfortunately
these sizes are larger, and we're not entirely sure why [^0].
Issue #4169 is tracking that investigation.
[^0]: We have a *guess*: dotnet/java-interop@3b24a2c added
`[MethodImpl (MethodImplOptions.AggressiveInlining)]` to
multiple methods, which *presumably* increases AOT output.
This might well be an acceptable size increase.1 parent 7acc857 commit 1a2beea
File tree
3 files changed
+14
-14
lines changed- build-tools/automation
- yaml-templates
- tests/apk-sizes-reference
3 files changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | | - | |
571 | | - | |
| 570 | + | |
| 571 | + | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
0 commit comments