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

lunarmodules / copas / 30206523120
86%

Build:
DEFAULT BRANCH: master
Ran 26 Jul 2026 02:41PM UTC
Jobs 6
Files 7
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

26 Jul 2026 02:39PM UTC coverage: 85.11% (+0.04%) from 85.072%
30206523120

push

github

Tieske
fix(semaphore): stop leaking resources to canceled queue waiters

Same root cause as the copas.lock deadlock (#199): semaphore:give()
deducted a queued waiter's requested resources from the pool and then
called copas.wakeup() without checking whether it actually resumed
the coroutine. If that waiter had been canceled externally (eg. via
copas.removethread()/future:cancel()) while queued, the resources
were permanently subtracted from the pool even though the canceled
coroutine never runs to consume or return them - silently shrinking
the semaphore's effective capacity forever, and starving any real
waiter still queued behind it.

give() now only deducts the resources once copas.wakeup() confirms
the waiter actually resumed; a stale/canceled entry is dropped without
touching the count, and the loop continues to the next waiter in line.

18 of 18 new or added lines in 2 files covered. (100.0%)

127 existing lines in 5 files now uncovered.

1429 of 1679 relevant lines covered (85.11%)

67776.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
122
79.92
0.88% src/copas.lua
2
95.0
-1.67% src/copas/timer.lua
1
98.15
-1.85% src/copas/future.lua
1
92.55
-1.2% src/copas/lock.lua
1
96.33
-0.79% src/copas/semaphore.lua
Jobs
ID Job ID Ran Files Coverage
1 30206523120.1 26 Jul 2026 02:41PM UTC 7
84.68
GitHub Action Run
2 30206523120.2 26 Jul 2026 02:41PM UTC 7
84.68
GitHub Action Run
3 30206523120.3 26 Jul 2026 02:41PM UTC 7
84.62
GitHub Action Run
4 30206523120.4 26 Jul 2026 02:41PM UTC 7
84.67
GitHub Action Run
5 30206523120.5 26 Jul 2026 02:41PM UTC 7
84.34
GitHub Action Run
6 30206523120.6 26 Jul 2026 02:41PM UTC 7
84.12
GitHub Action Run
Source Files on build 30206523120
  • Tree
  • List 7
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d30906e9 on github
  • Prev Build on master (#30196085089)
  • Next Build on master (#30207113842)
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