Skip to content

Conversation

@emily-shen
Copy link
Contributor

@emily-shen emily-shen commented Mar 6, 2025

Fixes DEVX-1729

Screenshot 2025-03-06 at 15 15 43
  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because: existing tests
  • Wrangler E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because:
  • Public documentation

@emily-shen emily-shen requested a review from a team as a code owner March 6, 2025 15:27
@emily-shen emily-shen requested a review from a team March 6, 2025 15:27
@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2025

🦋 Changeset detected

Latest commit: ca8f275

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

This PR includes changesets to release 1 package
Name Type
create-cloudflare Patch

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

projectName: new Haikunator().haikunate({ tokenHex: true }),
category: "hello-world",
type: "hello-world",
type: "hello-world-with-assets",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed the default to worker + assets

Is it weird for the default to be in the middle of the list? is this list too many options?
Screenshot 2025-03-06 at 15 15 43

Copy link
Contributor

Choose a reason for hiding this comment

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

works for me.

@workers-devprod workers-devprod added the c3-e2e Run c3 e2e tests on a PR label Mar 6, 2025
@emily-shen emily-shen force-pushed the emily/graduate-assets-hello-world branch from c7fa27a to e31239c Compare March 6, 2025 15:46
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Mar 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2025

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-wrangler-8379

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/8379/npm-package-wrangler-8379

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-wrangler-8379 dev path/to/script.js
Additional artifacts:

cloudflare-workers-bindings-extension:

wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-workers-bindings-extension-8379 -O ./cloudflare-workers-bindings-extension.0.0.0-v6f55cb5c7.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v6f55cb5c7.vsix

create-cloudflare:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-create-cloudflare-8379 --no-auto-update

@cloudflare/kv-asset-handler:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-kv-asset-handler-8379

miniflare:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-miniflare-8379

@cloudflare/pages-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-pages-shared-8379

@cloudflare/unenv-preset:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-unenv-preset-8379

@cloudflare/vite-plugin:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-vite-plugin-8379

@cloudflare/vitest-pool-workers:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-vitest-pool-workers-8379

@cloudflare/workers-editor-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-workers-editor-shared-8379

@cloudflare/workers-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-workers-shared-8379

@cloudflare/workflows-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-cloudflare-workflows-shared-8379

Note that these links will no longer work once the GitHub Actions artifact expires.


[email protected] includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 4.20250310.0
workerd 1.20250310.0 1.20250310.0
workerd --version 1.20250310.0 2025-03-10

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@emily-shen emily-shen added the e2e Run wrangler + vite-plugin e2e tests on a PR label Mar 6, 2025
expect(project.path).toExist();
expect(output).toContain(`type Scheduled Worker (Cron Trigger)`);
expect(output).toContain(`lang JavaScript`);
expect(output).toContain(`no git`);
Copy link
Contributor Author

@emily-shen emily-shen Mar 6, 2025

Choose a reason for hiding this comment

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

Not sure why this is failing now - I would've expected this to start failing after #8290. This question definitely isn't there if you pass in --no-git on c3 latest, so it's not a result of this PR. Were the tests just cached all that time? 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps because these tests were skipped in experimental mode?

describe.skipIf(experimental || ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but the no git thing applies regardless of whether experimental, so they should have have been failing in the experimental:false runs too 🤔

@petebacondarwin petebacondarwin force-pushed the emily/graduate-assets-hello-world branch from e04363c to ac2ae06 Compare March 7, 2025 13:50
Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

LGTM!

expect(project.path).toExist();
expect(output).toContain(`type Scheduled Worker (Cron Trigger)`);
expect(output).toContain(`lang JavaScript`);
expect(output).toContain(`no git`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps because these tests were skipped in experimental mode?

describe.skipIf(experimental || ...


function getWorkerTests(opts: { experimental: boolean }): WorkerTestConfig[] {
if (opts.experimental) {
// none currently
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

projectName: new Haikunator().haikunate({ tokenHex: true }),
category: "hello-world",
type: "hello-world",
type: "hello-world-with-assets",
Copy link
Contributor

Choose a reason for hiding this comment

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

works for me.

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Mar 7, 2025
@emily-shen emily-shen force-pushed the emily/graduate-assets-hello-world branch 2 times, most recently from 47df992 to 4a88cc9 Compare March 7, 2025 17:37
@emily-shen emily-shen force-pushed the emily/graduate-assets-hello-world branch from 0eec308 to ca8f275 Compare March 13, 2025 14:50
@emily-shen emily-shen merged commit 2b37abe into main Mar 18, 2025
32 of 33 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Mar 18, 2025
@emily-shen emily-shen deleted the emily/graduate-assets-hello-world branch March 18, 2025 11:09
@vy-ton
Copy link

vy-ton commented Mar 19, 2025

@emily-shen @korinne Can we make sure any Asset examples with DOs use new_sqlite_classes?

This PR was after #8460 so we didnt catch the new c3 templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c3-e2e Run c3 e2e tests on a PR e2e Run wrangler + vite-plugin e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants