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

JuliaLang / julia / #38130
77%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2025 09:51AM UTC
Jobs 1
Files 216
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

12 Jul 2025 07:03AM UTC coverage: 25.68% (+0.006%) from 25.674%
#38130

push

local

web-flow
bpart: Tweak `isdefinedglobal` on backdated constant (#58976)

In d2cc06193 and prior commits, we made
backdated access a conditional error (if depwarns are enabled or in
generators). However, we did not touch `isdefinedglobal`. This resulted
in the common pattern `isdefinedglobal(m, s) && getglobal(m, s)` to
sometimes error. In particular, this could be observed when attempting
to print a type from inside a generated function before that type's
definition age.

Additionally, I think the usage there, which used `invokelatest` on each
of the two queries is problematic because it is racy, since the two
`invokelatest` calls may be looking at different world ages.

This makes two tweaks:
1. Makes `isdefinedglobal` consistent with `getglobal` in that it now
returns false if `getglobal` would throw due to the above referenced
restriction.
2. Removes the implicit `invokelatest` in _isself in the show code.
Instead, it will use the current world. I considered having it use the
exception age when used for MethodErrors. However, because this is used
for printing it matters more how the object can be accessed *now* rather
than how it could have been accessed in the past.

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

110 existing lines in 2 files now uncovered.

12878 of 50147 relevant lines covered (25.68%)

678795.94 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
24
48.41
0.93% base/task.jl
86
50.28
0.0% stdlib/Test/src/Test.jl
Jobs
ID Job ID Ran Files Coverage
1 #38130.1 12 Jul 2025 09:51AM UTC 216
25.68
Source Files on build #38130
  • Tree
  • List 216
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fb59b6d9 on github
  • Prev Build on master
  • Next Build on master
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