Repository navigation
test: validate every catalog manifest against the SDK schema - #82
Merged
Merged
Conversation
Bump the plugin-sdk pin to plugin-sdk#52, which adds the declarative connector schema, and check every manifest.yml that declares an apiVersion with validate_manifest (what `minder-plugin validate` runs). A manifest that drifts from the SDK contract now fails this repo's CI. Also check that each manifest's metadata.name matches its directory. Agent-Session: zeynep-portainer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Driven by session |
Agent-Session: zeynep-portainer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Catalog manifests are now checked against the plugin SDK's manifest schemas in this repo's CI, so a manifest that drifts from the contract fails here, before Minder or an author sees it.
minder-plugin-sdkmoves fromf44873fcto0919ce8c, the head of feat(manifest): full trigger/action set and a declarative connector schema plugin-sdk#52. That commit adds the declarative connector schema and the full manifest-plugin trigger/action set. The only changes since the old pin are CI gate: validate + contract-conformance + metadata lint on every catalog PR #52's. Thejsonschemaandyamlextras are on, so validation is full rather than the light fallback.tests/test_manifest_schemas.py:*/manifest.{yml,yaml,json}that declaresapiVersionmust passvalidate_manifest, which is whatminder-plugin validateruns. Today that's arxiv, frankfurter, openlibrary and wikipedia, against the declarative schema;metadata.namemust match its directory (Minder's runner refuses one that doesn't);manifest.ymlis a bundle-claim file withoutapiVersion, so it's skipped.Test plan
pytest: 637 passed (9 new).minder-plugin validate <dir>/__init__.pyfor every plugin (the CI pre-test loop): all pass.minder-plugin validate */manifest.yml: the four declarative manifests are valid.python scripts/gen_catalog.py --check: up to date.python scripts/check_plugin_policy.py: OK.blackandflake8on the new test: clean.Merge after minderhq/plugin-sdk#52. It merges with a merge commit, so the pinned commit stays reachable from the SDK's
main.Agent-Session: zeynep-portainer
🤖 Generated with Claude Code