Skip to content

autopublish: gate-then-test ordering + survive devShell-generated untracked file#194

Merged
thedavidmeister merged 1 commit into
mainfrom
2026-05-26-autopublish-gate-order-and-dirty
May 26, 2026
Merged

autopublish: gate-then-test ordering + survive devShell-generated untracked file#194
thedavidmeister merged 1 commit into
mainfrom
2026-05-26-autopublish-gate-order-and-dirty

Conversation

@thedavidmeister
Copy link
Copy Markdown
Contributor

Two robustness fixes surfaced by the first interdependent workspace publish (rain.wasm).

Gate-then-test ordering

The change gates (cargo package --no-verify + content hash compare; npm/soldeer version lookup) are cheap and decide whether anything publishes. cargo test --workspace is the expensive step but ran first, so every no-op push to main (CI/doc edits, empty re-trigger commits, unchanged crates) paid the full test cost for nothing. Moved Cargo test after the gates, conditioned on any gate reporting a change. PR CI already tests the code before merge; this remains the pre-publish gate on the exact merged commit.

Survive devShell-generated untracked file

Entering the rainix devShell writes a generated .pre-commit-config.yaml into the tree. cargo-release aborts on any uncommitted change, including untracked files:

error: uncommitted changes detected, please resolve before release:
         .pre-commit-config.yaml (Status(WT_NEW))

This killed the rain.wasm bump step (run 26471237463). Add the file to .git/info/exclude in the Git config step so cargo-release never sees it — repo-agnostic, no consumer has to remember to .gitignore it.

🤖 Generated with Claude Code

…ated untracked file

Two robustness fixes surfaced by the first interdependent workspace publish:

- Reorder: the change gates (cargo package --no-verify + hash compare, npm/
  soldeer version lookup) are cheap and decide whether anything publishes;
  cargo test --workspace is the expensive step. Run it only when a gate reports
  a change, so no-op pushes to main (CI/doc edits, empty re-trigger commits,
  unchanged crates) short-circuit instead of paying the full test cost.

- Entering the rainix devShell writes a generated .pre-commit-config.yaml into
  the tree; cargo-release aborts on any uncommitted change, including untracked
  files ('uncommitted changes detected: .pre-commit-config.yaml (WT_NEW)').
  Add it to .git/info/exclude in the Git config step so cargo-release never
  sees it — repo-agnostic, no consumer has to remember to .gitignore it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@thedavidmeister thedavidmeister self-assigned this May 26, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 26, 2026

Warning

Review limit reached

@thedavidmeister, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 29 minutes and 7 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3f2ba970-ef7e-4a79-8c7a-c9705d6731b8

📥 Commits

Reviewing files that changed from the base of the PR and between b4aecd7 and 2c15e10.

📒 Files selected for processing (1)
  • .github/workflows/rainix-autopublish.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 2026-05-26-autopublish-gate-order-and-dirty

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@thedavidmeister thedavidmeister merged commit 57f99a3 into main May 26, 2026
13 checks passed
@github-actions
Copy link
Copy Markdown

@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment:

S/M/L PR Classification Guidelines:

This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed.

Small (S)

Characteristics:

  • Simple bug fixes, typos, or minor refactoring
  • Single-purpose changes affecting 1-2 files
  • Documentation updates
  • Configuration tweaks
  • Changes that require minimal context to review

Review Effort: Would have taken 5-10 minutes

Examples:

  • Fix typo in variable name
  • Update README with new instructions
  • Adjust configuration values
  • Simple one-line bug fixes
  • Import statement cleanup

Medium (M)

Characteristics:

  • Feature additions or enhancements
  • Refactoring that touches multiple files but maintains existing behavior
  • Breaking changes with backward compatibility
  • Changes requiring some domain knowledge to review

Review Effort: Would have taken 15-30 minutes

Examples:

  • Add new feature or component
  • Refactor common utility functions
  • Update dependencies with minor breaking changes
  • Add new component with tests
  • Performance optimizations
  • More complex bug fixes

Large (L)

Characteristics:

  • Major feature implementations
  • Breaking changes or API redesigns
  • Complex refactoring across multiple modules
  • New architectural patterns or significant design changes
  • Changes requiring deep context and multiple review rounds

Review Effort: Would have taken 45+ minutes

Examples:

  • Complete new feature with frontend/backend changes
  • Protocol upgrades or breaking changes
  • Major architectural refactoring
  • Framework or technology upgrades

Additional Factors to Consider

When deciding between sizes, also consider:

  • Test coverage impact: More comprehensive test changes lean toward larger classification
  • Risk level: Changes to critical systems bump up a size category
  • Team familiarity: Novel patterns or technologies increase complexity

Notes:

  • the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR
  • the assessment output must be exactly one of: S, M or L (single-line comment) in format of: SIZE={S/M/L}
  • do not include any additional text, only the size classification
  • your assessment comment must not include tips or additional sections
  • do NOT tag me or anyone else on your comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant