Closed Bug 2095225 Opened 5 days ago Closed 4 days ago

Artifact builds fail on firefox-dev pushes with "no built artifacts found"

Categories

(Firefox Build System :: Task Configuration, defect)

defect

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
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.

This allows artifact builds to deepen shallow clones.

Blocks: 2092152
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
See Also: → 2075112
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: