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

ci: fix releases with uv #3971

Merged
merged 45 commits into from
Oct 2, 2024
Merged

ci: fix releases with uv #3971

merged 45 commits into from
Oct 2, 2024

Conversation

jordanrfrazier
Copy link
Collaborator

@jordanrfrazier jordanrfrazier commented Oct 1, 2024

Mostly fixes up the releases and nightlies to work with uv. The docker base build is still broken, though the main is able to build and pulls correctly (tested with nightlies - https://hub.docker.com/r/langflowai/langflow-nightly).

Also, I do not build the source distributions. I tried, but the resulting tarball was ~300mb. Unsure what we need to prune there - have tried --no-sources.

The best workflow is https://github.com/langflow-ai/langflow/actions/runs/11136444977/job/30948508609 - all passing except base docker push.

That said, unless someone notices the issue with the base docker build, I propose we merge this now to unblock releases then fix the docker base image in a follow up.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3971.dmtpw4p5recq1.amplifyapp.com


- name: Test CLI
run: |
python -m pip install src/backend/base/dist/*.whl
python -m langflow run --host 127.0.0.1 --port 7860 &
# TODO: unsure why the whl is not built in src/backend/base
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have no idea why this behavior changed on me. Between pushes, through no change on my end that I can tell, make build base using uv started putting the base whl into root/dist instead of root/src/backend/base/dist. This is a hack that moves it back to where everything else expects it to be.

@jordanrfrazier jordanrfrazier marked this pull request as ready for review October 2, 2024 02:33
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 2, 2024
- name: Wait for PyPI Propagation
run: sleep 300 # wait for 5 minutes to ensure PyPI propagation of base

- name: Build project for distribution
run: make build main=true args="--no-sources"
run: make build main=true args="--no-sources --wheel"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

only building wheel, no sdist

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 2, 2024
@ogabrielluiz ogabrielluiz added lgtm This PR has been approved by a maintainer and removed lgtm This PR has been approved by a maintainer labels Oct 2, 2024
- Introduced `actions/checkout@v4` step to multiple workflows to ensure code is checked out at a specific ref.
- Updated `.github/workflows/docker-build.yml`, `.github/workflows/release_nightly.yml`, `.github/workflows/lint-py.yml`, and `.github/workflows/style-check-py.yml` to include the new checkout step.
- Ensured credentials are persisted during the checkout process.
@ogabrielluiz ogabrielluiz merged commit e19d90b into main Oct 2, 2024
28 checks passed
@ogabrielluiz ogabrielluiz deleted the fraz-nightly-uv branch October 2, 2024 12:37
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
* Update scripts

* update the base dep in uv deps

* update nightly scripts

* Add uv creds for publish

* skip tests for now

* fix version

* only build the wheel

* try again

* add uv to python run

* [autofix.ci] apply automated fixes

* use uv cache

* more version fixe

* fixing versions

* fix base version

* Try no frozen?

* skip everything to try docker build

* tag

* frozen

* separate script for updating uv dep

* [autofix.ci] apply automated fixes

* hardcoded versions

* hardcoded versions

* add version to editable package

* build project before docker file runs

* try again

* fix uv patht o build

* don't know why this would mkae a difference

* debug statements

* debug statements

* debug statements

* change path to whl 🤷

* manually move the wheel...

* make dir

* try no sources

* add back tests

* refactor uv to action

* add uv action

* Update nightly build workflow to include uv lock files in version update commit

* Update lint-py workflow to use specific ref for setup-uv action

* Add checkout step to style-check-py GitHub Actions workflow

* Remove redundant GitHub ref syntax in lint-py.yml workflow

* Update lint-py.yml to use specific ref for setup-uv action

* Update action.yml: standardize quotes and remove redundant checkout step

* Add checkout step to GitHub Actions workflows for specific ref handling

- Introduced `actions/checkout@v4` step to multiple workflows to ensure code is checked out at a specific ref.
- Updated `.github/workflows/docker-build.yml`, `.github/workflows/release_nightly.yml`, `.github/workflows/lint-py.yml`, and `.github/workflows/style-check-py.yml` to include the new checkout step.
- Ensured credentials are persisted during the checkout process.

* Add checkout step to Python test workflow with specific ref

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants