Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Shared state between scenarios #4001

Open
cidrblock opened this issue Aug 12, 2023 · 0 comments
Open

RFE: Shared state between scenarios #4001

cidrblock opened this issue Aug 12, 2023 · 0 comments
Labels
Milestone

Comments

@cidrblock
Copy link
Contributor

cidrblock commented Aug 12, 2023

As a user, I want tp specifythe location of the state file for a scenario in the molecule.yml

Use cases:

  • Sharing state between scenarios would allow any one scenario to create, prepare, or destroy infrastructure necessary for testings
  • Would allow for the grouping of scenarios to share infrastructure for testing
  • Would eliminate the need for monolithic scenarios in place to simply to minimize the infrastructure provisioning.

Note:

  • Care will need to be taking by the user if running scenarios in parrellel that share state as a race condition might occur during provsioning. The documented approach might suggest soemthing like running molecule prepare prior to running parrellel scenarios, effectively using the default scenario as the provisioner
  • Care will need to be taken by the user to disable the destroy step for scenarios using a shared state. If not, this could result in reprovisioning for each scenario. The docuemented approach might be to disable destroy for all but the default scenario

Related #4000 could provide the vars necessary to define the location of the shared state

@cidrblock cidrblock added this to the Post 6 milestone Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants