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

zopefoundation / zope.interface / 42127800777
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: fix-load-declarations-race
DEFAULT BRANCH: master
Ran 05 Nov 2026 11:17PM UTC
Jobs 1
Files 52
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

05 Nov 2026 11:12PM UTC coverage: 98.958%. Remained the same
42127800777

Pull #398

github

jensens
Fix the race in the lazy declarations import

Two threads could both see ``decl_imported`` unset, both load the
declarations, and the second one overwrote the module state, leaking
the first set of references.  This also happens on GIL builds, since
the import and the attribute lookups can release the GIL.  On
free-threaded builds the flag was additionally read and written
without ordering, so a reader could see it set before the fields.

Keep loading without a lock, but publish the result in a critical
section: the first thread stores its references, a later one drops
its own.  Read the flag with acquire and set it with release ordering
on free-threaded builds.

Fixes #391.

Assisted-by: Claude Opus 5.5
Pull Request #398: Fix the race in the lazy declarations import

990 of 1020 branches covered (97.06%)

Branch coverage included in aggregate %.

12210 of 12319 relevant lines covered (99.12%)

7.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42127800777.1 05 Nov 2026 11:17PM UTC 52
98.96
GitHub Action Run
Source Files on build 42127800777
  • Tree
  • List 52
  • 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 #42127800777
  • Pull Request #398
  • PR Base - master (#41331029519)
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