Repository navigation
fix: get the fork's CI green on master - #3
Merged
Merged
Conversation
v0.54.0 is reachable from handleConn by GO-2026-6355, GO-2026-6354 and GO-2026-6303. Go 1.25 also blocked govulncheck v1.9.0 from installing in CI. Both versions now match shellhub/agent. Refs: shellhub-io/team#378
Coverage Report for CI Build 41707071380Coverage decreased (-0.09%) to 72.334%Details
Uncovered Changes
Coverage Regressions1 previously-covered line in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
lint-sync dropped the fork's exclusions. wrapcheck and noctx are back, since the fork passes x/crypto/ssh errors through and opens server sockets with no request context, and nestif only for server.go's accept backoff. G115 stays on: client window sizes clamp to 65535 instead of wrapping, a control character above 255 is ignored, and bounded ports and exit codes carry a reasoned nolint. Refs: shellhub-io/team#378
Calling meta@main ran whatever charmbracelet pushed with our secrets. The workflows now pin meta's main as of 2026-11-01. lint-sync is gone, since it replaced our lint config, and dependabot-sync needs a PAT the fork does not have. Only release still passes that PAT. Refs: shellhub-io/team#378
ConPTY output ends only when the console closes, and closeSlave did nothing on Windows, so every session waited five seconds and dropped what was unread. closeSlave now closes the console and the pty reads a duplicate of the output handle, so the copy reaches EOF and each handle closes once. Before Windows 11 24H2 the close blocks until the output is read, so it runs in a goroutine and Close discards the rest. The drain tests ran /bin/sh, which Windows lacks. The burst test uses PowerShell there and counts x bytes, since ConPTY adds escape sequences. Fixes: shellhub-io/team#378
geovannewashington
force-pushed
the
fix/ci-green
branch
from
November 3, 2026 19:50
67d26d7 to
a6ae304
Compare
geovannewashington
marked this pull request as ready for review
November 3, 2026 19:59
otavio
approved these changes
Nov 4, 2026
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.
Summary
masterfails four checks before any PR is applied. This PR fixes all four, one commit each.A client asking for a pty wider than 65535 columns used to get
width mod 65536. A 70000-column request set 4464. Sizes now clamp to 65535.On Windows, ConPTY's output ends only when the pseudo console closes. The drain added in 17dd395 waited for an EOF that never came, so every pty session took 5s to close. Output still unread when the timeout closed the pty was lost. The pty now reads through its own duplicate of the output handle, so the library still closes each of its handles once. Before Windows 11 24H2,
ClosePseudoConsoleblocks until the output is read, so the close runs in a goroutine andClosediscards the rest.Evidence
handleConn. Under a 70000×70000 pty,stty sizeprints4464 4464. On the Windows runner:TestPtyClampsAnOversizedWindowToTheTerminalMaximumgets65535 65535. On Windows the package passes in 4.1s, down from 29.1s, with no drain timeouts. That includes the 200 KB burst test. The Linux suite passes with-race, and the burst test passes 50 runs with-count=50. actionlint passes on the workflows.macOS has not run here. GitHub could not acquire a macOS runner ("capacity constraints"), so those jobs need a re-run before merge.
Merge Danger
Door: two-way
The
go 1.26.10directive means a consumer needs Go 1.26.10 or newer.shellhub/agentalready requires it.Blast Radius: Windows pty sessions
On Windows, closing the pseudo console now ends processes still attached to it. On Unix, a lingering process keeps running. Release still calls meta's goreleaser with the PAT, now pinned, and only a tag can test it. Nothing reaches a device until
shellhub/agentbumps the fork. Merge this before #2, which falls under the restored lint rules after a rebase.Closes shellhub-io/team#378