Skip to content

Commit

Permalink
chore: cleanup same tests, and spread to another layer
Browse files Browse the repository at this point in the history
Signed-off-by: aavarghese <[email protected]>
  • Loading branch information
aavarghese committed Aug 20, 2024
1 parent f802462 commit 41ebaf4
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 142 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
matrix:
SCRIPT:
- ./tests/bin/ci.sh -e 'test(7.*|8.*)' # baseline tests
- ./tests/bin/ci.sh -i 'test7.*' -e 'test7f.*'
- ./tests/bin/ci.sh -i 'test7.*' -e 'test7(b.*|c.*|d.*|e.*|f.*|g.*|h.*)'
- ./tests/bin/ci.sh -i 'test7(b.*|c.*|d.*|e.*|g.*|h.*)'
- ./tests/bin/ci.sh -i 'test7f.*'
- ./tests/bin/ci.sh -i 'test8.*'
- ./tests/bin/go.sh
Expand Down
3 changes: 0 additions & 3 deletions tests/tests/test7-wait-withfail/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions tests/tests/test7-wait-withfail/add-data-to-queue.sh

This file was deleted.

13 changes: 0 additions & 13 deletions tests/tests/test7-wait-withfail/init.sh

This file was deleted.

48 changes: 0 additions & 48 deletions tests/tests/test7-wait-withfail/pail/app.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions tests/tests/test7-wait-withfail/pail/dataset-secret.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/tests/test7-wait-withfail/pail/dispatcher.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions tests/tests/test7-wait-withfail/pail/pool1.yaml

This file was deleted.

1 change: 0 additions & 1 deletion tests/tests/test7-wait-withfail/pail/version

This file was deleted.

8 changes: 0 additions & 8 deletions tests/tests/test7-wait-withfail/settings.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/tests/test7-wait/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# test7-wait

Same as test7, except this test uses the ParameterSweep in "wait" mode.
Same as test7, except this test uses the ParameterSweep in "wait" mode with one failing task.
7 changes: 6 additions & 1 deletion tests/tests/test7-wait/pail/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ spec:
N=$(ls $dataset_name/$bucket_name/$folder_name | wc -l | xargs)
echo "Processing $N $(basename $in)"
sleep 5
if [ $(basename $in) = "task.3.txt" ]
then
echo "Error!" 1>&2
exit 64
fi
echo "Done with $(basename $in)"
command: ./main.sh
Expand Down
3 changes: 2 additions & 1 deletion tests/tests/test7-wait/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ taskqueue=test7-wait
# /queue/0,1 <-- 2 workers
# task.1,task.3,task.5 <-- 3 tasks per iter

expected=("Processing 6 task.1.txt" "Task completed task.1.txt" "Task completed task.1.txt with return code 0" "Task completed task.3.txt" "Task completed task.3.txt with return code 0")
expected=("Processing 6 task.1.txt" "Task completed task.1.txt" "Task completed task.1.txt with return code 0" "Task completed task.3.txt" "Task completed task.3.txt with return code 64")
expectTaskFailure=64

0 comments on commit 41ebaf4

Please sign in to comment.