fix(wrangler): skip non-successful deployments when tailing Pages logs#8847
fix(wrangler): skip non-successful deployments when tailing Pages logs#8847mlafeldt wants to merge 2 commits intocloudflare:mainfrom
Conversation
🦋 Changeset detectedLatest commit: beb6cf9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
df31e3a to
5d57dfb
Compare
|
@mlafeldt - thanks for this PR. Would you mind rebasing and then we can review and merge it. |
|
@petebacondarwin In the meantime, I've figured that |
|
Give it a go! |
|
@petebacondarwin Rebased the PR. I ended up not using |
petebacondarwin
left a comment
There was a problem hiding this comment.
This looks good but we could do with a test - perhaps in here https://github.com/cloudflare/workers-sdk/blob/6479fc5228d1249e87c7f668e8efbf88ec5a8f5f/packages/wrangler/src/__tests__/pages/pages-deployment-tail.test.ts
|
hi @mlafeldt :) it looks like #9685 addresses the same problem as you are tackling here, but with one additional change to specify thanks you for your contribution! |
Tailing logs of Pages deployments currently fails when a deployment was skipped, e.g. due to build watch paths.
Such skipped deployments have this latest stage:
(In an ideal world, the status should be
skippedand notidle, but that's a different issue.)To fix this problem, I changed the logic that finds the last deployment to consider successful deployments only.