Skip to content

refactor(decision): extract parameter override loading - #1119

Open
jcarterbohan wants to merge 1 commit into
taskcluster:mainfrom
jcarterbohan:decision-parameter-overrides
Open

jcarterbohan wants to merge 1 commit into
taskcluster:mainfrom
jcarterbohan:decision-parameter-overrides

Conversation

@jcarterbohan

@jcarterbohan jcarterbohan commented Nov 20, 2026 •

Copy link
Copy Markdown

Bug 1935412 tracks moving shared decision-task logic from Gecko to standalone Taskgraph. Both implementations check a try config file first and fall back to a Git note. This patch extracts that lookup into apply_parameter_overrides() and has standalone Taskgraph call it with its existing parser.

The intended Gecko caller is gecko_taskgraph.decision.get_decision_parameters(). It would pass Gecko’s existing parser to preserve version 1 config support and use the return value to set try_mode when an override is applied. Applying the overrides before Gecko derives files_changed lets it use the final base_rev.

All 42 focused tests passed. The proposed Gecko call matched existing behavior in 16 local before-and-after cases, including legacy configs and base_rev overrides.

Share the config-file and Git-note lookup so callers can use their own
config parser while preserving file-before-note precedence.
@jcarterbohan
jcarterbohan requested a review from a team as a code owner November 20, 2026 01:33

This branch has not been deployed

No deployments
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.

1 participant