Commit a9ef179
authored
fix(ci): keep uv.lock in step with the release version bump (#699)
The release job bumps `version` in `pyproject.toml` but commits only
that file, so `uv.lock` — which carries the project's own version — goes
stale after every release, and the next contributor to run `make
install` picks up an unrelated bump in their PR. Nothing caught it: `uv
sync --frozen` takes the lock as-is, and at tag `v0.26.0` it installed
`redisvl==0.26.0` from a lock that still said `0.25.1`.
The release job now bumps both files and verifies the edit before
anything is committed or pushed: one changed line per file, and the new
version on the `redisvl` entry specifically. It edits that one field
rather than running `uv lock`, which re-serializes the whole file (258
lines of marker churn here) right after `canary-build` validated the old
one. A new `lock` job in `lint.yml` runs `uv lock --check` so drift
fails on the PR — note that a PR editing dependency specifiers without
re-locking will now fail it; fix is `uv lock`.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches the auto-release job that commits to main and tags/publishes,
so a bad sed or check could stall or mis-bump a release. Lock-check is
otherwise low-risk CI.
>
> **Overview**
> Stops the release bot from leaving `uv.lock` stale after it bumps
`pyproject.toml`. The project's own version in the lock is edited in
place (not a full `uv lock` re-serialize), then checked: one version
line per file, the `redisvl` entry specifically, and `uv lock --check`.
Both files are committed together.
>
> Lint CI gains a `lock` job that runs `uv lock --check` so
dependency-spec changes without a re-lock fail on the PR. CONTRIBUTING
notes that contributors should run `uv lock` when changing deps. This PR
also aligns the lock's `redisvl` version to `0.26.0`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
53aa941. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 6cb3f92 commit a9ef179
3 files changed
Lines changed: 84 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
190 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
191 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
192 | 241 | | |
193 | 242 | | |
194 | 243 | | |
195 | 244 | | |
196 | 245 | | |
197 | 246 | | |
198 | | - | |
199 | | - | |
| 247 | + | |
| 248 | + | |
200 | 249 | | |
201 | 250 | | |
202 | 251 | | |
203 | | - | |
| 252 | + | |
204 | 253 | | |
205 | | - | |
| 254 | + | |
206 | 255 | | |
207 | 256 | | |
208 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
0 commit comments