Skip to content

Stop the reviewbot e2e test from failing on an update conflict - #93

Open
josephschorr wants to merge 1 commit into
mainfrom
fix/e2e-agentclass-update-conflict
Open

josephschorr wants to merge 1 commit into
mainfrom
fix/e2e-agentclass-update-conflict

Conversation

@josephschorr

Copy link
Copy Markdown
Member

What

TestReviewbotTriggerStatus_ComposedPublicationKeepsModelTextOffThePullRequest fails intermittently in the e2e suite with an "object has been modified" conflict, unrelated to whatever change is under test.

The test reads the AgentClass, changes its capabilities and writes it back. The AgentClass controller is validating that same class at the time, and when its status write lands between the read and the write, the test's update is refused.

Fix

The read, change and write now retry on conflict. This is the same approach the e2e harness and the other e2e tests that update a live object already use.

Test-only change; no product code is touched.

Testing

  • The three TestReviewbotTriggerStatus_* tests pass three times in a row locally.

The test read the class, changed its capabilities and wrote it back while
the AgentClass controller was still validating the class the fixture had
just applied. When the controller's status write landed between the read
and the write, the update failed with an optimistic-concurrency conflict
and the test failed before it exercised anything.

The read-modify-write now retries on conflict, as the harness and the
other e2e tests that update a live object already do.
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
openagentprimitives Ignored Ignored Preview Dec 4, 2026 9:41pm UTC

Request Review

@josephschorr
josephschorr requested a review from samkim December 4, 2026 21:41

This branch has not been deployed

No deployments
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