Skip to content

refactor(auth): tests declare their no-op delivery channels in one line - #572

Merged
PiquelChips merged 2 commits into
mainfrom
refactor/544-tests-delivery-channels
Nov 21, 2026
Merged

PiquelChips merged 2 commits into
mainfrom
refactor/544-tests-delivery-channels

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544. Builds on #571 (merged), which adds test_channels!.

Three auth-service test files declared six channels whose deliveries the tests insert themselves. deliveries/tests.rs used a worker_channels! macro of its own; the other two wrote out a whole Channel impl, about 15 lines each. They now use the repository's test_channels!, one line per channel, and keep their stored names. The imports only those impls needed are gone too.

  • deliveries/tests.rs: Failing, Resent, Traced, Killed
  • admin/tests/deliveries.rs: Unsent
  • web/admin/tests.rs: Unsent

web/admin/tests.rs also changes in refactor/544-admin-tests-split. Whichever merges second re-applies the Unsent change.

Unchanged

  • No test was merged or removed. Every file keeps the same test names as origin/main.
  • Each channel's stored name, recipient and payload types are as before.
  • No files edited outside auth-service's test modules.

Checks

  • cargo clippy -p auth-service and -p sourceorigin-repository, --all-targets, pass with and without --all-features, -D warnings.
  • just db test: everything passes but the keys::tests lock timeouts, which happen on main too (reported separately).

Council review

Rounds: 2

Delegate Round 1 Round 2
GPT 6.1 Sol 9/10 9/10
Claude Opus 5.5 8/10 8.5/10
Claude Fable 5.2 8.5/10 9/10

Round 2 found no code defects. Its should-fixes were these descriptions, and its nits are applied.

Note

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

@PiquelChips PiquelChips added refactor No behviour changes tests Tests labels Nov 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 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 59 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: a5809fed-f2a5-4050-b3a3-5014b1b0f0df
Commits

Reviewing files that changed from the base of the PR and between 6fcabb0 and b465e02.

Files selected for processing: 3

  • apps/auth-service/src/admin/tests/deliveries.rs
  • apps/auth-service/src/deliveries/tests.rs
  • apps/auth-service/src/web/admin/tests.rs
  • 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 force-pushed the refactor/544-tests-delivery-channels branch from 683eed1 to 3ce7fb0 Compare November 20, 2026 08:54
@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:13
@PiquelChips
PiquelChips force-pushed the refactor/544-tests-delivery-channels branch 2 times, most recently from 339744d to 2a8ecc2 Compare November 20, 2026 14:12
Base automatically changed from refactor/544-tests-database-fixtures to main November 20, 2026 14:40
@PiquelChips
PiquelChips force-pushed the refactor/544-tests-delivery-channels branch from 2a8ecc2 to 6e83b82 Compare November 20, 2026 15:09
@PiquelChips
PiquelChips force-pushed the refactor/544-tests-delivery-channels branch from 6e83b82 to b465e02 Compare November 21, 2026 13:06
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 1ea4a1a Nov 21, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-tests-delivery-channels branch November 21, 2026 13:20
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor No behviour changes tests Tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant