Skip to content

Remove defaults for batch-max-* pipeline parameters and define value ranges#7576

Merged
cmackenzie1 merged 2 commits intocloudflare:mainfrom
cmackenzie1:cole/pipe-152-batch-min-max
Jan 8, 2025
Merged

Remove defaults for batch-max-* pipeline parameters and define value ranges#7576
cmackenzie1 merged 2 commits intocloudflare:mainfrom
cmackenzie1:cole/pipe-152-batch-min-max

Conversation

@cmackenzie1
Copy link
Copy Markdown
Contributor

@cmackenzie1 cmackenzie1 commented Dec 17, 2024

Closes https://jira.cfdata.org/browse/PIPE-152

Describe your change...


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because:
  • E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because: it is CLI help info
  • Public documentation
    • TODO (before merge)
    • Cloudflare docs PR(s):
    • Documentation not necessary because: it is documentation

@cmackenzie1 cmackenzie1 requested a review from a team as a code owner December 17, 2024 23:05
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 17, 2024

🦋 Changeset detected

Latest commit: 65b67ce

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

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 17, 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/12677414917/npm-package-wrangler-7576

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-wrangler-7576 dev path/to/script.js
Additional artifacts:
wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-workers-bindings-extension-7576 -O ./cloudflare-workers-bindings-extension.0.0.0-vfe8b3a722.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vfe8b3a722.vsix
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-create-cloudflare-7576 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-kv-asset-handler-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-miniflare-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-pages-shared-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-unenv-preset-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-vitest-pool-workers-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-workers-editor-shared-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-workers-shared-7576
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12677414917/npm-package-cloudflare-workflows-shared-7576

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


wrangler@3.100.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20241230.0
workerd 1.20241230.0 1.20241230.0
workerd --version 1.20241230.0 2024-12-30

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see that we mentioned the default value in the description already. Is this the same default value we have on the API side? That's why this is a non-breaking change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, 10 MB is the current default on the API side. Regarding breaking changes, this is currently in private beta and changes like this are expected.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The defaults are still being determined, so I removed here and will instead only set them on the API side.

@cmackenzie1 cmackenzie1 force-pushed the cole/pipe-152-batch-min-max branch 2 times, most recently from fa11ba7 to 0a33de4 Compare January 7, 2025 21:38
@cmackenzie1 cmackenzie1 requested a review from edmundhung January 8, 2025 17:07
Closes https://jira.cfdata.org/browse/PIPE-152

The defaults are currently in flux and changing as we determine
what makes sense for the system. To support these changing values,
remove the defaults from the client as they will be set by the API.
The values used to create the pipeline are visible to user when doing
`wrangler pipeline show <name>`.

Create three-chefs-bathe.md
@cmackenzie1 cmackenzie1 force-pushed the cole/pipe-152-batch-min-max branch from 0a33de4 to ea966a8 Compare January 8, 2025 19:07
Comment thread packages/wrangler/src/pipelines/index.ts Outdated
@cmackenzie1 cmackenzie1 force-pushed the cole/pipe-152-batch-min-max branch from ea966a8 to 65b67ce Compare January 8, 2025 19:11
@cmackenzie1 cmackenzie1 changed the title Define defaults for batch-max-* pipeline parameters Remove defaults for batch-max-* pipeline parameters and define value ranges Jan 8, 2025
@cmackenzie1 cmackenzie1 merged commit 773bda8 into cloudflare:main Jan 8, 2025
@cmackenzie1 cmackenzie1 deleted the cole/pipe-152-batch-min-max branch January 8, 2025 20:39
@workers-devprod workers-devprod mentioned this pull request Jan 8, 2025
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.

3 participants