Tests: assert invalid smoke labels never launch XCL #2734

Open
luckyteagirl wants to merge 1 commit from upstream-pr/2744 into main
luckyteagirl commented 2026-11-26 09:47:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T09:47:00Z.


The smoke-title fixture checked that invalid -Title values throw, but it did not check whether rejection happens before XCL is launched. This is a regression guard for the label handling from #677.

What is in it

  • The stand-in executable writes a launch marker. The fixture clears it after valid runs and requires it to stay absent for every invalid title.
  • Two additional invalid titles cover a directional formatting character (U+202E) and a paragraph separator (U+2029), written as character codes so the fixture stays ASCII for Windows PowerShell 5.1.

Tested

  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts\smoke-title.tests.ps1: smoke-title: ok, exit 0.
  • pwsh -NoProfile -File scripts\smoke-title.tests.ps1: smoke-title: ok, exit 0.
  • git diff --check passed. A disposable negative control that delayed title rejection until after the stand-in launched failed on the new marker assertion.
  • Windows no-GPU CI and PR description checks passed at this head.
  • On Windows 11 26200.9711 with an RX 6800M (driver 30.0.13002.13003), with XCL_ADAPTER=6800M and XCL_REQUIRE_GPU=1, cargo test --workspace -- --test-threads=4 exited 0xc0000005 in the first library test binary after 83 logged passes and 1 ignored. No library summary or later target results were produced. A separate clean-main serial run reproduced an access violation at raw_loads_in_root_windows_respect_exec_and_bounds; the exact four-thread failing test is unproven.

Not tested

  • Retail title smoke. The full GPU suite was attempted but did not complete because of the library access violation; the change is confined to a script fixture.

AI use

  • OpenAI Codex (GPT-6.2 Sol) wrote and ran the fixture and workspace suite; OpenAI Codex (GPT-6.2 Astra) reviewed the diff and repeated both PowerShell runs.
<!-- greyfinch-sync:ivall/xcl:issue:5507689784 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2744). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:47:00Z. --- The smoke-title fixture checked that invalid `-Title` values throw, but it did not check whether rejection happens before XCL is launched. This is a regression guard for the label handling from #677. **What is in it** - The stand-in executable writes a launch marker. The fixture clears it after valid runs and requires it to stay absent for every invalid title. - Two additional invalid titles cover a directional formatting character (U+202E) and a paragraph separator (U+2029), written as character codes so the fixture stays ASCII for Windows PowerShell 5.1. **Tested** - `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts\smoke-title.tests.ps1`: `smoke-title: ok`, exit 0. - `pwsh -NoProfile -File scripts\smoke-title.tests.ps1`: `smoke-title: ok`, exit 0. - `git diff --check` passed. A disposable negative control that delayed title rejection until after the stand-in launched failed on the new marker assertion. - Windows no-GPU CI and PR description checks passed at this head. - On Windows 11 26200.9711 with an RX 6800M (driver 30.0.13002.13003), with `XCL_ADAPTER=6800M` and `XCL_REQUIRE_GPU=1`, `cargo test --workspace -- --test-threads=4` exited `0xc0000005` in the first library test binary after 83 logged passes and 1 ignored. No library summary or later target results were produced. A separate clean-`main` serial run reproduced an access violation at `raw_loads_in_root_windows_respect_exec_and_bounds`; the exact four-thread failing test is unproven. **Not tested** - Retail title smoke. The full GPU suite was attempted but did not complete because of the library access violation; the change is confined to a script fixture. **AI use** - OpenAI Codex (GPT-6.2 Sol) wrote and ran the fixture and workspace suite; OpenAI Codex (GPT-6.2 Astra) reviewed the diff and repeated both PowerShell runs.
github-actions[bot] commented 2026-12-01 02:33:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:39Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298747691 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2744#issuecomment-7298747691). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:33:39Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:52:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:52:01Z.


Triage (#1607) – head a744541

No open or merged PR makes the same change. smoke.ps1 rejects -Title (the \p{Cc}\p{Cf}\p{Zl}\p{Zp} check) before it starts XCL, so the new launch-marker assertion and the U+202E (Cf) and U+2029 (Zp) cases pass on main and guard against a regression. The marker exists from the earlier valid runs, so the Remove-Item before the loop does not throw. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305888686 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2744#issuecomment-7305888686). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:52:01Z. --- **Triage (#1607)** – head a744541 No open or merged PR makes the same change. `smoke.ps1` rejects `-Title` (the `\p{Cc}\p{Cf}\p{Zl}\p{Zp}` check) before it starts XCL, so the new launch-marker assertion and the U+202E (Cf) and U+2029 (Zp) cases pass on main and guard against a regression. The marker exists from the earlier valid runs, so the `Remove-Item` before the loop does not throw. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2744:upstream-pr/2744'
git switch 'upstream-pr/2744'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2744'
git switch 'upstream-pr/2744'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2744'
git switch 'upstream-pr/2744'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2744'
git switch 'main'
git merge --squash 'upstream-pr/2744'
git switch 'main'
git merge --ff-only 'upstream-pr/2744'
git switch 'main'
git merge 'upstream-pr/2744'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2734
No description provided.