-
Notifications
You must be signed in to change notification settings - Fork 301
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
Fix UV install in Makefile #2421
Conversation
Signed-off-by: Thomas J. Fan <[email protected]>
why is this happening now? I see that CI checks in master are failing (the run you linked in the description). |
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
.github/workflows/pythonbuild.yml
Outdated
- name: Setup Flyte Sandbox | ||
run: | | ||
flytectl demo start | ||
flytectl demo start --version=v0.8.18 |
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.
we don't need to specify the version here. This flag maps to a flyte release, not flytectl.
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.
ditto.
Makefile
Outdated
@@ -30,7 +30,7 @@ setup: install-piptools ## Install requirements | |||
# Warning: this will install the requirements in your system python | |||
.PHONY: setup-global-uv | |||
setup-global-uv: | |||
uv pip install --system -r dev-requirements.in | |||
SETUPTOOLS_SCM_PRETEND_VERSION="3.0.0.dev0" uv pip install --system -r dev-requirements.in |
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'm still confused. Why are we seeing this now and not when I introduced uv in #2403?
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'm curious about the reason too.
And after adding SETUPTOOLS_SCM_PRETEND_VERSION
, it indeed fixed my broken CI.
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.
feel like the regression in UV. they just released yesterday. https://pypi.org/project/uv/#history
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.
This is unfortunate. I couldn't find any issue on their tracker though.
.github/workflows/pythonbuild.yml
Outdated
@@ -259,9 +259,12 @@ jobs: | |||
uv pip freeze | |||
- name: Install FlyteCTL | |||
uses: unionai-oss/flytectl-setup-action@master | |||
with: | |||
# Remove version and go back to latest when unionai-oss/flytectl-setup-action is fixed |
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.
unionai-oss/flytectl-setup-action#5 is the fix.
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 can revert this change. The above PR was merged and I tested it in flyteorg/flyte#5377.
Makefile
Outdated
@@ -30,7 +30,7 @@ setup: install-piptools ## Install requirements | |||
# Warning: this will install the requirements in your system python | |||
.PHONY: setup-global-uv | |||
setup-global-uv: | |||
uv pip install --system -r dev-requirements.in | |||
SETUPTOOLS_SCM_PRETEND_VERSION="3.0.0.dev0" uv pip install --system -r dev-requirements.in |
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'm curious about the reason too.
And after adding SETUPTOOLS_SCM_PRETEND_VERSION
, it indeed fixed my broken CI.
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
Makefile
Outdated
@@ -30,7 +30,7 @@ setup: install-piptools ## Install requirements | |||
# Warning: this will install the requirements in your system python | |||
.PHONY: setup-global-uv | |||
setup-global-uv: | |||
uv pip install --system -r dev-requirements.in | |||
SETUPTOOLS_SCM_PRETEND_VERSION="3.0.0.dev0" uv pip install --system -r dev-requirements.in |
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.
This is unfortunate. I couldn't find any issue on their tracker though.
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2421 +/- ##
===========================================
+ Coverage 42.77% 90.41% +47.63%
===========================================
Files 185 49 -136
Lines 18677 1910 -16767
Branches 2665 0 -2665
===========================================
- Hits 7990 1727 -6263
+ Misses 10599 183 -10416
+ Partials 88 0 -88 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Thomas J. Fan <[email protected]>
Signed-off-by: Thomas J. Fan <[email protected]>
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'd still love to understand what change in uv
caused this, but let's unblock for now.
* Fix UV install in Makefile Signed-off-by: Thomas J. Fan <[email protected]> * Fixes failing test Signed-off-by: Thomas J. Fan <[email protected]> * Use dev version to be simplier Signed-off-by: Thomas J. Fan <[email protected]> * Use v0.8.18 flytectl Signed-off-by: Thomas J. Fan <[email protected]> * Adds comment Signed-off-by: Thomas J. Fan <[email protected]> * Remove version specification Signed-off-by: Thomas J. Fan <[email protected]> * Remove version pin Signed-off-by: Thomas J. Fan <[email protected]> * Use pseudo version for integreation tests Signed-off-by: Thomas J. Fan <[email protected]> * Use a version that packaging recognizes Signed-off-by: Thomas J. Fan <[email protected]> * Remove quotes Signed-off-by: Thomas J. Fan <[email protected]> * Set flyteidl version Signed-off-by: Thomas J. Fan <[email protected]> * FIX Fixes version more for uv strictness Signed-off-by: Thomas J. Fan <[email protected]> --------- Signed-off-by: Thomas J. Fan <[email protected]>
I finally got to the bottom of this. It started to happen when I moved |
* Fix UV install in Makefile Signed-off-by: Thomas J. Fan <[email protected]> * Fixes failing test Signed-off-by: Thomas J. Fan <[email protected]> * Use dev version to be simplier Signed-off-by: Thomas J. Fan <[email protected]> * Use v0.8.18 flytectl Signed-off-by: Thomas J. Fan <[email protected]> * Adds comment Signed-off-by: Thomas J. Fan <[email protected]> * Remove version specification Signed-off-by: Thomas J. Fan <[email protected]> * Remove version pin Signed-off-by: Thomas J. Fan <[email protected]> * Use pseudo version for integreation tests Signed-off-by: Thomas J. Fan <[email protected]> * Use a version that packaging recognizes Signed-off-by: Thomas J. Fan <[email protected]> * Remove quotes Signed-off-by: Thomas J. Fan <[email protected]> * Set flyteidl version Signed-off-by: Thomas J. Fan <[email protected]> * FIX Fixes version more for uv strictness Signed-off-by: Thomas J. Fan <[email protected]> --------- Signed-off-by: Thomas J. Fan <[email protected]>
* Fix UV install in Makefile Signed-off-by: Thomas J. Fan <[email protected]> * Fixes failing test Signed-off-by: Thomas J. Fan <[email protected]> * Use dev version to be simplier Signed-off-by: Thomas J. Fan <[email protected]> * Use v0.8.18 flytectl Signed-off-by: Thomas J. Fan <[email protected]> * Adds comment Signed-off-by: Thomas J. Fan <[email protected]> * Remove version specification Signed-off-by: Thomas J. Fan <[email protected]> * Remove version pin Signed-off-by: Thomas J. Fan <[email protected]> * Use pseudo version for integreation tests Signed-off-by: Thomas J. Fan <[email protected]> * Use a version that packaging recognizes Signed-off-by: Thomas J. Fan <[email protected]> * Remove quotes Signed-off-by: Thomas J. Fan <[email protected]> * Set flyteidl version Signed-off-by: Thomas J. Fan <[email protected]> * FIX Fixes version more for uv strictness Signed-off-by: Thomas J. Fan <[email protected]> --------- Signed-off-by: Thomas J. Fan <[email protected]>
* Fix UV install in Makefile Signed-off-by: Thomas J. Fan <[email protected]> * Fixes failing test Signed-off-by: Thomas J. Fan <[email protected]> * Use dev version to be simplier Signed-off-by: Thomas J. Fan <[email protected]> * Use v0.8.18 flytectl Signed-off-by: Thomas J. Fan <[email protected]> * Adds comment Signed-off-by: Thomas J. Fan <[email protected]> * Remove version specification Signed-off-by: Thomas J. Fan <[email protected]> * Remove version pin Signed-off-by: Thomas J. Fan <[email protected]> * Use pseudo version for integreation tests Signed-off-by: Thomas J. Fan <[email protected]> * Use a version that packaging recognizes Signed-off-by: Thomas J. Fan <[email protected]> * Remove quotes Signed-off-by: Thomas J. Fan <[email protected]> * Set flyteidl version Signed-off-by: Thomas J. Fan <[email protected]> * FIX Fixes version more for uv strictness Signed-off-by: Thomas J. Fan <[email protected]> --------- Signed-off-by: Thomas J. Fan <[email protected]> Signed-off-by: Jan Fiedler <[email protected]>
This PR fixes the CI issue in
main
.https://github.com/flyteorg/flytekit/actions/runs/9100354302/job/25015010454