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

REGRESSION: run-api-tests strips newlines in failure summary #28402

Conversation

JonWBedard
Copy link
Member

@JonWBedard JonWBedard commented May 10, 2024

@JonWBedard JonWBedard self-assigned this May 10, 2024
@JonWBedard JonWBedard added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label May 10, 2024
Copy link
Contributor

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

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

In the commit message: s/accidently/accidentally/

I would, of course, also like tests here. πŸ™ƒ

@JonWBedard
Copy link
Member Author

In the commit message: s/accidently/accidentally/

I would, of course, also like tests here. πŸ™ƒ

The tests will need to be a separate PR, unfortunately, they aren't trivial because we don't really test this code at the moment, we will need to build up a harness along with the test for this particular bug.

@JonWBedard JonWBedard force-pushed the eng/REGRESSION-run-api-tests-strips-newlines-in-failure-summary branch from 4451797 to da6cdee Compare May 11, 2024 21:44
@JonWBedard JonWBedard added the merge-queue Applied to send a pull request to merge-queue label May 12, 2024
https://bugs.webkit.org/show_bug.cgi?id=266044
rdar://119696758

Reviewed by Sam Sneddon.

Our technique for grabbing the remaining stdout and stderr from
an API process accidentally strips newlines.

* Tools/Scripts/webkitpy/api_tests/runner.py:
(_Worker._filter_noisy_output): Strip trailing whitespace on output.
(_Worker._run_single_test): Re-add newlines when grabbing remaining stdout and stderr.

Canonical link: https://commits.webkit.org/278660@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/REGRESSION-run-api-tests-strips-newlines-in-failure-summary branch from da6cdee to 11b43d3 Compare May 12, 2024 03:55
@webkit-commit-queue
Copy link
Collaborator

Committed 278660@main (11b43d3): https://commits.webkit.org/278660@main

Reviewed commits have been landed. Closing PR #28402 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 11b43d3 into WebKit:main May 12, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 12, 2024
@JonWBedard JonWBedard deleted the eng/REGRESSION-run-api-tests-strips-newlines-in-failure-summary branch May 15, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
4 participants