[build] fix when to update lock files during the release process#17450
Conversation
Review Summary by QodoSeparate lock file updates from version updates in release workflow
WalkthroughsDescription• Remove automatic lock file updates from Rust version task • Add dedicated workflow jobs for updating dependencies after release • Separate version updates from lock file updates in release process • Update workflow dependencies to include new lock file update jobs Diagramflowchart LR
A["Rust Version Task"] -->|removed invoke| B["Rust Update Task"]
C["Release Workflow"] --> D["Update Version"]
D --> E["Reset Dependencies Job"]
E --> F["Commit Dependencies Job"]
F --> G["Nightly Job"]
H["Failure Handler"] -->|now depends on| F
File Changes1. rake_tasks/rust.rake
|
Code Review by Qodo
1. Nightly updates full deps
|
There was a problem hiding this comment.
Pull request overview
Adjusts Selenium’s release automation so lockfile updates happen during the release workflow (when resetting versions to nightly) rather than being triggered implicitly by rust:version, to avoid unwanted lockfile churn during pre-release version bumps.
Changes:
- Removed the implicit
rust:updateinvocation from therust:versionrake task. - Added two new jobs to
release.ymlto update and commit dependency/lockfile changes before publishing nightly packages.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
rake_tasks/rust.rake |
Stops rust:version from automatically regenerating Cargo.lock. |
.github/workflows/release.yml |
Adds “reset-dependencies” + “commit-dependencies” jobs and makes nightly publishing depend on them. |
|
Persistent review updated to latest commit 245d8a8 |
We've removed and added when to run update command after running version commands. The issue is that in pre-release we do not want to update just because version has updated, but for the release and bumping nightly we do.
Ruby and Rust are the two that are affected by this. This fixes the same way for both.
💥 What does this PR do?
🤖 AI assistance
💡 Additional Considerations
Probably should also update the local release process, but that's low priority
🔄 Types of changes