Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test runner to prevent running too many tests by anchoring sample…
… name patterns

Co-authored-by: lionello <[email protected]>
  • Loading branch information
Copilot and lionello committed Jul 16, 2025
commit e9c9bccee85816116a499c61b0b24b35d79acafa
3 changes: 2 additions & 1 deletion .github/workflows/deploy-changed-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
TEST_SHARED_SECRETS: ${{ secrets.TEST_SHARED_SECRETS}}
TEST_ALLOWED_HOSTS: ${{ secrets.TEST_ALLOWED_HOSTS }}
run: |
SAMPLES=$(sed 's|^samples/||' changed_samples.txt | paste -s -d ',' -)
# Escape regex special characters and anchor patterns to ensure exact matching of sample names
SAMPLES=$(sed 's|^samples/||' changed_samples.txt | awk '{gsub(/[.*+?^${}()|[\]\\]/, "\\\\&"); print "^" $0 "$"}' | paste -s -d ',' -)
echo "Running tests for samples: $SAMPLES"
mkdir output
# concurrency is set to 10 to avoid exhausting our fargate vCPU limits when running
Expand Down