question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cml pr: is racy, generates a PR for different submissions

See original GitHub issue

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 the git pull is done before cml pr to try to keep the repo in sync).

  1. 13:53 GMT: This PR #94 was published.
  2. 13:55 GMT: Triggered workflow.
  3. 13:57 GMT: Started “evaluate” job/train step.
  4. 16:47:50 GMT: Finished training
  5. 16: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:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
0x2b3bfa0commented, Aug 22, 2022
1reaction
dacbdcommented, Aug 15, 2022

cml pr by default bases the branch name off of the forking commit. so if multiple cml 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 example cml pr --branch "cml-$(date +%s)" --rebase "submissions/*.json"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found