Skip to content

build(release): relock and stage uv.lock in the release commit (backport #522 to stable/10) - #523

Merged
jwulf merged 3 commits into
stable/10from
backport-522-to-stable/10
Nov 30, 2026
Merged

jwulf merged 3 commits into
stable/10from
backport-522-to-stable/10

Conversation

@camunda-sdk-automation

Copy link
Copy Markdown
Contributor

Backport of #522 to stable/10.

Generated code is restored from stable/10 and regenerated by the Backport workflow in a separate chore(gen) commit.

relates to #521 #519

* test: check that the release commit carries uv.lock's version bump

Fails on main: build_command is plain 'uv build', so uv.lock keeps the old
project version after a release.

Refs #521

* build(release): relock and stage uv.lock in the release commit

The release commit bumped pyproject.toml but not uv.lock. On stable branches
the lock then stayed stale until the next push, and every backport in between
failed to regenerate because its uv sync relocked a file outside the
generated paths. Use python-semantic-release's documented uv recipe.

Closes #521

* test: let the relock test resolve with the network

uv lock under UV_OFFLINE fails on CI runners whose uv cache lacks packages
for every resolution split (attrs for python>=3.12), so the test failed
deterministically. Refs #521

(cherry picked from commit 032b8b8)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Release commands can succeed despite relocking or staging failures, allowing a stale or uncommitted lock to ship, while the test masks this failure path.

1 open issue
What changed in this PR

Backports #522 to stable/10 to keep uv.lock synchronized with release versions and prevent stale locks from blocking backport regeneration.

Changes:

  • Relock and stage uv.lock before building the release package.
  • Add an acceptance test that simulates a version bump and verifies the lock’s version and staging.
File Description
tests/​acceptance/​test_release_relocks.py Tests release-time lock synchronization and staging in a scratch repository.
pyproject.toml Adds relocking and staging to the semantic-release build command.

Review effort: Balanced

Comment thread pyproject.toml Resolved
Signed-off-by: Josh Wulf <josh.wulf@camunda.com>
@jwulf

jwulf commented Nov 30, 2026

Copy link
Copy Markdown
Member

🤖 The changes in this PR were produced by nano-agent, an autonomous agent. Commits are authored under the operator's own git identity when one is resolvable (the human running the fleet), so they can satisfy CLA/DCO requirements; this note records that the work was generated by the agent.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The failure tests can pass for a broken release command chain because non-target steps are not stubbed to succeed, leaving continuation after relocking fails undetected.

1 open issue
1 resolved since last review

Review effort: Balanced

Signed-off-by: Josh Wulf <josh.wulf@camunda.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The release lockfile synchronization change has no active review issues.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jwulf

jwulf commented Nov 30, 2026

Copy link
Copy Markdown
Member

nano-ack: issuecomment-7280133744 — Acknowledged: this is the nano-agent attribution note. It is informational and needs no code change.

@jwulf
jwulf merged commit c96049f into stable/10 Nov 30, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants