You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both cml-pr and cml-send-comment operate on comments: the former creates a pull request with an initial comment (description), while the latter adds new comments to a given commit. 🤔 Should we also repurpose the latter to update pull request descriptions?
They work different, cml-pr creates a pr but does not send a SHA comment. Just only the PR description. And cml-pr is never going to reuse the pr. If you use it you will have a PR using current SHA, if happens that you are reusing SHA (repeat workflow) is returning the PR already created for that commit if exist or create if closed (treated as not existing).
this could be very easy to be fixed.
If hash of current comment coincides with previous one skip
Another possibility is the use the watermark to even update with different changes. That could happen through non deterministic ML models repeated CI execution not managed and tracked properly by DVC (dvc.lock)
If hash of current comment coincides with previous one skip
I'd say that's a completely different feature which we need a separate issue for (cml-send-comment --skip-unchanged or similar) even though the implementation PR may close both issues.
Activity
0x2b3bfa0 commentedon May 12, 2021
Would it update the latest comment for a given (usually the current) commit ref?
casperdcl commentedon May 12, 2021
Would be mainly for
on.pull_request(i.e. latestOlivaw[bot]comment on the current PR), not foron.push(it's quite rare to re-run commit workflows).I think it'll even be fine to ignore the flag
on.pushif that's easiest.0x2b3bfa0 commentedon May 12, 2021
Both
cml-prandcml-send-commentoperate on comments: the former creates a pull request with an initial comment (description), while the latter adds new comments to a given commit. 🤔 Should we also repurpose the latter to update pull request descriptions?casperdcl commentedon May 12, 2021
I don't think we need to update PR descriptions.
DavidGOrtega commentedon May 14, 2021
They work different, cml-pr creates a pr but does not send a SHA comment. Just only the PR description. And cml-pr is never going to reuse the pr. If you use it you will have a PR using current SHA, if happens that you are reusing SHA (repeat workflow) is returning the PR already created for that commit if exist or create if closed (treated as not existing).
Short version. One commit -> one PR
0x2b3bfa0 commentedon May 16, 2021
Thanks for the clarification, I got confused because of the new use case where
cml-prwas ran directly from a branch.DavidGOrtega commentedon May 20, 2021
this could be very easy to be fixed.
If hash of current comment coincides with previous one skip
Another possibility is the use the watermark to even update with different changes. That could happen through non deterministic ML models repeated CI execution not managed and tracked properly by DVC (dvc.lock)
casperdcl commentedon May 20, 2021
I'd say that's a completely different feature which we need a separate issue for (
cml-send-comment --skip-unchangedor similar) even though the implementation PR may close both issues.DavidGOrtega commentedon May 25, 2021
I would say is just one of the cases of what you want to solve. Indeed the CML watermark will help in both scenarios
0x2b3bfa0 commentedon Jun 8, 2021
Blocked by gitlab-org/gitlab#333000
0x2b3bfa0 commentedon Jun 8, 2021
Related to #254, #285 and #294
0x2b3bfa0 commentedon Jun 16, 2021