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

pulibrary / tigerdata-app / c8ab3ca0-aa05-470c-8cd5-1fe6fc8ca625
91%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2026 03:07PM UTC
Jobs 2
Files 120
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

20 Feb 2026 02:58PM UTC coverage: 90.959%. Remained the same
c8ab3ca0-aa05-470c-8cd5-1fe6fc8ca625

push

circleci

web-flow
File Inventory speed optimization (#2416)

Refactored the file inventory to "walk the tree" rather than fetching
the tree for the project all at once. This requires creating new
iterators for each folder within the collection and fetching them
individually but it seems to perform much better than the original
approach.

The downside of the new approach is that we need to calculate each
file's path as we go but because the culprit in the original approach
was the [time that it takes Mediaflux to fetch the
path](https://github.com/pulibrary/tigerdata-app/issues/1274#issuecomment-2710860502)
this is a worthwhile compromise.

In QA a test project with a copy of the "Project G" data (`mediaflux_id
= 1083`) with 189,000 files takes `690 seconds` with the new method
compared with `2300 seconds` with the original code.

`690 seconds` (`~11 minutes`) is still a long time, but much better than
the original `2300 seconds` (`~37 minutes`) and not too bad for a job
that runs in the background.

Closes #1344

51 of 52 new or added lines in 3 files covered. (98.08%)

4 existing lines in 1 file now uncovered.

3139 of 3451 relevant lines covered (90.96%)

591.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.83
app/models/project_file_inventory.rb

Uncovered Existing Lines

Lines Coverage ∆ File
4
88.89
-4.1% app/models/project.rb
Jobs
ID Job ID Ran Files Coverage
1 job1 - c8ab3ca0-aa05-470c-8cd5-1fe6fc8ca625.1 20 Feb 2026 03:07PM UTC 120
86.57
2 job2 - c8ab3ca0-aa05-470c-8cd5-1fe6fc8ca625.2 20 Feb 2026 03:09PM UTC 120
73.32
Source Files on build c8ab3ca0-aa05-470c-8cd5-1fe6fc8ca625
  • Tree
  • List 120
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #C8AB3CA0...
  • d8fbf0a4 on github
  • Prev Build on main (#BDB6E748...)
  • Next Build on main (#AA281E7B...)
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