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

source-academy / py-slang / 30674537612
86%

Build:
DEFAULT BRANCH: main
Ran 01 Aug 2026 12:17AM UTC
Jobs 1
Files 133
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

01 Aug 2026 12:03AM UTC coverage: 86.044% (+0.05%) from 85.998%
30674537612

push

github

web-flow
Fix Py2JS stack overflow on cyclic list print/str/repr (#375)

* Fix Py2JS stack overflow on cyclic list print/str/repr (#341)

toDisplayValue (runtime.ts) and toTagged/toTaggedList (stdlibBridge.ts)
rebuilt a fresh CSE Value tree from a PyValue on every call with no
cycle awareness, so a self-referential list (e.g. `a = [1]; a[0] = a`)
recursed forever converting it -- before stringify.ts's own,
already-correct ancestor-cycle detection ever got a chance to run.

Both conversions now memoize by identity, allocating each list's
placeholder before descending into its elements/spine, so a cyclic
PyValue converts into a genuinely cyclic Value graph that stringify.ts
already knows how to render safely. Also updates stringify.ts's cycle
marker from "...<circular>" to CPython's actual "[...]", verified
against real CPython's Py_ReprEnter behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PChZPg9vbWzAJrxDV9YQvk

* Cross-check str()/repr() cycle test against the CSE reference engine too

Addresses a CodeRabbit nitpick on #375: every other case in this
describe block asserts against both runCode (CSE reference) and
runCodePy2Js for cross-engine parity; the str()/repr() case only
asserted the py2js side. CSE's own str()/repr() already handle this
cycle correctly (misc.ts's Native.str/Native.repr route through the
same cycle-safe stringify()), so this just closes the parity gap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PChZPg9vbWzAJrxDV9YQvk

---------

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

4517 of 5658 branches covered (79.83%)

Branch coverage included in aggregate %.

30 of 30 new or added lines in 3 files covered. (100.0%)

10039 of 11259 relevant lines covered (89.16%)

172338.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30674537612.1 01 Aug 2026 12:17AM UTC 133
86.04
GitHub Action Run
Source Files on build 30674537612
  • Tree
  • List 133
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30674537612
  • e629e6b8 on github
  • Prev Build on main (#30665427995)
  • Next Build on main (#30680727861)
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