Repository navigation
ci: install core from a pinned commit in plugin workflows - #2584
Merged
Merged
Conversation
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.
Plugin workflows install
brainscore-corefrom 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.ymluser_notification_system.ymlmodel-metadata-v2.yml(metadata review)Each workflow sets
CORE_REFonce, at the top, to coremainata95e2a7fa30a7e99d845858d669b10373f2317ea(includes brain-score/core#177 and brain-score/core#178).model-metadata-v2.ymlnow uses the same constant instead of theMETADATA_CORE_REFrepository variable, so the variable is no longer read. A malformed SHA fails the step. To move to a newer core, open a PR that changesCORE_REFin 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
mainbefore installing vision (infrastructurebatch.py). Core's ownunittest_coreinstalls vision from PyPI.Dry run, no database: core
a95e2a7handle_metadata.mainran on a temp copy ofAdvProp_efficientnet_b2/metadata.yaml(v2, scored). It validated, printed 2 vocabulary warnings, made no PR and no DB call, and left the file unchanged.