Repository navigation
Conversation
✅ Deploy Preview for images-devsy-sh canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe build flow now cleans up temporary Dockerless credentials before applying the built image environment. Unit tests and a Kubernetes end-to-end fixture cover environment precedence, cleanup behavior, and workspace PATH handling. ChangesDockerless build environment
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium
|
✅ Deploy Preview for devsydev canceled.
|
|
@greptileai please review this pull request at current head 2486821. |
|
|
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. |
Dockerless credential cleanup currently runs after the built image's environment is applied. Cleanup restores the builder's
PATHandDOCKER_CONFIG, so Kubernetes workspaces can propagate the wrong environment into remote commands and persisted environment files.Run cleanup once before applying the image environment, retaining deferred cleanup for build panics and preserving errors, cancellation, and disabled credentials. Add unit regressions using the real credentials helper and a Kubernetes Dockerless build fixture that verifies bare-name executable lookup, lifecycle commands, persisted environment, and helper removal. The fixture uses the existing Devsy-hosted
ghcr.io/devsy-org/test-images/base:ubuntubase and explicitly keeps the remote user as root.Credit to Renato Athaydes for the original cleanup-order fix in #1425, commit 7a69169.
Validation:
go vetpass with Go 1.26.8.up-provider-kubernetes(7 specs selected in a registration-only dry run). No workflow change is required.task cli:lint:cireports zero new issues; pre-commit and commit-message hooks pass. The scoped analyzer comparison preserves the same 31 baseline findings with no additions. Local CodeRabbit and independent source review report no findings.The existing Linux-only Kubernetes SSH-agent case was preserved and was not executed on macOS.
Closes #1446
Summary by CodeRabbit
PATH, including across workspace restarts and pod replacement.