Skip to content

[TUI] fix CI hipBLASLt expectation, Windows timing/isolation flakes, and check.yml trigger - #504

Merged
VecSzn merged 2 commits into
simplexai-labs:mainfrom
NightRain233:fix/ci-hipblaslt-and-bench-flake
Dec 6, 2026
Merged

VecSzn merged 2 commits into
simplexai-labs:mainfrom
NightRain233:fix/ci-hipblaslt-and-bench-flake

Conversation

@NightRain233

@NightRain233 NightRain233 commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Problem and result

Mining the last 50 failed GitHub Actions Checks (check.yml) runs plus a targeted audit of terminal/tests/ identified one deterministic test bug, a CI path-filter blind spot, and a cluster of Windows pytest-xdist timing/isolation flakes:

1. Observed directly in GitHub Actions CI (main 7cef952 and recent PRs)

  • terminal/tests/terminal/test_hipblaslt_tuning.py (16 failures across both Linux & Windows CI): Commit dd319e0 ([Engine] hipBLASLt tuning table for gfx1101 (RX 7800 XT)) added terminal/tools/hip/gfx1101-hipblaslt-100500.txt, so ht.stage_tables() now stages gfx1101 into ("windows-x86_64", "rdna3") (100500). Updating PACKAGES[("windows-x86_64", "rdna3")] to include "gfx1101" fixes the deterministic AssertionError on every Linux and Windows py-tests run.
  • terminal/tests/terminal/test_bench.py::BenchTests.test_phase_progress_is_private_and_recovers_from_saved_report (6 Windows CI failures, e.g. [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): Under 4-worker pytest-xdist on windows-2022, warmup + serial + telemetry polls + Win32 ACL progress writes occasionally exceed 10 s before entering mixed, tripping reached.wait(10) even though all 5 mock requests complete immediately after finally: release.set(). Raising release.wait, reached.wait, and future.result from 10 s to 30 s (matching e59a61e's 30 s startup window in test_process_death_releases_exact_run_lease) fixes the timeout without slowing passing runs or weakening assertions.
  • .github/workflows/check.yml CI blind spot: on.push.paths and on.pull_request.paths listed tests/** (root) but omitted terminal/tests/**, so PRs editing only terminal/tests/** (including the first commit of this PR) skipped Linux / Python tests/ and Windows / Python tests/ entirely. Adding terminal/tests/** closes the blind spot and ensures this PR itself runs the full CI matrix.

2. Verified twins & concurrency hazards caught by static scan + 4-way local parallel stress testing

  • terminal/tests/terminal/test_bench.py (test_desktop_review_runs_shared_benchmark_and_rejects_changed_owner, line 487) (reproduced live under 4-way shared-env stress test — 3/4 workers failed with ProfileError: another benchmark is running for this saved profile): Unlike lines 122, 143, 189, 211, and 276 in the same file, this test patched STRATA_API_KEY / STRATA_TELEMETRY_KEY without isolating STRATA_PROFILE_DIR to str(self.root / "profiles"), colliding on the host's shared .bench-local.lock under concurrent workers.
  • terminal/tests/terminal/test_net_transfer.py (lines 92, 174, 179) (static twins of the 5x Windows CI flake fixed in test_net_launch_waits.py:62 by e59a61e): CONNECT_LIMITS=(0.4, 0.8) + 0.1 gap (1.3 s nominal, allowing < 2.5 s) hardcoded "within 1 seconds" in both TransferRule.test_a_black_hole_fails_fast_with_the_plain_sentence and FeedRule.test_a_feed_server_that_does_not_answer_says_w7, which fails whenever elapsed >= 1.5 s (round(seconds) == 2). Switched both to assertRegex(..., r"... within [12] seconds ...") matching test_net_launch_waits.py:62, and raised the cached-failure check < 0.2 -> < 0.5 s (still well below the 1.3 s network wait).
  • terminal/tests/terminal/test_netpolicy.py (lines 199, 224, 232) & terminal/tests/terminal/test_net_launch_waits.py (line 69) (static twins of test_net_launch_waits.py:61): test_the_waiting_line_names_the_host (wait_after=0.2) hardcoded (0 s so far) instead of ([01] s so far); raised ultra-tight cached-failure wall-clock bounds 0.1 -> 0.3 s (below 0.5 s network wait) and 0.2 / 0.3 -> 0.5 s (below 1.3 s network wait).
  • terminal/tests/terminal/test_bench_stop.py (line 137) (static inconsistency, Windows-only): test_a_refused_taskkill_does_not_leave_the_tree_running waited 10 s to reap the child tree while test_the_child_and_its_child_both_end directly above it already uses 30 s (# a loaded box can take seconds to deliver and reap); aligned to 30 s.
  • terminal/tests/desktop/test_status_probe.py (line 93) (static timing margin): raised parallel 5-port probe upper bound 1.4 -> 2.0 s (5 × 0.5 s = 2.5 s sequential, so < 2.0 s still strictly proves parallel probing with 2.5x more scheduling margin).

Related discussion

Follow-up to dd319e0 (gfx1101 hipBLASLt tuning table) and e59a61e (Windows test_bench / test_net_launch_waits CI timing flakes); observed across main (47591820026) and PRs #473–#475 and #498–#501.

Approach

  • Strictly test-only + check.yml path trigger updates (zero production engine or server behavior changes).
  • Preserves every functional, privacy, concurrency, and fast-fail assertion (and preserves CRLF line endings in test_bench_stop.py).

Validation

  • Passed (macOS Apple M4, Python 3.13.12, on origin/main 7cef952):
    • Before-fix reproductions:
      • test_hipblaslt_tuning.py: failed 1/33 ('gfx1101' : ('windows-x86_64', 'rdna3')).
      • 4-way shared-env parallel stress pass before STRATA_PROFILE_DIR fix: 3/4 workers failed in test_desktop_review_runs_shared_benchmark_and_rejects_changed_owner with .bench-local.lock collision.
    • All 7 modified test modules (unittest -v): 123/123 passed (57.4s, 4 skipped: 2 Windows-only, 2 STRATA_SLOW_NET_TESTS=1).
    • 4-way shared-env parallel stress pass after all fixes (test_bench.py, test_net_transfer.py, test_netpolicy.py, test_net_launch_waits.py, test_status_probe.py × 4 concurrent processes without custom STRATA_PROFILE_DIR): 4/4 workers passed (344/344 test executions, 0 collisions, 0 timing flakes).
    • .github/workflows/check.yml YAML validation (yaml.safe_load): passed.
    • python3 tools/check --only docs: passed (6/6).
  • Failed: None observed.
  • Not run locally: Windows-only tests (test_bench_stop.py Windows taskkill cases) and full 4,328-test Windows pytest-xdist matrix — now triggered directly on GitHub Actions by adding terminal/tests/** to .github/workflows/check.yml.

Limits

  • Scoped to deterministic failures, reproduced lock collisions, and direct twins of observed Windows CI timing flakes in terminal/tests/; does not alter production timing constants or terminal/serve/ tests that have not shown flakes in recent CI history.

@NightRain233 NightRain233 changed the title [TUI] fix hipBLASLt gfx1101 package expectation and Windows test_bench timeout [TUI] fix CI hipBLASLt expectation, Windows timing/isolation flakes, and check.yml trigger Dec 6, 2026
@VecSzn
VecSzn merged commit 5c04b65 into simplexai-labs:main Dec 6, 2026
11 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.

2 participants