cml pr: is racy, generates a PR for different submissions
See original GitHub issueSorry 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 the git pull
is done before cml 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.
Run cml pr --rebase 'submissions/*.json'
cml pr --rebase 'submissions/*.json'
shell: sh -e {0}
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
AWS_SESSION_TOKEN: ***
REPO_TOKEN: ***
{"level":"warn","message":"Failed to enable auto-merge: Enable the feature in your repository settings: https://github.com/iterative/ldb-hackathon/settings#merge_types_auto_merge. Trying to merge immediately..."}
https://github.com/iterative/ldb-hackathon/pull/106(https://github.com/iterative/ldb-hackathon/runs/7807546288?check_suite_focus=true#step:15:6)
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.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
pr | CML
Command Reference: pr ... Commit specified files to a new branch and create a pull request. If sending a report afterwards, consider using...
Read more >Editing a Purchase Requisition
If editing after a PO is generated, a new version of the PR is generated and shown next to the PR number. After...
Read more >Untitled
using the %license macro - new upstream version 1.07, dropped patches already appllied in usptream version - build seems to be racy now,...
Read more >(PDF) An Investigation of Smart Contract for Collaborative Machine ...
The advantage of collaborative machine learning (CML) over most. ... the training data, the cost for the data holders to submit data,.
Read more >Bug #1863268 “bionic/linux-raspi2-5.3: 5.3.0-1019.21~18.04.1 -pr ...
[CML-H] Add intel_thermal_pch driver support Comet Lake -H (LP: #1853219) - thermal: intel: intel_pch_thermal: Add Comet Lake (CML) platform support
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note for the future
cml pr
by default bases the branch name off of the forking commit. so if multiplecml pr .
invocations occur with the same parent the subsequent runs will fail.This is/was part of the original design of
cml pr
for our particular use case with the hackathon it does feel like a bug. There is a--branch
option that would have prevented this for examplecml pr --branch "cml-$(date +%s)" --rebase "submissions/*.json"