Skip to content

Commit 2157c09

Browse files
fix(ci): add uv lock to post-release workflow to update stale lockfile (#5139)
# What does this PR do? The post-release PRs fails CI because uv.lock still pins the old llama-stack-client version, causing a client/server version mismatch in integration tests. Run uv lock after bumping fallback_version so the lockfile picks up the latest client release. Signed-off-by: Charlie Doern <cdoern@redhat.com> Co-authored-by: Francisco Javier Arceo <arceofrancisco@gmail.com>
1 parent 1a7f57e commit 2157c09

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/post-release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ jobs:
117117
git push origin "$DEV_TAG"
118118
echo "Pushed tag $DEV_TAG to main ($MAIN_SHA)"
119119
120+
- name: Set up uv
121+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
122+
120123
# -----------------------------------------------------------------------
121124
# Step B: Bump fallback_version on main and open PR
122125
# -----------------------------------------------------------------------
@@ -143,6 +146,12 @@ jobs:
143146
# Update fallback_version in src/llama_stack_api/pyproject.toml
144147
sed -i "s/^fallback_version = .*/fallback_version = \"${NEXT_FALLBACK}\"/" src/llama_stack_api/pyproject.toml
145148
149+
# Bump llama-stack-client minimum version to match the release
150+
sed -i "s/\"llama-stack-client>=.*\"/\"llama-stack-client>=${VERSION}\"/" pyproject.toml
151+
152+
# Regenerate lockfile to resolve the updated client version
153+
uv lock
154+
146155
# Check if there are changes
147156
if git diff --quiet; then
148157
echo "No changes to fallback_version, skipping PR"
@@ -151,7 +160,7 @@ jobs:
151160
152161
git config --local user.name "github-actions[bot]"
153162
git config --local user.email "github-actions[bot]@users.noreply.github.com"
154-
git add pyproject.toml src/llama_stack_api/pyproject.toml
163+
git add pyproject.toml src/llama_stack_api/pyproject.toml uv.lock
155164
git commit -s -m "chore: bump fallback_version to ${NEXT_FALLBACK} after ${VERSION} release"
156165
git push origin "$BRANCH"
157166
@@ -201,6 +210,9 @@ jobs:
201210
202211
git checkout -b "$BRANCH" "origin/${RELEASE_BRANCH}"
203212
213+
# Regenerate uv lockfile so pre-commit passes
214+
uv lock
215+
204216
# Update npm lockfile
205217
cd src/llama_stack_ui
206218
npm install "llama-stack-client@^${VERSION}"
@@ -214,7 +226,7 @@ jobs:
214226
215227
git config --local user.name "github-actions[bot]"
216228
git config --local user.email "github-actions[bot]@users.noreply.github.com"
217-
git add src/llama_stack_ui/package.json src/llama_stack_ui/package-lock.json
229+
git add uv.lock src/llama_stack_ui/package.json src/llama_stack_ui/package-lock.json
218230
git commit -s -m "chore: update llama-stack-client to ^${VERSION} in UI lockfile"
219231
git push origin "$BRANCH"
220232

0 commit comments

Comments
 (0)