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

test-failure-policy: Restrict GitHub post to the last 30 lines #7169

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

martinpitt
Copy link
Member

GitHub comments are limited to 65.000 characters. But some test outputs are larger than that, e.g. when they contain VM console dumps. We also don't really need posting the full log to the naughty, it just needs to be enough to identify the failure.

Thus restrict the comment to the last 30 lines of the output, which contain the traceback or unexpected message.

This avoids "422 Unprocessable Entity" errors and thus failure to track the ongoing presence of a naughty.

Closes #7166


PR #7166 claims that #6769 is obsolete, but it really isn't. See #7166 (review) . I tested this locally with my token, and it now successfully posted a comment.

GitHub comments are limited to 65.000 characters. But some test outputs
are larger than that, e.g. when they contain VM console dumps. We also
don't really need posting the full log to the naughty, it just needs to
be enough to identify the failure.

Thus restrict the comment to the last 30 lines of the output, which
contain the traceback or unexpected message.

This avoids "422 Unprocessable Entity" errors and thus failure to track
the ongoing presence of a naughty.

Closes #7166
Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@martinpitt martinpitt merged commit 8c1e93e into main Dec 2, 2024
6 checks passed
@martinpitt martinpitt deleted the limit-naughty branch December 2, 2024 08:38
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

Successfully merging this pull request may close these issues.

2 participants