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

source-academy / py-slang / 28353466930
78%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 06:41AM UTC
Jobs 1
Files 83
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

29 Jun 2026 06:38AM UTC coverage: 76.16% (+0.02%) from 76.137%
28353466930

push

github

web-flow
fix: buffer stdout so multiple print statements all appear (#176)

* fix: buffer stdout and flush as a single sendOutput to fix multiple prints

When print() was called multiple times, only the first line appeared.
Root cause: each sendOutput call sends a separate postMessage to the
host, where the frontend's redux-saga handleStdout task processes one
message per iteration. The STATUS STOPPED message arriving after all
output would trigger task cancellation, but the saga scheduler could
cancel handleStdout between iterations, dropping remaining messages.

Fix: collect all stdout writes into a local buffer during evaluation and
flush the entire buffer as a single sendOutput call after collectSnapshots
completes. One message = one handleStdout iteration = no race condition.
The flush also runs in the catch path so partial output before an error
is still shown.

* fix: clear buffer after flush and add tests for createBufferedOutputStream

- Reset buffer to "" after sendOutput so double-flush (try path + catch
  path when sendSnapshots throws) never duplicates output
- Use strict !== "" check instead of truthy to match the guard condition
  unambiguously
- Add streams.test.ts with 3 unit tests covering: single-flush batching,
  no-op on empty buffer, and idempotent double-flush

Addresses Gemini review comment on PR 176 and restores coveralls coverage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

2212 of 3198 branches covered (69.17%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

5567 of 7016 relevant lines covered (79.35%)

12690.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28353466930.1 29 Jun 2026 06:41AM UTC 83
76.16
GitHub Action Run
Source Files on build 28353466930
  • Tree
  • List 83
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28353466930
  • d26ebd33 on github
  • Prev Build on main (#28352892606)
  • Next Build on main (#28426606113)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc