Repository navigation
Add support for scratch area to automatically add packages when running on Kubernetes - #313
Merged
Merged
Conversation
callumforrester
commented
Oct 20, 2023
Codecov Report
@@ Coverage Diff @@
## main #313 +/- ##
==========================================
+ Coverage 88.99% 89.07% +0.08%
==========================================
Files 38 39 +1
Lines 1390 1446 +56
==========================================
+ Hits 1237 1288 +51
- Misses 153 158 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
DiamondJoseph
approved these changes
Oct 23, 2023
DiamondJoseph
left a comment
Contributor
There was a problem hiding this comment.
Seems to work for both existing library dependencies (dodal) and for modules to import (i22_bluesky)
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.
Recent discussion has emphasized the need for an area to checkout Python packages and do dev work against a live instance of blueapi running on Kubernetes. This has previously been done by pushing alpha tags of various packages and continually rebuilding and redeploying the blueapi container, which has become a lengthy and unweildy process.
This PR introduces the "scratch area", a shared directory that can be mounted from the container running on kubernetes, and can install any (pip installable) Python libraries that are cloned into it. In the cases where a dev version of an existing dependency is required (e.g. Dodal), the cloned version will overwrite the existing version installed in the container.
Removing a package and restarting the container works like a factory reset. See documentation addtions for more information.
Changes: