-
Notifications
You must be signed in to change notification settings - Fork 157
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
tfe_workspace_run resource's wait behavior is unreliable #898
Comments
Ok, I did some research and here is my conclusion:
|
Oh hmm!!! 🤔 I wonder if... Ok, so it looks like we only check @lucymhdavies I think this is a separate issue, if you're willing to file one! It might benefit from a grid of expected behavior for the combinations of attrs. :D |
I was just gonna make a comment to that effect. I figured that out too :) https://github.com/hashicorp/terraform-provider-tfe/blob/main/tfe/workspace_run_helpers.go#L146-L154 Yeah, I'll raise a separate issue. Please hold :) |
With #921 merged and released, is this issue resolved, or do we have some additional work to do still? (I thought for a second it was still broken, but then realised I was still using an old local build of the provider. With v0.46.0, while my testing has been far from extensive... seems not to be an issue anymore. Or, if it is, then it's at least far less frequent) |
Most of the expected run statuses and transitions have been added so this issue should happen very minimally whenever a missing status is encountered. These missing statuses will be added as discovered pending the more concrete run API solution. |
Terraform Cloud/Enterprise version
main
Terraform version
latest, doesn't matter.
Terraform Configuration Files
From the
TestAccTFEWorkspaceRun_withApplyOnlyBlock
test:Test failure output
Expected Behavior
The
TestAccTFEWorkspaceRun_withApplyOnlyBlock
test for the tfe_workspace_run resource should be reliably passing.Actual Behavior
Instead, it fails randomly!
After adding some extra logging, it's looking like this indicates a legit logic error in the resource, which we didn't catch during review and testing. It only happens rarely!
:planned
or:post_plan_completed
can act as EITHER:So, we need to await a more reliable signal that the run is ready to rumble. Possibly
r.Actions.IsConfirmable
?The text was updated successfully, but these errors were encountered: