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
Verify test-backend
doesn't produce extra output spam in CI
#1587
Comments
@timabbott can you please explain this issue a bit? |
Sure, if you run Below are the main examples:
The problem is that unexpected logging output appearing in the test output is often a sign that a bug has been introduced, and we'd like to catch those bugs automatically. (There are a few types of output, like that generated by Ideally, we'd adjust those tests to not end up printing output, usually by changing the test code to capture the logging output and verify it (e.g. using |
…p#1587 Here we create a new tool tools/test-backend-wrapper which calls test-backend and saves the output to var/test-backend-output.txt. A python file tools/test-backend-output-check.py prints all lines of output that do not match any of the regular expressions defined inside corresponding to all valid output formats
…p#1587. Create new wrapper tools/test-backend-wrapper to save output of test-backend to var/test-backend-output.txt Create new tool tools/test-backend-output-check to parse output of test-backend and print any invalid output lines
…p#1587. Create new wrapper tools/test-backend-wrapper to save output of test-backend to var/test-backend-output.txt Create new tool tools/test-backend-output-check to parse output of test-backend and print any invalid output lines
…p#1587. Create new wrapper tools/test-backend-wrapper to save output of test-backend to var/test-backend-output.txt Create new tool tools/test-backend-output-check to parse output of test-backend and print any invalid output lines
test-backend
doesn't produce extra output spam in Travis CItest-backend
doesn't produce extra output spam in CI
@timabbott what should we do if we a spammy output while verification ? Should we raise some kind of error ? |
Yes, that's the plan, though of course 95% of the work here is going to be clearing the existing spammy output. |
@zulipbot claim |
Hello @thedeveloperr, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
Working |
@timabbott Taken this from PR #8653
|
https://gist.github.com/thedeveloperr/cdc55a319d1782d12e5442c2b6c0125d/revisions Here is the current potential spam I found. Please take a look at it once and flag any lines which should not be considered spam. |
The |
|
@zulipbot claim Still working on it |
This commit adds automatic spam detection in output printed to stderr and stdout by test-backend when it is run with flag --ban-extra-output. It also prints the test file and method that produced the spam even in parallel running mode. Fixes: zulip#1587.
This commit adds automatic spam detection in output printed to stderr and stdout by test-backend when it is run with flag --ban-extra-output. It also prints the test file and method that produced the spam even in parallel running mode. Fixes: zulip#1587.
This commit adds automatic spam detection in output printed to stderr and stdout by test-backend when it is run with flag --ban-extra-output. It also prints the test file and method that produced the spam even in parallel running mode. Fixes: zulip#1587.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: zulip#1587.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: zulip#1587.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: zulip#1587.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: zulip#1587.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: zulip#1587.
We occasionally introduce bugs where extra stdout output shows up in the
test-backend
output, which makes it harder to read our test output. It'd be great to just add a quick check intools/ci/backend
for this type of issue (e.g. just redirect the output to a find viatee
and then verify that output), so we can avoid merging new bugs of this form.The text was updated successfully, but these errors were encountered: