torchx icon indicating copy to clipboard operation
torchx copied to clipboard

Docker build

Open ccharest93 opened this issue 5 months ago • 2 comments

Added a docker API client, and changed the build function to its low-level version. This makes it return an event stream that we can then log to screen for real-time update on the image build process. This prints the same things as running docker build locally, so docker RUN commands can get quite verbose, we could filter the 'stream' events and only print the ones starting with 'Step ' or '---> ' .

Also changed the log message from api.py to make more sense (encompasses the case where dockerfile.torchx is used).

#813

ccharest93 avatar Feb 03 '24 19:02 ccharest93

  • Fixed the pyre typing errors
  • Unitest are failling because of codecov failing to upload?
  • Slurm integration stuck in post

I also removed a redundant error case in my commit ( next() doesnt raise ValueError) and renamed output to build_msg.

ccharest93 avatar Feb 06 '24 09:02 ccharest93

My previous commit #809 was flawed, it didn't change logic cause if it did, it would introduce a bug. Ill fix it in a different commit, in the meantime this commit is in draft mode.

ccharest93 avatar Feb 11 '24 13:02 ccharest93

@ccharest93 are you interested in polishing this up and landing it? cc @clumsy

d4l3k avatar Apr 09 '24 23:04 d4l3k

Ok i cleaned up the commit, i still need to rebuild my devcontainer to run tests and fix any errors that show up, will do this weekend. Would still like feedback on my original post though. Don't want to end up cluttering the torchx logs too much is my opinion.

This prints the same things as running docker build locally, so docker RUN commands can get quite verbose, we could filter the 'stream' events and only print the ones starting with 'Step ' or '---> ' .

ccharest93 avatar Apr 10 '24 14:04 ccharest93

@ccharest93 adding quiet scheduler_arg should help suppressing where it's needed.

clumsy avatar Apr 10 '24 17:04 clumsy

This was landed in #874 right? I can close this PR? @clumsy

ccharest93 avatar Apr 14 '24 08:04 ccharest93