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

Versions deployments commands #5224

Merged
merged 14 commits into from
Mar 13, 2024
Merged

Versions deployments commands #5224

merged 14 commits into from
Mar 13, 2024

Conversation

RamIdeas
Copy link
Contributor

@RamIdeas RamIdeas commented Mar 11, 2024

What this PR solves / how to test

This PR implements the wrangler deployments list and wrangler deployments status commands. These will replace the existing deployments commands but, for now, you must specify --experimental-gradual-rollouts to run these new commands, for example:

$ npx wrangler deployments list  --experimental-gradual-rollouts

$ npx wrangler deployments status  --experimental-gradual-rollouts

Author has addressed the following

@RamIdeas RamIdeas requested a review from a team as a code owner March 11, 2024 18:07
Copy link

changeset-bot bot commented Mar 11, 2024

🦋 Changeset detected

Latest commit: 2b3b8d6

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

This PR includes changesets to release 2 packages
Name Type
wrangler Minor
@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

packages/wrangler/src/deployments.ts Outdated Show resolved Hide resolved
};

/**
* Render a set of labelled values into a string with the values aligned
Copy link
Contributor

Choose a reason for hiding this comment

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

Example inputs/outputs in this comment might be nice.

packages/wrangler/src/versions/deploy.ts Outdated Show resolved Hide resolved
packages/wrangler/src/versions/deploy.ts Outdated Show resolved Hide resolved
packages/wrangler/src/versions/types.d.ts Outdated Show resolved Hide resolved
@RamIdeas RamIdeas force-pushed the versions-deployments-commands branch from 2e1a960 to 50911dd Compare March 12, 2024 20:34
Copy link
Contributor

github-actions bot commented Mar 12, 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/8262904278/npm-package-wrangler-5224

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

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

Or you can use npx with this latest build directly:

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

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


wrangler@3.33.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240304.1
workerd 1.20240304.0 1.20240304.0
workerd --version 1.20240304.0 2024-03-04

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

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 98.76543% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 71.27%. Comparing base (4730b6c) to head (2b3b8d6).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5224      +/-   ##
==========================================
+ Coverage   70.99%   71.27%   +0.27%     
==========================================
  Files         304      309       +5     
  Lines       15927    16075     +148     
  Branches     4080     4105      +25     
==========================================
+ Hits        11308    11458     +150     
+ Misses       4619     4617       -2     
Files Coverage Δ
...angler/src/__tests__/helpers/collect-cli-output.ts 100.00% <100.00%> (ø)
packages/wrangler/src/index.ts 90.50% <100.00%> (+0.12%) ⬆️
packages/wrangler/src/metrics/send-event.ts 100.00% <ø> (ø)
...kages/wrangler/src/utils/render-labelled-values.ts 100.00% <100.00%> (ø)
packages/wrangler/src/versions/api.ts 100.00% <100.00%> (ø)
packages/wrangler/src/versions/deploy.ts 92.34% <100.00%> (-1.26%) ⬇️
...ackages/wrangler/src/versions/deployments/index.ts 100.00% <100.00%> (ø)
packages/wrangler/src/versions/deployments/list.ts 100.00% <100.00%> (ø)
packages/wrangler/src/versions/view.ts 100.00% <100.00%> (ø)
...ckages/wrangler/src/versions/deployments/status.ts 97.91% <97.91%> (ø)
... and 1 more

... and 5 files with indirect coverage changes

Copy link
Contributor

@mrbbot mrbbot left a comment

Choose a reason for hiding this comment

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

Approving pending chnageset as this is a user facing change, albeit experimental. 👍

@RamIdeas RamIdeas force-pushed the versions-deployments-commands branch from ad4879e to 1041b08 Compare March 12, 2024 22:47
@RamIdeas RamIdeas force-pushed the versions-deployments-commands branch 2 times, most recently from 85d1c08 to d8f425e Compare March 12, 2024 23:17
@RamIdeas RamIdeas force-pushed the versions-list-command branch 2 times, most recently from 8c2292a to efd3514 Compare March 13, 2024 09:42
Base automatically changed from versions-list-command to main March 13, 2024 09:54
@RamIdeas RamIdeas force-pushed the versions-deployments-commands branch from 104f255 to 2b3b8d6 Compare March 13, 2024 10:11
@RamIdeas RamIdeas merged commit 03484c2 into main Mar 13, 2024
15 checks passed
@RamIdeas RamIdeas deleted the versions-deployments-commands branch March 13, 2024 10:29
([version_id, percentage]) => ({ version_id, percentage })
),
annotations: {
"workers/triggered_by": "deployment",
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, whoops, this was supposed to be redacted for Deployments as it was for versions, sorry for the confusion!

taylorlee added a commit to taylorlee/workers-sdk that referenced this pull request Mar 20, 2024
RamIdeas pushed a commit that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants