Closed Bug 1299130 Opened 9 years ago Closed 9 years ago

Don't build docker image on every push

Categories

(NSS :: Test, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

Attachments

(1 file)

We unfortunately have to implement caching ourselves, the decision task needs to check whether a task for the given context hash exists and completed successfully, and then point to that task id.
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
This checks with the TC API first if there's a docker image, and if so uses it without adding a new image builder task. In case of any failure it falls back to simply adding a task.
Attachment #8786724 - Flags: review?(franziskuskiefer)
Comment on attachment 8786724 [details] [diff] [review] 0001-Bug-1299130-Don-t-build-docker-image-on-every-push.patch Review of attachment 8786724 [details] [diff] [review]: ----------------------------------------------------------------- ::: automation/taskcluster/graph/image_builder.js @@ +74,5 @@ > return task; > } > > +// Returns a Promise<bool> that tells whether the task with the given id > +// has an public/image.tar artifact with a ready-to-use docker image. a public
Attachment #8786724 - Flags: review?(franziskuskiefer) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: