Skip to content

[CI] API-diff builds intermittently corrupt generated Errors.designer.cs #26246

Description

@dalexsoto

Failure signature

The xamarin-macios-pr-apidiff Detect API changes job intermittently fails while compiling the generated file msbuild/Xamarin.MacDev.Tasks/Errors.designer.cs, despite unrelated PR scopes. The compiler reports impossible parse/read errors, and the downstream upload job then fails because change-detection.zip was never produced.

Confirmed occurrences

PR / head Build and job Diagnostic Outcome
#26087 / 7213ed42c7b53e51cf031251eebddbfdd7ef2ef8 14720292 - Detect API changes Generated Errors.designer.cs failed with CS1513 while building the baseline. Same-head automatic replacement build 14729196 succeeded.
#26241 / c9a130cfb73e8016ca64915ca5cade46f367f124 14733869 - Detect API changes CSC error CS1504: source file Errors.designer.cs could not be opened because length was out of range. Build is terminal failed; no retry outcome yet.

First observed: 2026-07-21 19:52 UTC. Latest observed: 2026-07-22 16:30 UTC. Recurrence: 2 jobs across 2 distinct monitored PRs.

Classification and impact

This is CI infrastructure/tooling behavior rather than a source regression:

The API-diff check blocks otherwise unrelated PRs.

Investigation

Workaround

After confirming the PR is conflict-free, retry accounting is reconciled, and no equivalent build is active, rerun the failed API-diff stage/jobs. Azure task logs and generated artifacts have limited retention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failureThe issue only affects CIci-postmortemCI post-mortem analysis: flaky tests, infrastructure failures, shared regressionstestsAnything related to tests

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions