Skip to content

Commit 4594d2a

Browse files
committed
Fix CI workflow bugs: add pipefail to bootstrap and restore production triggers
1 parent bbda7b4 commit 4594d2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/backend.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name: backend
33
on:
44
push:
55
branches:
6-
- mchen/tiered-xdist-v2
7-
- mchen/tiered-xdist-v2-clean
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled]
89
workflow_dispatch:
910

1011
# Cancel in progress workflows on pull_requests.
@@ -292,7 +293,7 @@ jobs:
292293
- name: Bootstrap per-worker Snuba instances
293294
if: env.XDIST_PER_WORKER_SNUBA == '1'
294295
run: |
295-
set -e
296+
set -eo pipefail
296297
XDIST_N=${XDIST_WORKERS:-3}
297298
SNUBA_IMAGE=$(docker inspect snuba-snuba-1 --format '{{.Config.Image}}')
298299
SNUBA_NETWORK=$(docker inspect snuba-snuba-1 --format '{{range $k, $v := .NetworkSettings.Networks}}{{$k}}{{end}}')

0 commit comments

Comments
 (0)