Skip to content

Ensure that the statistics filename is calculated only once. (#3326)#3327

Merged
olamy merged 1 commit into
apache:surefire-3.5.xfrom
olamy:3.5.x/bug/cherry-pick-3326
Mar 23, 2026
Merged

Ensure that the statistics filename is calculated only once. (#3326)#3327
olamy merged 1 commit into
apache:surefire-3.5.xfrom
olamy:3.5.x/bug/cherry-pick-3326

Conversation

@olamy

@olamy olamy commented Mar 19, 2026

Copy link
Copy Markdown
Member

The issue is that getStatisticsFile() uses getConfigChecksum() which relies on potentially mutable values such as system properties, provider properties, etc. getStatisticsFile() was called from different places with changes to the system properties in between, leading to different filenames.

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

…3326)

The issue is that `getStatisticsFile()` uses `getConfigChecksum()` which relies on potentially mutable values such as system properties, provider properties, etc. `getStatisticsFile()` was called from different places with changes to the system properties in between, leading to different filenames.
@olamy olamy force-pushed the 3.5.x/bug/cherry-pick-3326 branch from 38ce78a to a0ac2b6 Compare March 19, 2026 21:01
@olamy olamy self-assigned this Mar 23, 2026
@olamy olamy added bug Something isn't working 3.5.x labels Mar 23, 2026
@olamy olamy added this to the 3.5.6 milestone Mar 23, 2026
@olamy olamy merged commit 2774273 into apache:surefire-3.5.x Mar 23, 2026
27 of 28 checks passed
@olamy olamy deleted the 3.5.x/bug/cherry-pick-3326 branch March 23, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.5.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants