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

curationexperts / laevigata / 980f8488-977f-4b2c-8ce4-89841c540ff5
97%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2023 04:34PM UTC
Jobs 4
Files 155
Run time 6s
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

23 Aug 2023 04:23PM UTC coverage: 93.34%. Remained the same
980f8488-977f-4b2c-8ce4-89841c540ff5

push

circleci

mark-dce
Allow migrations to run without Solr

**ISSUE**
Loading rake tasks to run migrations loads all defined tasks. This
cuases the reindexer to load ActiveFedora::SolrService, which fails
if Solr is not running.

**GOAL**
We would like to be able to run migrations without having to load Solr.

**FIX**
Add a guard to check whether Solr is registered/running in the
reindex task.

**BEFORE**
```
% bundle exec rake db:migrate
rake aborted!
RSolr::Error::ConnectionRefused: Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><commit/>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP http://127.0.0.1:8983/solr/hydra-development/update?wt=ruby>, :open_timeout=>120, :read_timeout=>120, :retry_503=>nil, :retry_after_limit=>nil}
(eval):2:in `post'
/Users/mark/_no_backup_/Projects/laevigata/lib/tasks/reindex.rake:19:in `block in <top (required)>'
/Users/mark/_no_backup_/Projects/laevigata/lib/tasks/reindex.rake:1:in `<top (required)>'
/Users/mark/_no_backup_/Projects/laevigata/Rakefile:5:in `<top (required)>'
/Users/mark/.rbenv/versions/2.7.4/bin/bundle:25:in `load'
/Users/mark/.rbenv/versions/2.7.4/bin/bundle:25:in `<main>'
```

**AFTER**
```
% bundle exec rake db:migrate
`Redis.current=` is deprecated and will be removed in 5.0. (called from: /Users/mark/_no_backup_/Projects/laevigata/config/initializers/redis_config.rb:4:in `<top (required)>')
% # success!
```

3013 of 3228 relevant lines covered (93.34%)

50.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 980f8488-977f-4b2c-8ce4-89841c540ff5.1 23 Aug 2023 04:34PM UTC 0
77.61
2 980f8488-977f-4b2c-8ce4-89841c540ff5.2 23 Aug 2023 04:35PM UTC 0
78.3
3 980f8488-977f-4b2c-8ce4-89841c540ff5.3 23 Aug 2023 04:36PM UTC 0
81.41
4 980f8488-977f-4b2c-8ce4-89841c540ff5.4 23 Aug 2023 04:36PM UTC 0
78.94
Source Files on build 980f8488-977f-4b2c-8ce4-89841c540ff5
Detailed source file information is not available for this build.
  • Back to Repo
  • CircleCI Build #980F8488...
  • 88c41f5b on github
  • Prev Build on main (#4A813394...)
  • Next Build on main (#53058952...)
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