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

Bitbucket cloud comments too long #1251

Open
eh-am opened this issue Nov 3, 2020 · 1 comment
Open

Bitbucket cloud comments too long #1251

eh-am opened this issue Nov 3, 2020 · 1 comment

Comments

@eh-am
Copy link

eh-am commented Nov 3, 2020

I believe this is similar to #280, but in our case, it's bitbucket cloud.

I am not completely sure it's the same error, but based on my experience, it usually happens when creating grafana dashboards (which output is huge).

2020/11/03 17:11:03+0000 [EROR] command_runner.go:537 $MY_ORG/$MY_REPO#32: Unable to comment: making request "POST https://api.bitbucket.org/2.0/repositories/$MY_ORG/$MY_REPO/pullrequests/32/comments" unexpected status code: 400, body: <h1>Bad Request (400)</h1> 

Based on the other issue, it seem breaking the comment down into multiple ones would a nice solution.

However, the biggest problem for us immediately is that there are no error messages being sent to bitbucket, requiring us to inspect atlantis logs to figure out what happened. So we would be fine with a "partial" solution.

I am running atlantis 0.14.0

Let me know if you need help with a PR (even though I haven't looked at the code yet).

@Almenon
Copy link
Contributor

Almenon commented Aug 20, 2024

We have a similar issue. It's not large enough to generate 400 errors, but it's large enough to make the PR annoying to scroll through. One way to address this is to just avoid posting comments entirely. Just have a check that has a link to the build log on the Atlantis website, like how a CI/CD system like CircleCI does it.

Relevant: #936

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

No branches or pull requests

3 participants