Skip to content

test(ssh): ask for the second herdr the SSH integration run starts - #3529

Merged
devswha merged 1 commit into
mainfrom
test/ssh-integration-new-session
Nov 10, 2026
Merged

devswha merged 1 commit into
mainfrom
test/ssh-integration-new-session

Conversation

@devswha

@devswha devswha commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Why now

The Remote PC bundles run for the tag remote-v44 failed its ssh job, and the job that publishes the bundle needs ssh. Without the bundle the 0.5.2 Release run refuses to start.

What

scripts/ssh-integration.ts adds a second PC on the same host under another session name and expects an independent herdr (independent daemons intentionally produce equal pane IDs). Since #3422 (an SSH PC offers the herdr sessions already running there instead of silently starting another), such a setup ends in choose_herdr: "A herdr session is already running on this PC. Choose it, or start a new one." The run did not follow that change, and its job is not a required check, so it has failed on every branch since.

The second setup now sends start_new_herdr: true, which is what the choice card's "Start a new herdr here" sends. No product code changes.

Validation

  • Not run locally (it needs the built remote bundle and an sshd). This PR's own Remote PC bundles / ssh job is the proof.
  • Skipped: bun run check fast (one line in a script outside the unit suite).

🤖 Generated with Claude Code

Since #3422 a setup that names another session on a PC where a herdr already
runs is offered that session (choose_herdr) instead of starting its own. The
integration run's second PC is meant to be an independent daemon, so it now
says start_new_herdr. The ssh job of Remote PC bundles has failed on every
branch since, and the bundle's publish job needs it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated SSH integration test coverage to reflect the setup flow when an existing herdr is available. No user-facing behavior changes are included in this update.

The second SSH integration setup request now sets start_new_herdr to true. Its adjacent comment describes the expected choose_herdr path.

Changes: SSH integration setup

Layer / File(s) Summary
Set the second setup option
scripts/ssh-integration.ts
The second setup request now sets start_new_herdr to true. The adjacent comment describes the expected choose_herdr path.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related issues

  • devswha/ovis#3518 — The issue describes starting a new herdr instead of attaching to an existing one; this setup explicitly sets start_new_herdr to true.

Possibly related PRs

  • devswha/ovis#3409 — This PR adds start_new_herdr: true to the SSH setup in the context of the existing-session discovery and choose_herdr flow.
  • devswha/ovis#3422 — This PR explicitly sets the new-herdr option in a setup affected by the remote startup behavior.
Merge Risk: Minimal · up to 6a270

The change appears ready to merge, subject to the SSH integration job passing.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the SSH integration test change: asking the second setup to start a new herdr.
Description check Passed The description explains the failure, the change, and the expected behavior. It lists validation and skipped checks, with reasons. The required Change and Validation information is present, although t…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Description check

Explanation

The description explains the failure, the change, and the expected behavior. It lists validation and skipped checks, with reasons. The required Change and Validation information is present, although the Change content uses different headings.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e94ef44 and 6a270ce.

Files selected for processing: 1

  • scripts/ssh-integration.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

@devswha

devswha commented Nov 10, 2026

Copy link
Copy Markdown
Owner Author

Local merge gate: FAIL

Local merge gate: FAIL #3529 merge=35f358db715e head=6a270ce60cba main=e94ef44914a0 on herdr-ci-runner:local on devswha-ThinkStation-P620 CPUs 64-127 in 849s, reruns=4

The Linux suites of the required checks (Fast checks, Integration and browser), run on main e94ef44 with this PR's head 6a270ce merged in (local merge 35f358db715e, not pushed), as groups side by side in the self-hosted CI runner image on herdr-ci-runner:local on devswha-ThinkStation-P620 CPUs 64-127 (27% busy before the start, host load 64.12; shards=4 unit_workers=8 browser_main_workers=2 browser_other_workers=16). Scope: full. Native Windows install and the macOS checks are not part of this gate.

Step Command Result Seconds Counts
fast-install bun install --frozen-lockfile pass 0 -
release-guards bun scripts/release-guards.ts --base e94ef44914a0 pass 0 -
fast bun run check fast fail (exit 1) 224 tests 14383 pass / 8 fail; check steps 5 ok / 4 failed
integration-install bun install --frozen-lockfile pass 0 -
integration bun run check integration pass 238 tests 1361 pass / 0 fail; check steps 3 ok / 0 failed
browser-main-install bun install --frozen-lockfile pass 0 -
browser-main-build bun run build pass 17 -
browser-main BROWSER_SCRIPTS=ui-regression,ui-contexts-regression bun run check run -- bun scripts/ci-browser-parallel.ts pass 428 browser scripts 2/2 passed
browser-other-install bun install --frozen-lockfile pass 0 -
browser-other-build bun run build && bun run build:shell pass 23 -
browser-other BROWSER_EXCLUDE=<those two> bun run check run -- bun scripts/ci-browser-parallel.ts pass 816 browser scripts 185/185 passed

Reruns:

  • browser scripts/ui-regression.ts failed, then passed on its automatic second run
  • browser scripts/deep-link-demo-regression.ts failed, then passed on its automatic second run
  • browser scripts/file-viewer-regression.ts failed, then passed on its automatic second run
  • browser scripts/sidebar-filter-demo-regression.ts failed, then passed on its automatic second run

Total 849s.

@devswha
devswha merged commit 4bb57ec into main Nov 10, 2026
21 checks passed
@devswha

devswha commented Nov 10, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head 6a270ce60cba as 4bb57ec21622 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR

One reviewer: owner's test-only fix of the SSH integration run.

  • Test-only change by the owner's session: one reviewer (a Claude agent on Sonnet), CLEAR at 6a270ce, no findings. It traced start_new_herdr with session through validateTarget, host.start and remote-entry.ts, and the other setups of the run.
  • The proof is this PR's own Remote PC bundles / ssh job, which passed at this head after failing on every branch since fix(machines): reach an SSH PC that runs herdr-core through its own Ovis server #3422.
  • Needed for the 0.5.2 release: the bundle's publish job needs ssh. remote-v44 is tagged again on this merge.
  • bun run check fast was not run before the push (one line in a script outside the unit suite).
  • Merged on GitHub's required checks, all green at this head. A local merge gate run beside them failed its fast group (8 unit failures) while the host load was 64 from other sessions; four browser scripts also needed their second run there. The change is one line of a script the unit suite does not run.

@devswha
devswha deleted the test/ssh-integration-new-session branch November 10, 2026 05:33
devswha added a commit that referenced this pull request Nov 10, 2026
#3533)

## Why

0.5.2's release PR (#3526) raised `REMOTE_BUNDLE_VERSION` to 44, and
`remote-v44` was tagged on its merge commit. The **Remote PC bundles**
run for that tag failed its `ssh` job, because the SSH integration run
had not followed #3422 (fixed in #3529), so the `release` job that
publishes the bundle was skipped. The repository rule "Immutable release
tags" does not let `remote-v44` move to the commit with the fix, and the
Release run refuses until the bundle of the current number can be
downloaded.

## What

`shared/machines.ts`: `REMOTE_BUNDLE_VERSION` 44 → 45. After the merge,
`remote-v45` is tagged on the merge commit; with #3529 on main its `ssh`
job passes (it passed on #3529 itself). `remote-v44` stays as a tag with
nothing published under it.

## Validation

- `bun scripts/release-guards.ts`: "Release 0.5.2: remote bundle,
telemetry Worker and release metadata are in order."
- Skipped: `bun run check fast` (a one-character constant; this PR's CI
runs it).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.2 <[email protected]>
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