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

Fix a bug that the EC2 instance is not terminated if unit tests failed #1103

Merged
merged 12 commits into from
Jan 27, 2025
5 changes: 3 additions & 2 deletions .github/workflows/unit_test_200gb_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@ jobs:
Stop-Runner:
name: Stop self-hosted EC2 runner
needs:
- Check-Changes # required to start the main job when the runner is ready
- Start-Runner # required to get output from the start-runner job
- Test-Marqo # required to wait when the main job is done
- Check-Changes
runs-on: ubuntu-latest
if: ${{ needs.start-runner.outputs.label }} # Only stop the runner if it was started
if: |
always() && needs.Start-Runner.result == 'success'
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
Loading