Repository navigation
chore(deps): bump github/codeql-action/upload-sarif from 4.37.4 to 4.37.8 - #1
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.37.4 to 4.37.8. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@f205ea1...db488dd) --- updated-dependencies: - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.37.8 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Owner
|
Closing: opened against the pre-detach tree; Dependabot will re-raise against the new lockfile after #4 merges. |
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
dependabot
Bot
deleted the
dependabot/github_actions/github/codeql-action/upload-sarif-4.37.8
branch
August 26, 2026 12:42
This was referenced Oct 5, 2026
allisonmahmood
added a commit
that referenced
this pull request
Oct 30, 2026
## What changed When an agent passed a bad flag with `--json`, `patchy` printed the command's help to stdout before the JSON failure on stderr, so stdout held usage text where an agent expects nothing or a result. A parse error under `--json` now leaves stdout empty: one failure document on stderr, exit 1. Help that is asked for still prints, with or without `--json`. Closes #1072 ## Look at **Where the help came from.** On a parse error, Effect 4.0.5's `Command.runWith` logs the help doc with `Console.log`, then the errors with `Console.error` (`showHelp` in `effect/cli/Command.ts`). An explicit `--help` goes through the same `formatHelpDoc` + `Console.log`, so the formatter alone can't tell the two apart. `formatErrors` has one caller, the invalid-invocation branch, which makes it the signal. **The fix, in `packages/patchy/src/index.ts`.** Under `--json` only: - `formatHelpDoc` holds the help and returns an empty string. A console wrapper skips that lone empty line. - `formatErrors` drops the held help. - When the run ends, any help still held is printed. That covers `--help`, `-h`, and commands without a handler such as bare `patchy` or `patchy auth`. The output is byte-identical to before. Without `--json`, a command's own parse errors still print usage, then the one line. **Two more paths review found.** - **A global flag's own bad value.** For example `--log-level loud` or `--completions nope`. These fail with a raw `InvalidValue` outside Effect's usage path, so the runtime printed an error and stack on stdout, with or without `--json`. The entrypoint now catches that tag and writes it through the same renderer: one line, or one document under `--json`. It exits 1 through `Output.Failed`, which is now exported. - **How `--json` is read before parsing.** It was `argv.includes("--json")`. Now `jsonRequested`, beside `JsonFlag` in `Output.ts`, reads it the way Effect does: the first `--json`, `--json=<b>`, `-json=<b>`, `--json <b>` or `--no-json` before `--` decides, reading past a `--no-json <b>` that Effect refuses. **Docs.** ADR-0004's "Parse errors" bullet now states the contract instead of the exception. `packages/patchy/README.md` says the same in one line. The global `patchy` skill drops its "usage on stdout" warning, since its general failure contract now covers parse errors, and `skills-lock.json` carries the new hash. **Later.** Effect 4.0.7 adds `CliOutput.Presenter`, which receives an `InvalidInvocation` separately from `Help`. Once the Effect bump (#974, then 4.0.7) lands, about ten lines of `Presenter` replace the held-help state. The comment in `index.ts` says so. <!-- patchy-dev:transcript:json-parse-errors --> #### Transcript `json-parse-errors` Before is `e778152` (where this branch left main) and after is `f1841dd` (fix/1072-json-parse-error-stdout), both on the `team` scenario, from `pnpm dev transcript`. Each line ran in its own `bash -c` from the side's agent workspace, as the scenario's signed-in CLI, with stdin closed. Each side's origin reads `<origin>`, its environment folder `<env>`, its checkout `<checkout>` and the home folder `~`; nothing else is normalized. Nothing in it matched a collected secret (each side's CLI state, machine-token and login-code shapes, email addresses outside the scenarios' example domains, secret-named variables, and any accounts the run acts as). 7 of 10 lines changed. ##### Under --json, a bad flag value: stdout **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy init notes --tier 7 --json 2>/dev/null ``` ```diff -DESCRIPTION - Create a patch repo at tier 1 by default, or tier 2 with server handlers. - -USAGE - patchy init [flags] [<dir>] - -ARGUMENTS - dir string Directory for the new repo; defaults to the current directory (optional) - -FLAGS - --tier choice Runtime tier for the new repo; defaults to 1 (choices: 1, 2) - --purpose string What this patch is for; required for agent, --json and non-terminal calls; otherwise prompted - -GLOBAL FLAGS - --help, -h Show help information - --version, -v Show version information - --wizard Start wizard mode for a command - --completions <bash|zsh|fish|powershell|sh|pwsh> Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) - --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) - --json Print the result as one JSON document on stdout - --api-url string The Patchy Cloud instance to talk to (its API base URL) ``` ##### ...and stderr, with its exit code <details><summary><code>$ patchy init notes --tier 7 --json 2>&1 >/dev/null</code>: no change, exit 1 in 0.2 s</summary> ```console $ patchy init notes --tier 7 --json 2>&1 >/dev/null {"ok":false,"error":"Invalid value for flag --tier: \"7\". Expected: \"1\" | \"2\"","kind":"local"} ``` </details> ##### An unknown flag and a missing required flag: stdout **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy publish --bogus --json 2>/dev/null ``` ```diff -DESCRIPTION - Publish the current patch repo, or a single self-contained HTML file. - -USAGE - patchy publish [flags] [<file>] - -ARGUMENTS - file string HTML file path (optional) - -FLAGS - --name string Set the patch's name in its company - --patch string Update an existing patch only; never creates a patch - --share choice Who can open the patch: your company or anyone with the link (choices: company, public) - --description string Set the description when publishing an HTML file - --force Accept the reported dependant or source breakage; ask the person first - --new Always create a new patch - -GLOBAL FLAGS - --help, -h Show help information - --version, -v Show version information - --wizard Start wizard mode for a command - --completions <bash|zsh|fish|powershell|sh|pwsh> Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) - --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) - --json Print the result as one JSON document on stdout - --api-url string The Patchy Cloud instance to talk to (its API base URL) ``` **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy look publish ./x --json 2>/dev/null ``` ```diff -DESCRIPTION - Admins: publish a look folder (look.css, LOOK.md, optional logo.svg) as the company's next revision. - -USAGE - patchy look publish [flags] <dir> - -ARGUMENTS - dir string The look folder to publish - -FLAGS - --note string Why this revision, such as darker green (required) - -GLOBAL FLAGS - --help, -h Show help information - --version, -v Show version information - --wizard Start wizard mode for a command - --completions <bash|zsh|fish|powershell|sh|pwsh> Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) - --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) - --json Print the result as one JSON document on stdout - --api-url string The Patchy Cloud instance to talk to (its API base URL) ``` ##### Effect's other spellings of the flag count too **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy init notes --tier 7 --json=true 2>/dev/null ``` ```diff -DESCRIPTION - Create a patch repo at tier 1 by default, or tier 2 with server handlers. - -USAGE - patchy init [flags] [<dir>] - -ARGUMENTS - dir string Directory for the new repo; defaults to the current directory (optional) - -FLAGS - --tier choice Runtime tier for the new repo; defaults to 1 (choices: 1, 2) - --purpose string What this patch is for; required for agent, --json and non-terminal calls; otherwise prompted - -GLOBAL FLAGS - --help, -h Show help information - --version, -v Show version information - --wizard Start wizard mode for a command - --completions <bash|zsh|fish|powershell|sh|pwsh> Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) - --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) - --json Print the result as one JSON document on stdout - --api-url string The Patchy Cloud instance to talk to (its API base URL) ``` **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy init notes --tier 7 -json=true 2>/dev/null ``` ```diff -DESCRIPTION - Create a patch repo at tier 1 by default, or tier 2 with server handlers. - -USAGE - patchy init [flags] [<dir>] - -ARGUMENTS - dir string Directory for the new repo; defaults to the current directory (optional) - -FLAGS - --tier choice Runtime tier for the new repo; defaults to 1 (choices: 1, 2) - --purpose string What this patch is for; required for agent, --json and non-terminal calls; otherwise prompted - -GLOBAL FLAGS - --help, -h Show help information - --version, -v Show version information - --wizard Start wizard mode for a command - --completions <bash|zsh|fish|powershell|sh|pwsh> Print shell completion script (choices: bash, zsh, fish, powershell, sh, pwsh) - --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) - --json Print the result as one JSON document on stdout - --api-url string The Patchy Cloud instance to talk to (its API base URL) ``` ##### A global flag's bad value, with and without --json: stdout, then stderr **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy whoami --log-level loud --json 2>/dev/null ``` ```diff -[00:51:45.914] ERROR (#1): ~effect/cli/CliError/InvalidValue: Invalid value for flag --log-level: "loud". Expected: "all" | "trace" | "debug" | "info" | "warn" | "warning" | "error" | "fatal" | "none" - at file://<env>/cli/node_modules/patchy/dist/index.js:63778:73 - at file://<env>/cli/node_modules/patchy/dist/index.js:4003:95 ``` **Changed.** Before, exit 1 in 0.2 s; after, exit 1 in 0.2 s. ```console $ patchy whoami --log-level loud 2>&1 >/dev/null Invalid value for flag --log-level: "loud". Expected: "all" | "trace" | "debug" | "info" | "warn" | "warning" | "error" | "fatal" | "none" ``` ```diff +Invalid value for flag --log-level: "loud". Expected: "all" | "trace" | "debug" | "info" | "warn" | "warning" | "error" | "fatal" | "none" ``` ##### Help asked for under --json still prints <details><summary><code>$ patchy init --help --json | head -4</code>: no change, exit 0 in 0.2 s</summary> ```console $ patchy init --help --json | head -4 DESCRIPTION Create a patch repo at tier 1 by default, or tier 2 with server handlers. USAGE ``` </details> ##### Without --json, usage still prints before the one-line error <details><summary><code>$ patchy init notes --tier 7 2>&1 | tail -4</code>: no change, exit 0 in 0.2 s</summary> ```console $ patchy init notes --tier 7 2>&1 | tail -4 --log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) --json Print the result as one JSON document on stdout --api-url string The Patchy Cloud instance to talk to (its API base URL) Invalid value for flag --tier: "7". Expected: "1" | "2" ``` </details> <!-- /patchy-dev:transcript:json-parse-errors --> ## How it was verified - **The focused test.** `cli.test.ts` › help › "under --json, a parse error is one document on stderr, and help still prints" covers: - a bad value, under `--json`, `--json=true` and `-json=true` - an unknown flag, a missing flag and a missing argument - `--log-level loud` Each must have empty stdout and exactly one document line on stderr. With `--no-json`, the text error and usage must be back, and `--log-level loud` without `--json` must be one stderr line. `init --help --json` and `auth --json` must print the same stdout as without `--json`. It fails against main's `index.ts` (21 lines of help on stdout) and passes with the fix. - **The old assertion.** `cliRepoPublish.test.ts` asserted the old help on stdout for `init --tier 0 --json`. It now asserts empty stdout. - **Review.** Three GPT 6.1 Sol (xhigh) passes. Every finding is fixed in the later commits: global flag values, the `--json=true` and `-json=true` spellings, a refused `--no-json false` before `-json=true`, and `catchTag` → `catchTags`. - **Checks.** `pnpm check` format, lint, typecheck and synth pass, and `pnpm typecheck` is 24/24. On this shared dev machine, offline CLI stub-server tests failed in a rotating set from the host's stray `GET /` probes. Each either passes when run alone or fails the same way with main's `index.ts`. CI decides. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Under `--json`, a parse error's stdout loses the help text that nothing read as a result. Without `--json`, a global flag's bad value is one stderr line instead of a stack on stdout. Exit codes are unchanged. - **What does a revert leave behind?** Nothing: no schema, data or wire change. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 Code. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood
added a commit
that referenced
this pull request
Nov 14, 2026
…1445) ## What changed The `server-image` job sometimes failed at the smoke's exec step: the supervisor couldn't listen on the management port the script picked for it, because something else held it by then (#1443). The supervisor now binds a port of its own, as local tasks already do. Closes #1443 ## Look at `scripts/server-image-smoke.mjs`, step 4. `freePort()` bound `127.0.0.1:0`, closed it, and handed the number to the exec container, which binds it about 400 ms later: ``` [image-smoke] smoke-host-a exited 130 105 ms after SIGTERM --- smoke-exec ERROR (#1): ListenerUnavailable: Execution management could not listen on 127.0.0.1:39545. [cause]: Error: Failed to start server. Is port 39545 in use? ``` That's 2 of about 880 runs since 1 November that reached the step. The smoke never calls the management API, so `EXECUTION_MANAGEMENT_PORT` is now `0`. With port 0, the image's supervisor reports what it bound: ``` Patchy execution supervisor listening on http://127.0.0.1:37705 ``` I could not find which process took the port on the runner. The supervisor's own proxy binds port 0 just before management and could get it, but at about 1 in 7,000 per run that is unlikely. Survivors of the stopped hosts, the sockets they leave, and client connections are ruled out (#1443). Port 0 closes the gap whatever took it. The step also waits for the supervisor's "listening on" line now. Before, it passed once the supervisor and its standby workerd were running: a supervisor that failed to listen after that exited 1, and `stop()` accepts any exit but 137. The hosts' ports and callback ports keep `freePort()`. The callbacks must be known before either host starts, and that step never failed. ## How it was verified - The edited script passed locally against the image built by the failing run (`server-image-linux-amd64` from run 43508394544), every step through `[image-smoke] passed`: ``` [image-smoke] the exec supervisor runs as root, listens on http://127.0.0.1:41689 and runs workerd as uid 60000 ``` - The `server-image` job runs it on this PR. - Not shown: the flake not coming back. It hit about 1 in 440 runs, so only time shows that. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required CI script only. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. --- Diagnosed and fixed by Claude Opus 5.5 in Claude Code (T3 Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps github/codeql-action/upload-sarif from 4.37.4 to 4.37.8.
Release notes
Sourced from github/codeql-action/upload-sarif's releases.
Changelog
Sourced from github/codeql-action/upload-sarif's changelog.
... (truncated)
Commits
db488ddMerge pull request #4102 from github/update-v4.37.8-9ee088e131845f5bUpdate changelog for v4.37.89ee088eMerge pull request #4080 from github/henrymercer/studious-giggle1aef003Address review feedback on overlay disk flags508b83bMerge main into overlay minimum disk feature branchd97b342Merge pull request #4098 from github/mbg/permission-error-as-configuration-error47fa622MakeEACCESaConfigurationError45693ccRefactorENOSPCcheck intoisDiskConfigurationErrorfunctionc2fd8f5Merge pull request #4081 from github/mario-campos/version-cache-to-diskc56f48eLog unexpected conditions during caching CLI outputDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)