Skip to content

add cml-send-comment --update #512

Closed

Description

@casperdcl

A new --update flag would try to overwrite an existing comment rather than post a new one.

Activity

  1. added
    cml-comment
    enhancement
    on May 12, 2021
  2. 0x2b3bfa0 commented on May 12, 2021

    @0x2b3bfa0
    Member

    Would it update the latest comment for a given (usually the current) commit ref?

  3. casperdcl commented on May 12, 2021

    @casperdcl
    ContributorAuthor

    Would be mainly for on.pull_request (i.e. latest Olivaw[bot] comment on the current PR), not for on.push (it's quite rare to re-run commit workflows).

    I think it'll even be fine to ignore the flag on.push if that's easiest.

  4. 0x2b3bfa0 commented on May 12, 2021

    @0x2b3bfa0
    Member

    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?

  5. casperdcl commented on May 12, 2021

    @casperdcl
    ContributorAuthor

    I don't think we need to update PR descriptions.

  6. DavidGOrtega commented on May 14, 2021

    @DavidGOrtega
    Contributor

    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

  7. 0x2b3bfa0 commented on May 16, 2021

    @0x2b3bfa0
    Member

    Thanks for the clarification, I got confused because of the new use case where cml-pr was ran directly from a branch.

  8. self-assigned this
    on May 16, 2021
  9. DavidGOrtega commented on May 20, 2021

    @DavidGOrtega
    Contributor

    image

    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)

  10. casperdcl commented on May 20, 2021

    @casperdcl
    ContributorAuthor

    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.

  11. DavidGOrtega commented on May 25, 2021

    @DavidGOrtega
    Contributor

    I'd say that's a completely different feature which we need a separate issue

    I would say is just one of the cases of what you want to solve. Indeed the CML watermark will help in both scenarios

  12. added
    blocked
    on Jun 8, 2021
  13. 0x2b3bfa0 commented on Jun 8, 2021

    @0x2b3bfa0
    Member
  14. 0x2b3bfa0 commented on Jun 8, 2021

    @0x2b3bfa0
    Member

    Related to #254, #285 and #294

  15. linked a pull request that will close this issueAdd `cml-send-comment --update` #581on Jun 9, 2021
  16. 0x2b3bfa0 commented on Jun 16, 2021

    @0x2b3bfa0
    Member

    ⚠️ This is not a substitute for proper end to end testing with ephemeral repositories.

  17. removed
    blocked
    on Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cml-commentenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions