"Pulling docker image has failed" anytime the image task runs

RESOLVED FIXED

Status

Taskcluster
General
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: ahal, Assigned: dustin)

Tracking

Details

MozReview Requests

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
I found when I modify a docker image and push, the test jobs that depend on that image fail. If I push again right afterwards (without modifying the image), then the test jobs will successfully find the image that was built in the last push. Here is an example:
https://treeherder.mozilla.org/#/jobs?repo=try&author=ahalberstadt@mozilla.com&fromchange=4be74523fbc1bb04025834524f2906cce2d6662f&tochange=5bccee56db2f489f7fa0c9716bccf078ac6e541c

This only started happening recently, so suspect it is fallout from the taskcluster refactor.
Assignee: nobody → dustin
In the first push, 4be74523fbc1, we have:

label                             taskid                 dependencies             notes
Rnu0g44gSxGj8SWMtKzKEw            HOYMDYj3RZ2kKF21VClXVA                          docker image build
TaskLabel==RY33CJZZQqqxuFkN-XJFQg GZ6ahGXYRTiYfsCNvJ9Izg HOYMDYj3RZ2kKF21VClXVA   failed test run
                                                         Mpu7mSu1ScmoxjzHvrP9CA

so the dependencies are correct.  However, the error on that test task is

[taskcluster:error] Pulling docker image {"path":"public/image.tar","type":"task-image","taskId":"Rnu0g44gSxGj8SWMtKzKEw"} has failed. This may indicate an error with the registry, image name, or an authentication error. Try pulling the image locally to ensure image exists. Error loading docker image. Could not download artifact "public/image.tar from task "Rnu0g44gSxGj8SWMtKzKEw" after 1 attempt(s). Error: Not Found

which is using the task label, rather than the taskid.  So, there's yer bug :)
Created attachment 8755015 [details]
MozReview Request: Bug 1274645: generate task labels for docker image builds; r?ahal

This monkey-patches the old taskcluster_graph code to avoid impacting branches
that are still using that support for decision graphs.  All of this will go
away when docker image builds become their own kind.

Review commit: https://reviewboard.mozilla.org/r/54326/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/54326/
Attachment #8755015 - Flags: review?(ahalberstadt)
(Reporter)

Comment 3

2 years ago
Comment on attachment 8755015 [details]
MozReview Request: Bug 1274645: generate task labels for docker image builds; r?ahal

https://reviewboard.mozilla.org/r/54326/#review51020

Thanks!
Attachment #8755015 - Flags: review?(ahalberstadt) → review+
(Reporter)

Updated

2 years ago
Blocks: 1250904

Comment 5

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/1ff837ed0557
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.