-
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 user local dependencies #123
Conversation
0dbb716
to
66af593
Compare
0195cbf
to
41e9009
Compare
FL-641 Improve the way we handle local dependencies
Context and user need: We want to install all the local dep AND the dependencies on the same line to take advantage of the pip compatibility resolver, and to install a lib ONLY ONE TIME. Functional spec: Technical spec: Acceptance criteria: FL-995 Rename local_dependencies to local_installable_dependencies
There is often the confusion between Let's rename FL-984 Installing substrafl and substra from PyPI in Docker
We are currently building a wheel for substraFL and substra during the Docker image creation, even if the user doesn't want to install its local (edited) version, but versions released from PyPI. I guess it's a left-over from when substra was closed source, and it was easier to do it that way than to handle credentials to install from private PyPI. It's not the case anymore, so we should treat these dependencies as regular PyPI dependencies. https://github.com/Substra/substrafl/blob/main/substrafl/remote/register/generate_wheel.py#L94 FL-642 Unify third parties dependencies in substrafl
Context and user need: Functional spec: Technical spec: Acceptance criteria: FL-978 Check Python version in Substra
Currently, if we run substra in an Python version not supported (i.e. to which we haven't build Th scope of this task is add a check at the beginning of dockerfile creation to not generate Dockerfile with incorrect python versions and stop the process early. User issue: https://substra-workspace.slack.com/archives/C041LHMR37G/p1684931669897749 |
41e9009
to
4bb8669
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.
Impressive PR, thanks a lot !! I just got a bit confused in the end: is there still a substrafl internal folder ? or all wheel are now at the root of the docker ?
4bb8669
to
c8dafc2
Compare
c8dafc2
to
d0c2d05
Compare
d0c2d05
to
181d08b
Compare
181d08b
to
ccbd113
Compare
/e2e --tests substrafl --benchmarks camelyon |
End to end tests: ✔️ SUCCESS |
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.
One question and will be good to me :) Really nice work.
And of course deal with the Sphynx issue 😭
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
72e9f87
to
d786742
Compare
/e2e --tests substrafl --benchmarks camelyon |
End to end tests: ❌ FAILURE “Houston, we have a problem.” ― Jim Lovell, Apollo 13 |
d786742
to
3e16f7e
Compare
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
3e16f7e
to
f4a9e4d
Compare
/e2e --tests substrafl --benchmarks camelyon |
End to end tests: ✔️ SUCCESS Awesome! 🎉 |
/e2e test None --benchmarks camelyon |
End to end tests: ❌ FAILURE “Rien ne sert de courir ; il faut partir à point.” ― Jean de La Fontaine (Le Lièvre et la Tortue) |
@ThibaultFy rerun the benchmark that failed this night because of a network error, all good now https://github.com/owkin/substra-ci/actions/runs/5214219498/jobs/9421588382 ✅ |
Oh perfect thanks ! |
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.
Really nice work, can't wait to see the impact 😄
@@ -193,6 +193,7 @@ | |||
("py:class", "substra.sdk.schemas.FunctionOutputSpec"), | |||
("py:class", "substra.sdk.schemas.FunctionInputSpec"), | |||
("py:class", "ComputePlan"), | |||
("py:class", "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.
🤣 you gave up...
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 did 😞
f452359
to
e110bdd
Compare
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
e110bdd
to
61863aa
Compare
This reverts commit 157cf59.
This reverts commit 157cf59. Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Summary
This PR improves the management of user-provided dependencies.
local_dependencies
->local_installable_dependencies
).Notes
resolves FL-984
resolves FL-995
resolves FL-978
resolves FL-641
resolves FL-642
Still TODO
Please check if the PR fulfills these requirements