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

Support 'exceededMemory' error status #1639

Merged

Conversation

matthewdavidrodgers
Copy link
Contributor

While the exception for 'Worker exceeded memory limits' gets logged
correctly when tailing, the actual status wasn't being counted as an
error, and was falling through a switch case to 'unknown'

This ensures filtering and logging reflects that status correctly

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2022

🦋 Changeset detected

Latest commit: f2b07ed

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

This PR includes changesets to release 1 package
Name Type
wrangler 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
Contributor

github-actions bot commented Aug 8, 2022

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

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2820506372/npm-package-wrangler-1639

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

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1639/npm-package-wrangler-1639

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2820506372/npm-package-wrangler-1639 dev path/to/script.js

@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #1639 (f2b07ed) into main (900a9f0) will increase coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1639   +/-   ##
=======================================
  Coverage   81.84%   81.84%           
=======================================
  Files          89       89           
  Lines        5898     5900    +2     
  Branches     1510     1511    +1     
=======================================
+ Hits         4827     4829    +2     
  Misses       1071     1071           
Impacted Files Coverage Δ
packages/wrangler/src/tail/printing.ts 85.71% <0.00%> (-1.79%) ⬇️
packages/wrangler/src/tail/filters.ts 97.87% <100.00%> (+0.04%) ⬆️
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) ⬆️

While the exception for 'Worker exceeded memory limits' gets logged
correctly when tailing, the actual status wasn't being counted as an
error, and was falling through a switch case to 'unknown'

This ensures filtering and logging reflects that status correctly
@JacobMGEvans JacobMGEvans added polish Small improvements to the experience community labels Aug 9, 2022
@geelen geelen self-requested a review August 11, 2022 16:03
@JacobMGEvans JacobMGEvans merged commit d86382a into cloudflare:main Aug 11, 2022
This was referenced Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Small improvements to the experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants