Closed Bug 1583363 Opened 6 months ago Closed 6 months ago

Add optional source paths to parameters

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ahal, Assigned: ahal)

References

Details

We already use a list of source files that were modified by the push during the optimization phase:
https://searchfox.org/mozilla-central/source/taskcluster/taskgraph/optimize/strategies.py#55

But in order to support bug 1583353, I'd like to start using this information in the task generation itself. To do this, we would need these paths to become an input parameter to generation.

For example, let's say we push to autoland and pass a list of modified files into the decision task's parameters. We could then implement a transform that downloads a code coverage artifact and determines exactly which tests should run. Then it could compute the minimum set of manifests to run and chunk them across a certain number of tasks (e.g so they are still roughly 20min each).

How this parameter is used and what it means could differ by branch. For example, on mozilla-central we could pass None to signify that all tests need to run. On try, instead of modified files the list of paths could be explicit source paths the user wants to test.

This bug will solely focus on getting this data into parameters.yml. It will not implement transforms that use it just yet.

Blocks: 1583353
Assignee: nobody → ahal
Status: NEW → ASSIGNED

Just going to solve this directly in the parent rather than deal with separate bugs.

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.