Probe the installed tentacle with the version subcommand
Summary
Every leg of this workflow has been failing daily on main, for two separate reasons — neither of which indicates anything wrong with the published packages.
-
apt legs asserted
squid-tentacle --version.CommandResolvertreats any leading-as a config flag and routes it toRunCommand, so--versionstarts the agent instead of printing a version; the probe captures no output and the step fails. This is a known trap in this repo:VersionCommandexists specifically to close it, anddeploy/packaging/after-install.shalready uses theversionsubcommand with</dev/nulland atimeoutcap, citing a production hang observed in 1.4.1/1.4.2. This workflow was the one place that didn't follow that convention. Adopted the same three defences. -
rpm legs never reached the version probe: they call
which, which RHEL 9 and current Fedora base images no longer ship, so the step exited 127 before verifying anything. Switched tocommand -v.
Test plan
-
Confirmed whichis absent fromrockylinux:9andfedora:40and present onubuntu:24.04— matching exactly which legs failed with 127 vs. which reached the version probe -
Confirmed squid-tentacle versionprints1.9.4on a real RPM install (squid-tentacle-1.9.4-1.x86_64from the production repo), whilesquid-tentacle --versioninstead emits a startup log line and runs the agent -
CI confirmation across all five images
Notes
-
fedora:40is EOL upstream; the image still pulls, so it is left alone here. Bumping it is a separate call. - No product change:
--versionstill routes toRunCommand. That behaviour is documented inVersionCommand's remarks and worked around by callers; making--versionan alias for theversionsubcommand would be a reasonable follow-up but is a CLI-contract decision, not a CI fix.