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

pulibrary / bibdata / 1dcebae2-3318-4e77-bc53-82276e293354

02 May 2025 04:45PM UTC coverage: 28.256% (-63.9%) from 92.189%
1dcebae2-3318-4e77-bc53-82276e293354

push

circleci

sandbergja
Add basic infrastructure for compiling rust code

* Add a rake compile task to compile
* Run the rake task in CI
* Run the rake task before rspec tests with the rust tag, to provide quick feedback on rust changes in TDD cycles

2 of 7 new or added lines in 2 files covered. (28.57%)

2467 existing lines in 97 files now uncovered.

1089 of 3854 relevant lines covered (28.26%)

0.29 hits per line

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

38.46
/app/jobs/index/numismatics_job.rb
1
module Index
1✔
2
  class NumismaticsJob
1✔
3
    include Sidekiq::Worker
1✔
4

5
    def perform(solr_url = IndexManager.rebuild_solr_url, chunk_size = 500)
1✔
UNCOV
6
      batch = Sidekiq::Batch.new
×
UNCOV
7
      batch.description = 'Numismatics indexing batch'
×
UNCOV
8
      batch.on(:success, NumismaticsJob, solr_url:)
×
UNCOV
9
      batch.jobs do
×
UNCOV
10
        NumismaticsIndexer.new(
×
11
          solr_connection: RSolr.connect(url: solr_url),
12
          progressbar: false,
13
          logger: Rails.logger
14
        ).solr_documents.each_slice(chunk_size) do |docs|
UNCOV
15
          NumismaticsBatchJob.perform_async(solr_url, docs)
×
16
        end
17
      end
18
    end
19

20
    def on_success(_status, options)
1✔
UNCOV
21
      solr_connection = RSolr.connect(url: options['solr_url'])
×
22
      # soft commit to avoid timeouts
UNCOV
23
      solr_connection.commit(commit_attributes: { waitSearcher: false })
×
24
    end
25
  end
26
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