Skip to content

feat: support external plan stores in custom workflows - #6907

Open
gems2000 wants to merge 1 commit into
runatlantis:mainfrom
gems2000:feat/custom-workflow-plan-store
Open

gems2000 wants to merge 1 commit into
runatlantis:mainfrom
gems2000:feat/custom-workflow-plan-store

Conversation

@gems2000

@gems2000 gems2000 commented Sep 16, 2026 •

Copy link
Copy Markdown

what

  • let full-form custom run steps opt into the configured plan store with plan_store.mode: save or consume
  • save plans only after the marked producer succeeds, and validate/remove plans around the marked consumer
  • reject invalid stage, duplicate, and native/custom combinations
  • document the syntax and add regression coverage for stale, empty, missing, mutated, and failed plans

why

  • native plan and apply steps use PlanStore, but custom workflows that produce $PLANFILE through run currently bypass plan persistence
  • explicit per-run semantics preserve custom Terraform/Terragrunt workflows without guessing which arbitrary command owns the plan

tests

  • go test ./server/core/config/... -count=1
  • focused custom plan-store and existing load/hash tests in ./server/events
  • all ProjectCommandRunner tests
  • gofmt and git diff --check

references

architecture decision record

ADR: Not required — this is additive optional configuration with unchanged defaults.

@github-actions github-actions Bot added docs Documentation go Pull requests that update Go code labels Sep 16, 2026
@gems2000
gems2000 force-pushed the feat/custom-workflow-plan-store branch from d3f4aca to eb7d5cf Compare September 17, 2026 07:31
@gems2000

gems2000 commented Oct 5, 2026

Copy link
Copy Markdown
Author

Tracking issue: #6951. I opened this feature request to capture the custom-workflow plan persistence use case and link the implementation for maintainer review.

@gems2000

Copy link
Copy Markdown
Author

@lukemassa can i get a review?

Signed-off-by: Bodhisatta Das <68842964+gems2000@users.noreply.github.com>
@gems2000
gems2000 force-pushed the feat/custom-workflow-plan-store branch from eb7d5cf to bdc9609 Compare October 22, 2026 06:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation go Pull requests that update Go code size/l

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persist plans for custom Atlantis workflows using external plan stores

1 participant