• 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

42.86
/app/jobs/delete_events_job.rb
1
class DeleteEventsJob
1✔
2
  include Sidekiq::Worker
1✔
3
  # @param dump_type [Symbol] the dump type of the dumps you want to clean up
4
  # @param older_than [int] the Time before which dumps should be deleted
5
  def perform(dump_type, older_than)
1✔
UNCOV
6
    older_than = Time.zone.parse(older_than)
×
UNCOV
7
    event_ids = Event.joins(:dump)
×
8
                     .where('dump.dump_type': dump_type.to_sym)
9
                     .where(start: ..older_than)
10
                     .map(&:id)
UNCOV
11
    Event.destroy(event_ids)
×
12
  rescue ActiveRecord::InvalidForeignKey => e
UNCOV
13
    Rails.logger.warn("Likely tried to delete a dump that is either the 'dump_in_progress' or 'last_dump_completed' for an index manager.\n Error message: #{e.message}")
×
14
  end
15
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