Skip to content

[miniflare] Exclude metadata.sqlite from DO object listing#12960

Merged
petebacondarwin merged 2 commits intomainfrom
penalosa/workerd-metadata
Mar 19, 2026
Merged

[miniflare] Exclude metadata.sqlite from DO object listing#12960
petebacondarwin merged 2 commits intomainfrom
penalosa/workerd-metadata

Conversation

@penalosa
Copy link
Contributor

@penalosa penalosa commented Mar 19, 2026

Fixes the workers-sdk test failure caused by cloudflare/workerd#6104.

That workerd PR stores per-namespace Durable Object alarm metadata in a new metadata.sqlite file alongside the per-actor <objectId>.sqlite files. The local explorer's DO object listing treats every .sqlite file in a namespace directory as a DO instance, so metadata.sqlite was being counted as a spurious object—breaking both the "lists objects with stored data" and "supports cursor pagination" assertions.

This filters out metadata.sqlite so only actual DO actor files are enumerated.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: Existing tests already cover the listing logic. The filter is a no-op on current workerd and will be exercised once workerd#6104 lands.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Internal filtering change only

An upcoming workerd change (cloudflare/workerd#6104) stores per-namespace
alarm metadata in a metadata.sqlite file alongside per-actor .sqlite
files. Filter it out so it isn't counted as a Durable Object instance.
@penalosa penalosa requested a review from a team as a code owner March 19, 2026 01:08
@changeset-bot
Copy link

changeset-bot bot commented Mar 19, 2026

🦋 Changeset detected

Latest commit: 6a6d740

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

@workers-devprod
Copy link
Contributor

workers-devprod commented Mar 19, 2026

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

✅ All changesets look good

@penalosa penalosa requested a review from kentonv March 19, 2026 01:09
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

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.

Open in Devin Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 19, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12960

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12960

miniflare

npm i https://pkg.pr.new/miniflare@12960

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12960

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12960

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12960

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12960

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12960

wrangler

npm i https://pkg.pr.new/wrangler@12960

commit: 6a6d740

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Mar 19, 2026
@petebacondarwin petebacondarwin merged commit 3c988e2 into main Mar 19, 2026
42 of 43 checks passed
@petebacondarwin petebacondarwin deleted the penalosa/workerd-metadata branch March 19, 2026 15:59
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants