Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments are not created when breaking changes happen #91

Closed
toshi0607 opened this issue May 17, 2023 · 3 comments
Closed

Comments are not created when breaking changes happen #91

toshi0607 opened this issue May 17, 2023 · 3 comments

Comments

@toshi0607
Copy link

Hi! Thank you for useful action! When I try this action, a comment about breaking change is not created though a breaking change is detected. Would you help find the cause?

Settings

  breaking:
    runs-on: ubuntu-22.04
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v3

      - name: Set up Buf
        uses: bufbuild/[email protected]
        with:
          version: ${{ env.BUF_VERSION }}

      - name: Check breaking changes
        uses: bufbuild/buf-breaking-action@v1
        with:
          input: schema/proto
          against: https://github.com/xxx/yyy.git#branch=main,subdir=schema/proto

Output

Run bufbuild/buf-breaking-action@v1
  with:
    input: schema/proto
    against: https://github.com/xxx/yyy.git#branch=main,subdir=schema/proto
    buf_input_https_username: toshi0607
    buf_input_https_password: ***
  env:
    BUF_VERSION: 1.18.0
Error: Previously present field "[3](https://github.com/xxx/yyy/actions/runs/nnnn/jobs/mmmm#step:4:3)" with name "request_time" on message "HelloResponse" was deleted.
Error: buf found 1 breaking changes.
@timostamm
Copy link
Member

Hey @toshi0607,

I set up the action in a test repository and opened a PR with a breaking change. On the "Files changed" tab on the PR, I see an annotation right next to the line where the change was made:

ui

I tested it with the most recent version of the buf setup action as well, and the result was the same.

@timostamm
Copy link
Member

My setup is equivalent to yours, including the subdirectory provided in the input and in the git URL.

The only thing that seems odd to me from your information is the line:

Error: Previously present field "[3](https://github.com/xxx/yyy/actions/runs/nnnn/jobs/mmmm#step:4:3)" with name "request_time" on message "HelloResponse" was deleted.

I wouldn't expect a link in the error message - rather just the field number, like so:

Error: Previously present field "3" with name "request_time" on message "HelloResponse" was deleted.

If this wasn't a copy&paste gone bad, can you isolate this to a change in a specific proto file?

@chrispine
Copy link
Contributor

I'm going close this issue, but feel free to re-open if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants