Skip to content

Make the debug tutorial's seq examples count correctly on macOS - #106

Merged
chrismo merged 3 commits into
mainfrom
fix-debug-seq-macos
Nov 2, 2026
Merged

chrismo merged 3 commits into
mainfrom
fix-debug-seq-macos

Conversation

@chrismo

@chrismo chrismo commented Nov 1, 2026

Copy link
Copy Markdown
Owner

The two streaming examples in docs/tutorials/debug.md pipe seq 1 1000000 into super. On macOS, seq writes 1000000 as 1e+06 by default and prints it twice, so the examples count 1000001 records instead of 1000000 (they pass on Linux CI, which uses GNU seq).

seq -f %.0f prints plain integers. On macOS its output is byte-identical to awk 'BEGIN{for(i=1;i<=1000000;i++)print i}'. This PR's CI run checks GNU seq with the flag.

  • Both examples use seq -f %.0f 1 1000000, with a sentence explaining the flag
  • The upgrade guide's JSON-reader known issue uses the same command (still gives 1000010 without -i sup; checked on macOS)

npm run test:docs on macOS with super v0.4.0: 71 passed, 0 failed (was 69/71).

🤖 Generated with Claude Code

chrismo and others added 3 commits November 1, 2026 16:45
macOS seq writes 1000000 as 1e+06 by default and prints it twice, so
the examples counted 1000001 records. seq -f %.0f prints plain
integers on both macOS and GNU seq.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SuperDB v0.4.0 removed the jsup format, so super no longer recognizes
the extension. The contents are SUP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrismo
chrismo merged commit 3139229 into main Nov 2, 2026
1 check passed
@chrismo
chrismo deleted the fix-debug-seq-macos branch November 2, 2026 03:23
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.

1 participant