Repository navigation
Conversation
|
@sharmao07 is attempting to deploy a commit to the cacheplane Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey @sharmao07, thank you for your first PR to B4.run! 🎉 This is really nice work. The digits-only check, the 0–65535 bounds, and keeping The timing just didn't work out: the same fix for #1063 landed in #1066 about an hour after you opened this, so it now conflicts with That said, your tests cover a few cases we don't have. If you're up for a rebase, I'd love to merge just those:
Please keep your docstring update too, since ours is out of date. Drop the change to If not, no worries at all. I'll close this out. Either way, thank you! |
a4af902 to
36ae23f
Compare
|
Hey @blove, thanks for the feedback! I've updated the PR against the latest Local validation passed:
Thanks for pointing out the additional regression coverage! |
Summary
Fixes #1063.
PORTenvironment variable as decimal digits representing a port between0and65535, inclusive.8000for invalid values, including negative numbers, fractional values, hexadecimal notation, scientific notation, and out-of-range ports.0for an ephemeral port.@b4run/cli.Validation
pnpm --filter @b4run/cli test test/serve-runtime.test.ts— 10 tests passed.pnpm --filter @b4run/cli typecheck— passed.pnpm exec changeset status— passed; the patch changeset was recognized.pnpm lint— full repository lint not run; scoped Biome check passed.pnpm build— not run.pnpm typecheck— full monorepo typecheck not run; CLI package typecheck passed.pnpm test— full test suite not run; focused tests passed.node scripts/check-docs.mjs— not run.pnpm pack:check— not run.Release Notes
.changeset/resolve-serve-port-validation.md@b4run/cli.Screenshots Or Artifacts
Not applicable. This change affects CLI port validation and tests; no UI screenshots or generated artifacts are required.
Checklist
CONTRIBUTING.md.CODE_OF_CONDUCT.md.