-
Notifications
You must be signed in to change notification settings - Fork 110
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
moved image diff logging to their respective workspace #819
base: main
Are you sure you want to change the base?
Conversation
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.
@ccharest93 sorry for the delay -- thoughts on doing a hybrid of this? Some users of torchx have custom workspace implementations that won't have this added logging. Maybe we can keep something similar to what we currently have but also add some more information for the specific dir/docker workspaces on the exact operation?
@yikaiMeta @manav-a we would need to update the Meta workspaces as well to add similar details if we want to land this.
After reviewing, the easiest way to not affect other implementations would just be to print an extra message within the docker_workspace. You would then end up with contradictory message when reusing an image however. E.g
Personally, i no longer require knowing through the console whether or not my image tag was updated or reused.
|
#809 was flawed and didn't change the programming logic. I tried to think of any way for build_workspace_and_update_role() to return whether a change in the built image is detected. There isn't one, so the logging message needs to be printed at the workspace level:
The alternative would be to not test for changes to the image and always print the same thing, or modify build_workspace_and_update_role() abstract function and its implementations to return a BOOL of whether a change happened.
In docker workspace we add a test whether a cfg.image_repo is provided because local_docker does not define it/ use it (it is accepted as an argument because its a runopts for dockerworkspace)