Skip to content

test(mcp): await generation attribution before cycle assertions - #3181

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
test/attribution-readiness
Oct 8, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
test/attribution-readiness

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

The affected-tests MCP fixture waited for the graph, then asserted that the first feedback cycle already contained test attribution. Attribution now prepares in a retained background worker, so the full-workspace CI run could receive a valid unavailable cycle before that work finished (627 MCP tests passed; this one failed).

Add an opt-in readiness method to the existing test harness that pins the current text generation and awaits the canonical attribution scheduler. Only this fixture uses it, inside its existing 60-second deadline. Keep the exact attribution and invalid-handle assertions unchanged; do not retry arbitrary unavailable results or make attribution a prerequisite for ordinary graph access.

Validation: the previously failing MCP test passed (1 passed, 0 failed, 627 filtered out), and Bazel Clippy passed for the affected root unit and MCP test targets.

Fixes #3180

@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 37d9831

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

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

Devin Review

@ScriptedAlchemy
ScriptedAlchemy changed the base branch from fix/observability-retirement to master October 8, 2026 07:47
@ScriptedAlchemy
ScriptedAlchemy merged commit 7d13d0a into master Oct 8, 2026
10 of 15 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the test/attribution-readiness branch October 8, 2026 07:52
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.

MCP affected-tests fixture races background attribution readiness

1 participant