Skip to content

refactor: xtask's release test fits inline as one table, and Workspace::root() is gone - #597

Merged
PiquelChips merged 2 commits into
mainfrom
refactor/544-tooling-xtask
Nov 21, 2026
Merged

PiquelChips merged 2 commits into
mainfrom
refactor/544-tooling-xtask

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Part of #544

tools/xtask/src/release.rs had a 35-line inline test block, over the 30-line limit in docs/dev/rust-conventions.md, with five near-identical assert_eq!s. They are now one table of (title, section, line) cases checked in a loop: the same five cases, 28 lines. A failure names its title.

Workspace::root() is gone: it only returned a field that publish and release, both child modules, can read directly. The field now has a doc comment.

Testing

  • cargo clippy --locked -p xtask --all-targets with and without --all-features, -D warnings: clean
  • RUSTDOCFLAGS='-D warnings' cargo doc --no-deps -p xtask: clean
  • just test -p xtask --all-features: 1 passed
  • just rust unused: clean
  • Built xtask on main and on this branch and compared the output and exit code of --help, publish --help, release --help and an unknown task: all the same. The package CI job runs just publish --dry-run.

Tests merged: titles_are_grouped_by_type's five asserts became one table, with the same cases. No files outside the Tooling area.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code), reviewed by Claude Opus 5.5

@PiquelChips
PiquelChips marked this pull request as draft November 20, 2026 08:34
@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 33 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: f67c4103-3374-4f9b-84ef-71461f27d9bf
Commits

Reviewing files that changed from the base of the PR and between 467e813 and 8e5e1a5.

Files selected for processing: 3

  • tools/xtask/src/main.rs
  • tools/xtask/src/publish.rs
  • tools/xtask/src/release.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 added the refactor No behviour changes label Nov 20, 2026
@PiquelChips PiquelChips changed the title refactor: xtask's release test fits inline as one table refactor: xtask's release test fits inline as one table, and Workspace::root() is gone Nov 20, 2026
@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 08:54
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:00
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 14:34
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 783879a Nov 21, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-tooling-xtask branch November 21, 2026 16:52
@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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant