Skip to content

Add ability to use custom images in taskgraph load-task - #768

Merged
ahal merged 3 commits into
taskcluster:mainfrom
ahal:ahal/push-nmnxwlyzwlvv
Sep 22, 2025
Merged

ahal merged 3 commits into
taskcluster:mainfrom
ahal:ahal/push-nmnxwlyzwlvv

Conversation

@ahal

@ahal ahal commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

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

@jcristau jcristau left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/taskgraph/docker.py Outdated
Comment thread src/taskgraph/docker.py Outdated
Comment thread src/taskgraph/docker.py Outdated
Comment thread src/taskgraph/main.py Outdated
@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
Comment thread src/taskgraph/docker.py Outdated
Comment thread src/taskgraph/docker.py
@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 thread src/taskgraph/main.py
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
Copy Markdown
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
@ahal
ahal deleted the ahal/push-nmnxwlyzwlvv branch February 9, 2026 16:20
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