Repository navigation
test(ssh): hostile-host cells state managed-orcad expectations only - #27419
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
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. Comment |
8 of 9 tasks
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.
ELI5
We have a test lane that sets up awkward SSH hosts on purpose: very old Linux, Alpine, a host missing a C++ library, a home folder that cannot run programs, a host with no internet, and both kinds of Mac. Each host used to say where the old "relay" should end up. The relay is gone, so the lane quietly ran only 1 of its 9 hosts, and the Mac jobs passed without testing anything. Now every host says what the managed Orca server (orcad) has to do there, and every host really runs.
What Changed
HOSTILE_HOST_CELLSlisted 9 hosts with old relay expectations ("lands on rung A/B/D"). The Docker test ran only the one host that also had amanagedfield (CentOS 7). On the two macOS runners, the only check was "at least one host was selected", so those jobs went green without deploying anything. The workflow still built the relay (build:relay), which nothing in this lane uses.managedexpectation, and every selected host runs:activated(Debian 10, AlmaLinux 8, Alpine musl, CentOS 7 on the glibc 2.17 runtime, Debian 10 with no internet, macOS arm64, macOS x64). The deploy must pick that runtime, upload no other runtime, activate, answer a liveness check, and then shut down cleanly.unavailablewith a reason (Alpine without libstdc++, Ubuntu with a noexec home). The deploy must fail with an error thatclassifyOrcadHostUnavailablemaps toruntime_self_test, which is the classification the connect reports to the user.npm,gcc,makeand so on). A bare--versionprobe is allowed.HostileHostExpectation,RungRefusal,HostileHostObservation,hostileHostCellViolations), the unused host observer (ssh-hostile-host-observer.tsplus its Docker counterpart),build:relayin both workflow jobs, and thebuild-relay.mjsandsrc/wsl-guest/**path triggers.ssh-windows-host-cells.tsloses its relayexpectfield and the parameter that only fed it. Nothing ran those Windows cells; the Windows-lane PR deletes them next.Product code is untouched. Net −442 lines: test-support modules −226, test files −211, workflow −4, timing data −1.
Why
Nothing in production uses these relay expectations anymore, and keeping them hid the fact that 8 of the 9 hosts never ran. Giving each host a managed-orcad expectation brings back real coverage on the hosts we support, and it costs less code than keeping the dead relay layer.
Two points depart from the plan:
src/main/ssh/ssh-relay-*path trigger. The live managed deploy still imports 28 modules with relay names (install lock, pinned Node, runtime self-test, versioned install). Without the trigger, changes to those modules would no longer run this lane.linux-x64-musl, a supported target, so dropping the job would drop that platform.The other option was to delete the whole lane. That would lose the only end-to-end proof that orcad deploys on old glibc, musl, noexec and offline hosts.
Linked Issue
N/A (maintainer cleanup; Phase 3.99 PR 0.2).
Visual Proof
N/A: this changes tests and CI only. Nothing changes in the UI or in app behaviour.
Testing
ssh-hostile-hosts.ymlon this branch, whose product code is identical to main (run 38124316658). Every job is green: the Linuxhostsjob had 8 passing tests (the selection check plus 7 hosts), and each macOS job had 2 passing tests (the selection check plus its own host). All 9 expectations matched main's real behaviour, so no host needed a known-defect issue. Any new failure in this lane will block.rgfinds no remaining reference to any removed symbol in src, config, scripts, tests, mobile, packages or the@ts-nocheckfiles. One staleci-shard-timings.jsonentry was removed. Builds are unaffected because these are test-only modules.pnpm tc, fullpnpm lint,pnpm run check:code-quality:changedand oxlint all pass. Focused run:pnpm testonssh-hostile-host-cells.test.ts,ssh-windows-host-cells.test.ts,ssh-hostile-host-local-sshd.test.tsandssh-hostile-hosts.docker.test.ts.Review
A P0/P1 review from Codex (GPT-6.1 Sol, high effort) and a self-review both found no P0/P1 issues.
Agent skill upstream boundary
Notes
Checklist
pnpm lintandpnpm typecheckpass locally; focused tests pass; CI covers the rest