Skip to content

test: correctly delete test d1 databases#9598

Merged
petebacondarwin merged 2 commits intomainfrom
pbd/wrangler/d1-test-fix
Jun 13, 2025
Merged

test: correctly delete test d1 databases#9598
petebacondarwin merged 2 commits intomainfrom
pbd/wrangler/d1-test-fix

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

The d1 e2e tests sometimes timeout but also regularly have the following error/warning:

wrangler:test:e2e: [wrangler-smoke-QSaF1q] X [ERROR] Couldn't find DB with name 'e12af046-17a4-49a6-90c5-b33d5f09c633'

This is because we were passing the id rather than the name to the d1 delete command.

  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because:
  • Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because:
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: test
  • Wrangler V3 Backport
    • TODO (before merge)
    • Wrangler PR:
    • Not necessary because: test

@petebacondarwin petebacondarwin requested a review from a team as a code owner June 13, 2025 08:53
@petebacondarwin petebacondarwin added skip-pr-description-validation Skip validation of the required PR description format no-changeset-required skip-v3-pr labels Jun 13, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jun 13, 2025

⚠️ No Changeset found

Latest commit: ebb767b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jun 13, 2025
@workers-devprod workers-devprod added the e2e Run wrangler + vite-plugin e2e tests on a PR label Jun 13, 2025
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jun 13, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: ebb767b

@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/d1-test-fix branch from 88de3aa to 6d5c2bf Compare June 13, 2025 09:28
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/d1-test-fix branch 3 times, most recently from 05bff1d to 50bf192 Compare June 13, 2025 12:50
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jun 13, 2025
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/d1-test-fix branch from 50bf192 to ebb767b Compare June 13, 2025 14:02
@petebacondarwin petebacondarwin added this pull request to the merge queue Jun 13, 2025
Merged via the queue into main with commit ddeeefd Jun 13, 2025
21 checks passed
@petebacondarwin petebacondarwin deleted the pbd/wrangler/d1-test-fix branch June 13, 2025 15:26
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jun 13, 2025
path: `/client/v4/accounts/${MOCK_CLOUDFLARE_ACCOUNT_ID}/pages/projects`,
query: {
per_page: 10,
per_page: 100,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this expected that 100 doesn't match l57-66 and l70?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is fine. The inbound page size can actually be ignored by the endpoint. The page size in the response is the source of truth.

jseba added a commit to jseba/workers-sdk that referenced this pull request Jun 14, 2025
* 'main' of ssh://github.com/cloudflare/workers-sdk: (213 commits)
  fix(vite-plugin-cloudflare): allow unknown entrypoint on startup (cloudflare#9583)
  add warning about env not specified to potentially risky wrangler commands (cloudflare#9344)
  test: correctly delete test d1 databases (cloudflare#9598)
  Add details to v3 maintenance worflow error message (cloudflare#9602)
  drop unused `WRANGLER_UNENV_RESOLVE_PATHS` env var (cloudflare#9593)
  warn instead of erroring if no exposed ports. and remove unused dev_exposed_ports (cloudflare#9573)
  fix(wrangler): point to the right doc location (replaces cloudflare#9353) (cloudflare#9592)
  [vitest-pool-worker] Add `type: module` in package.json (cloudflare#9595)
  Enable HTML handling for HTML files in the public directory (cloudflare#9548)
  switch from go container to js (cloudflare#9588)
  containers: switch to Cloudflare container registry (cloudflare#9564)
  performance improvement: restart a mixed mode session only if the worker's remote bindings have changed (cloudflare#9536)
  ci: delete more orphaned resources from e2e tests (cloudflare#9580)
  test: remove `verifyBuildScript` logic from c3 e2e tests (cloudflare#9504)
  fix(vite-plugin): ensure node compat globals are injected before any imports (cloudflare#9581)
  feat(containers-shared): Move `isDockerfile` utility function to `containers-shared` (cloudflare#9577)
  allow `startWorker` to accept `false` as an `inspector` option (to disable the inspector server) (cloudflare#9550)
  Update capnp generated code from the workerd.capnp (cloudflare#9582)
  Bump `@cloudflare/unenv-preset` to 2.3.3 (cloudflare#9566)
  test: make custom build bundling tests more robust (cloudflare#9494)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run wrangler + vite-plugin e2e tests on a PR no-changeset-required skip-pr-description-validation Skip validation of the required PR description format

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants