Repository navigation
[TUI] fix CI hipBLASLt expectation, Windows timing/isolation flakes, and check.yml trigger - #504
Merged
VecSzn merged 2 commits intoDec 6, 2026
Conversation
…eck.yml on terminal/tests
This was referenced Dec 6, 2026
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and result
Mining the last 50 failed GitHub Actions
Checks(check.yml) runs plus a targeted audit ofterminal/tests/identified one deterministic test bug, a CI path-filter blind spot, and a cluster of Windowspytest-xdisttiming/isolation flakes:1. Observed directly in GitHub Actions CI (
main7cef952and recent PRs)terminal/tests/terminal/test_hipblaslt_tuning.py(16 failures across both Linux & Windows CI): Commitdd319e0([Engine] hipBLASLt tuning table for gfx1101 (RX 7800 XT)) addedterminal/tools/hip/gfx1101-hipblaslt-100500.txt, soht.stage_tables()now stagesgfx1101into("windows-x86_64", "rdna3")(100500). UpdatingPACKAGES[("windows-x86_64", "rdna3")]to include"gfx1101"fixes the deterministicAssertionErroron every Linux and Windowspy-testsrun.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-workerpytest-xdistonwindows-2022,warmup+serial+ telemetry polls + Win32 ACL progress writes occasionally exceed 10 s before enteringmixed, trippingreached.wait(10)even though all 5 mock requests complete immediately afterfinally: release.set(). Raisingrelease.wait,reached.wait, andfuture.resultfrom10s to30s (matchinge59a61e's 30 s startup window intest_process_death_releases_exact_run_lease) fixes the timeout without slowing passing runs or weakening assertions..github/workflows/check.ymlCI blind spot:on.push.pathsandon.pull_request.pathslistedtests/**(root) but omittedterminal/tests/**, so PRs editing onlyterminal/tests/**(including the first commit of this PR) skippedLinux / Python tests/andWindows / Python tests/entirely. Addingterminal/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 withProfileError: another benchmark is running for this saved profile): Unlike lines 122, 143, 189, 211, and 276 in the same file, this test patchedSTRATA_API_KEY/STRATA_TELEMETRY_KEYwithout isolatingSTRATA_PROFILE_DIRtostr(self.root / "profiles"), colliding on the host's shared.bench-local.lockunder concurrent workers.terminal/tests/terminal/test_net_transfer.py(lines 92, 174, 179) (static twins of the 5x Windows CI flake fixed intest_net_launch_waits.py:62bye59a61e):CONNECT_LIMITS=(0.4, 0.8)+0.1gap (1.3s nominal, allowing< 2.5s) hardcoded"within 1 seconds"in bothTransferRule.test_a_black_hole_fails_fast_with_the_plain_sentenceandFeedRule.test_a_feed_server_that_does_not_answer_says_w7, which fails whenever elapsed>= 1.5s (round(seconds) == 2). Switched both toassertRegex(..., r"... within [12] seconds ...")matchingtest_net_launch_waits.py:62, and raised the cached-failure check< 0.2->< 0.5s (still well below the1.3s network wait).terminal/tests/terminal/test_netpolicy.py(lines 199, 224, 232) &terminal/tests/terminal/test_net_launch_waits.py(line 69) (static twins oftest_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 bounds0.1 -> 0.3s (below0.5s network wait) and0.2 / 0.3 -> 0.5s (below1.3s network wait).terminal/tests/terminal/test_bench_stop.py(line 137) (static inconsistency, Windows-only):test_a_refused_taskkill_does_not_leave_the_tree_runningwaited10s to reap the child tree whiletest_the_child_and_its_child_both_enddirectly above it already uses30s (# a loaded box can take seconds to deliver and reap); aligned to30s.terminal/tests/desktop/test_status_probe.py(line 93) (static timing margin): raised parallel 5-port probe upper bound1.4 -> 2.0s (5 ×0.5s =2.5s sequential, so< 2.0s still strictly proves parallel probing with 2.5x more scheduling margin).Related discussion
Follow-up to
dd319e0(gfx1101hipBLASLt tuning table) ande59a61e(Windowstest_bench/test_net_launch_waitsCI timing flakes); observed acrossmain(47591820026) and PRs #473–#475 and #498–#501.Approach
check.ymlpath trigger updates (zero production engine or server behavior changes).test_bench_stop.py).Validation
origin/main7cef952):test_hipblaslt_tuning.py: failed 1/33 ('gfx1101' : ('windows-x86_64', 'rdna3')).STRATA_PROFILE_DIRfix: 3/4 workers failed intest_desktop_review_runs_shared_benchmark_and_rejects_changed_ownerwith.bench-local.lockcollision.unittest -v): 123/123 passed (57.4s, 4 skipped: 2 Windows-only, 2STRATA_SLOW_NET_TESTS=1).test_bench.py,test_net_transfer.py,test_netpolicy.py,test_net_launch_waits.py,test_status_probe.py× 4 concurrent processes without customSTRATA_PROFILE_DIR): 4/4 workers passed (344/344 test executions, 0 collisions, 0 timing flakes)..github/workflows/check.ymlYAML validation (yaml.safe_load): passed.python3 tools/check --only docs: passed (6/6).test_bench_stop.pyWindows taskkill cases) and full 4,328-test Windowspytest-xdistmatrix — now triggered directly on GitHub Actions by addingterminal/tests/**to.github/workflows/check.yml.Limits
terminal/tests/; does not alter production timing constants orterminal/serve/tests that have not shown flakes in recent CI history.