Skip to content

Cloudflare corpus generator selects no files from WordPress archive #1914

Description

@chubes4

Problem

npm run generate:cloudflare-wordpress-runtime-corpus completes the archive HEAD request but decodeRemoteZip() yields no selected runtime files for the configured WordPress 7.0.2 archive. The command fails with:

Error: WordPress archive did not yield a runtime corpus.

This blocks npm run cloudflare:local-gate before workerd starts.

Reproduction

  1. Check out current main or PR Persist functional WordPress state in Cloudflare #1886.
  2. Install dependencies.
  3. Run npm run generate:cloudflare-wordpress-runtime-corpus.
  4. Observe the zero-file error from scripts/generate-cloudflare-wordpress-runtime-corpus.ts.

Expected

The remote ZIP decoder should enumerate the configured WordPress archive and emit the bounded server corpus, or fail with transport/range diagnostics that explain why no entries were decoded.

Context

The failure reproduced twice against https://downloads.wordpress.org/release/wordpress-7.0.2.zip. Cloudflare runtime contract tests, TypeScript, Wrangler packaging, and a deployed login/editor/publish/public-render workflow all pass independently.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode with OpenAI GPT-5.6 Sol
  • Model: openai/gpt-5.6-sol
  • Used for: Reproduced and isolated the local-gate failure to corpus generation with Chris Huber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions