Skip to content

Commit 89a3f14

Browse files
- Avoid pgrep bailout.
1 parent db45017 commit 89a3f14

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ jobs:
519519
if: success()
520520
run: |
521521
echo "## Stray flask apps to be killed before robot tests ##"
522-
pgrep -f flask | xargs kill -9
522+
pgrep -f flask | xargs kill -9 || true
523523
echo "## End ##"
524524
python cicd/python/build.py --robot-test --config='{ "variables": { "SHOULD_RUN_DOCKER_EXTERNAL_TESTS": "true", "CONCURRENCY_LIMIT": -1 } }'
525525
@@ -537,7 +537,7 @@ jobs:
537537
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
538538
run: |
539539
echo "## Stray flask apps to be killed before robot tests ##"
540-
pgrep -f flask | xargs kill -9
540+
pgrep -f flask | xargs kill -9 || true
541541
echo "## End ##"
542542
python cicd/python/build.py --robot-test-integration
543543
@@ -558,7 +558,7 @@ jobs:
558558
sudo dpkg -i ./deb_test/stackql_${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}}_amd64.deb
559559
sudo apt-get install -f
560560
echo "## Stray flask apps to be killed before robot tests ##"
561-
pgrep -f flask | xargs kill -9
561+
pgrep -f flask | xargs kill -9 || true
562562
echo "## End ##"
563563
python cicd/python/build.py --robot-test --config='{ "variables": { "SHOULD_RUN_DOCKER_EXTERNAL_TESTS": "true", "CONCURRENCY_LIMIT": -1, "USE_STACKQL_PREINSTALLED": "true" } }'
564564
stackqlLocation="$(which stackql 2>&1 | head -n 1)"
@@ -743,7 +743,7 @@ jobs:
743743
if: success()
744744
run: |
745745
echo "## Stray flask apps to be killed before robot tests ##"
746-
pgrep -f flask | xargs kill -9
746+
pgrep -f flask | xargs kill -9 || true
747747
echo "## End ##"
748748
python cicd/python/build.py --robot-test --config='{ "variables": { "SHOULD_RUN_DOCKER_EXTERNAL_TESTS": "true", "CONCURRENCY_LIMIT": -1 } }'
749749
@@ -761,7 +761,7 @@ jobs:
761761
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
762762
run: |
763763
echo "## Stray flask apps to be killed before robot tests ##"
764-
pgrep -f flask | xargs kill -9
764+
pgrep -f flask | xargs kill -9 || true
765765
echo "## End ##"
766766
python cicd/python/build.py --robot-test-integration
767767
@@ -833,7 +833,7 @@ jobs:
833833
sudo dpkg -i "./deb_test/${DEB_FILE}"
834834
sudo apt-get install -f
835835
echo "## Stray flask apps to be killed before robot tests ##"
836-
pgrep -f flask | xargs kill -9
836+
pgrep -f flask | xargs kill -9 || true
837837
echo "## End ##"
838838
python cicd/python/build.py --robot-test --config='{ "variables": { "SHOULD_RUN_DOCKER_EXTERNAL_TESTS": "true", "CONCURRENCY_LIMIT": -1, "USE_STACKQL_PREINSTALLED": "true" } }'
839839
stackqlLocation="$(which stackql 2>&1 | head -n 1)"
@@ -959,7 +959,7 @@ jobs:
959959
export BUILDPATCHVERSION="${BUILDPATCHVERSION}"
960960
fi
961961
echo "## Stray flask apps to be killed before robot tests ##"
962-
pgrep -f flask | xargs kill -9
962+
pgrep -f flask | xargs kill -9 || true
963963
echo "## End ##"
964964
python3 cicd/python/build.py --robot-test-integration --config='{ "variables": { "IS_WSL": true } }'
965965
@@ -1078,7 +1078,7 @@ jobs:
10781078
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
10791079
run: |
10801080
echo "## Stray flask apps to be killed before robot tests ##"
1081-
pgrep -f flask | xargs kill -9
1081+
pgrep -f flask | xargs kill -9 || true
10821082
echo "## End ##"
10831083
python cicd/python/build.py --robot-test-integration
10841084
@@ -1543,7 +1543,7 @@ jobs:
15431543
timeout-minutes: ${{ vars.DEFAULT_LONG_STEP_TIMEOUT_MIN == '' && 40 || vars.DEFAULT_LONG_STEP_TIMEOUT_MIN }}
15441544
run: |
15451545
echo "## Stray flask apps to be killed before robot tests ##"
1546-
pgrep -f flask | xargs kill -9
1546+
pgrep -f flask | xargs kill -9 || true
15471547
echo "## End ##"
15481548
echo "## Stray docker containers before postgres robot tests ##"
15491549
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
@@ -1572,7 +1572,7 @@ jobs:
15721572
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
15731573
run: |
15741574
echo "## Stray flask apps to be killed before robot tests ##"
1575-
pgrep -f flask | xargs kill -9
1575+
pgrep -f flask | xargs kill -9 || true
15761576
echo "## End ##"
15771577
python cicd/python/build.py --robot-test-integration --config='{ "variables": { "EXECUTION_PLATFORM": "docker" } }'
15781578

0 commit comments

Comments
 (0)