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

pulibrary / bibdata / 03ba0a89-dbf2-455d-b783-c916d773ed37
91%
main: 90%

Build:
Build:
LAST BUILD BRANCH: frozen-string-literals
DEFAULT BRANCH: main
Ran 22 Aug 2025 12:09AM UTC
Jobs 2
Files 167
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

22 Aug 2025 12:05AM UTC coverage: 91.15% (-0.04%) from 91.189%
03ba0a89-dbf2-455d-b783-c916d773ed37

push

circleci

sandbergja
Use a Rust function to provide ISO 639-3 language data

Previously, we got this data from the human_languages
gem, which is excellent but slow.  This Rust implementation
is much faster: while indexing a file of ~50,000 records,
the ruby implementation took 19.289 seconds, while the
rust implementation took 0.244 seconds!

This commit also includes a rake task to refresh the
Rust function with new language data as needed.

The new Rust implementation also fixes a small bug in the current
language indexing.  Previously, if a Marc record contained
the ISO 639-3 language code ell (Modern Greek), its language
would be indexed as "Modern Greek (1453-)", but if it
contained the equivalent ISO 639-2b code (much more likely),
it would be indexed as "Greek, Modern (1453-)", leading
materials to be split across the two facets.  In the new
implementation, both are indexed as "Greek, Modern (1453-)".

One tradeoff is that compile times are noticably slower.

61 of 69 new or added lines in 4 files covered. (88.41%)

1 existing line in 1 file now uncovered.

7519 of 8249 relevant lines covered (91.15%)

413.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
92.68
-7.32% lib/bibdata_rs/src/languages.rs
5
0.0
0.0% lib/bibdata_rs/src/lib.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.87
-2.13% marc_to_solr/lib/language_service.rb
Jobs
ID Job ID Ran Files Coverage
1 03ba0a89-dbf2-455d-b783-c916d773ed37.1 22 Aug 2025 12:09AM UTC 54
90.2
2 03ba0a89-dbf2-455d-b783-c916d773ed37.2 22 Aug 2025 12:14AM UTC 113
92.42
Source Files on build 03ba0a89-dbf2-455d-b783-c916d773ed37
  • Tree
  • List 167
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #03BA0A89...
  • 50c3568b on github
  • Prev Build on main (#BD8237A4...)
  • Next Build on iso-639-3-in-rust (#56B43C1F...)
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

© 2025 Coveralls, Inc