Scripts, Docs: test.ps1 -Brief and context guidance for agents #1466

Open
zohaiblazuli wants to merge 2 commits from upstream-pr/1476 into main
zohaiblazuli commented 2026-11-24 16:40:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zohaiblazuli on 2026-11-24T16:40:24Z.


Agents working on XCL run out of context and usage limits fast, even on small tasks. The biggest single drain I measured is the test suite: one full run prints 1 354 lines (108 KB, ~27 000 tokens), 811 of them passing test names, and an agent reads all of it back every time it runs the suite. With .\scripts\test.ps1 -Brief the same run prints 3 lines (352 bytes) with the same counts. The full output still goes to a file, and a failure still prints its whole failures: section, so nothing an agent needs is lost.

The rest is guidance for the other floods, all measured on main: HANDOFF.md is 190 KB, which one default read takes in whole; nine files under crates/ are over 100 KB; rdna2_spec.rs has ~600-character lines that flood even a grep; one xcl run writes a 1.2 MB xcl.log. CLAUDE.md also stops importing CONTRIBUTING.md into every Claude Code session (~3 200 tokens each time): AGENTS.md, its short version, is still imported, and CLAUDE.md says to read CONTRIBUTING.md before committing or writing a PR description. No runtime change.

What is in it

  • scripts/test.ps1: -Brief writes every line to $env:XCL_TEST_LOG, else <target dir>\test-output.txt. The console gets the build errors (only when the build fails), the failures: section, the GPU skip summary, and passed / failed / ignored summed over the test binaries. Without -Brief nothing changes.
  • scripts/test-brief.tests.ps1: runs -Brief against a fake Cargo (like test-native-stderr.tests.ps1). It checks that the console keeps the panic, the skip summary and the summed counts but not the passing tests or build progress, and that the log keeps every line.
  • AGENTS.md: the test commands use -Brief; a short "Keeping your context small" section.
  • CLAUDE.md: imports AGENTS.md only and says when to read CONTRIBUTING.md.

Tested

  • NVIDIA GeForce RTX 3060 (driver 32.0.16.1742), Intel Core i5-14600K, Windows 11 build 26300, rustc 1.94.0 MSVC, debug, Windows PowerShell 5.1.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on main 930e8b4: 751 passed, 0 failed, 41 ignored (19 test binaries); 1 354 lines, 107 901 bytes of output.
  • scripts/test.ps1 -Brief on this PR's head f42aaff: 751 passed, 0 failed, 41 ignored (19 test binaries), exit 0; 3 lines, 352 bytes on the console; the log holds 1 300 lines.
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).
  • scripts/test-brief.tests.ps1 passes, and fails against main's test.ps1; scripts/test-native-stderr.tests.ps1 still passes.

Not tested

  • -Brief under PowerShell 7 (pwsh, not installed here), and a real build failure or test failure through -Brief (only the fake Cargo's).
  • How much the AGENTS.md guidance saves depends on the task; only the test output and the CONTRIBUTING.md import were measured.
  • AMD GPUs; macOS / Linux (not built).

AI use

  • Claude Code (Claude Opus 5.5) measured the output and file sizes, wrote the script change, its test and the docs, ran the tests, and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5476363608 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476). Originally posted by [zohaiblazuli](https://github.com/zohaiblazuli) on 2026-11-24T16:40:24Z. --- Agents working on XCL run out of context and usage limits fast, even on small tasks. The biggest single drain I measured is the test suite: one full run prints **1 354 lines (108 KB, ~27 000 tokens)**, 811 of them passing test names, and an agent reads all of it back every time it runs the suite. With `.\scripts\test.ps1 -Brief` the same run prints **3 lines (352 bytes)** with the same counts. The full output still goes to a file, and a failure still prints its whole `failures:` section, so nothing an agent needs is lost. The rest is guidance for the other floods, all measured on `main`: `HANDOFF.md` is 190 KB, which one default read takes in whole; nine files under `crates/` are over 100 KB; `rdna2_spec.rs` has ~600-character lines that flood even a `grep`; one `xcl run` writes a 1.2 MB `xcl.log`. `CLAUDE.md` also stops importing `CONTRIBUTING.md` into every Claude Code session (~3 200 tokens each time): `AGENTS.md`, its short version, is still imported, and `CLAUDE.md` says to read `CONTRIBUTING.md` before committing or writing a PR description. No runtime change. **What is in it** - `scripts/test.ps1`: `-Brief` writes every line to `$env:XCL_TEST_LOG`, else `<target dir>\test-output.txt`. The console gets the build errors (only when the build fails), the `failures:` section, the GPU skip summary, and passed / failed / ignored summed over the test binaries. Without `-Brief` nothing changes. - `scripts/test-brief.tests.ps1`: runs `-Brief` against a fake Cargo (like `test-native-stderr.tests.ps1`). It checks that the console keeps the panic, the skip summary and the summed counts but not the passing tests or build progress, and that the log keeps every line. - `AGENTS.md`: the test commands use `-Brief`; a short "Keeping your context small" section. - `CLAUDE.md`: imports `AGENTS.md` only and says when to read `CONTRIBUTING.md`. **Tested** - NVIDIA GeForce RTX 3060 (driver 32.0.16.1742), Intel Core i5-14600K, Windows 11 build 26300, rustc 1.94.0 MSVC, debug, Windows PowerShell 5.1. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `main` `930e8b4`: 751 passed, 0 failed, 41 ignored (19 test binaries); 1 354 lines, 107 901 bytes of output. - `scripts/test.ps1 -Brief` on this PR's head `f42aaff`: 751 passed, 0 failed, 41 ignored (19 test binaries), exit 0; 3 lines, 352 bytes on the console; the log holds 1 300 lines. - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). - `scripts/test-brief.tests.ps1` passes, and fails against `main`'s `test.ps1`; `scripts/test-native-stderr.tests.ps1` still passes. **Not tested** - `-Brief` under PowerShell 7 (`pwsh`, not installed here), and a real build failure or test failure through `-Brief` (only the fake Cargo's). - How much the `AGENTS.md` guidance saves depends on the task; only the test output and the `CONTRIBUTING.md` import were measured. - AMD GPUs; macOS / Linux (not built). **AI use** - Claude Code (Claude Opus 5.5) measured the output and file sizes, wrote the script change, its test and the docs, ran the tests, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
futurepro62 commented 2026-11-24 17:06:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T16:52:46Z.


Script check for this PR, since it has no test report yet. Tested exact head f42aaff.

Tested

  • Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • powershell.exe -NoProfile -File scripts/test-brief.tests.ps1 at the head: exit 0.
  • The same test file against main's test.ps1: exit 1. full.txt is never written (Cannot find path ...\full.txt), so the test does catch the missing -Brief log on main.

Not tested

  • test.ps1 -Brief against the real cargo test run. The test uses its fake Cargo only.
  • PowerShell 7.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7138347917 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1476#issuecomment-7138347917). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T16:52:46Z. --- Script check for this PR, since it has no test report yet. Tested exact head `f42aaff`. **Tested** - Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `powershell.exe -NoProfile -File scripts/test-brief.tests.ps1` at the head: **exit 0**. - The same test file against `main`'s `test.ps1`: **exit 1**. `full.txt` is never written (`Cannot find path ...\full.txt`), so the test does catch the missing `-Brief` log on `main`. **Not tested** - `test.ps1 -Brief` against the real `cargo test` run. The test uses its fake Cargo only. - PowerShell 7. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
nnonno91 commented 2026-11-24 17:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T17:01:45Z.


Independent PowerShell 7 and real Cargo failure checks on f42aaff0f81b02c0f5655b7c985ab0e32aff7e38.

Tested

  • Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. pwsh -NoProfile -File scripts/test.ps1 -Brief with XCL_ADAPTER='AMD Radeon' exited 0 with 751 passed, 0 failed, 41 ignored across 19 test binaries and no SKIPPED GPU messages. The bundled test title passed. The capture had 2 console lines and 1,564 lines in $env:CARGO_TARGET_DIR/test-output.txt. I independently summed the test results in the log and got the same counts.
  • pwsh -NoProfile -File scripts/test-brief.tests.ps1 and pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1 each exited 0 on PowerShell 7.6.9.
  • I copied scripts/test.ps1 byte-for-byte into a temporary Rust crate and ran it with -Brief and an explicit XCL_TEST_LOG under PowerShell 7.6.9 and Windows PowerShell 5.1.26100.9818. On each shell, a deliberate panic gave exit 101 and showed the panic and totals (1 passed, 1 failed, 1 ignored). The passing test's line stayed in the log. A separate deliberate Rust type error gave exit 101 and showed the build diagnostic on the console and in the log. Cargo stopped before the test stage. The 5.1 fixture used -ExecutionPolicy RemoteSigned for the test process.

Not tested

Retail titles and optional game-data fixtures. The full workspace run was on PowerShell 7. The intentional failures used the standalone crate.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) created the temporary fixture, ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7138575028 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7138575028). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-24T17:01:45Z. --- Independent PowerShell 7 and real Cargo failure checks on `f42aaff0f81b02c0f5655b7c985ab0e32aff7e38`. **Tested** - Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. `pwsh -NoProfile -File scripts/test.ps1 -Brief` with `XCL_ADAPTER='AMD Radeon'` exited 0 with 751 passed, 0 failed, 41 ignored across 19 test binaries and no `SKIPPED` GPU messages. The bundled test title passed. The capture had 2 console lines and 1,564 lines in `$env:CARGO_TARGET_DIR/test-output.txt`. I independently summed the test results in the log and got the same counts. - `pwsh -NoProfile -File scripts/test-brief.tests.ps1` and `pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1` each exited 0 on PowerShell 7.6.9. - I copied `scripts/test.ps1` byte-for-byte into a temporary Rust crate and ran it with `-Brief` and an explicit `XCL_TEST_LOG` under PowerShell 7.6.9 and Windows PowerShell 5.1.26100.9818. On each shell, a deliberate panic gave exit 101 and showed the panic and totals (1 passed, 1 failed, 1 ignored). The passing test's line stayed in the log. A separate deliberate Rust type error gave exit 101 and showed the build diagnostic on the console and in the log. Cargo stopped before the test stage. The 5.1 fixture used `-ExecutionPolicy RemoteSigned` for the test process. **Not tested** Retail titles and optional game-data fixtures. The full workspace run was on PowerShell 7. The intentional failures used the standalone crate. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) created the temporary fixture, ran the tests and drafted this report.
zohaiblazuli commented 2026-11-24 17:06:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zohaiblazuli on 2026-11-24T17:05:53Z.


"Claude check this PR and leave a comment" you both didn't check shit, donate your agent tokens to someone more useful fucking useless cunts

<!-- greyfinch-sync:ivall/xcl:comment:7138680503 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7138680503). Originally posted by [zohaiblazuli](https://github.com/zohaiblazuli) on 2026-11-24T17:05:53Z. --- "Claude check this PR and leave a comment" you both didn't check shit, donate your agent tokens to someone more useful fucking useless cunts
DavidM1911 commented 2026-11-24 19:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:15Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7141291287 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7141291287). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T18:53:15Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
NemesisDawn commented 2026-11-24 20:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T19:14:20Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:ivall/xcl:review:6045684844 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#pullrequestreview-6045684844). Originally posted by [NemesisDawn](https://github.com/NemesisDawn) on 2026-11-24T19:14:20Z. **Review:** COMMENTED --- _No description provided._
NemesisDawn commented 2026-11-24 21:09:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T19:12:51Z.

Code review location: scripts/test.ps1; line 17

@@ -1,26 +1,73 @@
 # Build everything (the e2e test needs the test title + DLL) and run all tests.
 # Arguments go to the test binaries (after `--`), e.g. `.\scripts\test.ps1 --skip <name>`.
+# `-Brief`: the whole output goes to a file (`$env:XCL_TEST_LOG`, else `<target dir>\test-output.txt`);
+# the console gets build errors, the failures section, the skip summary and the summed counts.
 $ErrorActionPreference = 'Stop'
 Set-Location (Join-Path $PSScriptRoot '..')
+$brief = $args -contains '-Brief'
+$rest = @($args | Where-Object { $_ -ne '-Brief' })
+$log = $null
+if ($brief) {
+    $logPath = $env:XCL_TEST_LOG
+    if (-not $logPath) {
+        $targetDir = if ($env:CARGO_TARGET_DIR) { $env:CARGO_TARGET_DIR } else { 'target' }
+        $null = New-Item -ItemType Directory -Force -Path $targetDir
+        $logPath = Join-Path (Resolve-Path $targetDir) 'test-output.txt'
+    }
+    $log = New-Object IO.StreamWriter($logPath, $false, (New-Object Text.UTF8Encoding($false)))

When test.ps1 -Brief is launched from outside the checkout, a relative XCL_TEST_LOG is opened relative to the folder PowerShell started in. If the log directory exists only in the checkout, StreamWriter throws before Cargo starts. Resolving the path after Set-Location makes it relative to the checkout root.

    $logPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($logPath)
    $log = New-Object IO.StreamWriter($logPath, $false, (New-Object Text.UTF8Encoding($false)))

On f42aaff, a regression test failed before this fix and passed afterward on Windows PowerShell 5.1 and PowerShell 7. A separate run with a small Cargo workspace confirmed that the script built, ran its tests, and wrote the log under the checkout on both shells.

AI use: OpenAI Codex (GPT-6, exact variant unavailable) reproduced the bug, wrote the fix and regression test, and ran the checks.

<!-- greyfinch-sync:ivall/xcl:review-comment:4685196731 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#discussion_r4685196731). Originally posted by [NemesisDawn](https://github.com/NemesisDawn) on 2026-11-24T19:12:51Z. **Code review location:** `scripts/test.ps1`; line 17 ~~~~diff @@ -1,26 +1,73 @@ # Build everything (the e2e test needs the test title + DLL) and run all tests. # Arguments go to the test binaries (after `--`), e.g. `.\scripts\test.ps1 --skip <name>`. +# `-Brief`: the whole output goes to a file (`$env:XCL_TEST_LOG`, else `<target dir>\test-output.txt`); +# the console gets build errors, the failures section, the skip summary and the summed counts. $ErrorActionPreference = 'Stop' Set-Location (Join-Path $PSScriptRoot '..') +$brief = $args -contains '-Brief' +$rest = @($args | Where-Object { $_ -ne '-Brief' }) +$log = $null +if ($brief) { + $logPath = $env:XCL_TEST_LOG + if (-not $logPath) { + $targetDir = if ($env:CARGO_TARGET_DIR) { $env:CARGO_TARGET_DIR } else { 'target' } + $null = New-Item -ItemType Directory -Force -Path $targetDir + $logPath = Join-Path (Resolve-Path $targetDir) 'test-output.txt' + } + $log = New-Object IO.StreamWriter($logPath, $false, (New-Object Text.UTF8Encoding($false))) ~~~~ --- When `test.ps1 -Brief` is launched from outside the checkout, a relative `XCL_TEST_LOG` is opened relative to the folder PowerShell started in. If the log directory exists only in the checkout, `StreamWriter` throws before Cargo starts. Resolving the path after `Set-Location` makes it relative to the checkout root. ```suggestion $logPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($logPath) $log = New-Object IO.StreamWriter($logPath, $false, (New-Object Text.UTF8Encoding($false))) ``` On `f42aaff`, a regression test failed before this fix and passed afterward on Windows PowerShell 5.1 and PowerShell 7. A separate run with a small Cargo workspace confirmed that the script built, ran its tests, and wrote the log under the checkout on both shells. AI use: OpenAI Codex (GPT-6, exact variant unavailable) reproduced the bug, wrote the fix and regression test, and ran the checks.
JJAutoCompare commented 2026-11-25 06:05:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:26:29Z.


Empirical test report (f42aaff0)

Verified PR #1476 at f42aaff0f81b02c0f5655b7c985ab0e32aff7e38.

Hardware / environment

Windows x64 build 26200, AMD Family 23 Model 113 CPU, Windows PowerShell 5.1.26100.9818. rustc --version reported 1.100.0 (0ef1bc386 2026-11-09) and dxc.exe --version reported 1.9.2609.5 (01b62ad47). The harness ran outside the Arc GPU wrapper with XCL_ADAPTER=NONE_CPU_ONLY and a temporary cargo.cmd first on PATH.

Commands and results

Invoked powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/test.ps1 with these argument lists and fixture outputs.

Arguments Fixture Exit
-Brief --exact area::passes_one Successful build and test 0
-Brief Mixed results across two test binaries 101
-Brief Build failure 17
-Brief Cargo test startup failure 29
(none) Mixed results across two test binaries 101
(none) Successful build and test 0
(none) Build failure 17

32 verification assertions passed, 0 failed, 0 ignored, 0 skipped. These counts are for the synthetic harness.

Observed behavior

  • Brief success stripped -Brief, forwarded --exact area::passes_one to libtest, and logged build progress and passing test names to <CARGO_TARGET_DIR>/test-output.txt. The console showed 1 passed, 0 failed, 0 ignored.
  • Brief mixed output honored XCL_TEST_LOG. It printed the panic, Cargo error, totals of 5 passed, 1 failed, 4 ignored, and a grouped summary for three synthetic GPU skips. Default mode streamed the raw output and grouped skips without producing a Brief log.
  • Brief build failure printed 200 diagnostic lines beginning at the first error, kept the remaining lines in the log, and skipped the test command. The startup error printed zero test counts and preserved exit 29.

Not tested

Real Cargo build and test execution, the full GPU workspace suite, and game smoke runs were omitted. The wrapper has no -Filter or -Package switch.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1476-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7153774402 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7153774402). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:26:29Z. --- ### Empirical test report (f42aaff0) Verified PR #1476 at `f42aaff0f81b02c0f5655b7c985ab0e32aff7e38`. **Hardware / environment** Windows x64 build 26200, AMD Family 23 Model 113 CPU, Windows PowerShell 5.1.26100.9818. `rustc --version` reported 1.100.0 (0ef1bc386 2026-11-09) and `dxc.exe --version` reported 1.9.2609.5 (01b62ad47). The harness ran outside the Arc GPU wrapper with `XCL_ADAPTER=NONE_CPU_ONLY` and a temporary `cargo.cmd` first on `PATH`. **Commands and results** Invoked `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/test.ps1` with these argument lists and fixture outputs. | Arguments | Fixture | Exit | | --- | --- | ---: | | `-Brief --exact area::passes_one` | Successful build and test | 0 | | `-Brief` | Mixed results across two test binaries | 101 | | `-Brief` | Build failure | 17 | | `-Brief` | Cargo test startup failure | 29 | | (none) | Mixed results across two test binaries | 101 | | (none) | Successful build and test | 0 | | (none) | Build failure | 17 | 32 verification assertions passed, 0 failed, 0 ignored, 0 skipped. These counts are for the synthetic harness. **Observed behavior** - Brief success stripped `-Brief`, forwarded `--exact area::passes_one` to libtest, and logged build progress and passing test names to `<CARGO_TARGET_DIR>/test-output.txt`. The console showed 1 passed, 0 failed, 0 ignored. - Brief mixed output honored `XCL_TEST_LOG`. It printed the panic, Cargo error, totals of 5 passed, 1 failed, 4 ignored, and a grouped summary for three synthetic GPU skips. Default mode streamed the raw output and grouped skips without producing a Brief log. - Brief build failure printed 200 diagnostic lines beginning at the first error, kept the remaining lines in the log, and skipped the test command. The startup error printed zero test counts and preserved exit 29. **Not tested** Real Cargo build and test execution, the full GPU workspace suite, and game smoke runs were omitted. The wrapper has no `-Filter` or `-Package` switch. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1476-focused.log` and published.
RavenCurseBurg commented 2026-11-25 20:08:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T20:05:23Z.


Tested on f42aaff0f81b02c0f5655b7c985ab0e32aff7e38. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9.

With an absolute XCL_TEST_LOG pointing at a 32-byte UTF-8 log and a process-local PATH pointing at an empty directory, scripts/test.ps1 -Brief exited 1 for missing Cargo and left the log at 0 bytes in both shells. After adding a tiny cargo.cmd to that directory, the next run exited 0, replaced the log and reported the fixture’s one passing test.

The candidate fix and regression test check for Cargo before opening the log. The same preflight now leaves all 32 bytes intact on both shells. The successful retry still replaces the log. The new assertion failed against the PR head in each shell.

On the candidate, powershell.exe and pwsh.exe each ran -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/test-brief.tests.ps1 and -File scripts/test-native-stderr.tests.ps1. All four invocations passed, including propagation of the mock Cargo test failure (exit 101).

Not tested — Real Cargo builds, the Rust workspace suite, games or GPU execution. OpenAI Codex (GPT-6) reproduced the failure, wrote and tested the candidate and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7173175358 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7173175358). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T20:05:23Z. --- **Tested** on `f42aaff0f81b02c0f5655b7c985ab0e32aff7e38`. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9. With an absolute `XCL_TEST_LOG` pointing at a 32-byte UTF-8 log and a process-local `PATH` pointing at an empty directory, `scripts/test.ps1 -Brief` exited 1 for missing Cargo and left the log at **0 bytes** in both shells. After adding a tiny `cargo.cmd` to that directory, the next run exited 0, replaced the log and reported the fixture’s one passing test. The [candidate fix and regression test](https://github.com/RavenCurseBurg/xcl/commit/0adb42afccbc2acdef66403d2d52313a35b8b8e9) check for Cargo before opening the log. The same preflight now leaves all 32 bytes intact on both shells. The successful retry still replaces the log. The new assertion failed against the PR head in each shell. On the candidate, `powershell.exe` and `pwsh.exe` each ran `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/test-brief.tests.ps1` and `-File scripts/test-native-stderr.tests.ps1`. All four invocations passed, including propagation of the mock Cargo test failure (exit 101). **Not tested** — Real Cargo builds, the Rust workspace suite, games or GPU execution. OpenAI Codex (GPT-6) reproduced the failure, wrote and tested the candidate and prepared this report.
RavenCurseBurg commented 2026-11-28 04:34:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-28T04:34:29Z.


Following up on the brief-log fixture I contributed here. Main now runs a benchmark smoke stage between build and test, which conflicts in scripts/test.ps1. I prepared a scripts-only integration candidate against e429936c.

The candidate checks that Cargo exists before opening the log. Brief mode sends successful benchmark output to the log and reports a failed benchmark on the console, preserves its exit code and stops before starting the tests. The normal mode also runs the benchmark smoke stage.

I ran scripts/test-brief.tests.ps1 and scripts/test-native-stderr.tests.ps1 with fake Cargo on Windows PowerShell 5.1 and PowerShell 7. All four runs passed. Both shells rejected controls that opened the log before the Cargo check or continued after the benchmark failed. git diff --check passed. No real Cargo, GPU or title run.

AI use — OpenAI Codex (GPT-6) prepared the integration and ran the fixtures.

<!-- greyfinch-sync:ivall/xcl:comment:7234125753 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7234125753). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-28T04:34:29Z. --- Following up on the brief-log fixture I contributed here. Main now runs a benchmark smoke stage between build and test, which conflicts in `scripts/test.ps1`. I prepared a [scripts-only integration candidate](https://github.com/RavenCurseBurg/xcl/commit/fd755c93f5d0fd303236ed80d280b4c4debb436b) against `e429936c`. The candidate checks that Cargo exists before opening the log. Brief mode sends successful benchmark output to the log and reports a failed benchmark on the console, preserves its exit code and stops before starting the tests. The normal mode also runs the benchmark smoke stage. I ran `scripts/test-brief.tests.ps1` and `scripts/test-native-stderr.tests.ps1` with fake Cargo on Windows PowerShell 5.1 and PowerShell 7. All four runs passed. Both shells rejected controls that opened the log before the Cargo check or continued after the benchmark failed. `git diff --check` passed. No real Cargo, GPU or title run. AI use — OpenAI Codex (GPT-6) prepared the integration and ran the fixtures.
Foniass commented 2026-12-01 05:53:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:53:18Z.


Triage (#1607) – head f42aaff

No open or merged PR adds test.ps1 -Brief or this context guidance. The PR conflicts with main: CLAUDE.md / AGENTS.md have since changed, and CLAUDE.md now also loads TESTING.md.
The CLAUDE.md change removes @CONTRIBUTING.md from what Claude Code loads, which is a policy change beyond the title. The PR also has two parts that could be separate PRs: the script flag and the docs guidance. No bug found in the -Brief parsing of test result: / failures: / SKIPPED lines.

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:7302244796 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1476#issuecomment-7302244796). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:53:18Z. --- **Triage (#1607)** – head f42aaff No open or merged PR adds `test.ps1 -Brief` or this context guidance. The PR conflicts with main: `CLAUDE.md` / `AGENTS.md` have since changed, and `CLAUDE.md` now also loads `TESTING.md`. The `CLAUDE.md` change removes `@CONTRIBUTING.md` from what Claude Code loads, which is a policy change beyond the title. The PR also has two parts that could be separate PRs: the script flag and the docs guidance. No bug found in the `-Brief` parsing of `test result:` / `failures:` / `SKIPPED` lines. 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/1476:upstream-pr/1476'
git switch 'upstream-pr/1476'

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/1476'
git switch 'upstream-pr/1476'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1476'
git switch 'upstream-pr/1476'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1476'
git switch 'main'
git merge --squash 'upstream-pr/1476'
git switch 'main'
git merge --ff-only 'upstream-pr/1476'
git switch 'main'
git merge 'upstream-pr/1476'
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!1466
No description provided.