Closed
Bug 2082597
Opened 1 month ago
Closed 1 month ago
Artifact builds fail with shallow Git clone
Categories
(Firefox Build System :: Task Configuration, task)
Firefox Build System
Task Configuration
Tracking
(firefox160 fixed)
RESOLVED
FIXED
160 Branch
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
Details
Attachments
(2 external files)
We use shallow clones when we clone from Github, but this breaks artifact builds because they look at VCS history to get the parent revisions that might contain an indexed build from which to download artifacts.
I propose we:
- Look for push heads in local vcs as normal
- If that fails, check if
GECKO_BASE_REVcontains a valid build, this should be true for the majority of cases - If that fails, deepen the repository using
--filter tree:0(treeless fetch, just contains commit metadata and no file contents)
If the treeless deepen is too slow or doesn't work for some reason, another alternative could be to use Taskcluster's auth.githubRepoToken endpoint to get an access token and then query Github for the parent commits.
| Assignee | ||
Comment 1•1 month ago
|
||
| Assignee | ||
Comment 2•1 month ago
|
||
Pushed by ahalberstadt@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/2571a458a681
https://hg.mozilla.org/integration/autoland/rev/516f7452af35
Add an is_shallow property to mozversioncontrol repositories, r=ahochheiden
https://github.com/mozilla-firefox/firefox/commit/2fa75d4b6f69
https://hg.mozilla.org/integration/autoland/rev/e6ff94376c63
Support shallow clones with artifact builds, r=firefox-build-system-reviewers,ahochheiden
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/516f7452af35
https://hg.mozilla.org/mozilla-central/rev/e6ff94376c63
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox160:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•