Skip to content

Stabilize asynchronous telemetry flush test - #573

Merged
enaboapps merged 4 commits into
mainfrom
codex/stabilize-telemetry-flush-test
Aug 10, 2026
Merged

Stabilize asynchronous telemetry flush test#573
enaboapps merged 4 commits into
mainfrom
codex/stabilize-telemetry-flush-test

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Summary

  • replace a fixed 30 ms sleep with a bounded wait for the asynchronous telemetry flush to finish
  • keep the change entirely in test code; production telemetry behavior and interfaces are unchanged

Root cause

The Alpha 4 release PR's Windows CI failed twice because the hosted runner could still be flushing when the test read persisted state. The assertion raced the runtime scheduler rather than the service contract.

Validation

  • focused failing test passed 20 consecutive runs

pm run lint

pm test

pm run build

  • cargo fmt --manifest-path src-tauri/Cargo.toml --check
  • cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
  • cargo test --manifest-path src-tauri/Cargo.toml (133 passed)

Closes #572

@enaboapps
enaboapps marked this pull request as ready for review August 10, 2026 20:23
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown

Greptile Summary

The telemetry test now uses bounded polling to wait for the expected retry persistence and successful queue drain before checking the stored telemetry state.

Confidence Score: 5/5

No blocking failure remains.

The current completion conditions wait for the required queue, send, and persistence states before assertions inspect the resulting telemetry data.

T-Rex T-Rex Logs

What T-Rex did

  • T-Rex attempted the focused Cargo test for failed_reports_queue_flush_and_keep_a_stable_opaque_id, but native compilation stopped due to missing gdk-3.0.pc.
  • T-Rex compiled and ran a focused Rust scheduling model covering completion handoff, successor acknowledgement, and final persistence ordering, and all three checks passed.
  • T-Rex captured and uploaded validation evidence, including the authored Rust source and observed output, and verified that the model reported PASS for the three checks.
  • T-Rex noted the native validation blocker: the gdk-3.0.pc file is unavailable and PKG_CONFIG_PATH is unset.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (4): Last reviewed commit: "Verify persisted retry state" | Re-trigger Greptile

Comment thread src-tauri/src/telemetry.rs Outdated
Comment thread src-tauri/src/telemetry.rs Outdated
Comment thread src-tauri/src/telemetry.rs
@enaboapps
enaboapps merged commit 5be68e0 into main Aug 10, 2026
4 checks passed
@enaboapps
enaboapps deleted the codex/stabilize-telemetry-flush-test branch August 10, 2026 21:16
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.

Stabilize asynchronous telemetry flush test

2 participants