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

pulibrary / bibdata / 9a1ea59e-249f-48bf-800d-3b060d4b3341

24 Jul 2024 02:24PM UTC coverage: 91.909% (-0.05%) from 91.963%
9a1ea59e-249f-48bf-800d-3b060d4b3341

push

circleci

christinach
[#2266] Update to rails 7.1

3385 of 3683 relevant lines covered (91.91%)

357.49 hits per line

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

81.82
/app/services/alma/indexer.rb
1
class Alma::Indexer
1✔
2
  attr_reader :solr_url
1✔
3
  def initialize(solr_url:)
1✔
4
    @solr_url = solr_url
32✔
5
  end
6

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