Skip to content

Conversation

@ahal
Copy link
Collaborator

@ahal ahal commented Sep 8, 2025

This makes it really nice to iterate on a docker image and test it against a live task, by using e.g:

taskgraph load-task <task-id> --image python

This will re-build the taskcluster/docker/python image, launch it in a container, and load <task-id> into it.

@ahal ahal requested a review from a team as a code owner September 8, 2025 20:37
@ahal ahal requested a review from Eijebong September 8, 2025 20:37
@ahal ahal force-pushed the ahal/push-nmnxwlyzwlvv branch 2 times, most recently from b55a58a to 295565f Compare September 10, 2025 18:05
Copy link
Contributor

@jcristau jcristau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice improvement, I just have a few questions/comments.

@ahal ahal force-pushed the ahal/push-nmnxwlyzwlvv branch 4 times, most recently from b581a77 to b3cd974 Compare September 17, 2025 14:58
@ahal ahal requested review from a team and jcristau September 17, 2025 15:39
@ahal ahal force-pushed the ahal/push-nmnxwlyzwlvv branch 3 times, most recently from a811b00 to fd0cb58 Compare September 19, 2025 20:04
This implements `taskgraph load-task --image <image>`, where <image> can
be one of:
* task-id=<task id> - Downloads image.tar from specified task id
* image=<image> - Downloads image.tar from specified index path
* <image name> - Builds image that lives under
  `taskcluster/docker/<image name>`
* <image reference> - Uses specified image from a registry
@ahal ahal force-pushed the ahal/push-nmnxwlyzwlvv branch from fd0cb58 to a67d335 Compare September 19, 2025 20:06
@ahal ahal requested review from a team and jcristau September 19, 2025 20:06
@ahal ahal enabled auto-merge (rebase) September 19, 2025 20:08
Comment on lines +689 to +691
help="Use a custom image instead of the task's image. Can be the name of "
"an image under `taskcluster/docker`, `task-id=<task id>`, or "
"`index=<index path>`.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or the name of an image to pull from a registry

@ahal ahal merged commit ac4a5c3 into taskcluster:main Sep 22, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants