-
Notifications
You must be signed in to change notification settings - Fork 48
fix: removed hardcoding from docker-image dir and kinds #728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ahal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I like it!
The CI is broken though due to the dash vs underscore mismatch. You can likely reproduce locally with taskgraph full
src/taskgraph/config.py
Outdated
| Required("trust-domain"): str, | ||
| Optional( | ||
| "docker-image-kind", | ||
| description="What kind of docker image to use for the task.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
Name of the docker image kind (default: docker-image)
ahal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
There are some test failures though, probably just need to update some of them for the new function signature. You should be able to reproduce locally with uv run pytest
taskcluster/config.yml
Outdated
|
|
||
| task-priority: low | ||
|
|
||
| docker-image-kind: docker-image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would lean towards not defining this unless we actually want to use a non-default name, but doesn't really matter I guess.
|
I updated the where the default - docker-image-kind is decide as the optional + default combinations doesn't work as schema(obj) is not called on the graph config schema so the fix I had was to add a try catch field in images_path as that is only place it would be called |
ahal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. A couple minor suggestions, but looks good!
bc2c5ea to
37fc2d6
Compare
37fc2d6 to
ef11bfc
Compare
Closes #21