-
Notifications
You must be signed in to change notification settings - Fork 343
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
cml pr: is racy, generates a PR for different submissions #1126
Comments
This is/was part of the original design of |
@dacbd, thank you for the reply. I am have one more question, why does it create a new PR with the same commit instead of overwriting with a new commit (or, getting push-rejected)? Is this also part of the design decision? I would have at least expected it to overwrite the old commit, or add on top of it. |
That logic is programmed in; if that branch exists it will try the print the URL for the PR you can see here: Lines 518 to 532 in 7973d0e
For the originally reasoning I'm not 100% sure. but I feel like it airs on the side of creating less PR spam if you are say debugging a training pipeline. |
Note for the future |
Would be great to have docs on this... and also potentially a new command ( See also SO#70123668 |
Sorry for the title. I don't have a good way to express what went wrong here.
This happened twice in
ldb-hackathon
for me where it generated a PR, where the contents were quite different from the result that I was expecting. In fact, the same contents were already generated before my workflow even ran. I am not quite sure here why cml is creating a PR with content that is already in the repo (even if thegit pull
is done beforecml pr
to try to keep the repo in sync).13:53 GMT
: This PR #94 was published.13:55 GMT
: Triggered workflow.13:57 GMT
: Started "evaluate" job/train
step.16:47:50 GMT
: Finished training16:47:58 GMT
: Created a PR #106 with identical contents to #94.Also I am a bit surprised to see
cml pr
using same branch name for submissions, which may likely be the issue here.The commits are same and is from earlier time.
The text was updated successfully, but these errors were encountered: