Skip to content

Prevent resource test teardown from racing source-cache writes - #1971

Merged
kriszyp merged 2 commits into
mainfrom
fix/resource-get-context-drop-race-1381
Jul 29, 2026
Merged

Prevent resource test teardown from racing source-cache writes#1971
kriszyp merged 2 commits into
mainfrom
fix/resource-get-context-drop-race-1381

Conversation

@heskew

@heskew heskew commented Jul 28, 2026

Copy link
Copy Markdown
Member

Wait for every cacheable source-backed GET that actually ran before dropping TestTableForContext, and opt the null-source case out of an otherwise unobservable empty background cache transaction. This closes the unit-test teardown trigger in #1381 without changing production behavior.

Generated by OpenAI Codex (GPT-5).

Refs #1381.

heskew added 2 commits July 28, 2026 06:51
Resource.get resolves source data before its cache transaction commits. Track the cacheable GETs that actually ran, wait for their records before dropping the test table, and avoid staging an unobservable transaction for the null-source case.\n\nRefs #1381
@heskew
heskew requested a review from kriszyp July 28, 2026 14:05
gemini-code-assist[bot]

This comment was marked as resolved.

@claude

claude Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Reviewed; no blockers found.

@heskew
heskew marked this pull request as ready for review July 28, 2026 14:58
@kriszyp
kriszyp merged commit a3ef8a7 into main Jul 29, 2026
72 of 73 checks passed
@kriszyp
kriszyp deleted the fix/resource-get-context-drop-race-1381 branch July 29, 2026 22:55
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.

2 participants