Skip to content

[CI] macOS universal CoreCLR R2R size baseline differs by 12,624 bytes across PRs #26993

Closed

Description

@dalexsoto

Apple platform

macOS

Framework version

net11.0-* (net11.0-macos)

Affected platform version

The affected jobs independently installed .NET SDK 12.0.100-alpha.1.26513.123. The failing application targets net11.0-macos, with universal osx-arm64;osx-x64 output. The exact host macOS versions are unavailable from the retained diagnostic evidence; no simulator or another job's OS version is substituted.

Description

Xamarin.Tests.AppSizeTest.CoreCLR_R2R(MacOSX,"osx-arm64;osx-x64",False) has the same deterministic byte-baseline mismatch in 3 source-qualified test executions across 2 distinct PRs. These are Release, CoreCLR, ReadyToRun, untrimmed cases.

The expected size is 328,753,104 bytes, and the actual size is 328,765,728 bytes: a +12,624-byte change. The test's absolute tolerance is 10,240 bytes, so the change exceeds the gate by 2,384 bytes.

PR Exact source checked out by the failing job Azure run Actual failing case time (UTC)
#26912 adb67f3629994db9c25e6081a5496a5ea94b1d21 15764513 2026-10-21 18:37:09-18:38:00
#26912 da3c7b41a702cbefd0f96084929b550d0636fce6 15772601 2026-10-22 06:17:27-06:18:19
#26936 7d6ab5c15fc103f7ad6fc77d0a8839d4316b5d18 15776192 2026-10-22 14:58:00.234370-14:58:50.663897

Each is pipeline definition 21922, original Simulator stage/job generation 1, T: dotnettests_macos, Run tests task generation 1. The job ID 306fc6d1-8bac-5ab5-4f68-7aa08eedb9c6 and task ID e65d0962-e63e-55e0-b05e-8969a40ef4ed repeat across different runs; the run and source identities above distinguish the executions.

Exact shared diagnostic fingerprint

All three sources use tests/dotnet/UnitTests/expected/MacOSX-CoreCLR-R2R-size.txt, Git blob c885a53cf98fee2b4f500e85fd76a8a40247c064. The three independently published updated-expected-sizes-simulator_testsdotnettests_macos-1 diagnostic diffs are byte-identical, SHA-256 5f266396c6082c9eb2c801632b78f7b65836e24feb730d11b776dde337327e94.

Every context and removed line was verified against the corresponding exact-head baseline, and the actual report was reconstructed. No files were added or removed. Exactly these three component changes sum to the measured +12,624 bytes:

Application-relative file Expected bytes Actual bytes Change
Contents/MacOS/SizeTestApp 7,438,488 7,438,824 +336
Contents/MonoBundle/.xamarin/osx-arm64/Microsoft.macOS.dll 74,876,416 74,882,048 +5,632
Contents/MonoBundle/.xamarin/osx-x64/Microsoft.macOS.dll 64,037,888 64,044,544 +6,656

This establishes the same measured baseline divergence, not an exclusive initiating code-change or OS cause. The fixture's False case does not select the preserved-assembly API comparison. This is also not either beta-Xcode public API-diff gate.

All-state issue searches and the complete non-ignored histories of #25224 and #26758 were checked. The former records different older app-size/API cohorts, including a +11,959-byte binding/type-map vector; the latter records preserved-member System.Number baseline changes. Neither records this exact baseline, byte total, or three-component vector, so they are not being reopened or treated as this root.

Steps to Reproduce

  1. Use one of the exact source revisions above with the SDK version independently observed in its failing job.
  2. Run the macOS dotnet unit-test case Xamarin.Tests.AppSizeTest.CoreCLR_R2R(MacOSX,"osx-arm64;osx-x64",False) using its existing Release/CoreCLR/ReadyToRun configuration and tracked expected file.
  3. Compare the actual bundle-size report with the tracked baseline. The observed difference is 12,624 bytes, greater than the 10,240-byte gate.

Did you find any workaround?

No validated workaround or retry recovery is established. No retry was submitted for this deterministic failure, and no expected file, tolerance, source, SDK, or shared environment was changed by this monitor. Generated baseline-update hints were treated as diagnostic text, not executed.

Relevant log output

App size changed significantly:
expected 328,753,104 bytes; actual 328,765,728 bytes
delta +12,624 bytes > tolerance +/-10,240 bytes

Use the affected run's own TestSummary-simulator_testsdotnettests_macos-1, HtmlReport-simulator_testsdotnettests_macos-1, and updated-expected-sizes-simulator_testsdotnettests_macos-1 artifacts. Artifact retention may limit future availability. The latest exact original result is tests/DotNet-tests/238/results-20261022_075057.trx, SHA-256 76bbd799d88c7ee10bff74db140c987751bcb6f01612455a993b37322319e8a4. The other failed case in that job is a separately tracked native app-execution watchdog; it is not part of this size signature.

Generated by GitHub Copilot.

Activity

  1. rolfbjarne commented on Oct 23, 2026

    @rolfbjarne
    Member

    Fixed with #26983.

  2. dalexsoto commented on Oct 28, 2026

    @dalexsoto
    MemberAuthor

    Newly confirmed historical occurrence; not reopening.

    PR #26997, own historical head d1cc83595f9ed4da5304fbcfd449d63dcff912a4, run 15784638 / macOS stage1-job1 / Run tests: original NUnit and TRX independently identify Xamarin.Tests.AppSizeTest.CoreCLR_R2R(MacOSX,"osx-arm64;osx-x64",False) as Failed at 2026-10-23 00:58:34-00:59:26 UTC. The own source reset and selected SDK 12.0.100-alpha.1.26513.123 were checked.

    The exact baseline blob is still c885a53cf98fee2b4f500e85fd76a8a40247c064, with the same byte-identical diagnostic diff (5f266396c6082c9eb2c801632b78f7b65836e24feb730d11b776dde337327e94). Every diff context/removal was verified: 328,753,104 -> 328,765,728 bytes, delta +12,624, tolerance 10,240, excess 2,384; component changes +336 / +5,632 / +6,656. The signature now has 4 confirmed failed executions across 3 distinct PRs. Original NUnit/TRX aliases count once.

    The same exact case subsequently has an actual original NUnit/TRX Passed result on different head 1430a43ddc666bfc67617cdbddba7ab6867573e9, run 15788472 / macOS stage2-job2, at 2026-10-26 10:24:42-10:25:29 UTC. Its own exact TestBaseClass source/execution guard was independently resolved; this is a bounded changed-head case result, not a same-head genuine flake, permanent environment fix, accepted-payload satisfaction or refund.

    The newly documented failure predates #26983's actual merge at 2026-10-23 01:42:18 UTC and this issue's completed closure. It does not invalidate the closure, so the issue remains closed. The refreshed body has no Additional info to collect section.

    No expected file, tolerance, source, SDK or shared environment was changed, and no retry was submitted by the monitor. Complete all-actor retry history and remaining capacity are still uncertified. Raw diagnostics and infrastructure identifiers are not uploaded.

    Note

    Generated by GitHub Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions