Skip to content

test: replace timing-based CI assertions with explicit synchronization - #1782

Merged
elibol merged 2 commits into
NVIDIA:mainfrom
elibol:fix/deterministic-concurrency-tests
Nov 13, 2026
Merged

elibol merged 2 commits into
NVIDIA:mainfrom
elibol:fix/deterministic-concurrency-tests

Conversation

@elibol

@elibol elibol commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

The main Tile GPU job intermittently failed dropping_in_flight_future_returns_promptly_and_retires_owners: a 200 ms automatic gate release was compared with a 100 ms drop limit. This replaces elapsed-time correctness checks with explicit release and completion observations, and audits the related shared-host, Tile and SIMT tests.

  • Keep GPU work gated until drop/query returns; check retained owners, access exclusion and eventual cleanup. Watchdog expiry fails instead of silently releasing a test into a passing state.
  • Replace sleep-based capture coordination, assumed pending GPU work and environment mutation with handshakes/gates. Observe the actual execute-once wait branch in a GPU unit test.
  • Replace “no worker message for 100 ms” fence tests with test-only driver-fence traces plus real GPU dependency/readback checks. Include these GPU unit tests in the CI runner without enabling ignored benchmarks.
  • Exercise assembler ETXTBSY retries with an observed-error hook and fix stale PID-only temporary directories.
  • Include the audit and remaining manual CuTe fixture risks. These model-specific follow-ups are not claimed fixed; tests: replace wall-clock correctness assertions and sleep-based race coordination #1680 remains open.

Validation: targeted CPU/GPU suites on RTX 5090 with CUDA 13.3; serial and parallel host tests; reactor/drop tests also through the host-callback fallback; Tile submission-lifetime tests; SIMT shared-launch and assembler tests. Warnings-as-errors Clippy, formatting, SPDX and shell checks pass. Temporary negative controls verified failures for blocking drop, a missing initialization fence and a missing allocation-stream dependency; all mutations were restored. The generated-source assembly fixture was compiled but not executed.

No new public API or production instrumentation: observation hooks are cfg(test) only. No latency threshold was widened to mask the failure.

Addresses #1680.

@elibol elibol added the cutile-rs Tile programming model: cutile crates, compiler, macros, IR, kernels, and book label Nov 12, 2026
@elibol

elibol commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Review overlap: #1729 independently updates cuda-core/tests/stream_query.rs for #1680. Please consolidate that change and preserve its negative-control coverage. Also linking #1768, which reports parallel failures in the shared_allocation test changed here; that report needs verification against the updated tests rather than being treated as a duplicate of the timing-check cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cutile-rs Tile programming model: cutile crates, compiler, macros, IR, kernels, and book

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants