Skip to content

Conversation

@ahal
Copy link
Collaborator

@ahal ahal commented Apr 29, 2025

This command is an extension of the load-image command. Given a taskId, it will:

  1. Find and download the docker image from the parent task.
  2. Spin up a docker container using this image.
  3. Ensure environment variables in the task's definition are set.
  4. Run the "setup" portion of run-task (checkouts, fetches, etc)
  5. Drop the user into a bash shell.

This will make it easier to debug tasks locally. Note for now only tasks using run-task with a docker-worker (or D2G) payload are supported.

@ahal ahal self-assigned this Apr 29, 2025
@ahal ahal requested a review from a team as a code owner April 29, 2025 20:14
@ahal ahal requested a review from hneiva April 29, 2025 20:14
@ahal ahal force-pushed the ahal/push-wltzmptmptqw branch from 27d7188 to 70e68df Compare April 29, 2025 20:19
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.

Very cool, thank you!

@ahal ahal force-pushed the ahal/push-wltzmptmptqw branch 2 times, most recently from 6a8680b to ce8e7f3 Compare May 6, 2025 14:32
@ahal ahal requested a review from jcristau May 6, 2025 14:38
@ahal ahal force-pushed the ahal/push-wltzmptmptqw branch from ce8e7f3 to 35022d2 Compare May 6, 2025 15:18
@ahal ahal enabled auto-merge (rebase) May 6, 2025 15:20
This command is an extension of the `load-image` command. Given a
taskId, it will:

1. Find and download the docker image from the parent task.
2. Spin up a docker container using this image.
3. Ensure environment variables in the task's definition are set.
4. Run the "setup" portion of `run-task` (checkouts, fetches, etc)
5. Drop the user into a bash shell.

This will make it easier to debug tasks locally. Note for now only tasks
using run-task with a docker-worker (or D2G) payload are supported.
@ahal ahal force-pushed the ahal/push-wltzmptmptqw branch from 35022d2 to 359d027 Compare May 6, 2025 15:24
@ahal ahal merged commit d865485 into taskcluster:main May 6, 2025
14 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