Skip to content

[TUI] fix hipBLASLt gfx1101 package expectation and Windows test_bench timeout - #504

Open
NightRain233 wants to merge 1 commit into
simplexai-labs:mainfrom
NightRain233:fix/ci-hipblaslt-and-bench-flake
Open

NightRain233 wants to merge 1 commit into
simplexai-labs:mainfrom
NightRain233:fix/ci-hipblaslt-and-bench-flake

Conversation

@NightRain233

Copy link
Copy Markdown
Contributor

Problem and result

Two unrelated failures in terminal/tests/terminal/ currently break Linux / Python tests/ and Windows / Python tests/ CI checks on main (7cef952):

  1. Deterministic failure on Linux and Windows (test_hipblaslt_tuning.py): Commit dd319e0 ([Engine] hipBLASLt tuning table for gfx1101 (RX 7800 XT)) added terminal/tools/hip/gfx1101-hipblaslt-100500.txt, so ht.stage_tables() now correctly stages gfx1101 into the ("windows-x86_64", "rdna3") (100500) package. Because PACKAGES[("windows-x86_64", "rdna3")] in terminal/tests/terminal/test_hipblaslt_tuning.py was not updated, PackageContents::test_every_release_package_carries_the_tables_its_cards_have fails on every CI run with:
    AssertionError: Items in the first set but not the second: 'gfx1101' : ('windows-x86_64', 'rdna3').
  2. Frequent Windows CI timing flake (test_bench.py): Under 4-worker pytest-xdist on GitHub windows-2022 runners (observed on 3 of 7 recent runs: [Engine] qwen4/metal: fuse decode kernels, QSA score MMA, and overhaul Gated Residual #475, [Engine] metal: high-bandwidth short4/TG-LUT decode GEMV for Q5_K/Q6_K/Q4_K/IQ2/IQ3 #498, [Engine] metal: port opt-in BasinKV sparse KV offload (--basinkv) #500), warmup (1 request) + serial (2 requests) + telemetry polling + Win32 ACL progress writes occasionally exceed 10 seconds before entering mixed, causing BenchTests::test_phase_progress_is_private_and_recovers_from_saved_report to fail on self.assertTrue(reached.wait(10)) even though captured stdout shows all 5 mock requests completing immediately after finally: release.set().

This PR updates PACKAGES[("windows-x86_64", "rdna3")] to include "gfx1101" and raises the three 10s waits in test_phase_progress_is_private_and_recovers_from_saved_report (release.wait, reached.wait, future.result) to 30s, matching test_process_death_releases_exact_run_lease (30s) from e59a61e.

Related discussion

Follow-up to dd319e0 (gfx1101 hipBLASLt table) and e59a61e (Windows test_bench CI timing flakes); observed across PRs #473, #474, #475, #498, #499, #500, and #501.

Approach

  • Updates only the stale expected table set in terminal/tests/terminal/test_hipblaslt_tuning.py ({"gfx1100", "gfx1151"} -> {"gfx1100", "gfx1101", "gfx1151"}). Verified test_the_missing_report_names_the_architectures_without_a_table still validates 100200 (where gfx1101 has no table) and no other packaging tests hold stale expectations.
  • Raises 10 -> 30 seconds on release.wait, reached.wait, and future.result in test_phase_progress_is_private_and_recovers_from_saved_report while keeping all privacy, state-transition, and redaction assertions unchanged (and adding zero wall-clock latency to passing runs).
  • Touches only two Python test files under terminal/tests/terminal/; zero engine or production code changes.

Validation

  • Passed (macOS Apple M4, Python 3.13.12, on origin/main 7cef952):
    • Before-fix reproduction: PYTHONPATH=terminal python3 -m unittest terminal/tests/terminal/test_hipblaslt_tuning.py -v -> failed 1/33 on test_every_release_package_carries_the_tables_its_cards_have with 'gfx1101' : ('windows-x86_64', 'rdna3').
    • After-fix full modules: PYTHONPATH=terminal python3 -m unittest terminal/tests/terminal/test_hipblaslt_tuning.py terminal/tests/terminal/test_bench.py -v -> 58/58 passed (21.007s).
    • Stability repeat (5x): test_phase_progress_is_private_and_recovers_from_saved_report -> 5/5 passed (0.59s each).
    • python3 tools/check --only docs -> passed (6/6).
  • Failed: None observed.
  • Not run: Full Windows pytest-xdist run was not run locally on macOS; verified via GitHub Actions Linux / Python tests/ and Windows / Python tests/ on this PR.

Limits

  • Fixes only the two observed CI failures (test_hipblaslt_tuning.py and test_bench.py::test_phase_progress_is_private_and_recovers_from_saved_report).

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