Skip to content

feat(core): support pool shorthand and granular CLI options#904

Merged
fi3ework merged 1 commit intomainfrom
—ppool
Jan 26, 2026

Hidden character warning

The head ref may contain hidden characters: "\u2014ppool"
Merged

feat(core): support pool shorthand and granular CLI options#904
fi3ework merged 1 commit intomainfrom
—ppool

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

  • CLI Enhancements
    • Add --pool <type> shorthand for --pool.type
    • Add granular flags: --pool.maxWorkers, --pool.minWorkers, and --pool.execArgv
  • Config Logic
    • Update mergeWithCLIOptions to normalize pool config (string to object) before merging
    • Support multiple --pool.execArgv occurrences via castArray
  • Documentation
    • Update EN/ZH CLI guides to replace generic --pool with specific nested flags
    • Add pool: 'forks' shorthand documentation and type definitions to Pool config pages
  • Testing & DX
    • Add E2E test case for --pool shorthand verification
    • Add critical note to packages/core/AGENTS.md regarding E2E build requirements

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 26, 2026 06:38
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 26, 2026

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: e2ae4f1
Status: ✅  Deploy successful!
Preview URL: https://2141643c.rstest.pages.dev
Branch Preview URL: https://ppool.rstest.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds improved pool configuration ergonomics by introducing a --pool <type> shorthand plus granular --pool.* CLI flags, along with corresponding config merge behavior, docs updates, and an E2E smoke test.

Changes:

  • Add --pool <type> shorthand and granular --pool.type/maxWorkers/minWorkers/execArgv CLI options.
  • Update CLI→config merge logic to normalize/merge pool correctly (including repeatable --pool.execArgv).
  • Update EN/ZH docs for CLI + pool config, and add an E2E test for the shorthand flag.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/docs/zh/guide/basic/cli.mdx Documents new --pool shorthand and granular --pool.* flags (ZH).
website/docs/zh/config/test/pool.mdx Updates pool type/docs and adds config shorthand example (ZH).
website/docs/en/guide/basic/cli.mdx Documents new --pool shorthand and granular --pool.* flags (EN).
website/docs/en/config/test/pool.mdx Updates pool type/docs and adds config shorthand example (EN).
packages/core/src/cli/init.ts Implements pool normalization + merge behavior for CLI options into config.
packages/core/src/cli/commands.ts Registers new --pool and --pool.* CLI options.
packages/core/LICENSE.md Removes the yn third-party license block (potentially incorrect).
packages/core/AGENTS.md Adds a note that E2E runs against built output and requires rebuilding core.
e2e/cli/index.test.ts Adds E2E coverage for --pool shorthand being accepted by the CLI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fi3ework fi3ework enabled auto-merge (squash) January 26, 2026 07:07
@fi3ework fi3ework merged commit be14998 into main Jan 26, 2026
10 checks passed
@fi3ework fi3ework deleted the —ppool branch January 26, 2026 07:16
@9aoy 9aoy mentioned this pull request Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants