Repository navigation
plugin runner fixes (corrupted environment cleanup & remove poetry) - #21
Merged
Merged
Conversation
mschrimpf
reviewed
Aug 2, 2022
mschrimpf
left a comment
Member
There was a problem hiding this comment.
my take is still that if conda can't remove an environment, we shouldn't further touch it. Have you encountered this case? If yes, under which conditions does it occur?
Contributor
Author
This is unfortunately common when environment creation is disrupted (see PR description). @d-val ran into it almost immediately: |
poetry)
mschrimpf
approved these changes
Aug 9, 2022
mschrimpf
added a commit
that referenced
this pull request
Oct 26, 2022
…#21) * directly remove env dir if corrupted * thorough test for env teardown * nit * add comment * add plugin env path to test runner * nit * poetry update * poetry revert * poetry test * poetry test * poetry --> pip * update setuptools to beta for PEP660 support * update setuptools to beta for PEP660 support * update conda env setup command * extend conda base test * stop plugin tests failing silently * update conda base test * remove not-yet-existent benchmark import * add datasets * fix typo * add datasets * add travis fold around plugin tests * remove travis fold around plugin tests Co-authored-by: Katherine Fairchild <[email protected]> Co-authored-by: Martin Schrimpf <[email protected]>
KartikP
added a commit
that referenced
this pull request
Oct 14, 2026
Run the coordinated four-package checks for Language PRs and pushes targeting v2. The shared workflow builds and tests installed wheels on Ubuntu and macOS and runs the OpenPI client profile. The caller supplies the exact PR head and source repository, including forks. Other peers stay pinned. Both the workflow and Unified source use immutable commit `d445bdb`; no secrets are inherited and token access is read-only. Existing Jenkins jobs remain in place for domain and plugin checks. Depends on [Unified #21](KartikP/brainscore-unified#21). Validation: actionlint passes; the local required Language selection passes (67 tests). The shared runner has 14 new revision-resolution cases and passed its full local offline suite. After the caller merges, require the reported `UMI v2 / ...` statuses on v2. This PR does not change branch protection or publish packages. Supports brain-score/unified-model-interface#16 and #18.
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.

This PR addresses 2 issues affecting the plugin runner:
1. Replaces
poetrywithpipfor project and plugin setupDue to limitations in
poetry, plugin environment setup has been working locally but failing silently in Travis. This replacespoetrywithpipfor both plugin and project setup. (This is a somewhat bittersweet farewell topoetryas we are losing its nice dependency conflict management!).2. Adds cleanup for corrupted
condaenvironmentsIf a
condaenvironment is corrupted during setup (which can occur via keyboard interrupt or other common events), it is not recognized bycondaas an environment and cannot be removed byconda env remove.This adds a fallback method (
shutil.rmtree()) that attempts to directly remove a corrupted environment directory, and on failure raises a warning to the user that the environment should be manually deleted.