Skip to content

chore(rust): every crate's test helpers sit behind one test-util feature - #340

Merged
PiquelChips merged 1 commit into
mainfrom
chore/test-util-feature
Nov 4, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
chore/test-util-feature

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Each crate named its test-helper feature differently: test-util in piquel-auth and piquel-telemetry, test-support in piquel-repository. Now every crate uses test-util, which is tokio's convention and the name two of the three crates already used.

This is a pure rename of the database crate's feature, its cfg attributes, auth-service's dependency on it, and the docs and just comments that mention it. Nothing else changes, so it should merge cleanly next to the PRs touching the same files.

just lint, just check and just db test (326/326) pass. Outside just db test, just test fails one test on main too: web::tests::pages_and_discovery_link_piquel_fr_policies needs TEST_DATABASE_URL but isn't marked #[ignore] like the other database tests. That is unrelated to this PR, so it is left for a separate fix.

Reviewed with review-loop: 1 round with 2× GPT 6.1 Sol and Claude Opus 5.5. Verdict: approved

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol and Claude Opus 5.5 (via T3 Code)

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 889014c1-0061-419c-85bd-aebe233ec0e3
Commits

Reviewing files that changed from the base of the PR and between 4793153 and 31b1bcd.

Files selected for processing: 14
  • apps/auth-service/Cargo.toml
  • crates/database/Cargo.toml
  • crates/database/src/connection/mod.rs
  • crates/database/src/exclusive/mod.rs
  • crates/database/src/lib.rs
  • crates/database/src/repositories/audit/mod.rs
  • crates/database/src/repositories/deliveries/mod.rs
  • crates/database/src/repositories/events/mod.rs
  • crates/database/src/repositories/recoveries.rs
  • crates/database/src/repositories/tokens/mod.rs
  • crates/database/src/repositories/users/mod.rs
  • crates/database/src/transaction.rs
  • docs/architecture/database-crate.md
  • just/db.just
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips PiquelChips self-assigned this Nov 4, 2026
@PiquelChips PiquelChips added the refactor No behviour changes label Nov 4, 2026
@PiquelChips PiquelChips added this to the 0.1 milestone Nov 4, 2026
@PiquelChips PiquelChips moved this from Needs Triage to In Progress in sourceorigin.dev Nov 4, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 4, 2026
@PiquelChips
PiquelChips merged commit 04a7d8b into main Nov 4, 2026
8 checks passed
@PiquelChips
PiquelChips deleted the chore/test-util-feature branch November 4, 2026 13:35
@github-project-automation github-project-automation Bot moved this from In Progress to Done in sourceorigin.dev Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor No behviour changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant