fix(e2e): honor managed gateway unit path - #9261
Conversation
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 12 reviews per rolling hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe portable systemctl shim now resolves the gateway binary from the managed systemd unit. It accepts trusted installation paths, validates matching service entries, rejects symlinks, and adds tests for accepted and untrusted paths. ChangesGateway binary validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized fixture change restores support for managed gateway paths while preserving fail-closed validation; no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 338dd2f in the TypeScript / code-coverage/cliThe overall coverage in commit 338dd2f in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
1 terminology difference from the second opinionAdvisory only. These are normalized differences from the primary terminology receipt.
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. 3 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None Manual-only E2E: 1 warning · 0 suggestionsWarningsWarnings do not block.
|
cv
left a comment
There was a problem hiding this comment.
Issue #9208 covers this internal Portable Profile fixture repair. The implementation restricts the managed gateway binary to installer-authorized paths and preserves fail-closed unit, executable, process, and cleanup checks. Current CI passes at 338dd2fd6, GitHub reports the PR as mergeable, all repository gates pass, and the complete security review found no blocking issue.
Summary
The protected Portable Profile
systemctlfixture now reads the OpenShell gateway binary selected by the managed user service instead of assuming the user XDG bin directory. It accepts only the three installer-owned locations and rejects ambiguous or untrusted service identities.This restores the portable-launch fixture after automatic run
31969858915, job95220512323, rejected a valid/usr/local/bin/openshell-gatewayunit. The immutable artifact is9269507500with digestsha256:2bc324b785af9d93abef8dc3a4bc4da38b4c2d30f51e7f88838e8cf0cd6315e0.Related Issue
Relates #9208.
Changes
ExecStartpath from the managed OpenShell gateway user service./usr/local/bin, or/usr/bingateway locations.ExecStartPre, unit marker, environment, file type, permission, and symlink checks fail closed.Type of Change
Quality Gates
6b8fc44b8passed with no findings; the path allowlist matches installer authority and preserves existing unit, environment, process-identity, logging, and cleanup controls.Documentation Writer Review
no-docs-needed338dd2fd6. The change is limited to an internal E2E fixture and support tests for installer-selected OpenShell gateway paths. It changes no public command, configuration, workflow, default, or supported behavior. The conflict-free main merge incorporates the terminal-test fix required by CI.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailable./node_modules/.bin/vitest run --project e2e-support test/e2e/support/portable-profile-systemctl-shim.test.tspassed 30/30 on exact current main.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: Not applicable to this two-file fixture repair. Current-mainchecks:repository, CLI typecheck, source-shape, test-size, conditional, test-loop, and scoped normal hooks passed.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Senthil Ravichandran senthilr@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests