Skip to content

Commit 55cb139

Browse files
fix(fleet-report-back): label panicbot's tool_version from the binary that ran; pin panic-attack to cbf2b935 (#728)
fix(fleet-report-back): label panicbot's tool_version from the binary that ran tool_version_of() looked for panic-attack on PATH only, but the driver runs adapters with --bin-dir prepended to PATH. In CI panic-attack lives only in --bin-dir, so the label fell through to the reusable workflow's PANIC_ATTACK_SHA, 410a8f82, while callers built cbf2b935. It now searches --bin-dir first, as the adapter run does. Move the remaining 410a8f82 pins to cbf2b935, the commit the standards Hypatia and deep-recon lanes run: PANIC_ATTACK_SHA in fleet-report-back-reusable.yml and [build] commit in bots/panicbot/canon/pin.toml. The rule-ID table pin (5175a681) is a separate pin and is unchanged. Co-authored-by: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com>
1 parent daabb10 commit 55cb139

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

‎.github/workflows/fleet-report-back-reusable.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# panic-attack, built from source at this commit for panicbot. Kept in
112112
# step with the standards Hypatia lane's PANIC_ATTACK_SHA so the two
113113
# panic-attack-derived rows on one grid describe the same tool.
114-
PANIC_ATTACK_SHA: 410a8f821ea8297833162565b50a298f787815da
114+
PANIC_ATTACK_SHA: cbf2b935ef4260cc3ae66010f4ffc91385ff8f8c
115115
steps:
116116
- name: Checkout the repository to report on
117117
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎bots/panicbot/canon/pin.toml‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ sha256 = "28ffe510535e0bc6cccc92845411d6496fe9270cce58364f4d3507c5c08337d4"
1818
# The panic-attack BUILD commit (design section 5: this file becomes the single
1919
# panic-attack pin). Value and provenance, not invented: it is the commit the
2020
# standards Hypatia lane runs, `panic-ref`'s default in metadatastician/standards
21-
# `.github/workflows/hypatia-scan-reusable.yml` and `PANIC_ATTACK_SHA` in its
22-
# `fork-governance.yml` (standards main f0b3cd4, 2026-11-12).
23-
#
24-
# NOT YET CONSUMED: the workflows still carry their own copies, and they
25-
# disagree. Alignment is a later phase, decided by the owner:
26-
# - gitbot-fleet `.github/workflows/fleet-report-back-reusable.yml`:
27-
# b689a74d2762a1c19839ae3fbd59b7fe5ef920ea (2026-10-08, older; its comment
28-
# claims it is kept equal to the Hypatia lane's pin, it is not)
29-
# - standards `.github/workflows/deep-recon-reusable.yml` `panic-rev`:
30-
# b5530834a839734d1d181bfe6edb0d43d4233cf4 (2026-10-25)
21+
# `.github/workflows/hypatia-scan-reusable.yml`, `panic-rev` in its
22+
# `deep-recon-reusable.yml` and `PANIC_ATTACK_SHA` in its `fork-governance.yml`
23+
# (standards main 540331a, 2026-12-03). gitbot-fleet's
24+
# `.github/workflows/fleet-report-back-reusable.yml` carries the same commit.
3125
# The rule-ID table above was taken at 5175a681 and is a separate pin.
3226
[build]
3327
repo = "hyperpolymath/panic-attack"
34-
commit = "410a8f821ea8297833162565b50a298f787815da"
35-
pinned = "2026-11-12"
28+
commit = "cbf2b935ef4260cc3ae66010f4ffc91385ff8f8c"
29+
pinned = "2026-12-05"

‎scripts/fleet-report-back.sh‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,13 @@ tool_version_of() {
393393
local m="$1" version
394394
case "$m" in
395395
panicbot)
396-
# panicbot wraps panic-attack
397-
if command -v panic-attack >/dev/null 2>&1; then
398-
version=$(panic-attack --version 2>/dev/null | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?' | head -1)
396+
# panicbot wraps panic-attack. Search --bin-dir before PATH, as the
397+
# adapter run does (panicbot finds panic-attack with `which` on a PATH
398+
# that starts with --bin-dir); otherwise the label falls through to the
399+
# workflow pin below and can name a commit that did not run.
400+
local pa
401+
if pa=$(PATH="${bindir:+$bindir:}$PATH" command -v panic-attack 2>/dev/null); then
402+
version=$("$pa" --version 2>/dev/null | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?' | head -1)
399403
[ -n "$version" ] && echo "panic-attack:$version" && return
400404
fi
401405
# Try from pinned SHA in workflow

0 commit comments

Comments
 (0)