Skip to content

Restore toolkit CI with parity, tests, lint and link checks - #23

Merged
loiane merged 1 commit into
mainfrom
loiane/toolkit-ci-parity
Nov 4, 2026
Merged

loiane merged 1 commit into
mainfrom
loiane/toolkit-ci-parity

Conversation

@loiane

@loiane loiane commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

Brings back CI for the toolkit itself. The previous ci.yml was removed after 4 of its 5 jobs kept failing. This version makes every job pass and adds tests for the hooks and scripts.

Why the old CI failed, and what changed

Job Old failure Fix
Tri-platform parity Raw diff -rq flags the legitimate .claude/ vs .github/ vs .windsurf/ references in every file, so it could never pass tools/check-parity.sh normalises platform prefixes and slash-command file paths before diffing, and checks that each platform has the same set of files
ShellCheck 6 findings Fixed; the ls -t calls kept intentionally carry justified disable comments
Markdown lint 1,446 issues Added .markdownlint-cli2.yaml (skips examples/, the slide deck and the vendored Google Angular skills), turned off cosmetic MD060, autofixed the rest, and hand-fixed list indentation and code-fence languages
Link check --exclude-mail no longer exists in lychee, and .claude/, .github/, .windsurf/ were never scanned lychee.toml turns on hidden = true and accepts 429s; two dead links replaced (EARS → alistairmavin.com, Flyway docs)

New tests job: tests/run.sh has 44 plain-bash tests covering every Claude hook, traceability.sh, detect-stack.sh, the settings.json wiring, and how each hook behaves when jq is missing. They pass on both bash 3.2 and bash 5.

Bugs found while doing this

  • files_in_scope was never enforced. In ($f | endswith(.)), jq rebinds . to $f, so every path matched itself and nothing was blocked. Entries now match exactly or as a path suffix that starts at a /.
  • Platform drift:
    • .github/ and .windsurf/ lacked the "Domain Entities and Relationships" sections in the spec and design templates and the review checklists.
    • The ADR templates used different placeholder styles.
    • The Claude brownfield skill had a broken ./.githu.github/ path.
  • detect-stack.sh printed "db_engines": [""], plus an unbound-variable error on bash 3.2, when the pom has no DB driver.

Docs

README, CONTRIBUTING, the PR template and platform-mapping.md now point to toolkit-ci.yml, tools/check-parity.sh and tests/run.sh. CHANGELOG is updated.

Notes for review

  • About 95 of the 108 files are whitespace-only markdown-lint autofixes (blank lines around headings and lists). Review with git diff -w.
  • tools/ and tests/ are only for maintaining the toolkit; consumer repos don't need them.

Testing

Ran every CI job locally on macOS: shellcheck is clean, 44/44 tests pass, markdownlint reports 0 issues, lychee reports 0 errors, parity is OK, and the hooks and scripts are executable.

- .github/workflows/toolkit-ci.yml: shellcheck, hook/script tests, markdownlint, lychee, tri-platform parity, hygiene
- tools/check-parity.sh: normalises per-platform path differences so parity can actually pass
- tests/run.sh: plain-bash regression tests for hooks and scripts
- fix files_in_scope never being enforced (jq filter compared each path with itself)
- sync drifted platform copies (spec/design templates, review checklists, ADR template, brownfield skill path)
- fix detect-stack empty db_engines output, shellcheck findings, dead links, markdown lint findings
@loiane
loiane merged commit 73fbcfb into main Nov 4, 2026
6 checks passed
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