Skip to content

Add bundle runtime metadata#1659

Merged
anth-volk merged 3 commits into
mainfrom
add-bundle-runtime-metadata
May 5, 2026
Merged

Add bundle runtime metadata#1659
anth-volk merged 3 commits into
mainfrom
add-bundle-runtime-metadata

Conversation

@anth-volk
Copy link
Copy Markdown
Collaborator

Fixes #1658

Companion PR: PolicyEngine/policyengine-us#8229
Companion issue: PolicyEngine/policyengine-us#8228

Summary

Adds country runtime metadata for bundle validation.

  • Adds policyengine_uk.build_metadata.get_runtime_metadata().
  • Includes installed policyengine-core runtime metadata in the emitted payload.
  • Keeps get_data_build_metadata() as a compatibility wrapper.
  • Raises the policyengine-core floor to >=3.26.0.
  • Adds a PR-only bundle contract validation job using policyengine-bundles as a pinned test dependency.

Tests

  • uv run pytest policyengine_uk/tests/test_build_metadata.py -vv
  • uv run --frozen --with /Users/administrator/Documents/PolicyEngine/policyengine-bundles pytest policyengine_uk/tests/test_build_metadata.py -vv
  • uv run ruff check policyengine_uk/build_metadata.py policyengine_uk/tests/test_build_metadata.py
  • uv run python -c "import yaml; yaml.safe_load(open('.github/workflows/pr_code_changes.yaml')); print('ok')"

Notes

The focused UK metadata test imports build_metadata.py directly to avoid unrelated package-level import side effects during test collection.

@anth-volk anth-volk merged commit 2c72f93 into main May 5, 2026
10 checks passed
@anth-volk anth-volk deleted the add-bundle-runtime-metadata branch May 5, 2026 21:56
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.

Add runtime metadata for bundle validation

1 participant