Skip to content

fix(wrangler): wrangler pages deploy should fail if deployment failed#5862

Merged
petebacondarwin merged 1 commit intomainfrom
carmen/fix-deploy
May 20, 2024
Merged

fix(wrangler): wrangler pages deploy should fail if deployment failed#5862
petebacondarwin merged 1 commit intomainfrom
carmen/fix-deploy

Conversation

@CarmenPopoviciu
Copy link
Copy Markdown
Contributor

@CarmenPopoviciu CarmenPopoviciu commented May 17, 2024

What this PR solves / how to test

If a Pages project fails to deploy, wrangler pages deploy will log an error message, but exit successfully. It should instead throw a FatalError.

Screenshot 2024-05-17 at 19 01 09

Author has addressed the following

@CarmenPopoviciu CarmenPopoviciu requested review from a team as code owners May 17, 2024 16:48
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 17, 2024

🦋 Changeset detected

Latest commit: 21b6aa3

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

This PR includes changesets to release 2 packages
Name Type
wrangler Patch
@cloudflare/vitest-pool-workers 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 17, 2024

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/9131667461/npm-package-wrangler-5862

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-wrangler-5862 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-create-cloudflare-5862 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-cloudflare-kv-asset-handler-5862
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-miniflare-5862
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-cloudflare-pages-shared-5862
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9131667461/npm-package-cloudflare-vitest-pool-workers-5862

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


wrangler@3.57.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240512.0
workerd 1.20240512.0 1.20240512.0
workerd --version 1.20240512.0 2024-05-12

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

Copy link
Copy Markdown
Member

@WalshyDev WalshyDev left a comment

Choose a reason for hiding this comment

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

Gotta fix linting but lgtm
image

If a Pages project fails to deploy, `wrangler pages deploy` will log
an error message, but exit successfully. It should instead throw a
`FatalError`.
@petebacondarwin petebacondarwin merged commit 441a05f into main May 20, 2024
@petebacondarwin petebacondarwin deleted the carmen/fix-deploy branch May 20, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants