Skip to content

Commit ae2f540

Browse files
Allow Buildkite Maestro exclude tags
1 parent cc4a684 commit ae2f540

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.buildkite/commands/run-maestro-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set -euo pipefail
1111
# Optional controls:
1212
# MAESTRO_STORE=shared|lab
1313
# MAESTRO_INCLUDE_TAGS=smoke_core,smoke_extended,destructive
14+
# MAESTRO_EXCLUDE_TAGS=flaky_quarantine,pos_tablet
1415
# MAESTRO_REPEAT=3
1516
# MAESTRO_APK_PATH=/path/to/beta.apk
1617
# MAESTRO_SEED=true
@@ -25,9 +26,13 @@ INCLUDE_TAGS="${MAESTRO_INCLUDE_TAGS:-smoke_core}"
2526
REPEAT="${MAESTRO_REPEAT:-1}"
2627
OUTPUT_DIR="${MAESTRO_OUTPUT_DIR:-WooCommerce/build/outputs/maestro-smoke}"
2728
SEED_ARGS=()
29+
EXCLUDE_TAGS_ARGS=()
2830
if [[ "${MAESTRO_SEED:-false}" == "true" ]]; then
2931
SEED_ARGS+=(--seed)
3032
fi
33+
if [[ -n "${MAESTRO_EXCLUDE_TAGS:-}" ]]; then
34+
EXCLUDE_TAGS_ARGS+=(--exclude-tags "$MAESTRO_EXCLUDE_TAGS")
35+
fi
3136

3237
if [[ -n "${MAESTRO_APK_PATH:-}" ]]; then
3338
APK_PATH="$MAESTRO_APK_PATH"
@@ -47,6 +52,7 @@ if [[ -n "$APK_PATH" ]]; then
4752
--repeat "$REPEAT" \
4853
--output-dir "$OUTPUT_DIR" \
4954
"${SEED_ARGS[@]}" \
55+
"${EXCLUDE_TAGS_ARGS[@]}" \
5056
--no-open \
5157
--apk "$APK_PATH"
5258
else
@@ -56,6 +62,7 @@ else
5662
--repeat "$REPEAT" \
5763
--output-dir "$OUTPUT_DIR" \
5864
"${SEED_ARGS[@]}" \
65+
"${EXCLUDE_TAGS_ARGS[@]}" \
5966
--no-open
6067
fi
6168
MAESTRO_EXIT_STATUS=$?

.buildkite/release-pipelines/maestro-smoke.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ agents:
77
env:
88
MAESTRO_STORE: "shared"
99
MAESTRO_INCLUDE_TAGS: "smoke_core,smoke_extended,destructive"
10+
MAESTRO_EXCLUDE_TAGS: "flaky_quarantine,pos_tablet"
1011
MAESTRO_REPEAT: "1"
1112

1213
steps:

.buildkite/schedules/maestro-smoke-burst.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ agents:
1313
env:
1414
MAESTRO_STORE: "shared"
1515
MAESTRO_INCLUDE_TAGS: "smoke_core,smoke_extended,destructive"
16+
MAESTRO_EXCLUDE_TAGS: "flaky_quarantine,pos_tablet"
1617
MAESTRO_REPEAT: "3"
1718

1819
steps:

0 commit comments

Comments
 (0)