iterative / cml

♾️ CML - Continuous Machine Learning | CI/CD for ML
http://cml.dev
Apache License 2.0
4.03k stars 341 forks source link

`cml-pr` failure handling #758

Open casperdcl opened 3 years ago

casperdcl commented 3 years ago

originally from https://github.com/iterative/cml.dev/pull/114#discussion_r720283843

DavidGOrtega commented 3 years ago

Could you please reproduce such scenario? In which case the user is going to create manually that branch?

0x2b3bfa0 commented 3 years ago

Moved from #788

The cml pr command has the debatable behavior of remaining in the ancillary pull request branch (e.g. main-cml-pr-ff404ff) instead of switching back to the previous branch with git checkout - upon completion.

If this behavior were consistent, it would be acceptable. Unfortunately, cml pr does not fail when the pull request already exists (https://github.com/iterative/cml/issues/758) and this introduces an edge case where the pull request is reported as created but no branch is switched.

0x2b3bfa0 commented 3 years ago

Not sure if cml pr should fail or not, but, if not, it should probably be idempotent–ish.

casperdcl commented 2 years ago

I think either:

dacbd commented 2 years ago

partial solved or at least workarounds are provided with https://github.com/iterative/cml/pull/1063

Perhaps the only additional action point is to log some warning if we skip creating the PR because the generated branch already exists.

casperdcl commented 2 years ago

Yes I think this is a needed UX (error messaging) improvement.

casperdcl commented 1 year ago

re-opening as it's affecting @ykasimov and probably others...