Skip to content

fix(infra): render infra.repos in ConfigMap and drift exit - #7631

Merged
dan-petty merged 1 commit into
mainfrom
fix/7460-configmap-infra-repos-and-drift-exit
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7460-configmap-infra-repos-and-drift-exit

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Copies active infra.repos settings into the rendered devops-cli-config ConfigMap and makes devops infra drift --all exit 1 when no repository has plan access or higher.

Closes #7460

Summary

  • Pass active_settings.infra.repos from render_active_devops_configmap into render_devops_configmap_content in src/devops_cli/k8s/configmap.py.
  • Serialize configured infra.repos entries (repo, agent_access, and non-None path) and replace any template infra.repos entries without writing repository names into committed templates.
  • Keep templates with no infra section free of infra when infra_repos is empty.
  • Update run_drift_all in src/devops_cli/infra/drift.py to return exit code 1 alongside MESSAGES.infra.drift_all_no_repos when no eligible repository exists.
  • Add tests in tests/k8s/test_k8s_configmap.py and tests/infra/test_infra_drift_all.py.

Verification

  • uv run devops ci test tests/k8s/test_k8s_configmap.py tests/infra/test_infra_drift_all.py (33 passed)
  • uv run devops ci fail-to-pass --base origin/main (4 new tests fail on origin/main and pass on head)
  • uv run devops ci --check --no-cache --skip test,outdated (27/27 checks passed)

Change: openspec/changes/archive/2026-11-28-7460-configmap-infra-repos-and-drift-exit/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/infra Docker container images, DevContainers, and infrastructure tooling labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 20:23
@dan-petty
dan-petty merged commit 24d2193 into main Nov 28, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7460-configmap-infra-repos-and-drift-exit branch November 28, 2026 20:47
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.240.1](v0.240.0...v0.240.1)
(2026-11-28)


### Bug Fixes

* **docs:** fix stale statements found by the content census
([#7632](#7632))
([7eed4ac](7eed4ac))
* **infra:** render infra.repos in ConfigMap and drift exit
([#7631](#7631))
([24d2193](24d2193))
* **k8s:** delete late-bound move volume by claim UID
([#7633](#7633))
([abeebd8](abeebd8))
* **roadmap:** brain sync rewrites stale near lists of unchanged
neighbours
([#7629](#7629))
([ac36afe](ac36afe))


### Performance Improvements

* **tests:** keep 4 heaviest invariant files under 15 s
([#7630](#7630))
([724426f](724426f)),
closes [#4890](#4890)

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/infra Docker container images, DevContainers, and infrastructure tooling 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(infra): the cluster config has no infra.repos, so drift is a no-op

1 participant