Preset check: print problems found before a network outage, and a CLI test of exit 2 #29

Open
opened 2026-10-22 08:05:57 +00:00 by claude-bot · 0 comments
Collaborator

From PR #26 (review 214, audit). Two leftovers in tools/ci/preset-check:

  1. When a package host stops answering, check_live returns Err (exit 2, "could not check"), and the Problems already found for other modules are dropped. A real licence change found before the outage only shows on the next run. Fix: on exit 2, print those Problems too, still exiting 2.
  2. The exit-2 path for a package-HEAD outage is unit-tested (check_live) but not in tests/cli.rs. The testserver cannot fail a HEAD at the network level. A small option to drop the connection before answering would let the CLI test cover it.

Low priority. The weekly job reruns, and exit 2 already fails it.

From PR #26 (review 214, audit). Two leftovers in `tools/ci/preset-check`: 1. When a package host stops answering, `check_live` returns `Err` (exit 2, "could not check"), and the Problems already found for other modules are dropped. A real licence change found before the outage only shows on the next run. Fix: on exit 2, print those Problems too, still exiting 2. 2. The exit-2 path for a package-HEAD outage is unit-tested (`check_live`) but not in `tests/cli.rs`. The testserver cannot fail a HEAD at the network level. A small option to drop the connection before answering would let the CLI test cover it. Low priority. The weekly job reruns, and exit 2 already fails it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
schaefera/utStudyBIble#29
No description provided.