Skip to content

ci: install core from a pinned commit in plugin workflows - #2584

Merged
KartikP merged 2 commits into
masterfrom
kp/pin-core-metadata-v2
Oct 8, 2026
Merged

KartikP merged 2 commits into
masterfrom
kp/pin-core-metadata-v2

Conversation

@KartikP

@KartikP KartikP commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Plugin workflows install brainscore-core from PyPI. PyPI is on 2.3.8, which predates v2 metadata, so "Process metadata changes" fails on every v2 metadata merge. This PR installs core from a pinned commit in each step that installs vision, and switches the metadata review workflow to the same pin:

  • handle_metadata.yml (Process metadata changes)
  • score_new_plugins.yml (both install steps)
  • map_new_plugins.yml
  • user_notification_system.yml
  • model-metadata-v2.yml (metadata review)

Each workflow sets CORE_REF once, at the top, to core main at a95e2a7fa30a7e99d845858d669b10373f2317ea (includes brain-score/core#177 and brain-score/core#178). model-metadata-v2.yml now uses the same constant instead of the METADATA_CORE_REF repository variable, so the variable is no longer read. A malformed SHA fails the step. To move to a newer core, open a PR that changes CORE_REF in these five files.

Why not pyproject.toml: vision publishes to PyPI after every merge (bump_version.yml), and PyPI rejects packages that declare git URL dependencies. #1236 moved off a git dependency for this reason.

Not covered here: Jenkins scoring containers already reinstall core from main before installing vision (infrastructure batch.py). Core's own unittest_core installs vision from PyPI.

Dry run, no database: core a95e2a7 handle_metadata.main ran on a temp copy of AdvProp_efficientnet_b2/metadata.yaml (v2, scored). It validated, printed 2 vocabulary warnings, made no PR and no DB call, and left the file unchanged.

@KartikP
KartikP marked this pull request as ready for review October 8, 2026 20:25
@KartikP
KartikP merged commit 700d15a into master Oct 8, 2026
14 checks passed
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.

1 participant