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

Add duplex to r2 put #2793

Merged
merged 1 commit into from Feb 24, 2023
Merged

Add duplex to r2 put #2793

merged 1 commit into from Feb 24, 2023

Conversation

penalosa
Copy link
Contributor

What this PR solves / how to test:

Adds duplex: half to r2 object put to workaround an undici change.

Associated docs issues/PR:

  • [insert associated docs issue(s)/PR(s)]

Author has included the following, where applicable:

  • Tests
  • Changeset

Reviewer has performed the following, where applicable:

  • Checked for inclusion of relevant tests
  • Checked for inclusion of a relevant changeset
  • Checked for creation of associated docs updates
  • Manually pulled down the changes and spot-tested

Fixes #2784

@penalosa penalosa requested a review from a team as a code owner February 24, 2023 11:49
@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2023

⚠️ No Changeset found

Latest commit: 67a0e38

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

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/4262258031/npm-package-wrangler-2793

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/4262258031/npm-package-wrangler-2793 dev path/to/script.js
Additional artifacts:
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/4262258031/npm-package-cloudflare-pages-shared-2793

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

@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Merging #2793 (67a0e38) into main (4ca8c0b) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2793      +/-   ##
==========================================
+ Coverage   73.97%   74.00%   +0.02%     
==========================================
  Files         166      166              
  Lines       10163    10163              
  Branches     2705     2705              
==========================================
+ Hits         7518     7521       +3     
+ Misses       2645     2642       -3     
Impacted Files Coverage Δ
packages/wrangler/src/r2/helpers.ts 97.05% <ø> (ø)
packages/wrangler/src/git-client.ts 43.75% <0.00%> (+4.16%) ⬆️
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) ⬆️

@penalosa penalosa merged commit e6e1dab into main Feb 24, 2023
@penalosa penalosa deleted the penalosa/fix-r2-upload branch February 24, 2023 12:22
@penalosa penalosa mentioned this pull request Feb 24, 2023
6 tasks
jspspike pushed a commit that referenced this pull request Feb 27, 2023
jspspike pushed a commit that referenced this pull request Mar 13, 2023
jspspike pushed a commit that referenced this pull request Mar 15, 2023
jspspike pushed a commit that referenced this pull request Mar 16, 2023
jspspike added a commit that referenced this pull request Mar 16, 2023
* Deployment Details
Added a positional in the 'Deployments' command <deployment-id>.
<deployment-id> will get the details of the deployment, including versioned script, bindings, and usage model information.

changeset added

snapshot for commands updated

removed stray quotes

* Deployment Rollbacks
Created a subcommand on deployments that allows for rolling back a deployment to a previous ID provided.

Changed the command structure to have 2 subcommands view and rollback

Improved the Changeset messaging and combined rollback

Update help messages

Added comfirmation prompt to Rollback

Implemented --yes flag with tests

Updated tests

comfirmation handles non-TTY environments automatically fixed tests to reflect that and removed --yes option

tests breaking in CI

Turn off chalk in tests

Update messaging with new copy for confirm prompt matching dashboard & removing the PUT response in output

snapshots updated

rollback accounts URL

* # This is a combination of 2 commits.
# This is the 1st commit message:

Update rollback fetch call and remove deployments request from publish

# This is the commit message #2:

destructure the one value we want from the result

* Update rollback fetch call and remove deployments request from publish

destructure the one value we want from the result

Have script upload msw always return response body

Update deployment tests

Fixed misc tests

Delete index.js

Added check for request on rollback tests

Fix issue with wrangler version appearing after prompt

* Fix `next(param)` in Pages Plugins (#2789)

* Add duplex to r2 put (#2793)

* Add changeset (#2795)

* Version Packages (#2791)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add hyphens to all deployment ids

* Merge

* Automatically rollback to previous deployment if deployment id is not specified (#2841)

Co-authored-by: jjohnson <jjohnson@cloudflare.com>

* Have deployment view output in table (#2844)

* Add suggested changes and update wrangler docs

* Separate content into option on view command

---------

Co-authored-by: jjohnson <jjohnson@cloudflare.com>

* Add message to rollback and restructre rollback commands (#2888)

* Add rollback reason

* fixup: Cleanup hanging prompt mocks in deployments tests

* Change structure for rollback commands

---------

Co-authored-by: jjohnson <jjohnson@cloudflare.com>
Co-authored-by: Samuel Macleod <smacleod@cloudflare.com>

* Remove showing script content in deployment view

---------

Co-authored-by: jjohnson <jjohnson@cloudflare.com>
Co-authored-by: Greg Brimble <gbrimble@cloudflare.com>
Co-authored-by: Somhairle MacLeòid <smacleod@cloudflare.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joshua Johnson <jspspike@gmail.com>
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.

🐛 BUG: r2 object put Duplex option required
2 participants