Skip to content

feat: add just doctor diagnostics and close audit coverage gaps - #1419

Merged
c-vigo merged 6 commits into
devfrom
feature/1418-coverage-gaps
Aug 11, 2026
Merged

c-vigo merged 6 commits into
devfrom
feature/1418-coverage-gaps

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements #1418: closes the coverage gaps surfaced by the #1413 test-suite audit and adds the just doctor host diagnostic that replaces the deleted skip-on-failure host-preflight tests.

Changes

  • docs/generate.py units: 11 new hermetic tests for load_skills (front-matter parsing, malformed/unterminated/missing-name skips, sort order, missing-dir warning) and group_skills (declared order, shared Git & PR heading, unknown-prefix drop, intro attachment), via the established generate.__file__ repoint pattern.
  • Image coverage: nvim and actionlint run-tests; LOCALE_ARCHIVE shape+existence and a setlocale round-trip proving the slimmed single-locale archive (Restrict image glibcLocales to en_US.UTF-8 (rebind imageTools AND LOCALE_ARCHIVE) #1104) resolves en_US.UTF-8. Every asserted fact verified against flake.nix/nix/devtools.nix.
  • Token ceilings: exact read-only permissions maps pinned for release-core.yml (workflow + validate/finalize jobs, test-job inheritance) and release-publish.yml (workflow + publish job) — a silent widening now fails review.
  • devc-upgrade behavioral tests: six stub-driven bats tests (logging curl emitting a fake installer + stub podman) proving the pin honor path end-to-end (DEVKIT_VERSION, legacy DEVCONTAINER_VERSION, unpinned/latest floating), the runtime-missing error before any download, and the in-container guard.
  • just doctor (TDD, red-first): PASS/WARN diagnostics for git identity, commit signing (incl. unreadable ssh key path), ssh-agent, gh auth; always exits 0. New tests/bats/doctor.bats drives it under a controlled environment. Docs regenerated; changelog Added entry.

Verification

  • tests/test_utils.py + test_release_core.py + test_workflow_release_publish.py: 55 passed.
  • tests/bats/just.bats + doctor.bats: 59 tests, all pass; devc-upgrade failure-attribution spot-checked (broken expectation → red → restored).
  • tests/test_image.py: collect-clean (112 tests); the three new image tests execute in this PR's Image Tests lane.
  • Full prek hook suite: green.

Closes #1418

@c-vigo
c-vigo merged commit 662cc8a into dev Aug 11, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1418-coverage-gaps branch August 11, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant