Tests: assert invalid smoke labels never launch XCL #2744

Open
github-bot wants to merge 1 commit from github-bot/gh-2744 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 09:47 UTC · original
luckyteagirl:codex/smoke-title-prelaunch → main · +6 −2 · 1 files · 1 commits · draft

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.
**@⁠luckyteagirl** on GitHub · 2026-11-26 09:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2744) `luckyteagirl:codex/smoke-title-prelaunch` → `main` · +6 −2 · 1 files · 1 commits · draft 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.
The smoke-title fixture previously checked only that bad labels throw.
Have the stand-in executable leave a marker, then assert rejected
labels leave it absent. Cover a directional formatting character and a
paragraph separator alongside the existing invalid-label cases.

Windows PowerShell 5.1 and PowerShell 7 fixtures passed. A disposable
negative control that delayed validation until after launch failed on
the new marker assertion, confirming that it checks launch order.

Assisted-by: Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:14:36 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2744/head:github-bot/gh-2744'
git switch 'github-bot/gh-2744'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2744'
git switch 'github-bot/gh-2744'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2744'
git switch 'github-bot/gh-2744'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2744'
git switch 'main'
git merge --squash 'github-bot/gh-2744'
git switch 'main'
git merge --ff-only 'github-bot/gh-2744'
git switch 'main'
git merge 'github-bot/gh-2744'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.