Repository navigation
fix: validate upload S3 worker count - #1694
neuromechanist merged 3 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1694Version: 🤖 Updated on each push. |
|
Pre-merge review for exact PR head The contract/code/type and maintainability reviewers found no actionable issues. The tests/errors reviewer found that the before-authentication tests inherited the developer's NEMAR config. I accepted and fixed that finding by giving each invalid-value case a fresh empty Local checks: |
5cbcc04
into
feature/issue-1671-epic-bru-upload-fixes
The upload command now rejects malformed, non-decimal, non-positive, and unsafe
--jobsvalues before authentication or upload setup. Previously, a value such as4workerswas parsed later withparseInt, allowing setup to start before invalid concurrency reached the S3 copy stage.Validation:
bun test test/cli.test.ts -t 'invalid S3 copy worker count'(3 isolated CLI cases pass; each validation boundary was mutation-checked, including moving the guard below authentication)bun run lintbun run typecheck./node_modules/.bin/biome format test/cli.test.tsgit diff --checkRefs #1455 and #1671. This is CLI validation only; #1455 remains open for authenticated full-upload and NFS final-save acceptance.