GeezerVison is showing github.com — test(ssh): the missing-gzip test simulates a tar that needs gzip by IzonIcy · Pull Request #40480 · pingdotgg/t3code
Conversation
Problem
names missing gzip after verifying with <checksum> asserts that a host without gzip gets a message naming gzip rather than tar's raw error. The test builds a minimal PATH from the host's tools and relies on the host's tar to need gzip for -xzf. GNU tar forks gzip to unpack, so the Linux CI runners see the failure the test expects. BSD tar, which macOS ships, reads gzip itself: extraction succeeds, the script installs and exits 0, and assert.notEqual(result.status, 0) fails.
$ vp test run packages/ssh/src/tunnel.test.ts -t "names missing gzip"
× names missing gzip after verifying with sha256sum
× names missing gzip after verifying with shasum
AssertionError: expected +0 to not equal +0
Tests 2 failed | 54 skipped (56)
Two more host assumptions in the same test break it on stock macOS, which has neither sha256sum (it writes SHA256SUMS with that command) nor a sha256sum entry for checksumTools (it adds sha256sum whenever shasum exists, instead of adding the tool that exists).
Change
Stop borrowing the host's tools and simulate what the runner can rely on:
- Write
SHA256SUMS with the checksum command the test is currently exercising (shasum -a 256, since bare shasum is SHA-1).
- Build
checksumTools from the commands the host actually has, instead of assuming sha256sum whenever shasum exists.
- Put a
tar wrapper on the minimal PATH that exits like GNU tar without gzip, so every host tests the gzip diagnostic.
The assertions are unchanged, and the test no longer depends on which tar the developer has.
Scope and approval
Test-only fix for an obvious defect: no product behavior change, one test, and the failing assertions are the defect. It does not skip or weaken anything.
Verification
vp test run packages/ssh/src/tunnel.test.ts -t "names missing gzip" → 2 passed (before: 2 failed).
vp run --filter @t3tools/ssh test → 84 tests, 78 passed, 6 skipped (before: 2 failed).
vp lint packages/ssh/src/tunnel.test.ts → 0 warnings, 0 errors.
Could not check: a host with neither checksum tool, where the case is skipped rather than run.
DeepSeek V4.1 Flash via Capy
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
The test built a minimal PATH from the host's tools and relied on the
host's tar to want gzip. GNU tar forks gzip, so Linux CI sees the message;
BSD tar reads gzip itself, so on macOS extraction succeeds and the test
fails. It also wrote SHA256SUMS with sha256sum, which stock macOS lacks,
and listed sha256sum whenever shasum existed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-21T18:47:27.962208Z |
8e82f8a |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The SSH tunnel checksum test now runs for each available checksum utility. It also uses a tar wrapper that checks for gzip before invoking the host tar.
Changes: SSH checksum test
| Layer / File(s) |
Summary |
Checksum and tar test setup packages/ssh/src/tunnel.test.ts |
The test discovers sha256sum and shasum independently and runs a case for each available utility. It passes -a 256 to shasum. A tar wrapper checks for gzip before delegating to the host tar. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related PRs
- pingdotgg/t3code#35307: Updates SSH bootstrap tar checks and gzip diagnostics that the missing-gzip test exercises.
Suggested reviewers: lucenx9, macroscopeapp, juliusmarminge
Merge Risk: Minimal · up to 2b9f7
-
This is a test-only portability fix with no product behavior change. No actionable merge risk remains.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title accurately names the main change: the missing-gzip test in the SSH tunnel tests is changed so it simulates a tar that needs gzip. It follows the conventional commit format and is specific en… |
| Description check |
 |
The description follows the template's main sections: Problem, Change, Scope, and Verification. It explains the cause (the test depends on host tar, checksum tools, and gzip behavior), describes the f… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title accurately names the main change: the missing-gzip test in the SSH tunnel tests is changed so it simulates a tar that needs gzip. It follows the conventional commit format and is specific enough for a teammate scanning history. The description's list of changes also covers the checksum-tool fixes, which the title does not mention, but the title still refers to the primary change.
Full details: Description check
-
Explanation
The description follows the template's main sections: Problem, Change, Scope, and Verification. It explains the cause (the test depends on host tar, checksum tools, and gzip behavior), describes the fix, and gives a scope justification (test-only, one test, no product change, no issue link). It reports focused test and lint results, and it notes what it could not check (a host with neither checksum tool). It has a few gaps: it does not link an issue or state that a maintainer requested the change, and it does not include the model and harness line the template asks for, although it does name 'DeepSeek V4.1 Flash via Capy' at the end. The description also lacks a conventional commit title in the template's format, but the PR title covers that. Overall the description is mostly complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 8e82f8a and 2b9f793.
Files selected for processing: 1
-
packages/ssh/src/tunnel.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|