Skip to content

fix(k8s): warn and refuse on stale environment checkout - #7678

Merged
dan-petty merged 1 commit into
mainfrom
fix/7295-stale-environment-checkout
Nov 29, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7295-stale-environment-checkout

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Inspect infra.repos checkouts with local git reads (local_read=True), carry checkout and branch on EnvironmentTree, warn on stderr for reads and dry runs, and raise ConfigurationError when mutating cluster commands run on stale, dirty, or bare checkouts.

Closes #7295

Change: openspec/changes/archive/2026-11-29-7295-stale-environment-checkout/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 29, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 29, 2026 02:03
@dan-petty
dan-petty merged commit 4d0f4fa into main Nov 29, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7295-stale-environment-checkout branch November 29, 2026 02:03
dan-petty-release Bot added a commit that referenced this pull request Nov 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.243.1](v0.243.0...v0.243.1)
(2026-11-29)


### Bug Fixes

* **k8s:** stop telling a person to label a GPU node
([#7677](#7677))
([9993f19](9993f19))
* **k8s:** warn and refuse on stale environment checkout
([#7678](#7678))
([4d0f4fa](4d0f4fa))
* **repos:** read client ID from template and group once-only steps
([#7672](#7672))
([e365e5d](e365e5d))


### Code Refactoring

* **security:** delete scan suppression and devops scan fix
([#7674](#7674))
([aaee5f9](aaee5f9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 29, 2026
`resolve_environment` inspects `infra.repos` checkouts with local `git`
commands (`_inspect_infra_checkout` and `_finalize_infra_tree`, added in
#7678 for #7295). When a checkout is behind its upstream or holds
uncommitted or untracked files, cluster commands such as `devops k8s
push-secrets` fail with `ConfigurationError` even when the command needs
no clean or fast-forwarded infra checkout.

Closes #7781

Change:
`openspec/changes/archive/2026-11-29-7781-environment-checkout-check/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): stale environment checkout is read without a warning

1 participant