fix(release): sync the module workspace lockfile on a version bump - #7
Conversation
The Cargo.lock file is updated to reflect a downgrade of the getrandom dependency from version 0.4.3 to 0.3.4 and a version bump of the tinymemory crate from 0.1.0 to 0.2.0, ensuring consistency with the project's dependency specifications. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add a GitHub Actions workflow to automate the release process, ensuring consistent and repeatable releases directly from the repository. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Updated the GitHub Actions release workflow to use the latest versions of checkout, setup-node, and other actions, ensuring compatibility with current runner environments and avoiding deprecation warnings. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add a GitHub Actions workflow to run tests and linting on push and pull request events, ensuring code quality checks are automated in the CI pipeline. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
|
Warning Review limit reached
Next review available in: 2 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0091 · 12,912 in / 1,605 out · 7,278 cached (56%) · z-ai/glm-5.2
critique: $0.0045 · 4,698 in / 641 out · 960 cached (20%) · z-ai/glm-5.2
security: $0.0028 · 4,656 in / 688 out · 3,788 cached (81%) · z-ai/glm-5.2
description: $0.0018 · 3,558 in / 276 out · 2,530 cached (71%) · z-ai/glm-5.2
Summary
mainis currently unbuildable under--lockedin the module workspace, and thev0.2.0 tag with it. This fixes that and the workflow step that caused it.
There are two Cargo worlds in this repo: the root workspace, and
crates/tinymemory-module, which is its own workspace root with its ownCargo.lock(see the rootCargo.tomlcomment for why it has to be). The moduledepends on the root crate by path, so when the release bumped the root version to
0.2.0 and updated the root lockfile, the module's lockfile kept recording
tinymemory 0.1.0.native-bundlesbuilds with--locked, so all eleven bundle jobs failed:The tag had already been pushed at that point, which is the part worth fixing
properly rather than by hand.
Related issue
Follow-up to #6.
API or behavior changes
None. A lockfile sync and two CI/workflow changes.
Validation
Commands actually run, with their outcome:
cargo fmt --all -- --check— cleancargo clippy --all-targets --all-features -- -D warnings— cleancargo build --all-targets --all-features— cleancargo test --all-features— greenThe one that matters, reproducing the release failure and then its absence:
Tests
Not unit-testable — it is a lockfile-consistency property. Guarded in CI instead,
which is the actual fix here:
ci.yml's module job now builds with--locked, matching how the releasebuilds this crate. This is what would have caught it on the PR: without it a
stale module lockfile passes CI and fails the release, and the failure lands
after the tag is pushed, when it is most expensive.
with
cargo metadata --lockedbefore tagging, so a future drift of this shapefails in the tag job rather than eleven jobs downstream.
Both carry a comment naming the two-lockfile cause, since "add --locked" reads
like a style preference otherwise.
Documentation
Comments on both changed steps. The root
Cargo.tomlalready explains why themodule is a separate workspace; this adds the consequence that falls out of it.
Note on the orphaned tag
v0.2.0exists and has no GitHub release — the bundle jobs never producedassets. This PR does not touch it. The next release will be
v0.3.0;v0.2.0can be deleted or left as a marker, but nothing consumes it either way, and
deleting a tag on the canonical repo is not something to do as a side effect of
a lockfile fix.
Checklist
#[allow(...)],#[ignore], or relaxed lints.envcontents in the diff or the description