Skip to content

test: disable the string-building micro-benchmark - #29

Merged
Fiona2016 merged 1 commit into
publishfrom
ci/disable-flaky-string-benchmark
Aug 24, 2026
Merged

test: disable the string-building micro-benchmark#29
Fiona2016 merged 1 commit into
publishfrom
ci/disable-flaky-string-benchmark

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

Problem

JointToStringVsStringBuilderPerformanceTest asserts that buildString beats
joinToString at the 90th percentile of measured wall-clock time, over 10,000
repetitions of joining 10,000 items.

On a shared CI runner that comparison flips. Because testReleaseUnitTest gates
publishing, the flip fails a release that is otherwise sound: a release failed
on this test today, and the very same commit passed on a rerun with no code
change. Upstream has already tried to stabilise it more than once (moving to a
percentile comparison, dropping the seed).

Change

Disable the test.

It measures a performance claim, not correctness, so it should not hold a veto
over publishing. The annotation records why and points at running it locally
when the claim needs revisiting.

Alternatives considered

  • Widening the tolerance keeps a timing comparison in the release gate, so it
    only makes the flip rarer.
  • A test-retry plugin would absorb this and other flakes, but it adds a plugin
    and configuration for a single known case; worth revisiting if more tests
    turn flaky.
  • Dropping unit tests from the publish workflow is not an option: this
    repository runs them nowhere else.

The test asserts that buildString beats joinToString at the 90th percentile of
measured wall-clock time. On a shared CI runner that comparison flips, and
because unit tests gate publishing, it fails releases that are otherwise sound
-- one such release failed today and passed on a rerun of the same commit.

It measures a performance claim rather than correctness, so it should not hold
a veto over publishing. Disable it and run it locally when the claim needs
revisiting.
@Fiona2016
Fiona2016 merged commit 9c70a65 into publish Aug 24, 2026
1 check passed
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.

1 participant