GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@IzonIcy

@IzonIcy IzonIcy commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 1 reaction
@IzonIcy
test(ssh): the missing-gzip test simulates a tar that needs gzip
8e82f8a
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.
Copilot AI balanced review requested due to automatic review settings November 21, 2026 18:45
Copilot AI reviewed Nov 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: d068997
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e1f11714-f790-404a-9693-05bd5cf64c45
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
juliusmarminge and others added 2 commits November 24, 2026 05:09
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/ssh-tunnel-gzip-o…
8b7a304
…n-bsd-tar
@juliusmarminge @claude
test(ssh): keep why the missing-gzip home path has a newline
2b9f793
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@jadelike-wine jadelike-wine mentioned this pull request Nov 27, 2026
fix(ssh): keep query parameters on release mirror downloads #44032
Open

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

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.

3 participants

@IzonIcy @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.