Skip to content

Conversation

@leodido
Copy link
Contributor

@leodido leodido commented Nov 10, 2025

What

Removes the flaky TestS3Cache_VerificationOverhead test that was causing intermittent CI failures.

Why

The test was measuring sub-millisecond durations (~10-12µs) which are dominated by:

  • Measurement noise
  • Go runtime scheduling variance
  • CPU cache effects
  • Test framework overhead

This resulted in:

  • Inconsistent results across runs
  • Negative overhead values (impossible in reality, e.g., -11.30%, -5.10%)
  • Flaky CI failures

The test itself acknowledged these limitations in its comments and directed users to use benchmarks instead.

How

Removed the test function and its helper measureDownloadTimePerf. The existing benchmark functions provide accurate and reliable performance measurements:

  • BenchmarkS3Cache_DownloadBaseline
  • BenchmarkS3Cache_DownloadWithVerification

Part of https://linear.app/ona-team/issue/CLC-2063/ensure-leeway-extracts-builder-id-from-oidc-token

The test was measuring sub-millisecond durations (~10-12µs) which are
dominated by measurement noise, Go runtime scheduling variance, and
test framework overhead. This resulted in:

- Inconsistent results across runs
- Negative overhead values (impossible in reality)
- Flaky CI failures

The test itself acknowledged these limitations in its comments and
directed users to use benchmarks instead. The existing benchmark
functions (BenchmarkS3Cache_DownloadBaseline and
BenchmarkS3Cache_DownloadWithVerification) provide accurate and
reliable performance measurements.

Co-authored-by: Ona <no-reply@ona.com>
@leodido leodido changed the title test: remove flaky TestS3Cache_VerificationOverhead test: remove flaky TestS3Cache_VerificationOverhead Nov 10, 2025
This helper function was only used by the removed
TestS3Cache_VerificationOverhead test and is no longer needed.

Co-authored-by: Ona <no-reply@ona.com>
@leodido leodido force-pushed the remove-flaky-verification-overhead-test branch from 4088de5 to a4e978c Compare November 10, 2025 22:09
@leodido leodido self-assigned this Nov 10, 2025
@leodido leodido merged commit da7b8ff into main Nov 11, 2025
6 checks 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.

3 participants