Skip to content

[Blueprints] Execute every v2 schema variant in CI - #4014

Merged
adamziel merged 4 commits into
trunkfrom
blueprint-v2-schema-conformance
Jul 11, 2026
Merged

[Blueprints] Execute every v2 schema variant in CI#4014
adamziel merged 4 commits into
trunkfrom
blueprint-v2-schema-conformance

Conversation

@adamziel

@adamziel adamziel commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

What it does

This PR adds CI tests to:

  • Use every kind of Blueprint v2 field and nested variant at least once.
  • Validate it.
  • Compile it.
  • Boot a clean WordPress.
  • Actually run it.
  • Fail if anything breaks or becomes unsupported.

Other changes

Breaking schema change: font declarations now accept FileDataReference, not directories or Git paths. The runner requires a file there, so the schema now rejects inputs it cannot execute.

Testing instructions

CI :)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a schema-driven conformance suite to ensure every reachable Blueprint v2 schema variant validates and compiles, and tightens the font-related schema contract to only allow file references.

Changes:

  • Added an occurrence-sensitive schema conformance test that walks the published v2 schema and asserts fixture coverage + successful compilation.
  • Added dense fixtures intended to cover every reachable schema branch/variant.
  • Tightened the v2 schema/validator so fonts and fontFace.src require FileDataReference (rejecting directory/git sources during validation).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/playground/blueprints/src/tests/v2/schema-conformance.spec.ts New schema-walking conformance suite + compilation assertions.
packages/playground/blueprints/src/tests/v2/schema-conformance-fixtures.ts New dense fixture set designed to cover all reachable schema variants.
packages/playground/blueprints/src/lib/v2/wep-1-blueprint-v2-schema/appendix-A-blueprint-v2-schema.ts Tightens TypeScript schema types for fonts and fontFace.src to FileDataReference.
packages/playground/blueprints/public/blueprint-v2-schema-validator.js Updates generated validator for FileDataReference changes.
packages/playground/blueprints/public/blueprint-schema.json Updates published JSON schema for FileDataReference changes + regenerated aliases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamziel adamziel changed the title [Blueprints] Require every v2 schema variant to compile Jul 11, 2026
@adamziel
adamziel merged commit 2c67d3b into trunk Jul 11, 2026
53 checks passed
@adamziel
adamziel deleted the blueprint-v2-schema-conformance branch July 11, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment