Skip to content
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

Merged
merged 12 commits into from
May 16, 2024
Merged

Fix UV install in Makefile #2421

merged 12 commits into from
May 16, 2024

Conversation

thomasjpfan
Copy link
Member

Signed-off-by: Thomas J. Fan <[email protected]>
@thomasjpfan thomasjpfan marked this pull request as ready for review May 15, 2024 22:43
@eapolinario
Copy link
Collaborator

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]>
- name: Setup Flyte Sandbox
run: |
flytectl demo start
flytectl demo start --version=v0.8.18
Copy link
Collaborator

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.

Copy link
Collaborator

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
Copy link
Collaborator

@eapolinario eapolinario May 15, 2024

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?

Copy link
Collaborator

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.

Copy link
Member

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

Copy link
Collaborator

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.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

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
Copy link
Collaborator

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]>
eapolinario
eapolinario previously approved these changes May 16, 2024
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
Copy link
Collaborator

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.

eapolinario
eapolinario previously approved these changes May 16, 2024
Signed-off-by: Thomas J. Fan <[email protected]>
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.41%. Comparing base (e6e08f9) to head (12cf5e8).
Report is 6 commits behind head on master.

Current head 12cf5e8 differs from pull request most recent head c504943

Please upload reports for the commit c504943 to get more accurate results.

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.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@eapolinario eapolinario left a 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.

@eapolinario eapolinario merged commit edab1e3 into flyteorg:master May 16, 2024
45 of 46 checks passed
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 21, 2024
* 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]>
@eapolinario
Copy link
Collaborator

I finally got to the bottom of this. It started to happen when I moved flytectl to the monorepo. Here's the fix: flyteorg/flyte#5419.

austin362667 pushed a commit to austin362667/flytekit that referenced this pull request Jun 15, 2024
* 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]>
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request Jun 15, 2024
* 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]>
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants