-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: unify dependencies #155
Conversation
225c580
to
88f3ba3
Compare
490d192
to
252a05b
Compare
64ab47d
to
999d8f8
Compare
1c4f1e8
to
532594a
Compare
FL-1022 Follow-up user-dependencies management
ContextSpecificationMethod Acceptance criteria
FL-1037 revert: pip-compile on windows, Windows-compatible temp dir, unify user local dependencies
SummaryThree commits were revert to unlock the release 0.28.0. Hash of the revert commit: We want to "revert the revert" to re-integrate these changes with the following changes:
We want this PR to be validated on test-upgrade before being merged. To do so, use a compatible version of substrafl and apply this commit. NotesPlease check if the PR fulfills these requirements
|
656c5c3
to
6a0a976
Compare
663a973
to
49d0b12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for taking up that feature again.
It's a quite diffuse feeling, but the convolutions in some parts of the flow make me wonder if there is not some inversion in the way we are splitting responsibilities (object B should be responsible of doing X, instead of A).
I'd be interested in discussing that further, and will continue thinking about it.
dbbb3a2
to
9a75fdd
Compare
/e2e --mode=standalone --tests=substrafl --benchmarks=camelyon |
End to end tests: ✔️ SUCCESS “I love it when a plan comes together.” ― Colonel John “Hannibal” Smith, The A-Team |
d6a63a7
to
cefd037
Compare
4ec6cdf
to
f4b3325
Compare
/e2e --mode=standalone --tests=substrafl --benchmarks=camelyon |
b6fa09f
to
6d04f0d
Compare
Signed-off-by: ThibaultFy <[email protected]>
6d04f0d
to
1bcd014
Compare
/e2e --mode=standalone --tests=substrafl --benchmarks=camelyon |
End to end tests: ✔️ SUCCESS |
substrafl/dependency/schemas.py
Outdated
dest_dir (Path): directory where to copy the dependencies computation tree structure. | ||
""" | ||
|
||
self._copy_cache_directory(dest_dir=dest_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need a method callling another method, you can just have the content of self._copy_cache_directory
here, no?
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
/e2e --mode=standalone --tests=substrafl --benchmarks=camelyon |
End to end tests: ✔️ SUCCESS “Carpe diem. Seize the day, boys.” ― John Keating, Dead Poets Society |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for all your work on this PR.
Just a minor comment to have a more Pythonic getter, and I think we're good to go 🚀
substrafl/dependency/schemas.py
Outdated
|
||
def get_cache_directory(self) -> Path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def get_cache_directory(self) -> Path: | |
@property | |
def cache_directory(self) -> Path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh thanks of course...
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
This reverts commit b9acbe0.
Link to the reverts PR:
Changes regarding the initial commit:
compute
dependencies, to build wheels, compile them and create the folder with the right tree structureDependency
object. This allow to compute the dependencies once and for all using thecompute_in_cache_folder
andclean_cache_folder
methodcloses FL-1022, FL-1037,
CI ✅ https://github.com/owkin/substra-ci/actions/runs/5727598535
Please check if the PR fulfills these requirements