Skip to content

Avoid overscheduling due to sibling manifest rule - #6879

Open
marco-c wants to merge 2 commits into
mozilla:masterfrom
marco-c:rootfix
Open

marco-c wants to merge 2 commits into
mozilla:masterfrom
marco-c:rootfix

Conversation

@marco-c

@marco-c marco-c commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

…n heuristics

For a root-level file (e.g. `mach`), the parent directory is the repository
root, so the sibling search walked the entire tree and scheduled every test
manifest. Skip the sibling search for such files.
Files directly inside large directories (e.g. dom/moz.build, browser/moz.build)
are close to hundreds of test manifests, which makes the sibling heuristic
uninformative and schedules far too much. Cap the number of manifests the
sibling search may return for a single path at 42; above that, leave the
decision to the model.
@marco-c
marco-c requested a review from a team as a code owner September 19, 2026 00:48

@bhearsum bhearsum 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.

This seems like a plausible way to improve this.

How will we measure how well this is working?

@marco-c

marco-c commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

@bhearsum I will write a script to retrieve backout data and analyze effectiveness (also comparing different strategies, thresholds, etc.).
We actually already had one, but it stopped working ages ago and could be improved/simplified.

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.

2 participants