Skip to content

test(fixtures): reuse documented push scenario in Rust - #489

Merged
roschaefer merged 2 commits into
mainfrom
test/shared-scenario-fixtures
Nov 16, 2026
Merged

roschaefer merged 2 commits into
mainfrom
test/shared-scenario-fixtures

Conversation

@roschaefer

@roschaefer roschaefer commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Separate Rust fixture histories can drift from the scenarios exercised by Bats and Scrut. Reuse the existing push-ahead recipe through Bash while keeping both setup and library execution inside the isolated test child. Its parent owns temporary files, including nested Git setup directories.

Keep the push-specific fixture beside its scenario so other integration test crates can reuse the process harness without unused setup helpers. Forward child output so public API walkthroughs remain visible with --nocapture.

Rebased onto main after #488 merged. #481 reuses this harness for pause/continue scenarios.

Validation: the external push test, formatting and diff checks pass after rebasing. The previous full validation also passed workspace tests, Clippy, and inherited Git overrides with a symlinked TMPDIR.

@coderabbitai

coderabbitai Bot commented Nov 12, 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 47 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: 7378a696-8d53-424d-a40c-87d5a76025fd
Commits

Reviewing files that changed from the base of the PR and between 6379fcd and 2e2baca.

Files selected for processing: 3

  • docs/10-contributing/01-development.md
  • tests/common/mod.rs
  • tests/push.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

@roschaefer
roschaefer force-pushed the test/public-api-contracts branch from 79adb61 to d0610f1 Compare November 16, 2026 16:24
@roschaefer
roschaefer force-pushed the test/shared-scenario-fixtures branch from f3b3ca3 to 1189ba4 Compare November 16, 2026 16:24
roschaefer added a commit that referenced this pull request Nov 16, 2026
Module tests can rely on private implementation details. An external
test crate checks push callback-time Git state and verifies that
clearing the observer suppresses notifications during a subsequent real
push. Each scenario runs in a child process with its own working
directory and Git configuration.

Rebased onto main; the testing guidance from #484 is already merged.
#489 builds on this PR to reuse the documented push fixture.

Validation: workspace tests, Clippy with warnings denied, formatting and
diff checks pass.
Base automatically changed from test/public-api-contracts to main November 16, 2026 17:29
Build the external API test from the same push-ahead recipe used by Bats and Scrut so fixture histories cannot drift. Keep Bash setup and library execution inside the isolated child, with all temporary files owned by its parent.
Share the isolated process harness with other public API tests without compiling an unused push fixture into each integration test crate.
@roschaefer
roschaefer force-pushed the test/shared-scenario-fixtures branch from 1189ba4 to 2e2baca Compare November 16, 2026 17:36
@roschaefer
roschaefer marked this pull request as ready for review November 16, 2026 17:40
@roschaefer

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T17:42:32.088374Z 2e2baca Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 2e2baca2d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@roschaefer
roschaefer enabled auto-merge (squash) November 16, 2026 17:44
@roschaefer
roschaefer merged commit baca1ba into main Nov 16, 2026
14 checks passed
@roschaefer
roschaefer deleted the test/shared-scenario-fixtures branch November 16, 2026 17:46
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