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)

task

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:

  1. Look for push heads in local vcs as normal
  2. If that fails, check if GECKO_BASE_REV contains a valid build, this should be true for the majority of cases
  3. 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.

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
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
Depends on: 2095225
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: