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
Update Run and Workspace Run Tasks for Pre-plan Run Tasks #469
Conversation
efed688
to
270f10b
Compare
Note that while this is adding "beta" features, the APIs for these are basically set in stone. And these changes are not breaking, and opt-in. |
270f10b
to
c4fb07d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 I was able to smoke test this on my local. Nice work!
c4fb07d
to
2286800
Compare
This commit updates the client for the new Pre-plan Run tasks: * New run statuses; FetchingCompleted, Queuing which are ephemeral and will rarely be seen. PrePlanRunning and PrePlanCompleted are for the pre-plan tasks * Add missing Run Status Time Stamps * New Task stage; PrePlan * Ability to set/update the stage for a Workspace Run Task. This is a beta feature and must be opted into. However it is optional and is not a breaking API change. * Adds additional Workspace Run Tasks tests which are gated behind the BETA flag. Note that the original tests still remain to affirm that this commit does not change any existing behaviour.
2286800
to
f602464
Compare
Hi @Uk1288 . I had to rebase again (merge conflict in changelog). Can you do me a favour, can you approve and merge this for me. Unfortunately it's very common that I have to rebase approved PRs due to changelog conflicts and adds days for me to get work in. Thanks! |
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Description
This commit updates the client for the new Pre-plan Run tasks:
PrePlanRunning and PrePlanCompleted are for the pre-plan tasks
be opted into. However it is optional and is not a breaking API change.
the original tests still remain to affirm that this commit does not change any existing
behaviour.
Testing plan
Run the acceptance tests against a TFC/TFE instance with the pre-plan feature flag enabled
External links
Output from tests
With
go test -v ./... -tags=integration -run TestWorkspaceRunTasks -count=1