Skip to content

test: make TestListVideosOffloading responsiveness assertion timing-relative - #1685

Draft
linear-code[bot] wants to merge 1 commit into
mainfrom
test-testlistvideosoffloading-responsiveness-test-grv-323-90a4
Draft

test: make TestListVideosOffloading responsiveness assertion timing-relative#1685
linear-code[bot] wants to merge 1 commit into
mainfrom
test-testlistvideosoffloading-responsiveness-test-grv-323-90a4

Conversation

@linear-code

@linear-code linear-code Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

TestListVideosOffloading::test_event_loop_stays_responsive_while_scan_is_in_flight was vacuous: the mocked scan blocked on release.wait(timeout=2.0), so even an inline (on-loop) implementation eventually unblocked and let all ticks run back-to-back, satisfying the count-only assertion.

This rewrites the test to mirror the already-repaired sibling in TestLearningLogOffloading: each loop tick is timestamped, the worker records time.monotonic() when the scan finishes, and the assertion requires ≥3 ticks before the scan completed. An inline implementation pins the loop until the scan returns, yielding zero qualifying ticks and a failure message naming the inline-execution cause.

No changes under src/ — the production offloading from #1382 is untouched.

Note: the session's budget was exhausted before the repaired test and the negative control (inline revert of list_videos_v1) could be executed in this environment, so those two acceptance checks have not been run yet.

…elative

Generated with [Linear](https://linear.app/myxstack/agent-session/99d6bfe9-da60-4b61-9bcb-573e327b4739)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@linear-code

linear-code Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

GRV-323

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
v0-uvai Canceled Canceled v0 Sep 8, 2026 4:04pm UTC

@github-actions github-actions Bot added the python label Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 94026e6.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@groupthinking groupthinking added high-priority Urgent - blocks revenue or core functionality agent-task mcp/agent labels Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-task high-priority Urgent - blocks revenue or core functionality mcp/agent python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants