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

pulibrary / tigerdata-app / 6a5be3a8-ecd4-400d-9134-33099047b33b

21 Oct 2025 03:31PM UTC coverage: 91.184% (+0.1%) from 91.054%
6a5be3a8-ecd4-400d-9134-33099047b33b

push

circleci

web-flow
Ensuring that `parallelism` is set to 4 for CircleCI and separates `system` tests into separate CI jobs (#2055)

* - Ensuring that `parallelism` is set to 4
- Separating `system` RSpec spec suites in the CI build
- Using an `inconsistent` RSpec tag to mark inconsistently failing tests
- Ensuring that CI does not run for `inconsistent` tests

* Removing `inconsistent` tag for RSpec test suites

2741 of 3006 relevant lines covered (91.18%)

763.77 hits per line

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

100.0
/app/jobs/request_cleanup_job.rb
1
# frozen_string_literal: true
2
class RequestCleanupJob < ApplicationJob
3✔
3
  queue_as :default
3✔
4

5
  def perform
3✔
6
    # Destroy every request in the database that is not valid to submit and has 6 or more errors
7
    Request.where.not(state: Request::SUBMITTED).each do |request|
6✔
8
      # check if the request has not been updated within 24 hours
9
      next unless request.updated_at < 24.hours.ago
4✔
10
      next if request.valid_title?
4✔
11
      request.valid_to_submit?
2✔
12
      # 6 errors is arbitrary, but it is the number of manditory fields (excluding pre-populated fields) in the request form
13
      if request.errors.count >= 6
2✔
14
        request.destroy
2✔
15
      end
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