Skip to content

deps: move to ulid 3, whose generator is Ulid::generate - #97

Merged
M3gA-Mind merged 1 commit into
tinyhumansai:mainfrom
M3gA-Mind:fix/ulid-3
Nov 11, 2026
Merged

M3gA-Mind merged 1 commit into
tinyhumansai:mainfrom
M3gA-Mind:fix/ulid-3

Conversation

@M3gA-Mind

Copy link
Copy Markdown
Collaborator

Summary

Move to ulid 3. ulid 3 replaces Ulid::new() with Ulid::generate(), which produces the same 26-character, time-ordered ids. The queue's key::ulid (crates/tinystoragedrivers-queue/src/key.rs) and the queue and testkit test helpers switch to it.

This supersedes dependabot's #90, which only bumped the version and failed to compile (E0599 at key.rs:39).

Related issue

Supersedes #90.

API or behavior changes

None. No public type exposes ulid::Ulid; key::ulid is pub(crate) and returns a String.

Validation

On a Linux build host, on main fa8548c (merges cleanly onto v2.1.3, f5a3302):

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: 0 items
  • cargo test --workspace --locked: 570 passed, 0 failed, 1 ignored. --all-features: 855 passed, 0 failed, 1 ignored. Both are the same as main.
  • cargo +1.89 check --workspace --locked --all-features (MSRV)
  • cargo deny --locked check all: exit 0
  • Both proof workspaces cargo build --locked
  • Lockfiles:
    • Root and storage-callback: ulid 1.2.1 → 3.0.0 and its rand 0.9 → 0.10 line only.
    • document-callback: also drops the rand 0.9 crates that only ulid 1 used (rand, rand_chacha, rand_core 0.9, ppv-lite86, zerocopy) and adds rand 0.10, rand_core 0.10 and chacha20.

Tests

No new tests. The queue's id and conformance tests cover the generated ids.

Downstream

tinyflows already moved to ulid 3 (tinyflows#191). Once this is released, a tinyflows tinystoragedrivers bump leaves one ulid in its lock, and openhuman's root lock follows.

ulid 3 drops Ulid::new() in favour of Ulid::generate(), which produces
the same 26-character, time-ordered ids. The queue's key::ulid and the
testkit and queue test helpers switch to it. No public type exposes
ulid::Ulid, so the bump is internal. ulid 3 builds on the 1.89 MSRV.

The root and both proof-workspace lockfiles change only ulid and what it
strictly needs (rand 0.10); document-callback also drops the rand 0.9
crates that only ulid 1 used.

Supersedes tinyhumansai#90 (dependabot).
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a90165da-ffa4-439a-aa87-f9ab6d5f1c1b
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@tinysweeper

tinysweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Reviewed head: 12b133b4cf7cdc81955e3f879df945bbbe0bcd7d

Verdict: Ready for maintainer review · Priority: none
Coverage: Reviewed 6 of 9 files; not reviewed: Cargo.lock, proof-workspaces…, and 1 additional unreviewed files.
Pull request purpose (title): deps: move to ulid 3…

Diagnostics and supporting details

Full summary

Pull request purpose (title): deps: move to ulid 3, whose generator is Ulid::generate. Tiny Sweeper completed its review; deterministic results follow.

Unreviewed paths

  • Cargo.lock
  • proof-workspaces/document-callback/Cargo.lock
  • proof-workspaces/storage-callback/Cargo.lock

Review snapshot

Change surface Files Review signal Count
Production 1 Active findings 0
Tests 4 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 1 Pending checks/questions 0

Completeness: Complete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

What changed

- `Cargo.toml` raises the workspace `ulid` dependency from "1" to "3", and the root, document-callback and storage-callback lockfiles move to ulid 3.0.0 with the corresponding rand 0.10 line, per the description. - The queue id helper `key::ulid` in `crates/tinystoragedrivers-queue/src/key.rs` switches from `ulid::Ulid::new()` to `ulid::Ulid::generate()`, still returning a `String`. - Four test/conformance unique-name helpers make the same rename: `crates/tinystoragedrivers-queue/tests/live.rs`, `crates/tinystoragedrivers-queue/tests/support/queue_port.rs`, `crates/tinystoragedrivers-testkit/src/conformance.rs` and `crates/tinystoragedrivers-testkit/src/conformance/queue.rs`. - The format! call in three of those helpers is reflowed across lines; the generated name shape (`{label}_{lowercased ulid}`) is unchanged. - Behaviorally, id generation remains 26-character, time-sortable and opaque to callers; there is no change to any public type or signature.

Features

  • Internal refactor — Queue id generation helper uses Ulid::generate: `key::ulid` in the queue crate is renamed to the ulid 3 constructor while still returning a `String`; since the helper is `pub(crate)` and no public type exposes `ulid::Ulid`, generated ids keep the same 26-character sortable form and no downstream code observes the change. (crates/tinystoragedrivers-queue/src/key.rs)
  • Internal refactor — Queue test helper unique-name generation: The live-test and queue-port support helpers build their unique names with `Ulid::generate()` instead of `Ulid::new()`, preserving the `{label}_{lowercased id}` naming used to isolate test resources. (crates/tinystoragedrivers-queue/tests/live.rs, crates/tinystoragedrivers-queue/tests/support/queue_port.rs)
  • Internal refactor — Testkit conformance unique-name generation: The conformance and queue-conformance helpers make the same constructor rename, so conformance runs continue to produce per-run unique labels without a change to the conformance API surface. (crates/tinystoragedrivers-testkit/src/conformance.rs, crates/tinystoragedrivers-testkit/src/conformance/queue.rs)

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

Findings

No active actionable findings.

Before merge

None.

Agent review details

critique

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: Reviewed 6 files; 1 finding.

security

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The security lane answered with 0 findings across the six reviewed files; the change only renames a dependency constructor and touches no credential or transport surface.
  • Lane summary: Reviewed 6 files; 0 findings.

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The change is a mechanical major-version migration of the `ulid` dependency (1 → 3) and the matching `Ulid::new()` → `Ulid::generate()` rename in the queue id helper and the three test helpers that build unique names; there is no behaviour to pin beyond what the existing queue and conformance suites already exercise, so no new test is warranted and I found nothing that would misbehave for a reachable input.

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The commits lane answered and reported no sensitive content in the committed files, consistent with a dependency bump plus call-site renames.
  • Lane summary: No sensitive content in committed files.

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The description lane answered and judged the title and body to match the diff exactly: the dependency moves from 1 to 3 and the five `Ulid::new()` call sites switch to `Ulid::generate()`, with lockfiles updated to ulid 3.0.0 and no public API change.
  • Lane summary: The title and body describe exactly what the diff does: the workspace ulid dependency moves from 1 to 3, and the five call sites that used `Ulid::new()` (the `key::ulid` helper plus the queue and testkit test helpers) switch to `Ulid::generate()`, with no public API change. The lockfiles are also updated to ulid 3.0.0 at the reviewed commit, matching the description's lockfile notes; nothing significant is unmentioned, so this looks safe to merge.
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.013508
  • Tokens: 464614 input · 47270 output · 227584 cached · 144 embedding
  • Updated: 2026-11-11T12:01:10Z
Head State Pass summary
12b133b4cf7c ready for maintainer review 0 active finding(s), 0 resolved finding(s) (at 2026-11-11T12:01:10Z)

tinysweeper 0.1.2

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tinysweeper found nothing blocking. Approving.

Diagnostics

Total spend: $0.0135

@M3gA-Mind
M3gA-Mind merged commit 6372924 into tinyhumansai:main Nov 11, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant