spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

feat: wait for run in resource `spacelift_run` #535

Closed truszkowski closed 7 months ago

truszkowski commented 7 months ago

Description of the change

From PR

This PR contains an extension of the resource spacelift_run, which makes it possible to wait for the completion of a run.

Type of change

Related issues

Fix [#1]()

Checklists

Development

Code review

truszkowski commented 7 months ago

Now tests are failing because of Cannot query field "run" on type "Stack". We're adding a new query, runResourceState, which will be outside the user scope and available for a Spacelift run. After backend merge, I'll change query here.

truszkowski commented 7 months ago

Now tests are failing because of Cannot query field "run" on type "Stack". We're adding a new query, runResourceState, which will be outside the user scope and available for a Spacelift run. After backend merge, I'll change query here.

Now we have a new query: runResourceState. Added more tests to cover other scenarios - "timed out", "unconfirmed state" and "finished state".

truszkowski commented 7 months ago

@tmeckel Version v1.11.0 has been released! Thanks for your contribution! ❤️

code: Screenshot 2024-04-18 at 13 14 04

run: Screenshot 2024-04-18 at 13 14 37

tmeckel commented 7 months ago

@truszkowski Awesome! 🎉 🥳