Repository navigation
refactor(ci): port check-skips to Python (#962) - #2598
Merged
Merged
Conversation
added 2 commits
October 27, 2026 03:21
…962) RED: rust/tools/linux-validate/check_skips.py does not exist yet and validate.sh still calls the shell script, so ci/test_tier2_skips.py errors on every case (7 errors) — the module cannot be loaded.
GREEN: rust/tools/linux-validate/check_skips.py replaces the 16-line shell script. validate.sh runs it through `uv run --no-project`, the same way it runs the other ported helpers of that lane (the Tier 2 container mounts uv at /usr/local/bin/uv), and the ci.toml GEN-005 exception is dropped. The port keeps every verdict of the shell version (differential-checked over the same ctest logs): a Skipped test whose name starts with test_pipewire_, test_vlc_, test_screencast_portal_ or test_inhibit_sleep fails the lane (#776, #453), any other skipped test passes, and a bad argument count is a usage error (exit 2).
zackees
enabled auto-merge
October 27, 2026 10:31
Member
Author
|
Handed off to the coordinator.
Please handle rebase/ledger/lint fixups and re-queue after ejection as needed. |
zackees
commented
Oct 27, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Review (coordinator tick): correct port, verified RED → GREEN and differential against the shell script it replaces. No changes requested. It is already in the merge queue (position 4), so nothing to queue here.
What I checked on 134be7125 in a scratch worktree (not this checkout):
- RED is real.
git checkout 6a68f4857+uv run python -m unittest ci/test_tier2_skips.py→FAILED (errors=7): the module does not exist yet, so every case errors rather than passing vacuously. - GREEN is real. On the head, the same command is
Ran 7 tests ... OK. - The verdicts match the script it replaces. I took
check-skips.shfromorigin/masterand the newcheck_skips.pyand ran both over three ctest logs — two with skips amongMUST_RUN(pipewire / screencast-portal / inhibit-sleep), one empty. Exit codes agree (1, 1, 0) and the printed name lists are byte-identical, including the sort order and the duplicate collapse. - The caller is in a container that has Python.
validate.shruns under the Tier 2 container with uv mounted (ci.yml), and it already drives the other ported helpers that way — this is not one of thebuild-aux/appimagescripts whose caller is a stock distro image with no Python.uv run --no-project "$SRC"/rust/tools/linux-validate/check_skips.pyis the same shape as its neighbours and satisfies the TOOL-003 spelling. ruff checkis clean on both files.ruff formatwould reformat them, but this repo gates onlyruff check(C901/RUF100), so that is cosmetic and not worth dropping the PR out of the queue for.ci/test_no_sys_path_edits.pyis honoured: the test loads the port throughimportlib.util.spec_from_file_location, notsys.path.- The
ci.tomlGEN-005 exception forcheck-skips.shgoes away in the same commit that deletes the file, and the two stale comments are repointed.
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.
Ports
rust/tools/linux-validate/check-skips.sh(16 lines) to Python, per the GEN-005 burn-down in #962. Split out of the AppImage work because this one has no in-container trap: its only caller,validate.sh, runs with uv mounted into the Tier 2 container (ci.yml:--mount ...$(command -v uv),dst=/usr/local/bin/uv) and already runs other ported helpers throughuv run --no-project.RED
ci/test_tier2_skips.pynow drives the port's verdicts (rust/tools/linux-validate/check_skips.py) over canned ctest logs instead ofbash check-skips.sh. On the unfixed tree the module does not exist, so every case errors (6a68f4857).GREEN (
134be7125)rust/tools/linux-validate/check_skips.py— the port, shebang#!/usr/bin/env -S uv run --script.validate.shcalls it throughuv run --no-project.check-skips.shdeleted; theci.tomlGEN-005 exception for it removed.test_inhibit_sleep_dbustest and its.cmake) repointed at the Python file.The port keeps every verdict, differential-checked against the shell script over the same ctest logs:
Skippedtest whose name starts withtest_pipewire_,test_vlc_,test_screencast_portal_ortest_inhibit_sleepfails the lane (ci: Tier 2 Linux skips every PipeWire test (no PipeWire daemon in the harness) #776; sleep inhibition was once lost silently, bug: libobs: Rust libobs Linux builds no longer inhibit idle sleep while recording or streaming (regression from #403) #453);Validation
uv run python -m unittest ci/test_tier2_skips.py— 7 tests pass (RED: 6 errors before the module existed).ci/test_ci_toml.py,ci/test_uv_run.py,ci/test_ci_tests_stdlib_only.py,ci/test_no_sys_path_edits.pypass../lintlane: the only failure isci/test_local_gate_probe.py, the environmental soldr-version probe on this host, unrelated to these files.