Skip to content

[build] serialize Windows library builds - #1544

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-flaky-build
Sep 11, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-flaky-build

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Windows package builds can run bindings that access the same generated AAR concurrently. The two-node limit still permits that race, producing intermittent XARLP7024 file-lock failures before signing and BAR registration.

Serialize the Windows AndroidX solution build with one MSBuild node while leaving non-Windows build parallelism unchanged.

Reference failures:

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 10, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrowly scoped to Windows-only MSBuild node count for the relevant build task and directly addresses the reported shared-AAR concurrency failures.

Pull request overview

This PR reduces intermittent Windows-only build failures caused by concurrent MSBuild project builds that contend over shared generated .aar artifacts during AndroidX solution builds.

Changes:

  • Limits MSBuild parallelism to a single node on Windows for the libs task (SetMaxCpuCount(1)).
  • Updates the inline comment to clarify the specific reason for Windows serialization (shared .aar access across dependent bindings).
File summaries
File Description
build/cake/build-and-package.cake Serializes the Windows libs AndroidX solution build by setting MSBuild max CPU count to 1 to avoid shared .aar locking/corruption races.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) September 10, 2026 21:33
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the serialized Windows package-build change and its pipeline coverage; no high-confidence correctness blockers remain.

@jonathanpeppers
jonathanpeppers merged commit 6abe968 into main Sep 11, 2026
3 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-fix-flaky-build branch September 11, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants