Skip to content

ci: static checks and the Python suites on every push - #13

Merged
niqibiao merged 2 commits into
mainfrom
ci/package-static-checks
Aug 15, 2026
Merged

niqibiao merged 2 commits into
mainfrom
ci/package-static-checks

Conversation

@niqibiao

Copy link
Copy Markdown
Owner

Two commits, separable.

Static checks without Unity (.github/scripts/check_package.py):

  • The README action tables against the [CommandAction] declarations — every declared namespace/action must appear in both README.md and README_zh.md, nothing undeclared may appear, and the count sentence above each table must match. List every built-in action in the README tables #12 added ten rows that had silently gone missing; this makes that drift a red build instead.
  • .meta completeness — every tracked path Unity would import needs its .meta, and no .meta may point at nothing. 92 imported paths today.

Verified by seven injected regressions (missing row, stale count, ghost action, undocumented action, duplicate id, missing .meta, orphan .meta) — each turns the check red; the clean tree is green.

Track and run the Python suites: Editor/ExternalTool~/console-client/.gitignore excluded the whole tests/ directory, so the 243 tests behind the two documented test commands were never in version control — including the cross-language check that reads CommandRouter.cs to pin the command protocol. Unity never imports a ~ directory, so this adds 229 KB to the package and nothing to a consuming project.

Whole workflow verified on a clean clone with a fresh venv: static checks pass, core suite 35 OK, REPL suite 208 OK.

🤖 Generated with Claude Code

niqibiao and others added 2 commits August 15, 2026 04:23
The README action tables can fall behind the [CommandAction] declarations
without anyone noticing -- #12 added ten rows that had been missing for
some time. A tracked file arriving without its .meta has the same shape:
nothing complains until someone imports the package.

Both are decidable from the tree alone, so they run on every push.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The client under Editor/ExternalTool~/console-client has 243 tests, and its
own .gitignore excluded the whole tests/ directory. The two commands the
contributor guide names could therefore only be run by someone who already
had the files, and nothing verified the shared core that the external CLI
loads through this package.

Unity never imports a ~ suffixed directory, so the suites add 229 KB to the
package and nothing to a consuming project.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@niqibiao
niqibiao merged commit ee88a16 into main Aug 15, 2026
1 check passed
@niqibiao
niqibiao deleted the ci/package-static-checks branch August 15, 2026 13:26
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