Skip to content

chore: drop a dead stdout allowlist entry and correct two stale docs - #4910

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-45340530290-docs
Nov 24, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-45340530290-docs

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Three small corrections found in the nightly survey. None changes behavior.

  • tests/integration_tests/output_system_guard.rs: removes commands/worktree/switch.rs from STDOUT_ALLOWED_PATHS. The file has no println!/print!, and its --format=json output goes through print_json in output/json.rs, which has its own entry. The guard's docs warn that a leftover entry silently pre-approves stdout writes, and allowlisted_paths_still_exist only checks that the file exists.
  • src/git/repository/working_tree.rs: the TempIndex doc listed "the callers", but the list had gone stale: it missed wt step squash --dry-run, the wt remove --force backup and write_index_tree. It now gives two examples and points at WorkingTree::temp_index's callers for the full list, so it can't go stale again.
  • tests/integration_tests/packaged_assets.rs: the module doc named gemini-extension.json as embedded at compile time. Nothing under src/ embeds it. The embedded files are dev/*.example.toml and the dev/*.ts agent plugins. (The flake_covers doc correctly mentions it, because the flake's source filter keeps it.)

output_system_guard and packaged_assets pass locally.

- `output_system_guard`: `commands/worktree/switch.rs` no longer writes
  stdout itself; its `--format=json` answer goes through `output/json.rs`,
  which is already listed. A leftover entry would pre-approve a future
  stray `println!` there.
- `TempIndex` doc: the caller list had fallen behind (it missed the
  squash dry-run, the `wt remove --force` backup and others). Name two
  examples and point at `temp_index`'s callers instead.
- `packaged_assets` module doc: nothing embeds `gemini-extension.json`;
  the embedded files are `dev/*.example.toml` and the `dev/*.ts` plugins.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Nov 24, 2026
@max-sixty
max-sixty merged commit 5da6014 into main Nov 24, 2026
41 of 51 checks passed
@max-sixty
max-sixty deleted the nightly/clean-45340530290-docs branch November 24, 2026 19:36
max-sixty pushed a commit that referenced this pull request Nov 25, 2026
…ed mirror fails in 5 min (#4917)

Every remaining `apt-get` call in CI now runs under the same `sudo
timeout -k 30 300` bound that `tend-setup` has used since #3855. That
covers `test-setup`, `coverage.yaml`, `benchmarks.yaml` and the three
`nightly.yaml` steps. A wedged Ubuntu mirror now fails the step after
five minutes, where a rerun fixes it. Today it holds the job until
GitHub kills it at the 360-minute cap, along with every tend session
polling that PR. This PR's own `test (linux)` and `affected tests
(linux)` jobs exercise the new `test-setup` step.

#3855 left these sites unbounded because none had hung yet, and offered
to widen the bound if one did. Three hangs have hit them since:

| when | job | outcome |
|---|---|---|
| 2026-10-07 | six x86_64 Linux jobs across nightly and PR runs (#4396)
| all killed at the 360-min cap |
| 2026-11-20 | `test (linux)` on #4852 | stuck 4.5 h, until a
review-runs sweep cancelled it; one triage and two review sessions
polled it the whole time |
| 2026-11-24 | `affected tests (linux, advisory)` on #4910
([job](https://github.com/max-sixty/worktrunk/actions/runs/45343341632/attempts/1))
| killed at the cap; nightly
[45340530290](https://github.com/max-sixty/worktrunk/actions/runs/45340530290)
and review
[45343341664](https://github.com/max-sixty/worktrunk/actions/runs/45343341664)
each sat ~340 min in `poll-pr-checks` and ended unverified |

Each log ends mid-`apt-get update` (after `Get:5 … noble-security
InRelease` on 11-24), followed by hours of silence and then
`##[error]The operation was canceled.` Observations are tracked in
#4657.

<details><summary>Why <code>timeout(1)</code> and not step-level
<code>timeout-minutes</code></summary>

`test-setup` is a composite action, and composite steps don't accept
`timeout-minutes`. That's why `tend-setup` uses `timeout(1)`, and its
comment explains the `-k 30` escalation. Using the same form at the
workflow-file sites keeps a single pattern. A healthy update takes about
15 s, so five minutes is headroom. Both expiry codes (124 on SIGTERM,
137 after the kill) fail the step.

</details>

Co-authored-by: worktrunk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants