ci: gate langchain CD on uv resolvability, not just PyPI simple index#84
Merged
Conversation
The previous wait step polled pypi.org/simple/ with curl, which confirmed
PyPI knew about the new core version but did not guarantee uv would see it.
setup-uv@v7 with enable-cache: true restores uv's metadata cache across job
runs, so the cached simple-index page for uipath-llm-client could still show
only the previous version even after PyPI had published the new one — causing
the smoke test's `uv run --with "${WHEEL}[all]"` to fail to resolve
uipath-llm-client>=NEW_VERSION (see run 25555638070).
Switch the readiness probe to `uv pip install --dry-run --refresh-package
uipath-llm-client`, which invalidates uv's local cache for the package and
forces a fresh fetch each attempt. Once it succeeds, uv's cache is warm with
the new version and the downstream smoke tests inherit it. Also pass
--refresh-package on the smoke tests themselves as belt-and-suspenders.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
eecbca9 to
86d4310
Compare
ionut-mihalache-uipath
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a single PR bumps both
uipath-llm-clientanduipath-langchain-client, thecd-langchainjob can finish its wait step but still fail the smoke test withBecause only uipath-llm-client<=PREV_VERSION is available— even though the new core was already published. See run 25555638070.Root cause: The wait step polled
pypi.org/simple/uipath-llm-client/withCache-Control: no-cache, which only confirms PyPI's CDN knows about the new version. It does not meanuvwill see it.setup-uv@v7withenable-cache: truerestores uv's metadata cache across job runs, so uv's cached simple-index entry foruipath-llm-clientcan still show only the previous version. The downstreamuv run --with "${WHEEL}[all]"then resolves against that stale cache and fails.Timing from the failed run:
12:31:58— curl sawuipath-llm-client==1.11.0on the simple index12:32:07—uvreportedonly uipath-llm-client<=1.10.0 is available(9s later)Fix:
setup-uvandsetup-pythonahead of the wait step.uv pip install --dry-run --refresh-package uipath-llm-client "uipath-llm-client==$CORE_VERSION".--refresh-packageinvalidates uv's local metadata cache for just that project and forces a fresh fetch on each attempt. Once it succeeds, uv's cache is warm with the new version and downstream smoke tests inherit it.--refresh-package uipath-llm-clienton the smoke tests as well, as belt-and-suspenders.This mirrors the approach used in the
uipath-pythonrepo'sbuild-package.yml(uv lock --no-sources --no-cachewith retries), adapted to our existing wait-then-poll structure.Only
cd-langchain.ymlchanges — no source changes, no version bump.Test plan
🤖 Generated with Claude Code