Skip to content

docs(openspec): fix plan #2469 dry run lists Helm commands - #3056

Merged
dan-petty merged 3 commits into
mainfrom
docs/2469-fix-plan
Nov 1, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/2469-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This pull request corrects the plan of #2469 in place. It changes only the four files of the change folder openspec/changes/2469-deploy-stack-dry-run-lists-the/.

An evaluation of the staging pull request #2991 found defects in the plan. The plan now has the right test paths and test task. It also has a spec delta that matches the code, and it states the limits of the dry run: Helm 4, an Argo CD managed cluster, and unready nodes. The premise of the issue is true, so the plan stays.

Plans #2469

This commit corrects the OpenSpec plan for issue #2469 in place.

An evaluation of the staging pull request found defects in the plan.
It named a test file that does not exist. It did not say how the dry
run gets the Helm context. Its second group added a test of imports
that the issue does not ask for. Its spec delta needed a private name.

The corrected plan names the real test file under tests/commands/k8s/.
It builds the Helm context before the dry-run branch and passes
is_v4=False, because a dry run runs no command. It tests the parity
with the real run over the process fake, and moves the logging stack
tests off the private tables. The Feasibility section holds command
output. The spec delta in k8s-helm-deploy has four requirements.

This commit changes only the change folder of #2469.
The plan now names the public Helm tables of stack_lifecycle.py. It also states that the dry run reads no node state, so it lists --wait for a DaemonSet release on a cluster with unready nodes.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes to the plan, by file:

  • tasks.md: the test paths are real paths on main, the test task runs uv run devops ci test, and the groups run in order (first fix commit).
  • spec.md: the spec delta is ADDED requirements with scenarios that match the code (first fix commit).
  • proposal.md: the Why and the Feasibility no longer say that a test must use a private name. They state that the public tables HELM_RELEASES_BY_STACK and HELM_REPOS_BY_STACK exist since test(k8s): test k8s/ through public interface over edge fakes #2844 (29aa8c2). They state what the diff from 8b650a6 to main changes. The "Existing code" section lists the public tables.
  • design.md and spec.md: a third limit of the dry run is stated. The dry run reads no node state. For a DaemonSet release (k8s-monitoring, dcgm-exporter) on a cluster with unready nodes, the real run drops --wait and the dry run lists it.

Findings of the evaluation of #2991, confirmed on origin/main:

  • Stale text about the private tables: confirmed (stack_lifecycle.py lines 73, 98, 109, 248; two other test files import the public names). Fixed. The evaluation said three test files. A search finds two: tests/ai/test_llm_pool_metrics.py and tests/invariants/test_k8s_manifests.py. The count is a small error and the finding stands.
  • Missing DaemonSet limit: confirmed (stack_lifecycle.py line 716 and CONST_HELM_DAEMONSET_RELEASES). Fixed.
  • The earlier findings of the fix stage (paths, test task, spec delta): confirmed and fixed in the first commit.
    Unconfirmed: none.

Verification:

  • openspec validate 2469-deploy-stack-dry-run-lists-the --strict: valid.
  • uv run devops openspec check: passed.
  • uv run pytest tests/invariants/test_change_folders.py -n 0 -q: 17 passed.
  • The diff against origin/main holds only the four files of the change folder. No code or test changed.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 13:35
@dan-petty
dan-petty merged commit 255a717 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2469-fix-plan branch November 1, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant