Use Git notes to transfer Try metadata
Categories
(Developer Infrastructure :: Try, task)
Tracking
(Not tracked)
People
(Reporter: ahal, Assigned: ahal, NeedInfo)
References
(Blocks 2 open bugs)
Details
(Keywords: leave-open)
Attachments
(4 files)
When pushing to Try, we need to pass some metadata from the user's local machine to the Decision task in CI. This contains things like a list of tasks to run, or an environment variable to set. Currently we commit this metadata into a file at the root of the repo called try_task_config.json
This works well, but it has the downside of needing to make a new commit for each try push. This has some drawbacks, like the revision is different each time which complicates sha based caching. But there's an even bigger drawback in Github:
It means what you push to try is not what ends up landing. It is fundamentally incompatible with PR-based workflows.
Instead of committing the metadata to a file, we can instead add it to a Git note. Then, we push the Git note ref to the repo, and the Decision task fetches that ref. This keeps the Try metadata out of version control and avoids us needing to change the commit sha. The downside to this, is that Github does not emit webhook events when pushing note refs to the remote repo. So we won't be able to rely on the Taskcluster Github app to parse the Decision task. Luckily we already have our own infrastructure in-place to handle this in build-decision.
| Assignee | ||
Comment 1•3 days ago
|
||
This ports the following change from upstream Taskgraph:
https://github.com/taskcluster/taskgraph/commit/2afefff7b52b9a8fecf4c50db6276732428dbbca
| Assignee | ||
Comment 2•3 days ago
|
||
| Assignee | ||
Comment 3•3 days ago
|
||
| Assignee | ||
Comment 4•3 days ago
|
||
Updated•1 day ago
|
| Assignee | ||
Updated•1 day ago
|
Comment 6•19 hours ago
|
||
| bugherder | ||
Comment 8•7 hours ago
|
||
Backed out on Aryx request for not scheduling expected tasks for Try pushes, e.g. for release simulations.
https://hg.mozilla.org/mozilla-central/rev/470c1ac19c4c35d268348b5c9aba9f5edc1b4430
Description
•