Skip to content

Conversation

@hds
Copy link
Contributor

@hds hds commented Nov 14, 2023

Motivation

There are two tests for the reload subscriber which are in the same test
module. However, these two tests both check the value of
LevelFilter::current(), which is a global value.

This caused flakiness in the tests, especially on CI.

Solution

To ensure that we can safely test global values, these two tests have
bit split into separate test modules. A doc comment has been added to
each test explaining that it needs to remain in its own file.

This change is inspired by #2798. Big thanks to @SpeedReach for
determining the reason for the flakiness!

There are two tests for the reload subscriber which are in the same test
module. However, these two tests both check the value of
`LevelFilter::current()`, which is a global value.

This caused flakiness in the tests, especially on CI.

To ensure that we can safely test global values, these two tests have
bit split into separate test modules. A doc comment has been added to
each test explaining that it needs to remain in its own file.
@hds hds requested review from a team, davidbarsky and hawkw as code owners November 14, 2023 10:06
@hds
Copy link
Contributor Author

hds commented Nov 20, 2023

#2798 Got merged instead, so we don't need this one.

@hds hds closed this Nov 20, 2023
@jplatte jplatte deleted the hds/split-reload-tests branch June 3, 2025 09:15
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