Artifact builds fail on firefox-dev pushes with "no built artifacts found"
Categories
(Firefox Build System :: Task Configuration, defect)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Artifact builds on pushes to the git-native firefox-dev repo (https://github.com/mozilla-firefox/firefox-dev) fail during mach artifact install:
Trying to find artifacts for git revision 5f10a5865db185e02636b4ed3a2e0072ac991d52 on tree mozilla-central.
Trying to find artifacts for git revision 5f10a5865db185e02636b4ed3a2e0072ac991d52 on tree integration/autoland.
Tried 2 pushheads, no built artifacts found.
Example task: https://firefox-ci-tc.services.mozilla.com/tasks/DTAwNn8-TB2vxhrYb1_hfA
The task checks out a shallow clone (git fetch --depth=1), so only the push head is present. _get_revisions_from_git in python/mozbuild/mozbuild/artifacts.py deepens shallow clones, but only when MOZ_SOURCE_GIT_REPO is set. That env var is set in taskcluster/gecko_taskgraph/transforms/task.py from the head_git_repository / head_git_rev parameters, which exist only for hg repos with a git mirror. On firefox-dev (repository_type: git) those params are absent, so MOZ_SOURCE_GIT_REPO is never set, the clone is never deepened, and the only candidate revision is the unindexed try head.
Suggested fix: when repository_type is git and head_git_repository is unset, fall back to head_repository / head_rev for MOZ_SOURCE_GIT_REPO / MOZ_SOURCE_GIT_CHANGESET.
| Assignee | ||
Comment 1•5 days ago
|
||
This allows artifact builds to deepen shallow clones.
Comment 3•4 days ago
|
||
| bugherder | ||
Description
•