Skip to content

feat: add langflow-sdk support to release workflow#12679

Merged
erichare merged 7 commits into
release-1.9.0from
eh/release-sdk-support
Apr 14, 2026
Merged

feat: add langflow-sdk support to release workflow#12679
erichare merged 7 commits into
release-1.9.0from
eh/release-sdk-support

Conversation

@erichare
Copy link
Copy Markdown
Collaborator

Summary

  • Adds langflow-sdk build and publish support to the release workflow, mirroring the nightly build support from fix: Cherry-pick nightly SDK build fixes to main #12491
  • lfx depends on langflow-sdk>=0.1.0, so SDK must be published to PyPI before LFX can be installed by end users
  • This is the first release of langflow-sdk to PyPI

Changes

New workflow inputs

  • release_sdk — controls whether langflow-sdk is built and published to PyPI

New jobs

  • determine-sdk-version — reads version from src/sdk/pyproject.toml, checks PyPI (handles 404 for first-time publish), computes pre-release version if needed
  • build-sdk — builds SDK wheel, verifies version, tests import, uploads dist-sdk artifact
  • publish-sdk — publishes SDK to PyPI (gated on dry_run), runs after cross-platform tests and CI

Modified jobs

  • validate-dependencies — enforces that release_lfx requires release_sdk (same pattern as main→base validation)
  • build-lfx — downloads SDK artifact, installs SDK + LFX wheels together in a clean venv for testing (mirrors nightly pattern), adds pre-release langflow-sdk dependency handling
  • build-base / build-main — download SDK artifact and include as --find-links for dependency resolution
  • test-cross-platform — passes sdk-artifact-name: "dist-sdk" to include SDK in cross-platform testing
  • publish-lfx — depends on publish-sdk to ensure SDK is on PyPI before LFX is published

Dependency graph (publish order)

publish-sdk → publish-lfx → publish-base → publish-main

Test plan

  • Trigger workflow with dry_run=true, release_sdk=true, release_lfx=true to verify the build pipeline completes
  • Verify determine-sdk-version correctly detects first-time publish (PyPI 404)
  • Verify build-sdk produces correct wheel and import test passes
  • Verify build-lfx installs both SDK and LFX wheels together for CLI test
  • Verify validate-dependencies blocks release_lfx without release_sdk
  • For actual release: run with dry_run=false to publish to PyPI

Add support for building and publishing the langflow-sdk package in the
release workflow, mirroring the nightly build support added in #12491.

Changes:
- Add `release_sdk` workflow input for controlling SDK release
- Add `determine-sdk-version` job with first-release PyPI handling
- Add `build-sdk` job with version verification and import testing
- Add `publish-sdk` job that publishes SDK to PyPI before LFX
- Update `build-lfx` to download SDK artifact and test both wheels together
- Update `build-base` and `build-main` to use SDK wheel as find-links
- Pass SDK artifact to cross-platform tests
- Add validation: releasing LFX requires releasing SDK
- Add pre-release version handling for SDK and LFX's SDK dependency
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 48709d6b-0f62-48fb-9f50-e9ea9c446615

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch eh/release-sdk-support

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the enhancement New feature or request label Apr 14, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.43%. Comparing base (19df460) to head (45c8ee6).
⚠️ Report is 3 commits behind head on release-1.9.0.

❌ Your project status has failed because the head coverage (49.73%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-1.9.0   #12679      +/-   ##
=================================================
- Coverage          52.70%   52.43%   -0.27%     
=================================================
  Files               2020     2020              
  Lines             183333   182623     -710     
  Branches           28722    26025    -2697     
=================================================
- Hits               96617    95753     -864     
- Misses             85625    85778     +153     
- Partials            1091     1092       +1     
Flag Coverage Δ
backend 55.68% <ø> (-0.02%) ⬇️
frontend 52.33% <ø> (-0.39%) ⬇️
lfx 49.73% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 244 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 14, 2026
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 14, 2026
@erichare erichare requested a review from Copilot April 14, 2026 00:42
@erichare erichare requested a review from vjgit96 April 14, 2026 00:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds first-time release support for langflow-sdk to the main release workflow, ensuring the SDK is published to PyPI before LFX (and downstream packages) so end users can install lfx successfully.

Changes:

  • Introduces a release_sdk workflow input and SDK-specific determine/build/publish jobs.
  • Updates build jobs (LFX/base/main) and cross-platform tests to optionally consume a locally-built SDK wheel artifact.
  • Enforces release dependency ordering so publish-sdk happens before publish-lfx, then base/main.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.secrets.baseline Updates secret baseline metadata to reflect workflow line shifts and regeneration time.
.github/workflows/release.yml Adds SDK release pipeline (determine/build/publish) and threads SDK artifact usage + publish ordering through existing release jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
erichare and others added 3 commits April 13, 2026 17:49
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 14, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 34%
34.55% (39486/114254) 66.98% (5330/7957) 35.6% (926/2601)

Unit Test Results

Tests Skipped Failures Errors Time
3795 0 💤 0 ❌ 0 🔥 7m 19s ⏱️

@erichare erichare requested a review from Adam-Aghili April 14, 2026 01:12
@github-actions github-actions Bot added the lgtm This PR has been approved by a maintainer label Apr 14, 2026
@erichare erichare added skip-nightly-check fast-track Skip tests and sends PR into the merge queue labels Apr 14, 2026
@erichare erichare added this pull request to the merge queue Apr 14, 2026
Merged via the queue into release-1.9.0 with commit 2fa3d1c Apr 14, 2026
130 of 146 checks passed
@erichare erichare deleted the eh/release-sdk-support branch April 14, 2026 02:28
Adam-Aghili pushed a commit that referenced this pull request Apr 15, 2026
* feat: add langflow-sdk build and publish support to release workflow

Add support for building and publishing the langflow-sdk package in the
release workflow, mirroring the nightly build support added in #12491.

Changes:
- Add `release_sdk` workflow input for controlling SDK release
- Add `determine-sdk-version` job with first-release PyPI handling
- Add `build-sdk` job with version verification and import testing
- Add `publish-sdk` job that publishes SDK to PyPI before LFX
- Update `build-lfx` to download SDK artifact and test both wheels together
- Update `build-base` and `build-main` to use SDK wheel as find-links
- Pass SDK artifact to cross-platform tests
- Add validation: releasing LFX requires releasing SDK
- Add pre-release version handling for SDK and LFX's SDK dependency

* Update release.yml

* Update release.yml

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fast-track Skip tests and sends PR into the merge queue lgtm This PR has been approved by a maintainer skip-nightly-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants