Skip to content

fix: increase commit assertion timeout for multi-turn E2E test#744

Merged
alishakawaguchi merged 1 commit intomainfrom
opencode-e2e
Mar 23, 2026
Merged

fix: increase commit assertion timeout for multi-turn E2E test#744
alishakawaguchi merged 1 commit intomainfrom
opencode-e2e

Conversation

@alishakawaguchi
Copy link
Contributor

Summary

  • Added AssertNewCommitsWithTimeout helper with configurable timeout to e2e/testutil/assertions.go
  • Refactored existing AssertNewCommits to delegate to the new helper (preserves all existing call sites)
  • Used 60s timeout in TestInteractiveAttributionMultiCommitSameSession for the second-turn commit assertion, fixing flaky failures where WaitFor matches stale pane content from the previous turn

Test plan

  • mise run fmt && mise run lint — passed
  • mise run test:e2e:canary — vogon passed
  • mise run test:e2e --agent opencode TestInteractiveAttributionMultiCommitSameSession — passed (46.4s)

🤖 Generated with Claude Code

In TestInteractiveAttributionMultiCommitSameSession, WaitFor can match
stale pane content from the previous turn, causing AssertNewCommits to
start its countdown before the agent begins the second commit. Extract
AssertNewCommitsWithTimeout with configurable timeout and use 60s for
the second-turn assertion to prevent flaky failures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: efb0cc7a2701
Copilot AI review requested due to automatic review settings March 20, 2026 23:42
@alishakawaguchi alishakawaguchi self-assigned this Mar 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces flakiness in multi-turn interactive E2E attribution testing by making the “new commits observed” assertion timeout configurable and using a longer timeout for the second-turn commit check.

Changes:

  • Added AssertNewCommitsWithTimeout to allow configurable polling timeouts when waiting for new commits.
  • Refactored AssertNewCommits to delegate to the new helper while preserving existing behavior/call sites.
  • Updated TestInteractiveAttributionMultiCommitSameSession to use a 60s timeout for the second commit assertion.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
e2e/testutil/assertions.go Introduces a timeout-configurable commit polling assertion and refactors the existing helper to call it.
e2e/tests/attribution_test.go Uses the new helper with a longer timeout to stabilize the second-turn commit assertion in the multi-commit interactive test.

@alishakawaguchi alishakawaguchi marked this pull request as ready for review March 21, 2026 00:39
@alishakawaguchi alishakawaguchi requested a review from a team as a code owner March 21, 2026 00:39
@alishakawaguchi alishakawaguchi merged commit 660a46a into main Mar 23, 2026
18 of 19 checks passed
@alishakawaguchi alishakawaguchi deleted the opencode-e2e branch March 23, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants