Skip to content

Add an optional artifact-build moz.yaml key that passes --artifact to mach try - #450

Merged
tomrittervg merged 1 commit into
mozilla-services:masterfrom
rvandermeulen:artifact-build-410
Nov 4, 2026
Merged

tomrittervg merged 1 commit into
mozilla-services:masterfrom
rvandermeulen:artifact-build-410

Conversation

@rvandermeulen

Copy link
Copy Markdown
Contributor

Fixes #410. When artifact-build: true is set in the updatebot section of moz.yaml, --artifact is appended to the mach try command (preset, fuzzy or auto). The matching moz.yaml schema change in mozilla-central will turn it on for the application-services version bump.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new YAML option lacks a direct regression assertion because library equality ignores artifact_build, allowing the tests to pass even if parsing always returns False.

1 open issue
What changed in this PR

Adds optional updatebot.artifact-build support in moz.yaml so libraries can request artifact builds on Try, addressing the Application Services use case in #410.

Changes:

  • Parse and store the option, defaulting to false.
  • Append --artifact to preset, fuzzy, and auto Try commands when enabled.
  • Enable the option in test fixtures and check the preset command.
File Description
tests/​mock_libraryprovider.py Enable artifact builds in the mock preset library.
tests/​library.py Add the expected artifact-build value to the library fixture.
tests/​functionality_all_platforms.py Assert the preset command includes --artifact.
components/​libraryprovider.py Parse, store, and display the artifact-build setting.
apis/​taskcluster.py Append --artifact when the library enables it.
.github/​gecko-test/​libcubeb-preset/​moz.yaml Enable artifact builds in the preset YAML fixture.

Review effort: Balanced

Comment thread tests/library.py Resolved
@tomrittervg
tomrittervg merged commit 02ed50d into mozilla-services:master Nov 4, 2026
16 checks passed
@rvandermeulen
rvandermeulen deleted the artifact-build-410 branch November 4, 2026 21:46
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Nov 10, 2026
…he application-services version bump r=RyanVM,android-build-system-reviewers

Updatebot passes --artifact to ./mach try when a library's moz.yaml sets
artifact-build: true (mozilla-services/updatebot#450). The application-services
version bump doesn't change compiled Gecko code, so its try runs can use
artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D339918
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 11, 2026
…he application-services version bump r=RyanVM,android-build-system-reviewers

Updatebot passes --artifact to ./mach try when a library's moz.yaml sets
artifact-build: true (mozilla-services/updatebot#450). The application-services
version bump doesn't change compiled Gecko code, so its try runs can use
artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D339918

UltraBlame original commit: 644cb9f238c80cc769c1629294c15c6281786c33
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 11, 2026
…he application-services version bump r=RyanVM,android-build-system-reviewers

Updatebot passes --artifact to ./mach try when a library's moz.yaml sets
artifact-build: true (mozilla-services/updatebot#450). The application-services
version bump doesn't change compiled Gecko code, so its try runs can use
artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D339918

UltraBlame original commit: 644cb9f238c80cc769c1629294c15c6281786c33
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 11, 2026
…he application-services version bump r=RyanVM,android-build-system-reviewers

Updatebot passes --artifact to ./mach try when a library's moz.yaml sets
artifact-build: true (mozilla-services/updatebot#450). The application-services
version bump doesn't change compiled Gecko code, so its try runs can use
artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D339918

UltraBlame original commit: 644cb9f238c80cc769c1629294c15c6281786c33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support artifact builds in Try syntax

3 participants