[wpt-sync] Sync PR 16066 - Don't use HEAD or FETCH_HEAD to checkout specific revisions.
Categories
(Testing :: web-platform-tests, enhancement, P4)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 16066 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/16066
Details from upstream follow.
James Graham <james@hoppipolla.co.uk> wrote:
Don't use HEAD or FETCH_HEAD to checkout specific revisions.
FETCH_HEAD is unreliable because it's a global variable that can be
accidentially clobbered by adding an additional fetch anywhere in the
pipeline. As a result running tests in CI has been broken since we
chose the wrong revisions. HEAD is more reliable but doesn't exist
until we first check something out.Instead, do the following:
Fetch the initial commits into a branch called task_head and check
this out unconditionally.For PRs, create branches called base_head and pr_head pointing to
the two parents of the merge commit that we test on PRs.Express all the other revisions in terms of task_head, pr_head and
base_head, since they are both correct and more descriptive than
using complex revision specifiers.Move as much logic as possible out of the script baked in to the
docker image since that's hardest to update.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9980646b6dd4
https://hg.mozilla.org/mozilla-central/rev/55479946bf64
Description
•