Skip to content

test(028): the panicking exporter case no longer races its export deadline (#363) - #478

Merged
bartekus merged 1 commit into
mainfrom
fix/363-otel-panic-flake
Nov 3, 2026
Merged

bartekus merged 1 commit into
mainfrom
fix/363-otel-panic-flake

Conversation

@bartekus

@bartekus bartekus commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Makes failing_hanging_and_panicking_exporters_are_counted_and_conserved independent of runner load.

  • Merge-queue run 40719812627 counted 12 of 36 panicked spans as export_timeout: on a loaded runner the panicking export's unwind outlasted the test's 200 ms deadline, and the sink counts whichever outcome it observes first (integrations/rustev-otel/src/sink.rs, the export timeout around the joined task), so the product behavior is unchanged and the test's deadline was too tight.
  • Only the hanging exporter needs the deadline to expire; it keeps 200 ms. The failing and panicking cases now run under 10,000 ms, which they never approach (they return at once), so the test asserts the classification it means to.
  • Test-only; no product change. Spec 028 gets a "test only" record paragraph (the coupling check requires an authoring edit to the owning spec).

Fixes #363.

Checks: make gate, cargo test -p rustev-otel --locked --test sink, clippy, fmt.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

AI review (no-findings)

The change is a test-only flakiness fix in integrations/rustev-otel/tests/sink.rs. It gives Behavior::Fail and Behavior::Panic a 10-second timeout (so they are never misclassified as export_timeout on a slow runner) while keeping Behavior::Hang at 200ms (which must expire to produce the expected EXPORT_TIMEOUT loss reason). The struct-update syntax ..config() is correct Rust. The comment accurately documents the referenced issue. No behavioral change to production code; no security implication; no governance or spec-coupling concern for a pure test fix.

{"head": "b4820c58f155140a3875ad940620e38904d85bb1", "verdict": "no-findings", "findings": []}

Subject: cf3ae8d...b4820c5, diff digest 9a527ed8f11879cfc04aed0104ccebe4e416384e086c7d4b3f4da8dff8e86396, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus force-pushed the fix/363-otel-panic-flake branch from b4820c5 to 0856c7a Compare November 3, 2026 19:12
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing both changed files for correctness, consistency, and governance compliance.

Test fix (integrations/rustev-otel/tests/sink.rs)

The logic is sound. The previous code ran all three behaviors under a uniform 200ms export_timeout_ms. On a loaded runner, the panic unwind path can exceed 200ms, causing the sink to observe export_timeout before exporter_panicked -- the wrong loss class. The fix differentiates: only Behavior::Hang needs a short deadline (200ms, to actually trigger the timeout path); Behavior::Fail and Behavior::Panic get a 10,000ms deadline they will never approach. The SinkConfig struct spread (..config()) is used correctly. No behavioral contract changes.

Spec revision note (specs/028-opentelemetry-evidence-sink/spec.md)

The note is appended to the revision history section with an explicit disclaimer -- "no claim of this spec changes" -- which is accurate: the fix is in test code only, no normative claim is touched. The date (2026-11-03) and issue reference (#363) are consistent with the PR context. The note is placed before "## Decisions at approval", which fits the existing structure.

No bugs, security issues, or governance inconsistencies found.

{"head": "0856c7aca098231730d145153d7d0dd593550593", "verdict": "no-findings", "findings": []}

Subject: cf3ae8d...0856c7a, diff digest 31aa7956230ee44768a53d96458c9ca31bb74cb41800aaa51e6f42d5cb5faa62, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Nov 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 3, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 6894e86 Nov 3, 2026
33 checks passed
@bartekus
bartekus deleted the fix/363-otel-panic-flake branch November 3, 2026 22:13
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.

rustev-otel sink test flakes: panicking export counted as export_timeout under load

1 participant