Skip to content

build semantic plans in one constructor - #180

Merged
atkrad merged 3 commits into
mainfrom
build-semantic-plan-once
Oct 7, 2026
Merged

atkrad merged 3 commits into
mainfrom
build-semantic-plan-once

Conversation

@atkrad

@atkrad atkrad commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

  • semantic.New is the only constructor. It copies the input, checks shape, and sets WillRun from the Helm action.
  • BuildSemanticPlan calls that constructor once, with changes, tasks, drift, and chart CRDs. stampTaskWillRun, AttachDrift, and AttachChartCRDs are gone.
  • The plan view still rejects invalid enums. It no longer rechecks schedule refs or whether a task will run.

Test plan

  • Unit tests added/updated
  • nix run .#lint and pre-commit gofmt clean
  • go test ./internal/plan/... -count=1 and go test -race ./internal/plan/... -count=1
  • nix run .#test-unit
  • go test ./internal/plan/view -update -count=1 left internal/plan/view/testdata/golden unchanged
  • Manual smoke: plan text is unchanged, so no CLI smoke was run

Labels

  • One of: kind/feature, kind/bug, kind/docs, kind/chore
  • Add skip-changelog for internal-only PRs that should not appear in notes

Checklist

  • Title is short and imperative (matches commit style)
  • Docs / CLI help updated when user-facing (README.md, docs/cli/)
  • No secrets or local-only paths in the diff

- derive WillRun inside semantic.New
- remove stamp and attach helpers
- drop view task-graph checks
@atkrad atkrad added kind/chore Cleanup, deps, CI, or refactor with no user-facing change area/deploy Deploy and plan session flow skip-changelog Exclude this PR from release notes labels Oct 6, 2026
@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

atkrad added 2 commits October 7, 2026 01:31
- state package boundaries instead of the build steps
- call semantic.New directly in drift and chart CRD tests
- drop leftover historical view assertions
@atkrad
atkrad merged commit 1936e87 into main Oct 7, 2026
17 checks passed
@atkrad
atkrad deleted the build-semantic-plan-once branch October 7, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deploy Deploy and plan session flow kind/chore Cleanup, deps, CI, or refactor with no user-facing change skip-changelog Exclude this PR from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant