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

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

36.36
/app/services/alma/indexer.rb
1
class Alma::Indexer
1✔
2
  attr_reader :solr_url
1✔
3

4
  def initialize(solr_url:)
1✔
5
    @solr_url = solr_url
×
6
  end
7

8
  def index_file(file_path, debug_mode = false)
1✔
9
    debug_flag = debug_mode ? '--debug-mode' : ''
×
10
    # nosemgrep
11
    stdout, stderr, status = Open3.capture3("traject #{debug_flag} -c marc_to_solr/lib/traject_config.rb #{file_path} -u #{solr_url} -w Traject::PulSolrJsonWriter")
×
12
    if stderr.include?('FATAL') && !status.success?
×
13
      Rails.logger.error(stderr)
×
14
      raise "Traject indexing failed for #{file_path}: #{stderr}"
×
15
    else
16
      Rails.logger.info("Successfully indexed file #{file_path}")
×
17
    end
18
  end
19
end
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