-
Notifications
You must be signed in to change notification settings - Fork 1k
chore: graduate hello world workers + assets templates #8379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: ca8f275 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me.
c7fa27a to
e31239c
Compare
|
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-8379You 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-8379Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/13865290493/npm-package-wrangler-8379 dev path/to/script.jsAdditional 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.vsixcreate-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-8379miniflare: 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-8379Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
| expect(project.path).toExist(); | ||
| expect(output).toContain(`type Scheduled Worker (Cron Trigger)`); | ||
| expect(output).toContain(`lang JavaScript`); | ||
| expect(output).toContain(`no git`); |
There was a problem hiding this comment.
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? 😬
There was a problem hiding this comment.
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 || ...
There was a problem hiding this comment.
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 🤔
e04363c to
ac2ae06
Compare
petebacondarwin
left a comment
There was a problem hiding this 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`); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me.
47df992 to
4a88cc9
Compare
0eec308 to
ca8f275
Compare
|
@emily-shen @korinne Can we make sure any Asset examples with DOs use This PR was after #8460 so we didnt catch the new c3 templates. |

Fixes DEVX-1729