testsAndMisc/.github
Krzysztof kuhy Rudnicki 590bc2004d
Some checks are pending
Pre-commit checks / pre-commit (push) Waiting to run
Python tests / test (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
ci: install jq for the shell tests, and probe for it explicitly
The claude_usage i3blocks tests failed on CI while passing locally.
archlinux:base-devel ships no jq, and claude_usage.sh parses its cache
with it, so the block degraded to its "no data" path and every
percentage assertion failed. That degradation is correct at runtime —
the bar should not break because a tool is missing — but it made a
missing dependency look like a logic bug.

Install jq alongside git and strace, and probe for it at the top of the
section so the failure names its own cause. The probe runs jq rather
than calling `command -v`: a jq that exists but cannot execute produces
exactly the same "no data" output as an absent one, and `command -v`
passes in that case — verified by stubbing a jq that exits 127.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YQLwdquDCNmWtvgi3Lk72J
2026-08-10 15:40:42 +02:00
..
agents style(prettier): apply markdown/json formatting updates 2026-05-07 22:08:00 +02:00
skills Format last three markdown files; cap billsplit's Android build memory 2026-08-03 13:25:48 +02:00
workflows ci: install jq for the shell tests, and probe for it explicitly 2026-08-10 15:40:42 +02:00
copilot-instructions.md fix: resolve all pre-commit hook failures after file splits 2026-03-18 22:20:05 +01:00