Repository navigation
feat: add candidate surfacing CLI and sync-safe skill overlay in test-audit - #428
Merged
Merged
Conversation
…-audit Bump plugins/test-audit to 1.1.0 with a zero-dependency Node ESM surfacing script (scripts/surface-candidates.mjs) covering test-only seams with split caller counts (nonTestCallers, samePkgTestCallers, otherPkgTestCallers), undercounted single-script tests, source greps paired with build guards, assertion-free vs env-gated/skipped tests, and QA route overlaps against .agents/qa/suite.mjs. Keep upstream OpenClaw syncing working via .github/scripts/sync-openclaw-skills.sh by applying local pointers and references/surfacing.md AFTER upstream rewrites and strict leftover checks pass. Add validate-plugins CI test execution for test-audit and compliance test suites. Code review (high --fix) fixes applied: extract definitions from comment-stripped code so commented-out exports are ignored, clamp self-definition token subtraction to prevent NaN counts, and cover commented-out block exports in tests. Verification: - Unit and overlay tests: node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs (13 pass, 0 fail) - OpenScribe smoke test: surfaced apps/extension/tests/bridge.test.mjs (492 assertions) and .agents/qa/suite.mjs (43 cases, 80 routes) - Sync and manifests: sync-openclaw-skills.sh and sync-versions.sh idempotent with clean git status - Validators: validate_plugins.py, antigravity.py validate, and validate_providers.py passed - Website build: npm run build --prefix site built 188 pages and verified 49 plugin plus 127 skill pages verification: node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs (13 pass, 0 fail), sync-openclaw-skills.sh, sync-versions.sh, validate_plugins.py, antigravity.py validate, validate_providers.py, npm run build --prefix site (188 pages)
verification: 13 audit and compliance tests passed, two upstream syncs preserved the staged tree, and the CLI from the generated ZIP identified an assertion-free fixture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugins/test-auditto1.1.0with a zero-dependency Node ESM candidate-surfacing script (scripts/surface-candidates.mjs)testOnlySeams(splittingnonTestCallers,samePkgTestCallers, andotherPkgTestCallers),undercountedScripts,bundleGrepsWithBuildGuards,assertionFreeTestsvsenvGatedOrSkippedTests, andqaSuiteOverlapagainst.agents/qa/suite.mjsopenclaw/openclawupdates by keeping CLI and tests outsideskills/test-audit/, maintaining.github/scripts/test-audit/surfacing.md, and applying exact-anchor overlay patches in.github/scripts/sync-openclaw-skills.shAFTER upstreamleftoverchecks passplugins/test-audit/tests/surface-candidates.test.mjs) and run bothtest-auditandcompliancetests in.github/workflows/validate-plugins.ymlCode Review & Simplifications Applied
code-review high --fixacross all 16 files prior to commitfile.code) so commented-out block exports are ignoredMath.max(0, ...)and nullish guards sononTestCallersnever evaluates toNaNVerification
node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs: 13 tests, 13 pass, 0 failsurface-candidates.mjs --root ...): surfacedapps/extension/tests/bridge.test.mjs(492 assertions) and parsed.agents/qa/suite.mjs(43 cases, 80 routes)bash .github/scripts/sync-openclaw-skills.shandbash .github/scripts/sync-versions.sh: idempotent with clean git statuspython3 .github/scripts/validate_plugins.py,uv run .github/scripts/antigravity.py validate, andpython3 .github/scripts/validate_providers.py: all passednpm run build --prefix site: 188 pages built and 49 plugin plus 127 skill pages verifiedgit diff --check: clean