Skip to content

Spawn login sub-shells - #328

Open
mclasmeier wants to merge 2 commits into
mainfrom
mc/subshell-spawning-login
Open

mclasmeier wants to merge 2 commits into
mainfrom
mc/subshell-spawning-login

Conversation

@mclasmeier

@mclasmeier mclasmeier commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

It was reported that environmental setup (aliases) were missing in roxies subshell.
Using login shells should fix this.

--

Also, required for e2e test, work around google-github-actions/auth#535 — recent gcloud SDK versions crash when gke-gcloud-auth-plugin reads the credential file set by CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE.

After setup-gcloud stores credentials in gcloud's internal store, unset the override so the auth plugin uses the stored credentials instead.

This mirrors the fix applied in stackrox/stackrox@f82064bc1e.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 27 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1a7698f and b66011d.

Files selected for processing: 1
  • .github/workflows/e2e-tests.yml

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 257fffb and 1a7698f.

Files selected for processing: 1
  • cmd/subshell.go

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

Walkthrough

The interactive subshell now starts the resolved shell with both login and interactive flags. Command execution and error handling are unchanged.

Changes: Interactive subshell flags

Layer / File(s) Summary
Update shell invocation
cmd/subshell.go
The interactive subshell command now passes both -l and -i to the resolved shell.

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

Change: Bug fix

Merge Risk: Minimal · previous review 1a769

The PR adds login mode to interactive subshells without any established merge-blocking defect.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: interactive subshells now start as login shells.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. 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: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. 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 1 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

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