Skip to content

Add bundle runtime metadata#8229

Merged
MaxGhenis merged 1 commit into
mainfrom
add-bundle-runtime-metadata
May 5, 2026
Merged

Add bundle runtime metadata#8229
MaxGhenis merged 1 commit into
mainfrom
add-bundle-runtime-metadata

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

@anth-volk anth-volk commented May 4, 2026

Fixes #8228

Companion PR: PolicyEngine/policyengine-uk#1659
Companion issue: PolicyEngine/policyengine-uk#1658

Summary

Adds country runtime metadata for bundle validation.

  • Adds policyengine_us.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_us/tests/test_build_metadata.py -vv
  • uv run --frozen --with /Users/administrator/Documents/PolicyEngine/policyengine-bundles pytest policyengine_us/tests/test_build_metadata.py -vv
  • uv run ruff check policyengine_us/build_metadata.py policyengine_us/tests/test_build_metadata.py
  • uv run python -c "import yaml; yaml.safe_load(open('.github/workflows/pr.yaml')); print('ok')"

@anth-volk anth-volk requested a review from hua7450 May 4, 2026 20:37
@anth-volk anth-volk marked this pull request as ready for review May 4, 2026 20:37
@MaxGhenis MaxGhenis merged commit e1ace48 into main May 5, 2026
23 checks passed
@MaxGhenis MaxGhenis deleted the add-bundle-runtime-metadata branch May 5, 2026 00:47
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

3 participants