docs: correct two comments of the CI pins (#35)
The self-check comment of the continue-on-error detector said that requiring a colon after the word loses the anchor row only. That holds when a closing quote may sit before the colon; with the colon right after the word, the quoted-key row goes too. Measured: 2 rows red with the colon right after the word, 1 with a closing quote allowed, 3 with the original anchored regex. The port check of boot-from-copy.sh named NO_PROXY as what keeps a proxy out, while curl reads no_proxy first: it now names both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a03e4d4296
commit
13d46e05ef
2 changed files with 5 additions and 4 deletions
|
|
@ -98,8 +98,9 @@ describe("CI workflow", () => {
|
|||
|
||||
// The detector itself, through the same comment stripping as `ciCode`.
|
||||
// Anchored at the start of the line again, it would miss the flow mapping,
|
||||
// the quoted key and the anchor; with a colon required after the word, the
|
||||
// anchor.
|
||||
// the quoted key and the anchor; with a colon required right after the word,
|
||||
// the quoted key and the anchor; with a closing quote allowed before that
|
||||
// colon, the anchor alone.
|
||||
test.each([
|
||||
["a block key", " - name: x\n run: npm test\n continue-on-error: true"],
|
||||
["a list item", " - continue-on-error: true\n run: npm test"],
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ CMD_SH=$(printf '%s' "$CMD_LINE" | node -e '
|
|||
# check a server we never started. So refuse up front: the port counts as free
|
||||
# only when curl gets "connection refused" (exit 7). Any other exit — an HTTP
|
||||
# answer (0), a listener that accepts and stalls (28), a non-HTTP service
|
||||
# (52, 56) — means it is taken. No proxy answers in the port's place: NO_PROXY
|
||||
# is exported at the top.
|
||||
# (52, 56) — means it is taken. No proxy answers in the port's place: no_proxy
|
||||
# and NO_PROXY are exported at the top.
|
||||
command -v curl >/dev/null 2>&1 || fail "curl is required"
|
||||
RC=0
|
||||
curl -s -o /dev/null --max-time 2 "http://127.0.0.1:$PORT/" || RC=$?
|
||||
|
|
|
|||
Loading…
Reference in a new issue