mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 03:44:38 +01:00
Windows: a python3 that won't run no longer deletes skills on update, and long test commands fail clearly (#4793)
On Windows, an update no longer deletes your brain-aware skills when `python3` is the Microsoft Store alias, and a pre-ship test command too long for Git Bash is split to fit or refused clearly instead of running cut off. Why: keeps install and upgrade working on Windows, where gstack promises minimal support (#4752 by @Barack-zero-to-one, #4773 by @targetpark). Nothing to do. Co-authored-by: Barack-zero-to-one <121355791+Barack-zero-to-one@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: bin/gstack-config:1335:completeness reader=core Review-Finding: lib/pregate/checks/lanes.ts:457:completeness reader=core Review-Finding: lib/pregate/checks/lanes.ts:442:completeness reader=core Review-Finding: lib/pregate/checks/lanes.ts:456:completeness reader=core
This commit is contained in:
10 files changed
+207
-40
No files matched your search
+2
-1
@@ -490,7 +490,8 @@ Two stages with separate clocks, both printed:
|
||||
`**/*.serial.test.*`) run one process per file after the unit files. A unit
|
||||
group whose quoted file list would pass the system's argument limits (Linux
|
||||
caps one argument at 128 KiB) runs as several runner processes in sequence,
|
||||
each under about 96 KB of file arguments (24 KB on Windows), read back as one run: counts add up,
|
||||
each under about 96 KB of file arguments (on Windows, under the 8,186 characters
|
||||
Git Bash keeps of one argument, #4773), read back as one run: counts add up,
|
||||
any failing chunk fails the lane, and they share the group's one `--timeout`. The
|
||||
runner and every guard run with the verified launch Bun first on PATH: the
|
||||
first of `$BUN_INSTALL/bin` and `~/.bun/bin` whose Bun satisfies gstack's and
|
||||
|
||||
@@ -4894,11 +4894,14 @@ line really pins the old value, so update the golden.
|
||||
the system's limit, so it never ran and no test was counted. Linux caps one
|
||||
argument at 128 KiB and a whole command line plus environment at about 2 MiB,
|
||||
macOS caps the total at 1 MiB, and Windows caps a command line at 32,767
|
||||
characters. The usual trigger is a long file list: thousands of selected test
|
||||
characters. Git Bash on Windows keeps only the first 8,186 characters of a
|
||||
`bash -c` command, so gstack refuses a longer one with `argument list too long
|
||||
for Git Bash` instead of running it cut off (#4773). The usual trigger is a long file list: thousands of selected test
|
||||
files put into one argument.
|
||||
|
||||
**Fix.** gstack keeps file lists out of single arguments: a local lane splits
|
||||
its files into runner processes of about 96 KB each (24 KB on Windows), and
|
||||
its files into runner processes of about 96 KB each (under 8,186 characters on
|
||||
Windows), and
|
||||
the `test_backend` command for the remote gate passes them in a setup script
|
||||
(docs/pregate.md#remote-gate). So this cause is a gstack bug: report it with
|
||||
the `environment:` line and the lane or command it names. Until it is fixed,
|
||||
|
||||
Reference in new issue
Block a user