Repository navigation
refactor(e2e): share ssh workspace setup helper - #1695
Conversation
✅ Deploy Preview for devsydev canceled.
|
✅ Deploy Preview for images-devsy-sh canceled.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Shared workspace setup e2e/tests/ssh/ssh.go |
The new helper prepares a fixture workspace, configures the Docker provider, registers cleanup, and returns the framework and fixture directory. Six tests use the helper and retain their test-specific setup. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Suggested reviewers: atty303
Merge Risk: 
Minimal · up to 18729
-
The SSH setup refactor preserves the existing fixture, startup, and cleanup behavior.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Description check
-
Explanation
The description clearly explains what changed, why it changed, and how it was validated. It also records the preserved cleanup behavior and review follow-up. Some template sections, such as the formal type, AI-assistance, checklist, and issue-reference fields, are not included, but the description is otherwise substantially complete.
-
-
Finishing Touches
-
✨ Simplify code
-
- 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.
Comment @coderabbitai help to get the list of available commands.
100fa2f to
1872903
Compare
|
@greptileai review |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
[Low impact] This PR appears safe to merge; the extracted helper preserves the six specs’ behavior. SummaryReplaces six repeated SSH workspace setup blocks with
Reviews (1) · Last reviewed commit: "refactor(e2e): share ssh workspace setup..." · Reviewed by Greptile |
Summary
e2e/tests/ssh/ssh.gowith the localsetupSSHWorkspacehelper.Why
Six specs repeated copying a fixture, creating the framework, configuring Docker, and registering cleanup. The helper shares that setup while each spec keeps its SSH key, GPG, and
DevsyUpbehavior. This removes 44 net lines and gives the repeated fixture setup one maintenance point.Validation
mise run cli:format: passmise run cli:lint:ci: pass, 0 issuesgo vet ./e2e/...: passgo test ./e2e/framework/...: passmise run cli:test:e2e:build: passmise run cli:test:e2e:suite ssh: 9 passed, 0 failed, 501 filtered (7 ssh and 2 gh-forwarding specs)sshlabel filter: 9 specs listed, titles unchangedTest ssh on ubuntu-latestpassed;CI Successpassed. All 93 workflow jobs succeeded.CodeRabbit CLI
One minor finding: the helper preserves the existing ignored
DevsyWorkspaceDeleteerror behavior. No change made because surfacing that error would change behavior in six specs; consider separately.Auto-merge
Eligible: yes. Changed non-test source lines: 0. One E2E spec file.
Next
Summary by CodeRabbit