Skip to content

Commit d458553

Browse files
committed
Fix LocalStack availability for retried PR test jobs
- Add condition to restart LocalStack on job retries (github.run_attempt > 1) - Ensures CA bundle tests and other LocalStack-dependent tests have access to running LocalStack instance - Maintains existing label check behavior for first run - Fixes issue where retrying failed test jobs would fail due to missing LocalStack
1 parent 1ef4d0d commit d458553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/PR-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
StartLocalStack:
9898
name: 'StartLocalStack'
9999
needs: [ CheckLabel, OutputEnvVariables ]
100-
if: needs.CheckLabel.outputs.should_run == 'true'
100+
if: needs.CheckLabel.outputs.should_run == 'true' || github.run_attempt > 1
101101
uses: ./.github/workflows/start-localstack.yml
102102
secrets: inherit
103103
permissions:

0 commit comments

Comments
 (0)