-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Implement a sync marker #542
Implement a sync marker #542
Conversation
@gaogaotiantian should I do something with failed build? It seems not related to my changes. |
No, it's failing all the CIs. I'll investigate that first. |
This is related to tonistiigi/binfmt#215 |
It's a docker image issue and fixed in #543. You can rebase or merge your branch so this will go away. |
I took a quick look first. The overall approach is good, before I do a thorough review, just some direction suggestions. I'm hoping that this feature touches less unnecessary code. You refactored some code - adding utilities and stuff, that might clean up the code a bit, but I think if it should be done, it should be done in a separate PR. Let's just do this sync marker feature as isolated as possible. Which means, probably just a For alignment, I don't think we need an extra argument The testing is thorough, which is great, but maybe reduce the complexity a bit. First of all, we don't need to add extra tests for cases where sync markers are not used at all. Negative tests are sometimes helpful, but that's a lot of code to test when a feature is not enabled. For the temporary files, I know there are different ways to deal with them in the code base, but most of them are artifacts from when I was new to the project :) I think the better way is to create a temporary directory with This is not a huge feature but not trivial either, don't feel rushed and let's land it properly :) |
@gaogaotiantian Thanks for your review. Will make proposed changes. |
5ed4576
to
cf8208f
Compare
@gaogaotiantian Please take a look. Tests still a bit complicated, maybe you can suggest some simplifications. |
I believe I have couple ideas. |
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 think for implementation part you did great - just a few comments. The test case could be simplified a bit :)
Thank you for your review, will dig further :) |
@gaogaotiantian build 3.12 on ubuntu-last failed with |
I don't believe so, I'll just restart the CI. |
Ahh and I forgot one thing - could you add some basic description in "combine reports" section of |
This is definitely the hardest part! I took part of the basic_usage.rst and added lines about sync-marker. I'm not a native speaker, so I'm not sure I can properly describe the desired actions in the docs. |
Sorry that was my fault - it should not be in |
Please take a look. |
Thank you for all the efforts! Will merge this soon. |
Thanks for your patience! |
Should implement #534