Skip to content
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

[playground-preview-worker] Deploy validation fixes #4942

Merged
merged 42 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2f57a35
ci: only deploy Workers when pushing to special branches (#4848)
petebacondarwin Jan 30, 2024
ed40cf8
C3: bump `create-next-app` and handle new `next.config.mjs` defaults …
dario-piotrowicz Jan 30, 2024
fd084bc
[wrangler] Support ai bindings in getBindingsProxy (#4869)
jculvey Jan 30, 2024
749fa3c
chore: bump `workerd` to `1.20240129.0` (#4874)
mrbbot Jan 30, 2024
7a34194
[C3] Bump create-vue from 3.9.1 to 3.9.2 in /packages/create-cloudfla…
dependabot[bot] Jan 31, 2024
65da40a
Exclude standardPricingWarning from dryrun (#4880)
petebacondarwin Jan 31, 2024
1e424ff
Implements Python support in miniflare. (#4873)
dom96 Jan 31, 2024
a94d46f
Fix changesets (#4885)
dario-piotrowicz Jan 31, 2024
300d427
Version Packages (#4854)
workers-devprod Jan 31, 2024
37141ba
[C3] Bump create-qwik from 1.4.2 to 1.4.3 in /packages/create-cloudfl…
dependabot[bot] Feb 1, 2024
48f9085
[wrangler] fix: listen on loopback for wrangler dev port check and lo…
Lekensteyn Feb 1, 2024
3cb2a8a
remove outdated and no longer valid miniflare development section fro…
dario-piotrowicz Feb 1, 2024
598b2c4
[C3] Bump @angular/create from 17.1.1 to 17.1.2 in /packages/create-c…
dependabot[bot] Feb 1, 2024
e1b7771
[Stream] WebRTC Template Improvements (#4157)
tsmith512 Feb 1, 2024
d8d46b2
fix: return 4xx error from playground preview worker on invalid token…
mrbbot Feb 2, 2024
6dda362
chore: rename deprecated Vitest `TestContext.meta` properties to `Tes…
petebacondarwin Feb 2, 2024
3e7cd6e
[wrangler] fix: stop rebuild attempts when sources are missing (#3886…
magnusdahlstrand Feb 2, 2024
582396a
[C3] Bump create-remix from 2.5.1 to 2.6.0 in /packages/create-cloudf…
dependabot[bot] Feb 2, 2024
3679bc1
fix: ensure that the Pages dev proxy server does not change the Host …
petebacondarwin Feb 2, 2024
fcbde34
fix: fallback to returning stack trace if `format-errors` broken (#4908)
mrbbot Feb 2, 2024
148feff
expose cf object from Miniflare instances (#4905)
dario-piotrowicz Feb 5, 2024
4c7031a
Add a `ctx` field to the `getBindingsProxy` result (#4922)
dario-piotrowicz Feb 5, 2024
5ef5606
fix(d1): intercept and stringify errors thrown in --json mode (#4872)
rozenmd Feb 5, 2024
a343cdd
fix: don't report invalid `format-errors` input (#4911)
mrbbot Feb 5, 2024
e61dba5
[D1] Add user friendly D1 validation error messages for `dev --remote…
nora-soderlund Feb 5, 2024
34b6ea1
[D1] teach wrangler how to fetch insights about D1's queries (#4909)
rozenmd Feb 6, 2024
583e445
[wrangler] test: fix E2E tests (#4907)
mrbbot Feb 6, 2024
2469e9f
Python support (#4901)
penalosa Feb 6, 2024
52f6c79
Version Packages (#4891)
workers-devprod Feb 6, 2024
49696ab
[C3] Add `getBindingsProxy` support to qwik template (#4927)
jculvey Feb 7, 2024
e5cdd7f
[playground-preview-worker] fix: don't report invalid upload input (#…
mrbbot Feb 7, 2024
ff45782
fix: don't report invalid `edge-preview-authenticated-proxy` URLs (#4…
mrbbot Feb 7, 2024
75bd08a
[D1] print wrangler banner at the start of every D1 command (#4938)
rozenmd Feb 7, 2024
321c7ed
fix: make the entrypoint optional for the `types` command (#4931)
dario-piotrowicz Feb 7, 2024
a14bd1d
add a `cf` field to the `getBindingsProxy` result (#4926)
dario-piotrowicz Feb 7, 2024
cf9c029
Improve DX with `node:*` modules (#4499)
penalosa Feb 7, 2024
4a735c4
improve(r2): Update Sippy endpoint request payloads to match new sche…
sdnts Feb 7, 2024
0699506
[C3] Bump create-qwik from 1.4.3 to 1.4.4 in /packages/create-cloudfl…
dependabot[bot] Feb 8, 2024
d96bc7d
fix: allow `port` option to be specified with `unstable_dev()` (#4953)
mrbbot Feb 8, 2024
d637bd5
Extend error handling of proxy request errors in ProxyWorker (#4867)
RamIdeas Feb 8, 2024
4eb4d7f
Update five-cooks-share.md (#4956)
penalosa Feb 8, 2024
a71afaf
Version Packages (#4934)
workers-devprod Feb 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/breezy-worms-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"wrangler": patch
---

fix: make the entrypoint optional for the `types` command

Currently running `wrangler types` against a `wrangler.toml` file without a defined entrypoint (`main` value)
causes the command to error with the following message:

```
✘ [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. `wrangler types path/to/script`) or the `main` config field.
```

However developers could want to generate types without the entrypoint being defined (for example when using `getBindingsProxy`), so these changes
make the entrypoint optional for the `types` command, assuming modules syntax if none is specified.
5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-4855.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-4856.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-4857.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/c3-frameworks-update-4858.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/eleven-carrots-happen.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/forty-needles-turn.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/four-teachers-push.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/happy-pandas-sparkle.md

This file was deleted.

15 changes: 15 additions & 0 deletions .changeset/orange-jobs-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"wrangler": patch
---

fix: print wrangler banner at the start of every d1 command

This PR adds a wrangler banner to the start of every D1 command (except when invoked in JSON-mode)

For example:

```
⛅️ wrangler 3.27.0
-------------------
...
```
8 changes: 8 additions & 0 deletions .changeset/ten-parents-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"create-cloudflare": patch
---

feature: Add `getBindingsProxy` support to `qwik` template

The `qwik` template now uses `getBindingsProxy` for handling requests for bound resources
in dev. This allows projects to use `vite` for dev instead of `wrangler pages dev` on built output.
6 changes: 0 additions & 6 deletions .changeset/wet-lemons-wash.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/generate-c3-dependabot-pr-changeset.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ${generateChangesetBody(changes)}
function generateChangesetBody(changes) {
if (changes.length === 1) {
const { package: pkg, from, to } = changes[0];
return `C3: Bumped \`${pkg}\` from \`${from}\` to \`${to}\``;
return `chore: Bumped \`${pkg}\` from \`${from}\` to \`${to}\``;
}

return `Framework CLI versions updated in C3
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.node }}
cancel-in-progress: true
timeout-minutes: 30
timeout-minutes: 15
if: github.repository_owner == 'cloudflare' && (github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'e2e' )))
name: "E2E Test"
strategy:
Expand Down Expand Up @@ -73,9 +73,20 @@ jobs:
id: "find-wrangler"
run: echo "dir=$(ls $HOME/wrangler-*.tgz)" >> $GITHUB_OUTPUT;

- name: Run tests
id: e2e-1
continue-on-error: true
- name: Run tests (unix)
if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-22.04'
run: |
pnpm add ${{ steps.find-wrangler.outputs.dir}} --global
pnpm run --filter wrangler test:e2e
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }}
WRANGLER: wrangler
NODE_OPTIONS: "--max_old_space_size=8192"
WRANGLER_LOG_PATH: ${{ runner.temp }}/wrangler-debug-logs/

- name: Run tests (windows)
if: matrix.os == 'windows-2022'
run: pnpm run --filter wrangler test:e2e
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
name: Edge Preview Authenticated Proxy Worker
name: Deploy Edge Preview Authenticated Proxy Worker (production)

# On a push to `deploy-worker/edge-preview-authenticated-proxy`, on Cloudflare,
# deploy to production.
on:
push:
branches:
- main
paths:
- "packages/edge-preview-authenticated-proxy/**"
- deploy-worker/edge-preview-authenticated-proxy

jobs:
publish_worker:
deploy_worker:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Publish Worker
name: Deploy Edge Preview Authenticated Proxy (production)
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2

- name: Use pnpm 8.8.0
uses: pnpm/action-setup@v2
with:
version: 8.8.0

- name: Use Node.js 16.18
uses: actions/setup-node@v3
with:
node-version: 16.18
cache: "pnpm"

- name: Install workerd Dependencies
- name: Install workerd dependencies
if: ${{ runner.os == 'Linux' }}
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y libc++1

- name: Install NPM Dependencies
- name: Install NPM dependencies
run: pnpm install --frozen-lockfile

- name: Build wrangler
- name: Build tools and libraries
run: pnpm run build
env:
NODE_ENV: "production"
CI_OS: ${{ runner.os }}

- name: Build & Publish Worker
run: pnpm run publish
- name: Build & deploy Worker
run: pnpm run deploy
env:
NODE_ENV: "production"
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,53 @@
name: Error Formatting Worker
name: Deploy Format Errors Worker (production)

# On a push to `deploy-worker/format-errors`, on Cloudflare,
# deploy to production.
on:
push:
branches:
- main
paths:
- "packages/format-errors/**"
- deploy-worker/format-errors

jobs:
publish_worker:
deploy_worker:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Publish Worker
name: Deploy Format Errors Worker (production)
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2

- name: Use pnpm 8.8.0
uses: pnpm/action-setup@v2
with:
version: 8.8.0

- name: Use Node.js 16.18
uses: actions/setup-node@v3
with:
node-version: 16.18
cache: "pnpm"

- name: Install workerd Dependencies
- name: Install workerd dependencies
if: ${{ runner.os == 'Linux' }}
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y libc++1
- name: Install NPM Dependencies

- name: Install NPM dependencies
run: pnpm install --frozen-lockfile

- name: Build wrangler
- name: Build tools and libraries
run: pnpm run build
env:
NODE_ENV: "production"
CI_OS: ${{ runner.os }}

- name: Build & Publish Worker
run: pnpm run publish
- name: Build & deploy Worker
run: pnpm run deploy
env:
NODE_ENV: "production"
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,52 @@
name: Playground Preview Worker
name: Deploy Playground Preview Worker (production)

# On a push to `deploy-worker/playground-preview-worker`, on Cloudflare,
# deploy to production.
on:
push:
branches:
- main
paths:
- "packages/playground-preview-worker/**"
- deploy-worker/playground-preview-worker

jobs:
publish_worker:
deploy_worker:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Publish Worker
name: Deploy Playground Preview Worker (production)
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2

- name: Use pnpm 8.8.0
uses: pnpm/action-setup@v2
with:
version: 8.8.0

- name: Use Node.js 16.18
uses: actions/setup-node@v3
with:
node-version: 16.18
cache: "pnpm"

- name: Install workerd Dependencies
- name: Install workerd dependencies
if: ${{ runner.os == 'Linux' }}
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y libc++1

- name: Install NPM Dependencies
- name: Install NPM dependencies
run: pnpm install --frozen-lockfile

- name: Build wrangler
- name: Build tools and libraries
run: pnpm run build
env:
NODE_ENV: "production"
CI_OS: ${{ runner.os }}

- name: Build & Publish Worker
- name: Build & deploy Worker
run: pnpm run deploy
env:
NODE_ENV: "production"
Expand Down
Loading
Loading