Skip to content

test(ci): guard the plugin-tests manifest against unregistered test files - #4728

Closed
now-ing wants to merge 1 commit into
volcengine:mainfrom
now-ing:test/plugin-tests-manifest-guard
Closed

now-ing wants to merge 1 commit into
volcengine:mainfrom
now-ing:test/plugin-tests-manifest-guard

Conversation

@now-ing

@now-ing now-ing commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds examples/memory-plugin-shared/plugin-tests-manifest.test.mjs, a guard that parses the plugin-tests job's node --test list in .github/workflows/pr.yml, expands its literal entries and directory globs, and compares the result against every *.test.mjs under examples/ and agent-plugins/.
  • Fails with the exact unregistered file names (and with the remediation path) when a new test file would never run in CI; also reports workflow entries pointing at files that no longer exist and stale INTENTIONALLY_NOT_RUN exclusions, so the list cannot rot silently.
  • Registers the guard itself in the node --test list in the same commit — the registration path it demands is exercised by its own landing.

Why

The job's explicit-file-list design means an added test that is not registered simply does not exist from CI's point of view. This failure mode has occurred at least three times already:

  • pin-version regression tests for the memory plugins shipped without a pr.yml entry and never ran;
  • examples/memory-plugin-shared/capture-utils.test.mjs in fix(plugins): treat camelCase isError as an error tool result #4724 is currently in the same situation (noted in review there);
  • the codex marketplace static-assert suite historically ran only after manual registration.

A guard turns the class of bug into a red check instead of a post-hoc discovery.

Validation

  • Clean tree (this PR, post-registration): node --test examples/memory-plugin-shared/plugin-tests-manifest.test.mjs → 1 pass.
  • Negative probe: adding an unregistered zz-*.test.mjs makes the guard fail naming that exact file; removing it restores green.
  • Combined with the existing suite: guard + sync.test.mjs → 5 pass / 0 fail.
  • Verified the workflow-list parser against the current pr.yml (52 entries including three globs; 73 test files covered, 0 missing, 0 listed-but-absent).

Relationship to other work

Complements #4677 (which adds a unit-test lane for the Python side — a separate explicit-list surface that would benefit from the same pattern once it lands).

…iles

The plugin-tests job in pr.yml enumerates test files explicitly (plus a
few directory globs), so a newly added *.test.mjs that is not registered
there silently never runs in CI. This has bitten repeatedly: pin-version
tests, the shared capture-utils coverage, and earlier the marketplace
static-assert suite all shipped without CI execution until someone
noticed.

Add a self-registering guard test that parses the workflow's node --test
list, expands its globs, and fails — naming the exact files — whenever a
test file exists under examples/ or agent-plugins/ that the job would
never run. Stale entries and vanished exclusions are reported as well.
The guard registers itself in the same list it protects, so the
registration path is exercised on every run.

Signed-off-by: mac <bishopapril850965@yahoo.com>
@ZaynJarvis

Copy link
Copy Markdown
Collaborator

Closing: #4773 switched plugin-tests in pr.yml to globbed test discovery (examples/*/scripts/*.test.mjs), so there is no explicit manifest left to guard. Thanks!

@ZaynJarvis ZaynJarvis closed this Sep 23, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-plugins Agent harness and plugin integrations

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants