feat(ci): add nightly fresh-install smoke test workflow
Summary
Adds a new CI workflow — .github/workflows/nightly_fresh_install.yml — that smoke-tests a freshly published nightly through every channel users consume it from. Complements #13249 (migration validation): that PR exercises upgrade paths; this one exercises fresh installs.
Scenarios
Each scenario is exercised twice in a [sqlite, postgres] matrix:
| # | Channel | What's tested |
|---|---|---|
| 1 | uv pip install langflow-nightly (unpinned) |
Resolver picks the PyPI latest, install succeeds, server boots, /api/v1/version matches what pip installed. |
| 2 | uv pip install langflow-nightly==<PyPI latest> (pinned) |
Explicit pin resolves and installs the exact version published to PyPI. |
| 3 | docker run langflowai/langflow-nightly:latest |
The Docker image labeled :latest boots and reports the version it actually ships. |
| 4 | docker compose up |
Same image, exercised through compose, with optional Postgres service. |
Failure modes the workflow catches
- Install/resolver failure — e.g. a nightly whose deps are unsatisfiable from public indexes (
uv pip install langflow-nightly==<X>returnsNo solution found). - Silent backtrack —
uv pip install langflow-nightly(unpinned) resolves to an older nightly while the latest sits broken on PyPI. The job comparespip showagainst the PyPIinfo.versionand fails if they disagree. - Container fails to boot —
/health_checknever goes 200, or the container exits during startup. - Version drift —
/api/v1/versionreports a different version than the one actually installed inside the venv/image. - PyPI ↔ image desync — emits a workflow
::warning::when the image's installed version doesn't match the PyPI latest (expected briefly during a release; a persistent gap means one of the publish steps failed).
Integration
The workflow exposes both workflow_call and workflow_dispatch, so nightly_build.yml can chain it after a successful publish (same pattern as #13249), but this PR does not modify nightly_build.yml — wiring it in is intentionally left to a follow-up to keep the diff reviewable.
Test plan
- [ ] CI on this PR exercises the workflow against the current
langflow-nightly:latest. - [ ] Manual
workflow_dispatchagainst a known-good and a known-broken nightly tag to confirm both outcomes. - [ ] (Follow-up) wire
nightly_fresh_installintonightly_build.ymlso each nightly publish is gated by it.
Summary by CodeRabbit
- Tests & Chores
- Added comprehensive automated testing for fresh nightly releases, verifying installation and functionality across multiple installation methods and database configurations to ensure quality and reliability.
[!IMPORTANT]
Review skipped
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID:
f20679aa-2d7a-4edc-b2a0-5133c39c94d7You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
Walkthrough
New workflow nightly_fresh_install.yml smoke-tests fresh nightly Langflow releases across four installation scenarios (unpinned and pinned uv, docker run, docker compose), resolving versions from PyPI and Docker registry, installing/running against SQLite and PostgreSQL, validating version consistency, and reporting consolidated results.
Changes
Nightly Fresh Install Testing Workflow
| Layer / File(s) | Summary |
|---|---|
Workflow definition and environment setup .github/workflows/nightly_fresh_install.yml |
Workflow description, triggers (workflow_call, workflow_dispatch), and shared environment variables (Python version, database credentials, health check path and port). |
Version resolution job .github/workflows/nightly_fresh_install.yml |
resolve-versions job queries PyPI JSON API to determine the nightly package version, pulls the Docker nightly image, extracts the langflow-nightly version from the image using pip show, and emits both versions; includes a warning if PyPI and image versions diverge. |
UV installation test scenarios .github/workflows/nightly_fresh_install.yml |
uv-unpinned installs langflow-nightly without a version pin and verifies the resolved version matches the PyPI latest; uv-pinned installs langflow-nightly pinned to the resolved PyPI version and validates the pip resolver selects exactly that version. Both scenarios run against SQLite and PostgreSQL matrix, start the Langflow server with appropriate database URLs, wait for the health endpoint, validate /api/v1/version response, and upload run logs. |
Container-based test scenarios .github/workflows/nightly_fresh_install.yml |
docker-run provisions a Docker network and optional Postgres container, starts the nightly Langflow image with correct environment wiring, waits for health, validates /api/v1/version against the image version, prints container logs on failure, and tears down containers/network; docker-compose dynamically generates a compose file for SQLite or Postgres (including Postgres healthcheck and depends_on ordering), runs the stack, waits for Langflow health while inspecting container state, validates version, prints logs on failure, and always runs docker compose down -v cleanup. |
Workflow summary and result reporting .github/workflows/nightly_fresh_install.yml |
summary job always runs regardless of prior failures, reports the resolved PyPI and image versions and the pass/fail result of each test scenario, and fails the workflow if any scenario did not succeed. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
- langflow-ai/langflow#13257: Adds/adjusts CI nightly installation testing workflows to resolve and install specific
langflow-nightlyversions across multiple test scenarios.
Suggested labels
enhancement
Suggested reviewers
- Adam-Aghili
🚥 Pre-merge checks | ✅ 9
✅ Passed checks (9 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title 'feat(ci): add nightly fresh-install smoke test workflow' directly and accurately describes the main change: a new GitHub Actions workflow for testing nightly fresh installations. It is concise, specific, and clearly conveys the primary purpose of the changeset. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Test Coverage For New Implementations | ✅ Passed | PR adds GitHub Actions workflow file, not application code. Test coverage check does not apply to CI infrastructure files tested via execution. |
| Test Quality And Coverage | ✅ Passed | PR adds only a CI workflow file, not new code. Custom check for test quality/coverage applies to code implementations with async functions and APIs, not to CI workflow configurations. |
| Test File Naming And Structure | ✅ Passed | PR adds only a GitHub Actions workflow file (.github/workflows/nightly_fresh_install.yml), not test files; check is not applicable to non-test files. |
| Excessive Mock Usage Warning | ✅ Passed | PR adds only a CI workflow file (.github/workflows/nightly_fresh_install.yml) containing 526 lines. No test files with mock usage were added or modified; the check does not apply. |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
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.
Comment @coderabbitai help to get the list of available commands and usage tips.
Review findings from LE-1353 validation:
- High - docker compose state parsing can produce false failures.
In .github/workflows/nightly_fresh_install.yml (around Scenario 4 wait loop), this line parses
docker compose ps --format json langflowas a JSON object:
STATE=$(docker compose ps --format json langflow | python3 -c "import json,sys;d=json.loads(sys.stdin.read() or '{}'); print(d.get('State','missing'))" 2>/dev/null || echo missing)
On many Compose versions, ps --format json returns an array, not an object. In that case d.get(...) raises, falls through to missing, and the job fails even if container is healthy.
Suggested fix: handle both array and object shapes before reading State.
- Medium - workflow is not yet wired to the nightly release pipeline, so it does not currently guarantee every freshly published nightly is smoke-tested. I only see this workflow as workflow_call/workflow_dispatch, and no caller from release_nightly.yml or docker-nightly-build.yml in this PR.
If intended to satisfy LE-1353 end-to-end, please add an invocation after publish (or explicitly note this PR is only introducing the reusable workflow and chaining will follow).
Review findings from LE-1353 validation:
- High - docker compose state parsing can produce false failures. In .github/workflows/nightly_fresh_install.yml (around Scenario 4 wait loop), this line parses
docker compose ps --format json langflowas a JSON object:STATE=$(docker compose ps --format json langflow | python3 -c "import json,sys;d=json.loads(sys.stdin.read() or '{}'); print(d.get('State','missing'))" 2>/dev/null || echo missing)
On many Compose versions,
ps --format jsonreturns an array, not an object. In that cased.get(...)raises, falls through tomissing, and the job fails even if container is healthy.Suggested fix: handle both array and object shapes before reading State.
- Medium - workflow is not yet wired to the nightly release pipeline, so it does not currently guarantee every freshly published nightly is smoke-tested. I only see this workflow as workflow_call/workflow_dispatch, and no caller from release_nightly.yml or docker-nightly-build.yml in this PR.
If intended to satisfy LE-1353 end-to-end, please add an invocation after publish (or explicitly note this PR is only introducing the reusable workflow and chaining will follow).
- Thanks, fixed in fdebd02e — the wait loop now handles both array and object shapes.
- Done in ed9c66d6
I would change the base to 1.10.1