Skip to content

Update Cross reference in release.yml#183

Merged
leynos merged 2 commits intomainfrom
update-cross
Aug 8, 2025
Merged

Update Cross reference in release.yml#183
leynos merged 2 commits intomainfrom
update-cross

Conversation

@leynos
Copy link
Copy Markdown
Owner

@leynos leynos commented Aug 8, 2025

Summary by Sourcery

Update the GitHub Actions release workflow to use cross v0.2.5 and add a CRUSH.md reference file.

CI:

  • Bump cross installer and cache key to v0.2.5 in the release workflow

Documentation:

  • Add CRUSH.md with a reference to AGENTS.md

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Aug 8, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR bumps the Cross tool version in the GitHub Actions release workflow from v0.2.1 to v0.2.5 and adds a new reference file for cross-linking.

File-Level Changes

Change Details Files
Bump Cross version in CI workflow
  • Updated actions/cache key to use cross-v0.2.5
  • Changed cargo install command to tag v0.2.5
.github/workflows/release.yml
Add cross-reference file
  • Created CRUSH.md containing a reference to AGENTS.md
CRUSH.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Aug 8, 2025

Summary by CodeRabbit

  • Chores
    • Updated workflow to use a newer version of the cross binary.
    • Added .crush to the list of ignored files in version control.
    • Added a new placeholder file named AGENTS.md.

Walkthrough

Update the GitHub Actions release workflow to use cross version v0.2.5 instead of v0.2.1. Add .crush to .gitignore to exclude it from version control. Introduce a new file, CRUSH.md, containing only its filename as content.

Changes

Cohort / File(s) Change Summary
Release Workflow Update
.github/workflows/release.yml
Update cross cache key and installation to use version v0.2.5 instead of v0.2.1.
Ignore Rules
.gitignore
Add .crush to ignored files and directories.
Documentation Placeholder
CRUSH.md
Add new file CRUSH.md with only its filename as content.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • Fix release workflow vk#55: Updates the release workflow by replacing the Rust toolchain setup step; both PRs modify .github/workflows/release.yml but focus on different workflow steps.

Poem

Update the workflow, bump the cache,
Ignore .crush with a single slash.
A blank new doc, a silent start,
Small changes made with careful art.
Let version numbers gently rise—
Release with ease, and synchronise!

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-cross

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@leynos leynos merged commit 63edf0e into main Aug 8, 2025
1 of 2 checks passed
@leynos leynos deleted the update-cross branch August 8, 2025 00:34
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey @leynos - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (4)
CRUSH.md (3)

5-7: Remove second‑person pronoun to comply with style guide.

Avoid “your”. Use impersonal imperative.

Apply:

-- **Code is for humans.** Write your code with clarity and empathy—assume a
-  tired teammate will need to debug it at 3 a.m.
+- **Code is for humans.** Write code with clarity and empathy—assume a tired
+  teammate will need to debug it at 3 a.m.

55-61: Normalise terminology and en‑GB spelling.

Use “unit tests” and “behavioural”.

Apply:

-  - New functionality or changes in behaviour are fully validated by relevant
-    unittests and behavioural tests.
+  - New functionality or changes in behaviour are fully validated by relevant
+    unit tests and behavioural tests.
@@
-  - Passes all relevant unit and behavioral tests according to the guidelines
+  - Passes all relevant unit and behavioural tests according to the guidelines

171-174: Use “entry point” (two words) in en‑GB.

Apply:

-  API boundaries, and to `eyre` only in the main `main()` entrypoint or
+  API boundaries, and to `eyre` only in the main `main()` entry point or
.github/workflows/release.yml (1)

61-68: Guard installation on cache hit and lock dependency resolution.

Without an install guard, cargo install can fail when the cached binary exists. Lock dependencies for reproducibility.

Apply:

       - name: Cache cross binary
         uses: actions/cache@v4
         with:
           path: ~/.cargo/bin/cross
-          key: cross-v0.2.5-${{ runner.os }}
+          key: cross-v0.2.5-${{ runner.os }}
+        id: cache-cross
       - name: Install cross
-        run: cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.5
+        if: steps.cache-cross.outputs.cache-hit != 'true'
+        run: cargo install cross --locked --git https://github.com/cross-rs/cross --tag v0.2.5
📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bb09162 and 08cf0ae.

📒 Files selected for processing (3)
  • .github/workflows/release.yml (1 hunks)
  • .gitignore (1 hunks)
  • CRUSH.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.md

📄 CodeRabbit Inference Engine (AGENTS.md)

**/*.md: Documentation must use en-GB-oxendict spelling and grammar. (EXCEPTION: the naming of the "LICENSE" file, which is to be left unchanged for community consistency.)
Validate Markdown files using make markdownlint.
Run make fmt after any documentation changes to format all Markdown files and fix table markup.
Validate Mermaid diagrams in Markdown files by running make nixie.
Markdown paragraphs and bullet points must be wrapped at 80 columns.
Code blocks must be wrapped at 120 columns.
Tables and headings must not be wrapped.
Use dashes (-) for list bullets.
Use GitHub-flavoured Markdown footnotes ([^1]) for references and footnotes.

Files:

  • CRUSH.md

⚙️ CodeRabbit Configuration File

**/*.md: * Avoid 2nd person or 1st person pronouns ("I", "you", "we")

  • Use en-GB-oxendict (-ize / -our) spelling and grammar
  • Paragraphs and bullets must be wrapped to 80 columns, except where a long URL would prevent this (in which case, silence MD013 for that line)
  • Code blocks should be wrapped to 120 columns.
  • Headings must not be wrapped.
  • Documents must start with a level 1 heading
  • Headings must correctly increase or decrease by no more than one level at a time
  • Use GitHub-flavoured Markdown style for footnotes and endnotes.
  • Numbered footnotes must be numbered by order of appearance in the document.

Files:

  • CRUSH.md
🔇 Additional comments (3)
CRUSH.md (2)

1-1: Replace stray filename with a level‑1 heading aligned to this file.

The file must start with an H1 heading and not with an unrelated filename.

Apply:

-AGENTS.md
+# Contribution and Quality Rules (CRUSH)

Likely an incorrect or invalid review comment.


176-188: Validate and format Markdown per repository rules. The sandbox environment doesn’t provide make, so run these checks in your local setup:

  • Run make markdownlint to lint Markdown files.
  • Run make fmt to format Markdown and fix table markup.
  • Run make nixie to validate Mermaid diagrams.

Ensure all commands complete without errors before merging.

.gitignore (1)

3-3: LGTM.

Ignore .crush alongside existing patterns.

Comment on lines +65 to +67
key: cross-v0.2.5-${{ runner.os }}
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.1
run: cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Optionally use a dedicated installer for speed and reliability.

Use a setup action or binstall to avoid compiling from source on cache miss.

For example:

🤖 Prompt for AI Agents
In .github/workflows/release.yml around lines 65 to 67, the current step
installs cross by compiling from source, which is slower and less reliable.
Replace this with a dedicated installer action like taiki-e/install-action or
use cargo-binstall to install cross precompiled. This will speed up the workflow
and improve reliability by avoiding source compilation on cache misses.

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