Repository navigation
Done
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
resolve_environment inspects the infra.repos checkout with local git commands (_inspect_infra_checkout and _finalize_infra_tree, added in #7678 for #7295). When the checkout is behind its upstream or has uncommitted or untracked files, cluster commands such as devops k8s push-secrets fail with ConfigurationError even when the command does not need a clean or fast-forwarded infra checkout.
Reproduction Steps
- Leave one untracked folder or unpulled commit in the configured
infra.reposcheckout. - Run
uv run devops k8s push-secrets --only devops/devops-cli. - See
ConfigurationErrornaminggit -C <checkout> pull --ff-onlyandgit -C <checkout> stash --include-untracked.
Expected vs Actual Behavior
Expected: resolve_environment locates the environment tree without inspecting git status or blocking cluster commands on stale or dirty infra.repos checkouts.
Actual: resolve_environment(..., write=True) raises ConfigurationError and stops the command.
Environment Diagnostics
- DevOps CLI Version: 0.250.0
- Python Version: 3.14.10
- OS & Architecture: Linux x86_64
- Execution Environment: DevContainer
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 29, 2026
A CLI command fails with ConfigurationError when the checkout is dirty, which is an error condition users hit routinely.devops-cli-service commentedon Nov 29, 2026
Released in v0.251.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.251.1
devops-cli-service commentedon Nov 29, 2026
Live since 2026-11-29 18:59 UTC