ci: run the startup audio timeline check in CTest and the Python job #1863
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1870"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T19:52:03Z.
Change
tests/startup_audio_timeline_check.py(the control fortools/startup_audio_timeline.py, added in #1763 and extended in #1842) is not registered anywhere: it has no CTest entry and it is not in the platform-independent Python job. Onlydocs/startup-audio-timeline.mdgives its command (python -B tests/startup_audio_timeline_check.py), so neitherctestnor CI runs it and the cases added in #1842 are not exercised on new changes.This PR only registers the existing check. It does not touch the check or the tool.
CMakeLists.txt:add_test(NAME startup_audio_timeline ...)through${INTAKE_PYTHON} -B, inside anif(EXISTS "${INTAKE_PYTHON}")guard like the other Python-driven tests, withTIMEOUT 60. It sits afterstartup_audio_providerwith the other startup audio tests..github/workflows/windows.yml: added to thepython-linux"Run Python checks" list aftertests/awc_metadata_check.py.AGENTS.md: the same entry at the same position in the "Pure-Python checks" list, so the two lists stay in the same order.The check is platform-independent. It uses only
csv,json,pathlib,subprocess,sys,tempfileandunittest, and runs the tool (which importsargparse,csv,dataclasses,json,mathandpathlib) on generated packet statistics in a temporary directory. It needs no audio device, GPU, Windows API or game files.Verification
Base:
afddddbd(currentmain). Windows 11 Pro 26300.9974, Python 3.12.10 (out/pe-env).CMake registration, configure only (nothing built; the test needs no binaries):
Workflow YAML parsed with PyYAML. The
python-linux"Run Python checks" step lists 59 unique paths, all of which exist, and the new entry is at index 13.Negative control: on
afddddbd,CMakeLists.txtand.github/workflows/windows.ymlhave nostartup_audio_timelineentry (grep -creturns 0). The samectest --no-tests=error -R '^startup_audio_timeline$'filter would therefore select nothing there. I inferred this from the grep and did not configuremainseparately.Evidence and follow-up
No new fixture. The check generates its own packet CSV and input JSONL in a temporary directory.
Separate question:
tests/pixel_fp32_vulkan_check.pyis the only othertests/*check*.pythat neither CMake nor the workflows reference. It needs Vulkan, so it does not belong in the pure-Python job, and I left it alone. Should it get a CTest entry with a capability skip (77), or is it meant to stay manual?Checklist
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T19:55:02Z.
Review: COMMENTED
Review of head
be9862b6483911c8f1b63bca69fc786aa4a745a5(baseorigin/mainatdd753176when I fetched). Comment only, not an approval.Verdict: 0 P1 / 0 P2. The check is registered in all three places it needs to be, and it runs on Linux.
Linux limits. Linux x86_64, Python 3, CMake available but not the Windows toolchain. I did not run GitHub Actions and did not configure the real
CMakeLists.txt(it needs the Windows SDK targets). PyYAML is not installed here, so I did not parse the workflow with a YAML loader; I read the edited region instead.Diff (3 files, +9): one
add_testinCMakeLists.txt, one line in thepython-linuxlist of.github/workflows/windows.yml, one line inAGENTS.md. The tool and the check are untouched. The workflow line sits inside the existing backslash-continuedrun:block with the same 12-space indent and a trailing\, betweentests/awc_metadata_check.pyandtests/sgd5_effects_check.py. The AGENTS.md list has the same order.What I ran at this SHA
python3 -B tests/startup_audio_timeline_check.py: "Ran 3 tests ... OK" (Python 3.14, exit 0).tests/docs_links_check.py: 18 files, 370 links, clean.tests/bidi_controls_check.py: 1324 files, clean.git diff --check origin/main...HEAD: clean.if(EXISTS ...) add_test(...) set_tests_properties(... TIMEOUT 60) endif()block into a throw-away CMakeLists withINTAKE_PYTHON=/usr/bin/python3, thenctest --no-tests=error -R '^startup_audio_timeline$': 1/1 passed. This proves the syntax and the filter, not the real project configure.tools/startup_audio_timeline.py, each followed by the check andgit checkout -- .(tree clean afterwards):0 <= rms <= peak <= 1reduced to0 <= rmsframes < 1relaxed toframes < 0packet.start >= endto>)--sample-rate < 1validation removedFindings (non-blocking)
startup_*Python tests in this file use${CMAKE_CURRENT_SOURCE_DIR}; this one uses${CMAKE_SOURCE_DIR}(asINTAKE_PYTHONitself does). Same result at the top level; only a consistency note.startup_audio_providerproperties and thestartup_dump_fence_checksetup lines, so it is mixed into the C++ audio targets rather than theif(EXISTS "${INTAKE_PYTHON}")group near line 166. Harmless, since it has its own guard.The author's Windows run (configure plus ctest passing 1/1) is theirs; I did not reproduce it. Their question about
tests/pixel_fp32_vulkan_check.pyis for a maintainer.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T21:07:14Z.
The claim checks out, and the registration works
On
origin/main(d30004d4) the check really is unreachable from both entry points — counting occurrences of the name in thethree files the PR touches:
On the PR branch, after a configure that regenerated the test files:
The guard is the same shape as its neighbours (
if(EXISTS "${INTAKE_PYTHON}")…TIMEOUT 60), it sits next tostartup_audio_provider, and adding it to the Linux list puts it in the same job as the other device-free checks.One caveat from my own run, worth knowing
My first
cmake --preset devafter switching to this branch printed-- Configuring donebut the generatedout/build/dev/CTestTestfile.cmakedid not containstartup_audio_timeline, andctest -Nshowed onlystartup_audio_provider. A second configure added it. I did not chase the cause (most likely a regeneration decision after thebranch switch), but anyone verifying a newly registered test should confirm it appears in
ctest -Nrather than assuming aconfigure was enough — a test that silently fails to register looks exactly like this PR's problem.
What this does and does not buy
It buys: the cases added in #1842 now run in
ctestand in the Linux Python job, so a change totools/startup_audio_timeline.pythat breaks them is caught. The check itself already has positive/quiet/gap/missing rows and compares an RMS estimate
(
((0.5**2 + 0.25**2) / 2)**0.5), i.e. it is not a smoke test.It does not buy: any statement about real audio output. That is
startup_audio_provider's territory and stays there.Verdict
Reviewed. The problem statement is accurate to the byte (0 occurrences on main), the fix is the minimal registration, and the
test runs and passes here. No objections.
Notes