Skip to content

Run Tests on GitHub-hosted runners and fix the polkit source guard - #143

Merged
mark-groves merged 7 commits into
quattrofrom
cursor/ci-hosted-runners-polkit-source-92cb
Dec 2, 2026
Merged

mark-groves merged 7 commits into
quattrofrom
cursor/ci-hosted-runners-polkit-source-92cb

Conversation

@mark-groves

@mark-groves mark-groves commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

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 | head pipefail 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.yml sent pushes and same-repo pull requests to namespace-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 uses ubuntu-26.04; Tests was the only Namespace label. Every shard now uses ubuntu-26.04.

The matrix fits that runner. A full unsharded ./test/all on ubuntu-26.04 finished 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 and CI_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 windows because the check bans every source:. The only match is id: agentMark in shell/plugins/polkit/PolkitCard.qml, an Image whose source is a local SVG (Qt.resolvedUrl("../agents/assets/" + mark + suffix)). parseRequester accepts a mark only when it matches ^[a-z0-9-]+$. That loads a picture, not QML. Each source: is now judged by the element that owns it, walking braces, so an Image source is allowed and a Loader source is not, including a Loader nested inside an Image or one whose source: follows a nested brace. setSource( and FaceScanRing stay rejected.

This fails on quattro itself. The agent mark landed in 2f21d4e69 and came in with #141. bash test/shell.d/polkit-face-test.sh on 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 printed 138 test files completed without failures and then sort: fflush failed: 'standard output': Broken pipe, so test/shell exited 1. print_slowest piped sort into head -n 10 under pipefail. 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 ping returns from the root IPC before Component.onCompleted compiles plugin services. lock status answers only after Qt.createComponent has built the lock service. Each of the three samples called reset_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 --failed returns 403 for this token, so the retry was an empty commit.

The 400% constant is unchanged. One untimed start waits until lock status answers, with QML_DISK_CACHE_PATH set outside the session home so reset_scratch_home keeps the compiled services. The measured starts still get an empty session home.

Verification

  • Before the guard change, bash test/shell.d/polkit-face-test.sh on quattro printed not ok - no QML is loaded from a URL into the polkit windows and exited 1. After, it exits 0. A probe still fails a Loader source: (including one after a nested brace, and one nested inside an Image), setSource(, and FaceScanRing, and still passes an Image source: that follows a nested brace.
  • Quickshell is not installed here, so the offscreen card fixture is skipped, and the lock-budget test was not run locally. pr-shape stops at the same node script. bash -n test/shell.d/lock-appear-budget-test.sh exits 0.
  • bash test/shell.d/test-runner-test.sh exits 0. A 4000-row sort | head under pipefail exits 141; the mapfile form exits 0.
  • CI on b70615530: Tests run 46975106409 all four shards passed on ubuntu-26.04 (1m9s–3m22s). pr-shape run 46975106461 passed.
  • CI on c392ac8af: pr-shape run 46976340466 passed. Tests run 46976340355: noncomp-1, noncomp-2, and comp passed. exclusive failed lock-appear-budget-test.sh as above.
  • CI on 2b8ee3a9d (the cache warmup): Tests run 46978184622 all four shards passed. exclusive finished in 1m37s and lists lock-appear-budget-test.sh at 22.29s. pr-shape run 46978184849 passed.
  • CI on e765fc728 (empty retry of that tree): Tests run 46979206136 all four shards passed. exclusive finished in 1m43s and lists lock-appear-budget-test.sh at 26.07s. pr-shape run 46979205979 passed.
  • i18n-check did not run. Its workflow is path-filtered to i18n, shell, bin, install, and manual paths, and this pull request touches none of them. The quattro ruleset 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.

Open in Web Open in Cursor 

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.

cursoragent and others added 2 commits December 2, 2026 21:20
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread test/shell.d/polkit-face-test.sh Resolved
cursoragent and others added 5 commits December 2, 2026 21:30
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>
@mark-groves
mark-groves merged commit bc5a533 into quattro Dec 2, 2026
7 checks passed
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>
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