Skip to content

Replace Python corpus checker with shell and jq - #170

Merged
hyperpolymath merged 1 commit into
mainfrom
test/squabbler-corpus-shell
Nov 22, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
test/squabbler-corpus-shell

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Replaces the Python corpus checker and its test runner with a POSIX shell and jq implementation. The rules, rule codes and tests are unchanged. The corpus moves from the repository root to tests/squabbler-corpus/ so it fits the root allowlist.

This follows PR #169, which merged with the Python files and red checks.

Changes

  • Deleted corpus/validate.py and corpus/tests/run-tests.py.
  • Moved corpus/ to tests/squabbler-corpus/ (15 cases, schema, README). Content unchanged except the docs and schema description, which name the new checker.
  • Added check-case.sh (entry point, needs jq), check-case.jq (rules) and run-tests.sh (38 fire and silence tests).

Testing

Run locally in this change:

tests/squabbler-corpus/run-tests.sh      # 38/38 pass
scripts/check-root-shape.sh .            # PASS

Not run here: the repository's CI, Hypatia, SonarCloud and governance workflows. Their results on this PR are the real check.

Language

No Python remains under the repository (git ls-files '*.py' returns nothing). The checker depends on jq, which is a standard tool and not a language runtime.

Notes for review

  • The checker's rules match the previous Python version. The known gaps from review are still open and are not fixed here: quoted credential assignments are not detected, and the schema is not enforced nested. These are follow-ups, not part of this change.
  • The earlier corpus patch (596d90bb) was merged as commit 27a1ddb1. This PR is the replacement.

Generated by Claude Code

The corpus checker and its test runner were written in Python, which
the estate bans. They are replaced by check-case.sh, check-case.jq and
run-tests.sh (POSIX shell and jq). The rules, rule codes and the 38
fire and silence tests are unchanged. The corpus moves from the root to
tests/squabbler-corpus/ to satisfy the root-shape allowlist.
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1247c8f0-0cea-4249-b82a-f72706bfe550
Commits

Reviewing files that changed from the base of the PR and between 27a1ddb and 726198a.

Files selected for processing: 22

  • corpus/tests/run-tests.py
  • corpus/validate.py
  • tests/squabbler-corpus/README.adoc
  • tests/squabbler-corpus/cases/SQ-CASE-0001.json
  • tests/squabbler-corpus/cases/SQ-CASE-0002.json
  • tests/squabbler-corpus/cases/SQ-CASE-0003.json
  • tests/squabbler-corpus/cases/SQ-CASE-0004.json
  • tests/squabbler-corpus/cases/SQ-CASE-0005.json
  • tests/squabbler-corpus/cases/SQ-CASE-0006.json
  • tests/squabbler-corpus/cases/SQ-CASE-0007.json
  • tests/squabbler-corpus/cases/SQ-CASE-0008.json
  • tests/squabbler-corpus/cases/SQ-CASE-0009.json
  • tests/squabbler-corpus/cases/SQ-CASE-0010.json
  • tests/squabbler-corpus/cases/SQ-CASE-0011.json
  • tests/squabbler-corpus/cases/SQ-CASE-0012.json
  • tests/squabbler-corpus/cases/SQ-CASE-0013.json
  • tests/squabbler-corpus/cases/SQ-CASE-0014.json
  • tests/squabbler-corpus/cases/SQ-CASE-0015.json
  • tests/squabbler-corpus/check-case.jq
  • tests/squabbler-corpus/check-case.sh
  • tests/squabbler-corpus/run-tests.sh
  • tests/squabbler-corpus/schema/case.schema.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 22, 2026 18:24
@hyperpolymath
hyperpolymath merged commit f19c696 into main Nov 22, 2026
78 checks passed
@hyperpolymath
hyperpolymath deleted the test/squabbler-corpus-shell branch November 22, 2026 18:31
hyperpolymath added a commit that referenced this pull request Nov 22, 2026
## Summary

Moves the squabbler corpus from `corpus/` to `tests/squabbler-corpus/`
and removes the Python checker. This is the same change as the leftover
local commit `b588e76` from the PR #169 move. It duplicates the content
of PR #170 (`test/squabbler-corpus-shell`), so it is a second route to
the same tree, not new work.

## Checks

- `tests/squabbler-corpus/run-tests.sh`: 38/38 tests behaved as expected
(per PR #170).
- No Python files remain.

## Status

Draft. Not reviewed. Close this if PR #170 is the one you want to merge.

---
_Generated by [Claude Code](https://claude.ai/code)_
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.

3 participants