Skip to content

update invalidate tests to the matched-count reply, fix formatting - #351

Merged
raphamorim merged 1 commit into
mainfrom
rapha/fix-main-ci
Oct 10, 2026
Merged

raphamorim merged 1 commit into
mainfrom
rapha/fix-main-ci

Conversation

@raphamorim

@raphamorim raphamorim commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes the two CI failures the merged stack left on main; both were known from the stack branches' runs and are test-side only.

Unit: five js tests pinned the old invalidate reply. The /__oj_invalidate protocol changed with the gate: a change invalidation now answers 200 with {matched: n|null} (how many changes matched a runner-backed graph; null when the walk threw) so the caller can skip the reload on a miss, while a resync keeps its 204 enqueue-ACK. Five tests across cf-environment-api.test.mjs and invalidate-canonical.test.mjs still asserted 204 on change invalidations. They now assert 200 and the reply shape; the canonical-spelling test pins {matched: 1} exactly, since its one symlink-spelled change must resolve to the one canonically keyed module. The resync assertions stay at 204, which is the contract.

@raphamorim
raphamorim requested a review from a team as a code owner October 10, 2026 09:23
@raphamorim
raphamorim merged commit 5a0272c into main Oct 10, 2026
4 checks passed
@raphamorim
raphamorim deleted the rapha/fix-main-ci branch October 10, 2026 12:08
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