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

JuliaLang / julia / #37901
77%

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2024 10:47AM UTC
Jobs 1
Files 361
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 Sep 2024 07:41AM UTC coverage: 87.689% (-0.05%) from 87.734%
#37901

push

local

web-flow
Add `invokelatest` barrier to `string(...)` in `@assert` (#55739)

This change protects `@assert` from invalidations to `Base.string(...)`
by adding an `invokelatest` barrier.

A common source of invalidations right now is `print(io,
join(args...))`. The problem is:
1. Inference concludes that `join(::Any...)` returns
`Union{String,AnnotatedString}`
2. The `print` call is union-split to `String` and `AnnotatedString`
3. This code is now invalidated when StyledStrings defines `print(io,
::AnnotatedString)`

The invalidation chain for `@assert` is similar: ` @assert 1 == 1` calls
into `string(::Expr)` which calls into `print(io, join(args::Any...))`.
Unfortunately that leads to the invalidation of almost all `@assert`s
without an explicit error message

Similar to
https://github.com/JuliaLang/julia/pull/55583#issuecomment-2308969806

0 of 2 new or added lines in 1 file covered. (0.0%)

387 existing lines in 7 files now uncovered.

78432 of 89443 relevant lines covered (87.69%)

16472604.2 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
88.42
-2.0% base/error.jl

Uncovered Existing Lines

Lines Coverage ∆ File
1
56.25
-6.25% base/traits.jl
1
78.87
-0.7% stdlib/FileWatching/src/pidfile.jl
2
88.42
-2.0% base/error.jl
2
94.04
-0.31% stdlib/LinearAlgebra/src/diagonal.jl
4
90.31
-0.6% base/errorshow.jl
9
72.22
-3.33% stdlib/Artifacts/src/Artifacts.jl
368
76.04
-1.15% base/loading.jl
Jobs
ID Job ID Ran Files Coverage
1 #37901.1 12 Sep 2024 10:47AM UTC 361
87.69
Source Files on build #37901
  • Tree
  • List 361
  • Changed 249
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 945517ba 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