Skip to content

docs: match CONTRIBUTING.md's test command to what CI runs - #8427

Merged
youknowone merged 1 commit into
RustPython:mainfrom
leehanjeong:8415-contributing-test-cmd
Aug 1, 2026
Merged

docs: match CONTRIBUTING.md's test command to what CI runs#8427
youknowone merged 1 commit into
RustPython:mainfrom
leehanjeong:8415-contributing-test-cmd

Conversation

@leehanjeong

@leehanjeong leehanjeong commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

CONTRIBUTING.md's documented cargo test --workspace ... command doesn't match what CI runs, and segfaults on rustpython-capi when run from the workspace root. Add --exclude rustpython-capi and document the separate cd crates/capi && cargo test step, mirroring CI.

Kept this docs-only rather than restructuring crates/capi out of the workspace: that would mean hardcoding ~16 workspace = true fields, a separate Cargo.lock, and new CI steps for build/clippy/doc/shear that currently reach it through the root workspace.

Assisted-by: Claude Code:claude-sonnet-5

Summary by CodeRabbit

  • Tests
    • Updated workspace test instructions to exclude the C API component.
    • Added separate instructions for running C API tests with its local configuration.

`cargo test --workspace ...` segfaults on rustpython-capi when run from
the workspace root; it needs its own config that only applies inside
crates/capi. CI already excludes it from the workspace run and tests it
separately. Document both.

Closes RustPython#8415

Assisted-by: Claude Code:claude-sonnet-5
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

πŸ“ Walkthrough

Walkthrough

The contributor guide updates Rust test commands. Workspace tests exclude rustpython-capi. Separate instructions run rustpython-capi tests from crates/capi with its local Cargo configuration.

Changes

Contributor testing instructions

Layer / File(s) Summary
Document separate test commands
CONTRIBUTING.md
The workspace test command excludes rustpython-capi. The guide adds commands to run its tests from crates/capi.

Estimated code review effort: 1 (Trivial) | ~5 minutes

πŸš₯ Pre-merge checks | βœ… 5
βœ… Passed checks (5 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title clearly states that CONTRIBUTING.md now matches the test command used by CI.
Linked Issues check βœ… Passed The changes satisfy issue #8415 by excluding rustpython-capi and documenting its separate test command.
Out of Scope Changes check βœ… Passed The pull request only updates CONTRIBUTING.md test instructions related to issue #8415.
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests

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.

@youknowone youknowone added the z-ca-2026 Tag to track Contribution Academy 2026 label Aug 1, 2026
@leehanjeong
leehanjeong marked this pull request as ready for review August 1, 2026 09:07

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

πŸ€– Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CONTRIBUTING.md`:
- Around line 92-100: Remove the `$` shell prompt prefixes from the command-only
examples in the CONTRIBUTING documentation, including the workspace test command
and the commands in the crates/capi example, while preserving the commands and
code-block structure.
πŸͺ„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: 59e9fad4-08bf-42f2-bf00-b3fc0e2a091a

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between dc1cae4 and 0539e52.

πŸ“’ Files selected for processing (1)
  • CONTRIBUTING.md

Comment thread CONTRIBUTING.md

@youknowone youknowone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

πŸ‘

@youknowone
youknowone enabled auto-merge (squash) August 1, 2026 11:17
@youknowone
youknowone disabled auto-merge August 1, 2026 11:17
@youknowone
youknowone merged commit 9e92f96 into RustPython:main Aug 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

z-ca-2026 Tag to track Contribution Academy 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CONTRIBUTING.md: cargo test command segfaults on rustpython-capi

2 participants