-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adding --wait to all cf run-task commands #4651
Conversation
Terraform plan for meta No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #925 |
Terraform plan for dev Plan: 1 to add, 0 to change, 1 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.dev.module.cors.null_resource.cors_header must be replaced
-/+ resource "null_resource" "cors_header" {
!~ id = "*******************" -> (known after apply)
!~ triggers = { # forces replacement
!~ "always_run" = "2025-01-23T18:22:03Z" -> (known after apply)
}
}
Plan: 1 to add, 0 to change, 1 to destroy. ✅ Plan applied in Deploy to Development and Management Environment #925 |
62aa9ff
to
e6ebb25
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.
This looks good to me: https://github.com/GSA-TTS/FAC/actions/runs/12936852545/job/36083408728
|
Purpose
We recently found out that backup tasks were failing silently. Backup tasks are kicked off by github actions through a cloud foundry run-task command. By default this task is run asynchronously, and therefore the github action sees a success message when the task is started successfully. The purpose of this code change is ensure we can see the errors in the github workflow.
Issue
How
The cloud foundry run-task command accepts a --wait flag which will wait until the task is finished. If the task fails, the github workflow will fail.
Testing
I created a temporary script which always fails. (Since removed from the commit). I tested it using the deploy to preview workflow. You can see that here: https://github.com/GSA-TTS/FAC/actions/runs/12913210660/job/36010804577