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

GitLab - check comment body size #1350

Merged
merged 7 commits into from Feb 21, 2023
Merged

GitLab - check comment body size #1350

merged 7 commits into from Feb 21, 2023

Conversation

dacbd
Copy link
Contributor

@dacbd dacbd commented Feb 12, 2023

@dacbd dacbd added bug Something isn't working cml-comment Subcommand ci-gitlab labels Feb 12, 2023
@dacbd dacbd requested a review from a team February 12, 2023 00:39
@dacbd dacbd self-assigned this Feb 12, 2023
@dacbd dacbd temporarily deployed to internal February 12, 2023 00:39 — with GitHub Actions Inactive
@dacbd dacbd changed the title GitLab check comment body size GitLab - check comment body size Feb 12, 2023
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@dacbd

This comment was marked as resolved.

@dacbd dacbd temporarily deployed to internal February 13, 2023 16:03 — with GitHub Actions Inactive
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@dacbd dacbd temporarily deployed to internal February 13, 2023 21:17 — with GitHub Actions Inactive
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

src/drivers/gitlab.js Outdated Show resolved Hide resolved
tasdomas
tasdomas previously approved these changes Feb 14, 2023
src/drivers/gitlab.js Outdated Show resolved Hide resolved
src/drivers/gitlab.js Show resolved Hide resolved
@dacbd
Copy link
Contributor Author

dacbd commented Feb 14, 2023

To address the warn vs error. To my knowledge, only GitHub provides a native means to supply these notifications, and this is specific to GitLab.

As far as logging vs an error. The issue the user brought up made it seem like this more or less silently failed, so I think exiting with a non-zero status code is the best option.

How are we going to truncate the report? I don't think we can realistically decide for the user what to drop especially since this is most likely coming from the use of the --publish-native. They could end up with a comment that is just one or two lines, if they try and upload a large image.

@dacbd dacbd temporarily deployed to internal February 14, 2023 15:30 — with GitHub Actions Inactive
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

src/drivers/gitlab.js Outdated Show resolved Hide resolved
src/drivers/gitlab.js Outdated Show resolved Hide resolved
@dacbd dacbd temporarily deployed to internal February 14, 2023 17:17 — with GitHub Actions Inactive
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@dacbd dacbd temporarily deployed to internal February 14, 2023 19:22 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@dacbd dacbd removed the request for review from casperdcl February 21, 2023 16:03
@dacbd dacbd enabled auto-merge (squash) February 21, 2023 16:03
@dacbd dacbd requested a review from a team February 21, 2023 16:06
Copy link
Member

@0x2b3bfa0 0x2b3bfa0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@dacbd dacbd merged commit 1be24ed into master Feb 21, 2023
@dacbd dacbd deleted the gitlab-comment-limit branch February 21, 2023 16:07
@github-actions
Copy link
Contributor

Test Comment

13 similar comments
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2023

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Test Comment

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

@github-actions
Copy link
Contributor

Test Comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci-gitlab cml-comment Subcommand
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lots of images fail to load in one report
5 participants