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
Remove second wrangler banner from namespace rename #5226
Remove second wrangler banner from namespace rename #5226
Conversation
🦋 Changeset detectedLatest commit: de89108 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 |
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/8920932986/npm-package-wrangler-5226 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5226/npm-package-wrangler-5226 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-wrangler-5226 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-create-cloudflare-5226 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-cloudflare-kv-asset-handler-5226 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-miniflare-5226 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-cloudflare-pages-shared-5226 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8920932986/npm-package-cloudflare-vitest-pool-workers-5226 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5226 +/- ##
==========================================
- Coverage 72.44% 70.46% -1.99%
==========================================
Files 331 298 -33
Lines 17298 15568 -1730
Branches 4422 4007 -415
==========================================
- Hits 12532 10970 -1562
+ Misses 4766 4598 -168
|
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.
The fact that there needs to be no change to a test for this to pass CI makes me worried about the test coverage here.
Could we add tests for this command? It should be quite straightforward, mocking out the fetch request expectation.
is a community PR the best place to add missing test coverage though? feels like something that should go to the employees backlog. |
Good call @nora-soderlund - I didn't notice that @DaniFoldi is not an employee. I totally don't expect him to backfill all our tests. But equally, this PR is fixing something that is not right in our codebase, so a test to prove it would be appreciated. |
Hey @petebacondarwin 👋 I had a look at this, however it looks like it would require significant time to test that without having to change most tests. Feel free to close this PR, or merge as-is, and the header stuff could be tracked in a separate issue. |
bf45750
to
5b098c9
Compare
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.
I updated a test to prove this fix.
What this PR solves / how to test
After noticing #5225 and definitely not renaming a dispatch namespace a few times to see if the team notices it, I found that the banner was being printed twice in that command.
While the linked PR removes the yargs handler, it leaves the function in place, so I thought I'd fix it to aid a potential reintroduction in the future by ensuring the consistency between these functions.
Author has addressed the following