Skip to content

Link-check doc-drift fixes before committing them, and clear the Node 20 and Terminal.Gui warnings - #639

Merged
nockawa merged 1 commit into
mainfrom
doc-update
Aug 1, 2026
Merged

nockawa merged 1 commit into
mainfrom
doc-update

Conversation

@nockawa

@nockawa nockawa commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Three small follow-ups from run 30691086389, which was green but noisy.

Layer 1 never sees the doc-drift PR. GitHub suppresses pull_request workflows for PRs created with GITHUB_TOKEN, so the nightly's own PR is the one doc change in the repo that scripts/check-doc-links.py never runs against. Rather than plumbing a PAT or a workflow_run trigger to route around the recursion guard, open-pr now runs the same lint directly — which is stronger than the check it stands in for, because it refuses to commit a dead link instead of annotating one already on the branch. Baselined before the patch so breakage inherited from main is reported as inherited; a nightly that misattributes its own failures is one people learn to ignore.

Node 20 deprecation. The runner's annotation named actions/upload-artifact@v4, which no workflow here references — it arrives transitively, since upload-pages-artifact@v3 is a composite that calls it. @v5 pins upload-artifact@v7 (Node 24), confirmed by reading v5's action.yml. Nothing else in the repo is on a Node 20 action.

Six compiler warnings in Typhon.Shell. Terminal.Gui 2.4 deprecated the static Application gateway; Application.Create().Init() returns the IApplication that replaces it, and disposing it does what Shutdown() did, so the try/finally becomes a using. All five calls move together because ApplicationImpl refuses to mix the two models (ERROR_LEGACY_AFTER_MODERN) — a half-migrated file fails at runtime, not compile time. FlagTree.Toggle becomes ToggleFlag: it is a callback field colliding with TreeView<T>.Toggle(T?), and since the concepts differ (base expands a node, ours flips a flag's value) new would have been the wrong fix. Rewriting try { as using (…) { kept the ~130-line body's indentation, so the diff is the eight lines that actually changed.

Typhon.Shell now builds 0 warnings, 0 errors (was 6). Shell tests 22/22.

Not verified: no test covers TelemetryEditor — the shell suite covers docs, scaffold, telemetry-file and ui commands only, so the TUI change is verified by compilation and the vendor's documented pattern, not by execution. Worth a manual typhon telemetry edit before this is trusted: it should open, Space should toggle a flag, s save, q cancel, and the terminal should be restored on exit.

… 20 and Terminal.Gui warnings

Layer 1 (scripts/check-doc-links.py) gates doc/ on every PR through build-docs.yml, but never on the doc-drift PR: GitHub suppresses pull_request workflows for PRs created with GITHUB_TOKEN, so the one doc change nobody writes by hand is also the one no link check ever sees. Run the same lint inside open-pr instead, which is stronger than the check it stands in for — it refuses to commit a dead link rather than annotating one already on the branch. Baselined before the patch so breakage inherited from main is reported as inherited; a nightly that misattributes its failures is one people learn to ignore.

The runner's Node 20 deprecation notice pointed at actions/upload-artifact@v4, which no workflow here references. It comes in transitively: upload-pages-artifact@v3 is a composite that calls it. v5 pins upload-artifact@v7 (Node 24). Nothing else in the repo is on a Node 20 action.

Terminal.Gui 2.4 deprecated the static Application gateway. Application.Create().Init() returns the IApplication that replaces it and disposing it does what Shutdown() did, so the try/finally becomes a using. All five calls move together because ApplicationImpl refuses to mix the two models (ERROR_LEGACY_AFTER_MODERN). FlagTree.Toggle is renamed ToggleFlag — it is a callback field colliding with TreeView<T>.Toggle(T?), and the concepts differ, so `new` would have been the wrong fix. Typhon.Shell now builds with 0 warnings; note no test covers TelemetryEditor, so the TUI is verified by compilation only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019edYt6pHPKFqVcsDpJ7v9x
@nockawa
nockawa merged commit f4c7bef into main Aug 1, 2026
15 checks passed
@nockawa
nockawa deleted the doc-update branch August 1, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant