Repository navigation
Run Tests on GitHub-hosted runners and fix the polkit source guard - #143
Merged
Merged
Conversation
Same-repo jobs requested a Namespace label that stays queued on this fork. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
The agent mark is an SVG, not a Loader. source: outside an Image block, setSource, and FaceScanRing still fail the check. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2688819. Configure here.
sort piped into head exits on SIGPIPE under pipefail once the list is long enough, which failed the noncomp-2 shard after every file had passed. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
A flat Image strip stopped at the first brace, so a Loader nested in that span disappeared from the guard. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
The Actions token cannot rerun the failed exclusive job. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
Shell ping returns before plugin services compile, and each empty session home was deleting that cache, so the 4x budget was timing the compile. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Dec 2, 2026
Keep the upstream lock budget of 2.5x and its sort drain, and keep the QML disk-cache warmup from #143 in front of that budget. Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
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.

What changes
Same-repo Tests jobs never start, and pr-shape fails a polkit assertion that quattro already fails. The first green-runner attempt then tripped a
sort | headpipefail in the shell suite summary. The exclusive shard then failed the lock-view budget twice, because each sample was paying for a cold QML compile.Tests stay queued.
.github/workflows/test.ymlsent pushes and same-repo pull requests tonamespace-profile-linux-amd64-16x32. Since 25 Nov every job on that label stays queued until GitHub cancels it. PR #142 run 46757970940 sat queued for about an hour and was cancelled; run 46767250792 was still queued. pr-shape and i18n-check already run on GitHub-hosted runners. The QEMU image workflow already usesubuntu-26.04; Tests was the only Namespace label. Every shard now usesubuntu-26.04.The matrix fits that runner. A full unsharded
./test/allonubuntu-26.04finished in about 8 minutes on 23 Nov (run 45092330410), with a 6G guest. The sharded job still uses 6G and 2 compile jobs when the machine has under 24 GB and under 8 CPUs. On run 46975106409 the four shards finished in 1m9s to 3m22s, inside the existing 20 minute job timeout andCI_VM_TIMEOUT=900. The stable image is 4191258112 bytes (about 4.2 GB) and landed in/dev/shm, and the prebuilt QEMU image was used. Timeouts are unchanged.pr-shape's polkit guard flags an Image. Job 143038639401 fails
no QML is loaded from a URL into the polkit windowsbecause the check bans everysource:. The only match isid: agentMarkinshell/plugins/polkit/PolkitCard.qml, anImagewhosesourceis a local SVG (Qt.resolvedUrl("../agents/assets/" + mark + suffix)).parseRequesteraccepts a mark only when it matches^[a-z0-9-]+$. That loads a picture, not QML. Eachsource:is now judged by the element that owns it, walking braces, so anImagesource is allowed and aLoadersource is not, including aLoadernested inside anImageor one whosesource:follows a nested brace.setSource(andFaceScanRingstay rejected.This fails on quattro itself. The agent mark landed in
2f21d4e69and came in with #141.bash test/shell.d/polkit-face-test.shon quattro exits 1 at that assertion before this change. #142's merge fails because the merged tree contains that Image.A green shard then failed its summary. The first Tests run on
ubuntu-26.04(run 46973248550) passed comp, exclusive, and noncomp-1. noncomp-2 printed138 test files completed without failuresand thensort: fflush failed: 'standard output': Broken pipe, sotest/shellexited 1.print_slowestpipedsortintohead -n 10underpipefail. The list is now read in full and only the first ten lines are printed.The lock-view budget was timing a cold compile.
shell pingreturns from the root IPC beforeComponent.onCompletedcompiles plugin services.lock statusanswers only afterQt.createComponenthas built the lock service. Each of the three samples calledreset_scratch_home, which deletes the session home and with it the QML disk cache, so the fastest sample was still a cold compile. On the 4-vCPU runner that compile was about four times the ping: run 46976340355 was 3937ms against a 3124ms budget (781ms shell start), and the retry run 46977314789 was 2886ms against 2856ms (714ms shell start).gh run rerun --failedreturns 403 for this token, so the retry was an empty commit.The 400% constant is unchanged. One untimed start waits until
lock statusanswers, withQML_DISK_CACHE_PATHset outside the session home soreset_scratch_homekeeps the compiled services. The measured starts still get an empty session home.Verification
bash test/shell.d/polkit-face-test.shon quattro printednot ok - no QML is loaded from a URL into the polkit windowsand exited 1. After, it exits 0. A probe still fails aLoadersource:(including one after a nested brace, and one nested inside anImage),setSource(, andFaceScanRing, and still passes anImagesource:that follows a nested brace.bash -n test/shell.d/lock-appear-budget-test.shexits 0.bash test/shell.d/test-runner-test.shexits 0. A 4000-rowsort | headunderpipefailexits 141; the mapfile form exits 0.b70615530: Tests run 46975106409 all four shards passed onubuntu-26.04(1m9s–3m22s). pr-shape run 46975106461 passed.c392ac8af: pr-shape run 46976340466 passed. Tests run 46976340355: noncomp-1, noncomp-2, and comp passed. exclusive failedlock-appear-budget-test.shas above.2b8ee3a9d(the cache warmup): Tests run 46978184622 all four shards passed. exclusive finished in 1m37s and listslock-appear-budget-test.shat 22.29s. pr-shape run 46978184849 passed.e765fc728(empty retry of that tree): Tests run 46979206136 all four shards passed. exclusive finished in 1m43s and listslock-appear-budget-test.shat 26.07s. pr-shape run 46979205979 passed.quattroruleset does not require it.Screenshots
No visible change: runners, a polkit test guard, the shell suite's slowest-file summary, and a test-only QML cache warmup. Nothing on screen changes.
Note
Low Risk
CI runner selection and a test assertion tweak only; no runtime auth or product behavior changes.
Reviewed by Cursor Bugbot for commit 2688819. Configure here.