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

tests.multiplier could be omitted in failed test reproduce line #12752

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

dweiss
Copy link
Contributor

@dweiss dweiss commented Nov 3, 2023

LuceneTestCase computes its default value of tests.multiplier from TESTS_NIGHTLY. This could lead to subtle errors: nightly mode failures would not report tests.multipler=1 and when started from the IDE, the tests.multiplier would be set to 2 (leading to different randomness).

LuceneTestCase now compares the actual value of the multiplier to the "default" value computed based off TESTS_NIGHTLY. I also opted to change gradle's test defaults to not pass tests.multiplier at all, unless specified explicitly.

LuceneTestCase tried to compute its default value from TESTS_NIGHTLY.
This could lead to subtle errors: nightly mode failures would not report
tests.multipler=1 and when started from the IDE, the tests.multiplier
would be set to 2 (leading to different randomness).
@dweiss dweiss added this to the 9.9.0 milestone Nov 3, 2023
@dweiss dweiss self-assigned this Nov 3, 2023
@dweiss dweiss changed the title The default tests.multiplier passed from gradle was 1, but tests.multiplier could be omitted in failed test reproduce line Nov 3, 2023
@dweiss dweiss merged commit d6836d3 into apache:main Nov 3, 2023
4 checks passed
dweiss added a commit that referenced this pull request Nov 3, 2023
The default tests.multiplier passed from gradle was 1, but
LuceneTestCase tried to compute its default value from TESTS_NIGHTLY.
This could lead to subtle errors: nightly mode failures would not report
tests.multipler=1 and when started from the IDE, the tests.multiplier
would be set to 2 (leading to different randomness).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant