• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 45281051362
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 23 Nov 2026 10:38PM UTC
Jobs 2
Files 321
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2026 10:34PM UTC coverage: 77.582% (-0.006%) from 77.588%
45281051362

push

github

web-flow
fix(import): parse each JSON array element once, however many reads it spans (#1235)

Closes #1101.

Contributed by @AgrimTawani, who cannot open the PR himself; the commit
here is theirs, unmodified, cherry-picked from
`AgrimTawani/nostream:fix/1101-import-scan-once` (cf7b0345) with its
authorship intact.

## The mechanism

`ArrayStream` re-parsed an incomplete array element from its first byte
after every 8 KiB read, so a large event cost time quadratic in its
size. The reader now finds each element's end as bytes arrive — tracking
string contents, escapes and bracket depth — and hands the element to
`serde_json` once its last byte is in. An unfinished element is still
parsed each time its length doubles, which bounds what a malformed
element buffers to about twice the offset of its fault and keeps total
parsing linear. Error messages are unchanged; a bare number split across
two reads is no longer cut at the boundary.

## Evidence

- No workflow, dependency or install-time change: 3 files
(`event_import_service.rs`, its tests, one changeset).
- Hidden-character scan over the diff: no tag characters, no zero-width
or bidi controls.
- The five `CLAUDE.md` checks, run against this exact tree: `cargo fmt
--all --check`, both clippy invocations, `cargo test --workspace
--all-features`, `cargo build --workspace --all-features --release` —
results in the comments below.
- 8 new unit tests plus one integration test; the 4 MiB case asserts the
parser saw under 3× the input.

4501 of 6342 branches covered (70.97%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

761.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 45281051362.1 23 Nov 2026 10:39PM UTC 321
75.03
GitHub Action Run
2 Integration - 45281051362.2 23 Nov 2026 10:38PM UTC 321
32.99
GitHub Action Run
Source Files on build 45281051362
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45281051362
  • 5ac6996d on github
  • Prev Build on rewrite/main (#44995902876)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc