Skip to content

Add integration tests for Graphite operations and missing attribution#1032

Open
jwiegley wants to merge 1 commit intojohnw/review-silent-errorsfrom
johnw/review-integration-tests
Open

Add integration tests for Graphite operations and missing attribution#1032
jwiegley wants to merge 1 commit intojohnw/review-silent-errorsfrom
johnw/review-integration-tests

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented Apr 9, 2026

New test suites covering two important scenarios: simulating Graphite
CLI git operations (stack creation, rebase, amend workflows) and
reproducing the intermittent bug where attribution incorrectly reports
100% human authorship. Adds allow_daemon_errors flag to test harness
for controlled daemon failure testing.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Copy link
Copy Markdown
Contributor Author

jwiegley commented Apr 9, 2026

@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from ed02bb9 to 9e18ac5 Compare April 9, 2026 17:28
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch 2 times, most recently from 93b3136 to a4a730d Compare April 9, 2026 20:13
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch 2 times, most recently from 98654e8 to 68438da Compare April 15, 2026 19:52
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch 2 times, most recently from 1338d42 to a09eb0b Compare April 15, 2026 20:15
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from 68438da to 99815bc Compare April 15, 2026 20:15
@jwiegley jwiegley marked this pull request as ready for review April 15, 2026 21:46
@jwiegley jwiegley requested a review from svarlamov April 15, 2026 21:46
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from 99815bc to b1dbda4 Compare April 15, 2026 22:33
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch 2 times, most recently from 90c6d77 to 7c12fb9 Compare April 16, 2026 06:41
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from b1dbda4 to c51217f Compare April 16, 2026 06:42
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from 7c12fb9 to b3492b6 Compare April 16, 2026 06:49
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch 2 times, most recently from a0ba1b3 to 6a82d28 Compare April 16, 2026 20:15
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from b3492b6 to 1d44bd3 Compare April 16, 2026 20:15
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from 6a82d28 to b99641f Compare April 22, 2026 18:07
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from 1d44bd3 to 4e85bd0 Compare April 22, 2026 18:07
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

View 14 additional findings in Devin Review.

Open in Devin Review

Comment on lines 1110 to +1112
pub fn new_worktree() -> Self {
Self::new_worktree_with_mode(GitTestMode::from_env())
}
Self::new_worktree_with_mode(GitTestMode::from_env())
}
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.

🟡 Indentation regression in new_worktree() and new_with_remote() violates AGENTS.md formatting rule

The PR introduces incorrect indentation for new_worktree() at tests/integration/repos/test_repo.rs:1110-1112 and new_with_remote() with its doc comment at tests/integration/repos/test_repo.rs:1237-1254. Both methods are inside an impl TestRepo block but their bodies and closing braces are de-indented to module level. This violates the AGENTS.md rule: "Before opening a PR, make sure to run task lint and task fmt and resolve any formatting/lint issues as they will fail in CI." The code compiles correctly since Rust doesn't rely on indentation, but it will fail CI formatting checks.

Suggested change
pub fn new_worktree() -> Self {
Self::new_worktree_with_mode(GitTestMode::from_env())
}
Self::new_worktree_with_mode(GitTestMode::from_env())
}
pub fn new_worktree() -> Self {
Self::new_worktree_with_mode(GitTestMode::from_env())
}
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

View 15 additional findings in Devin Review.

Open in Devin Review

Comment on lines +1238 to +1254
/// The mirror is cloned from the upstream, so "origin" is automatically configured.
/// Returns (mirror, upstream) tuple.
///
/// # Example
/// ```ignore
/// let (mirror, upstream) = TestRepo::new_with_remote();
///
/// // Make changes in mirror
/// mirror.filename("test.txt").write("hello").stage();
/// mirror.commit("initial commit");
///
/// // Push to upstream
/// mirror.git(&["push", "origin", "main"]);
/// ```
pub fn new_with_remote() -> (Self, Self) {
Self::new_with_remote_with_mode(GitTestMode::from_env())
}
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.

🟡 Formatting regression: new_with_remote() and its doc comments lost impl-block indentation

The new_with_remote() method, its doc comments (lines 1238-1251), function signature (line 1252), body (line 1253), and closing brace (line 1254) all lost their 4-space impl-block indentation. The old code had proper /// and pub fn indentation. AGENTS.md explicitly requires: "Before opening a PR, make sure to run task lint and task fmt and resolve any formatting/lint issues as they will fail in CI." This would fail rustfmt.

Suggested change
/// The mirror is cloned from the upstream, so "origin" is automatically configured.
/// Returns (mirror, upstream) tuple.
///
/// # Example
/// ```ignore
/// let (mirror, upstream) = TestRepo::new_with_remote();
///
/// // Make changes in mirror
/// mirror.filename("test.txt").write("hello").stage();
/// mirror.commit("initial commit");
///
/// // Push to upstream
/// mirror.git(&["push", "origin", "main"]);
/// ```
pub fn new_with_remote() -> (Self, Self) {
Self::new_with_remote_with_mode(GitTestMode::from_env())
}
/// The mirror is cloned from the upstream, so "origin" is automatically configured.
/// Returns (mirror, upstream) tuple.
///
/// # Example
/// ```ignore
/// let (mirror, upstream) = TestRepo::new_with_remote();
///
/// // Make changes in mirror
/// mirror.filename("test.txt").write("hello").stage();
/// mirror.commit("initial commit");
///
/// // Push to upstream
/// mirror.git(&["push", "origin", "main"]);
/// ```
pub fn new_with_remote() -> (Self, Self) {
Self::new_with_remote_with_mode(GitTestMode::from_env())
}
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from 3d146e5 to dda323b Compare April 28, 2026 14:03
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from faff2e0 to 77355a3 Compare April 28, 2026 14:03
New test suites covering two important scenarios: simulating Graphite
CLI git operations (stack creation, rebase, amend workflows) and
reproducing the intermittent bug where attribution incorrectly reports
100% human authorship. Adds allow_daemon_errors flag to test harness
for controlled daemon failure testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the johnw/review-integration-tests branch from dda323b to f7384f2 Compare May 1, 2026 17:06
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from 77355a3 to 81a24be Compare May 1, 2026 17:06
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