Skip to content

Conversation

@mulkieran
Copy link
Member

@mulkieran mulkieran commented Sep 22, 2025

Closes #559

Summary by CodeRabbit

  • Tests
    • Simplified test gating so checks now always run in "no-run" mode when checks are enabled, removing per-RHEL conditional behavior and making CI test execution consistent across releases.
  • Chores
    • Updated build/test gating logic to streamline the check phase without changing build or install behavior.

@mulkieran mulkieran self-assigned this Sep 22, 2025
@coderabbitai
Copy link

coderabbitai bot commented Sep 22, 2025

Walkthrough

The spec file changes adjust the RHEL version check in the %check section from “0%{?rhel} < 10” to “0%{?rhel} < 9,” shifting which RHEL versions use the first cargo_test branch (no-run) versus the alternate. Only the test execution gating is modified; build and install steps are unchanged.

Changes

Cohort / File(s) Summary
Spec test gating
mockbuild_test/stratisd.spec
Updated %check conditional from RHEL < 10 to RHEL < 9, changing which RHEL versions run the initial cargo_test invocation in no-run mode; no other sections modified.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Builder
  participant RPM as RPM Spec (%check)
  participant Cargo as cargo_test

  Builder->>RPM: Enter %check
  alt RHEL < 9
    note over RPM: First branch (no-run)
    RPM->>Cargo: cargo test --no-run
    RPM->>Cargo: (Subsequent steps per spec)
  else RHEL ≥ 9
    note over RPM: Alternate branch (execute tests)
    RPM->>Cargo: cargo test (run)
    RPM->>Cargo: (Subsequent steps per spec)
  end
  Builder-->>RPM: Continue build/install (unchanged)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A nibble of spec, a hop through time,
RHEL 9 joins 10—now tests align.
I twitch my nose at branching fate,
Less zig, more zag—oh how first-rate!
Thump-thump, I merge with cheerful paws,
One clean check for Rusty laws.

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues Check ✅ Passed Linked issue #559 requests that RHEL 9 use the same cargo_test options as RHEL 10 due to a Rust 1.90 toolchain change; the PR updates the spec %check conditional from 0%{?rhel} < 10 to 0%{?rhel} < 9, which moves RHEL 9 into the same branch as RHEL 10 and thereby aligns their cargo_test invocations. The modification is limited to the %check section per the provided summary and addresses the coding objective stated in the linked issue. Based on the provided summary, the change implements the requested behavior.
Out of Scope Changes Check ✅ Passed The raw summary shows a single, focused change in mockbuild_test/stratisd.spec (adjusting the RHEL threshold in the %check section) and explicitly notes no changes to exported or public entities; there are no other file modifications or unrelated changes reported. Therefore there is no evidence of out-of-scope changes in the provided summary. The PR appears limited to the intended spec adjustment.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the main change of aligning cargo_test arguments between RHEL 9 and RHEL 10 by updating the spec file gating logic, matching the PR’s core purpose.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

The recent release of Rust 1.90.0 has added macro changes that have this
effect.

Signed-off-by: mulhern <[email protected]>
@mulkieran mulkieran moved this to In Review in 2025September Sep 22, 2025
@mulkieran mulkieran marked this pull request as ready for review September 22, 2025 14:43
@mulkieran mulkieran moved this from In Review to Pending in 2025September Sep 22, 2025
This spec file will never be considered for RHEL8 anyway.

Signed-off-by: mulhern <[email protected]>
@mulkieran mulkieran merged commit 088d576 into stratis-storage:master Sep 26, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Pending to Done in 2025September Sep 26, 2025
@mulkieran mulkieran deleted the issue_ci_559 branch September 26, 2025 13:48
@mulkieran mulkieran moved this from Done to Done(4) in 2025September Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done(4)

Development

Successfully merging this pull request may close these issues.

Alter spec file so that cargo_test options become the same for RHEL 9 as they are already for RHEL 10

1 participant