Skip to content

fix: address PR #670 review nit batch - #772

Merged
c-vigo merged 6 commits into
feature/625-nix-claude-migrationfrom
feature/759-nits-batch
Jun 30, 2026
Merged

c-vigo merged 6 commits into
feature/625-nix-claude-migrationfrom
feature/759-nits-batch

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Batch of trivial review nits from the PR #670 review (parent #625). Closes #759.

Per-item outcome:

# Item File Change
1 version-check.sh help typo assets/workspace/.devcontainer/scripts/version-check.sh And (days) → Nd (days) (3 occurrences: comment + 2 help echoes); Nd allowlisted in .typos.toml
2 init.sh misleading message scripts/init.sh Pre-commit hooks installed → Pre-commit hook environments installed (and matching warning); install-hooks only installs hook envs
3 Unparenthesized except A, B: tests/conftest.py, packages/vig-utils/tests/test_claude_ssot.py Skipped (not a bug). Repo targets Python 3.14 (requires-python >=3.14, ruff target-version = py314); under PEP 758 except A, B: is valid and ruff format removes the parens. Parenthesizing would fail the ruff-format CI check. The unparenthesized form already ships on the base branch.
4 release.yml cancel handling .github/workflows/release.yml The result-aggregation rollback job now treats a cancelled required job as not-green (rolls back like a failure), via contains(fromJSON('["failure","cancelled"]'), needs.<job>.result)
5a install.sh dry-run install.sh Dry-run command now derived from the real CMD array via printf '%q' (no hand-maintained duplicate string), so the shown command matches what executes
5b install.sh scaffold guard install.sh New TARGET_WAS_EMPTY flag captured before the container scaffolds; the auto initial project scaffold commit only runs for a freshly-scaffolded empty target, never sweeping a pre-populated directory

Tests (TDD)

  • tests/bats/install.bats: updated dry-run assertions to the %q-derived format, added a guard test (TARGET_WAS_EMPTY) and a derive-from-CMD test (printf '%q'). Committed RED before the install.sh fix, then GREEN.
  • tests/test_install_script.py: synced the dry-run name-sanitization assertion to the %q (unquoted) output.

Verification

  • bats tests/bats/install.bats — 55/55 pass
  • shellcheck install.sh version-check.sh init.sh — clean
  • actionlint / yamllint on release.yml — expression accepted; no new findings (pre-existing shellcheck warnings in unrelated run: blocks untouched)
  • ruff format --check / pre-commit on all changed files — pass
  • PYTHONPATH= uv run pytest packages/vig-utils/tests/test_claude_ssot.py tests/test_utils.py and the dry-run install test — pass

Note: 3 test_image.py testinfra failures observed locally are pre-existing/environmental (run against a stale prebuilt podman:// image) and unrelated to these text-only changes.

Closes #759

c-vigo added 6 commits June 30, 2026 14:16
…d commit

Render the dry-run command from the real CMD array via printf '%q' instead of a
hand-maintained duplicate string, and only auto-create the initial scaffold
commit when the target was empty so a pre-populated directory is not swept into a
misleading commit.

Refs: #759
…l handling

- version-check.sh: fix help text 'And (days)' -> 'Nd (days)'
- init.sh: clarify pre-commit 'install-hooks' only installs hook environments
- release.yml: treat a cancelled required job as not-green (roll back)

Refs: #759
@c-vigo
c-vigo merged commit 089fb43 into feature/625-nix-claude-migration Jun 30, 2026
10 checks passed
@c-vigo
c-vigo deleted the feature/759-nits-batch branch June 30, 2026 12:22
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