.github/workflows/labels.yml — wake the sweep over REST, so a board event reconciles in seconds (#205) #213
1 changed files with 7 additions and 3 deletions
|
|
@ -81,9 +81,13 @@ check "the trigger dispatches the sweep caller by name" 0 \
|
||||||
grep -F '/dispatches' "$REUSABLE"
|
grep -F '/dispatches' "$REUSABLE"
|
||||||
check "...never bootstrapping" 0 'bootstrap: "no"' \
|
check "...never bootstrapping" 0 'bootstrap: "no"' \
|
||||||
grep -F 'bootstrap' "$REUSABLE"
|
grep -F 'bootstrap' "$REUSABLE"
|
||||||
# shellcheck disable=SC2016 # $1 expands in the nested bash, not here
|
# The never-silenced invariant moved to test/labels-dispatch.test.sh, where it
|
||||||
check "the trigger dispatch is never silenced with || true" 1 "" \
|
# is BEHAVIOURAL: a curl that dies at the transport must fail the extracted
|
||||||
bash -c 'grep -F "gh workflow run" "$1" | grep -qF "|| true"' _ "$REUSABLE"
|
# step, plus a code-aware no-`|| true` guard on the step itself. The check that
|
||||||
|
# lived here grepped the `gh workflow run` line #205 removed, so after the port
|
||||||
|
# it passed on every implementation including one that swallows a failed POST —
|
||||||
|
# a green assertion whose name claimed an invariant its implementation could
|
||||||
|
# not observe (@codex-reviewer-andresmgsl, #213 review).
|
||||||
check "the sweep caller filename input defaults to labels-sweep.yml" 0 \
|
check "the sweep caller filename input defaults to labels-sweep.yml" 0 \
|
||||||
"default: labels-sweep.yml" grep -F 'default: labels-sweep.yml' "$REUSABLE"
|
"default: labels-sweep.yml" grep -F 'default: labels-sweep.yml' "$REUSABLE"
|
||||||
# the dogfood callers wear the split: the event caller names its deviant
|
# the dogfood callers wear the split: the event caller names its deviant
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue