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

source-academy / py-slang / 30087195502
86%

Build:
DEFAULT BRANCH: main
Ran 24 Jul 2026 11:02AM UTC
Jobs 1
Files 116
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

24 Jul 2026 10:44AM UTC coverage: 86.137%. Remained the same
30087195502

push

github

web-flow
Fix py2js: module-invoked Python callback couldn't call another asyncOnly module function (#350)

pyClosureFunc's fallback body (used whenever the closure_call_sync fast
path can't handle the call) ran the callback via rt.callSync, which
always executes its sync compiled body regardless of how the module
invoked it. That meant a module-invoked Python callback could never
await anything, so a nested call to another asyncOnly module function
(e.g. a stacking_adsr envelope lambda calling adsr()) threw "needs a
frontend round-trip" unconditionally.

Since this fallback body is an async generator already paying a
microtask per call (the .sync fast path exists precisely to skip that
tax for provably scalar-only closures), switching it to rt.acall costs
nothing extra in the common case and lets nested asyncOnly calls
actually suspend.

Fixes source-academy/py-slang#348.


Claude-Session: https://claude.ai/code/session_01KrwJGug3rCXijRseRjys9V

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

4405 of 5504 branches covered (80.03%)

Branch coverage included in aggregate %.

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

9544 of 10690 relevant lines covered (89.28%)

178377.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30087195502.1 24 Jul 2026 11:02AM UTC 116
86.14
GitHub Action Run
Source Files on build 30087195502
  • Tree
  • List 116
  • 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 #30087195502
  • 0bcb513d on github
  • Prev Build on main (#30079153629)
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