Repository navigation
Conversation
…of raising takeEnvDown already records 'redis process failure' against the test whose server did not exit cleanly, which is enough to fail the run and name the test in the summary. Under --check-exitcode it then also raises, and nothing above takeEnvDown catches that exception: it escapes the env scope guard of run_single_test. The raise predates parallel execution (#147): both it and the recorded failure came with --check-exitcode itself. With parallelism, the exception ends the worker process, so: - the failure is never shipped to the coordinator, and the summary does not name the test, or is not printed at all; - the tests still queued on that worker are not run, so a single dirty exit hides an unknown number of other results; - self.currEnv is left set, since the raise skips its reset. That is the same failure mode #257 removed for an exception raised from tearDown. The run stays failed without the raise, through the recorded failure. A dirty exit under --use-valgrind, which also sets require_clean_exit, already takes that path: it records the failure without raising. --exit-on-failure remains the option for stopping at the first failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
takeEnvDownalready records 'redis process failure' against the test whose server did not exit cleanly, which is enough to fail the run and name the test in the summary. Under--check-exitcodeit then also raises, and nothing above takeEnvDown catches that exception: it escapes the env scope guard ofrun_single_test.The raise predates parallel execution (#147): both it and the recorded failure came with
--check-exitcodeitself. With parallelism, the exception ends the worker process, so:self.currEnvis left set, since the raise skips its reset.That is the same failure mode #257 removed for an exception raised from
tearDown. The run stays failed without the raise, through the recorded failure. A dirty exit under--use-valgrind, which also setsrequire_clean_exit, already takes that path: it records the failure without raising.--exit-on-failureremains the option for stopping at the first failure.Note
Low Risk
Small teardown-path change; failure behavior is preserved via recorded test failures instead of an uncaught exception.
Overview
takeEnvDownno longer raises when Redis exits dirty under--check-exitcode. A dirty shutdown still prints the message and recordsredis process failureon the test viaaddFailure, so the run fails and the summary names the test—same as with--use-valgrind.Removing the
raise Exception('Process exited dirty')stops that exception from escapingEnvScopeGuardduring parallel runs, where it previously killed the worker, dropped queued tests, skipped shipping failures to the coordinator, and leftself.currEnvuncleared.--exit-on-failureremains the way to stop at the first failure.Reviewed by Cursor Bugbot for commit a5c5d8d. Bugbot is set up for automated code reviews on this repo. Configure here.