Repository navigation
Allow SLURM runs from an installed released distribution - #23
Merged
Merged
Conversation
execution=slurm required a clean committed Git checkout of the algorithm, so an algorithm installed from PyPI (pip/uv install) could only run locally. The plan now also records the installed distribution providing the algorithm (name, version, editable). SLURM accepts either a clean committed checkout (unchanged checks) or a released, non-editable installed distribution; each worker checks that the same name and version are still installed before running its stage. An editable install outside a Git checkout is still refused, as its source can change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx
This was referenced Nov 25, 2026
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.
Why
curiosity-meds run execution=slurm …(or any algorithm's runner) refuses an algorithm installed from PyPI: "SLURM requires an unchanged, clean committed algorithm checkout". Core identifies the code that runs by its Git commit, and an installed wheel has no.git. So users had to clone the algorithm instead ofuv pip install meds-algorithm-<name>==<version>, or write their ownsbatcharoundexecution=local.What
distribution_provenance):{"name", "version", "editable"}, fromimportlib.metadata, orNonewhen nothing installed provides it.ORCHESTRATION.mddocuments both options.Tests
test_slurm_submits_an_installed_release_and_workers_check_its_versionchecks thattest_slurm_refuses_dirty_or_unknown_checkoutnow pins "no installed distribution", so it can't depend on what is installed on the test machine.ruff check,ruff format --checkandpytest -q(161 passed) are clean.meds-algorithm-curiosity[orchestration]==0.1.2from PyPI and this branch,distribution_provenance("curiosity_meds.config")gives{'name': 'meds-algorithm-curiosity', 'version': '0.1.2', 'editable': False}. No actual SLURM cluster was used; Submitit submission is mocked as in the existing tests.🤖 Generated with Claude Code
https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx