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

Always collect outputs even when bundle fails #1728

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

carolynvs
Copy link
Member

What does this change

When a bundle fails, we still need to collect any generated outputs because they may contain state that is needed for the next run.

What I am running into is that when I install a bundle that uses terraform, and it fails, the tfstate file output is not persisted, so I can't repeat the install command again.

What issue does it fix

I found this bug and was immediately so enraged that I had to fix it immediately

Notes for the reviewer

N/A

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

@carolynvs carolynvs marked this pull request as ready for review August 21, 2021 16:38
When a bundle fails, we still need to collect any generated outputs
because they may contain state that is needed for the next run.

What I am running into is that when I install a bundle that uses
terraform, and it fails, the tfstate file output is not persisted, so I
can't repeat the install command again.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs force-pushed the graceful-exit branch 2 times, most recently from d4943a2 to eccc2e2 Compare August 24, 2021 15:40
@carolynvs
Copy link
Member Author

/azp run porter-integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carolynvs
Copy link
Member Author

I've rebased to resolve a merge conflict and kicked the integration tests. Will merge when they pass!

@carolynvs carolynvs merged commit ec2f2a5 into getporter:release/v1 Aug 24, 2021
@carolynvs carolynvs deleted the graceful-exit branch August 24, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants