Skip to content

Commit 1046d5e

Browse files
authored
fix(ci): allow pre-releases when pinning the nightly in migration validation (#13599)
Migration Test: pip/venv (stable -> nightly) failed deterministically on nightly run 27260425158 (twice, including a rerun): hint: langflow-base was requested with a pre-release marker (e.g., langflow-base==1.11.0.dev1), but pre-releases weren't enabled (try: --prerelease=allow) This is the first nightly publishing as a canonical .devN pre-release of the langflow distribution (nightly -> stable bundle cutover). The 'latest' branch of the upgrade step already passes --prerelease=allow, but the pinned-version branches do not. uv implicitly allows the pre-release for the directly requested ==X.Y.Z.devN pin, yet langflow's metadata pins langflow-base==X.Y.Z.devN transitively, and uv rejects transitive pre-releases unless they are enabled - so the install fails after the stable uninstall, sinking the migration test. Add --prerelease=allow to both pinned-version install lines.
1 parent 99b317b commit 1046d5e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/db-migration-validation.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,16 @@ jobs:
182182
# Install latest nightly (canonical pre-release) from PyPI
183183
uv pip install --upgrade --prerelease=allow 'langflow[postgresql]'
184184
else
185-
# Install specific version
186-
uv pip install --upgrade "langflow[postgresql]==$VERSION"
185+
# Install specific version. --prerelease=allow is required even for an
186+
# exact ==X.Y.Z.devN pin: uv only implicitly allows the pre-release for
187+
# the directly requested package, while langflow's metadata pins
188+
# langflow-base==X.Y.Z.devN transitively, which uv rejects without it.
189+
uv pip install --upgrade --prerelease=allow "langflow[postgresql]==$VERSION"
187190
fi
188191
else
189192
# Direct version string (strip 'v' prefix if present)
190193
VERSION="${NIGHTLY_TAG#v}"
191-
uv pip install --upgrade "langflow[postgresql]==$VERSION"
194+
uv pip install --upgrade --prerelease=allow "langflow[postgresql]==$VERSION"
192195
fi
193196
194197
# Verify upgrade

0 commit comments

Comments
 (0)