Skip to content

Y26-275 - [PR] Remove Cucumber after the migration to RSpec - #6224

Merged
kshriniwas92 merged 9 commits into
developfrom
y26-275-epic-cucumber-to-rspec-migration
Nov 23, 2026
Merged

kshriniwas92 merged 9 commits into
developfrom
y26-275-epic-cucumber-to-rspec-migration

Conversation

@kshriniwas92

@kshriniwas92 kshriniwas92 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request

All Cucumber features are migrated to RSpec. This PR removes Cucumber and what was there only for it.

Cucumber removed

  • features/: step definitions, support files, and the last two feature files already migrated.
  • Gems cucumber-rails and cucumber_github_formatter; the two group :test blocks of the Gemfile are merged.
  • The cucumber Rails environment: its environment file, its database, Vite and Warren settings, its place in RuboCop's list of known environments, and the checks for it in the code for plate barcodes, UUIDs, batch worksheets, the test configuration and the record loaders.
  • The scripts and rake tasks that ran Cucumber, locally and in CI with Knapsack Pro, and Cucumber's own settings file.
  • An old Cucumber timing report from the knapsack gem, which nothing has read since we moved to Knapsack Pro in 2021.
  • CI: the Cucumber workflow is gone, the other jobs no longer skip a cucumber gem group, and Codecov now waits for 8 coverage uploads instead of 10.
  • Seeds used only by Cucumber: the LEGACY_CUKES_ONLY submission template, the legacy purposes loaded in 1000_illumina_b_workflow.rb, and 2000_illumina_c_workflows.rb, which held only Cucumber seeds.
  • References in .rubocop.yml, .rubocop_todo.yml, .simplecov, compile-build, .gitignore, .prettierignore, the rails notes setup of the development and test environments, comments and docs/sapio_operations.md.

Moved

  • The Capybara setup that RSpec uses, unchanged: features/support/capybara.rb, capybara_failure_logger.rb and capybara_timeout_patch.rb -> spec/support/.
  • The 8 specs in spec/features/migrated/ -> requests/, pipelines/, pipelines/sequencing/ (2), plates/, batches/, submissions/ and the top level of spec/features/.

Test database

The test environment used the Cucumber database sequencescape_test_cuke (for Knapsack Pro's Cucumber queue mode). It is sequencescape_test again, with pool: 5 and timeout: 5000.

Seeds guard

db/seeds.rb raises unless the environment is development or test (Rails.env.local?). The seeding environment name, defined nowhere, is no longer allowed. A new spec, spec/db/seeds_spec.rb, checks that seeding is refused in staging (UAT), training and production.

Deployment notes

  • Deployed environments: nothing to do. They never ran the cucumber environment, and deployment runs no seed task.
  • Developers, once: RAILS_ENV=test bin/rails db:setup creates sequencescape_test. The old sequencescape_test_cuke database and any public/vite-cucumber/ directory can be deleted.

After merging

  • Knapsack Pro: delete the Cucumber test suite and the KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER secret.

GitHub secret: at https://github.com/sanger/sequencescape/settings/secrets/actions, delete KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER. Keep the RSpec and Feature tokens.

Knapsack Pro: delete the Cucumber test suite at
https://knapsackpro.com/dashboard/organizations/1976/projects/1324/test_suites/1881/builds

What is left?

  • README: the Cucumber testing section and the Knapsack Pro Cucumber badge.

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

@kshriniwas92 kshriniwas92 linked an issue Nov 19, 2026 that may be closed by this pull request
13 tasks done
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.42%. Comparing base (4362051) to head (5b3130e).

Files with missing lines Patch % Lines
lib/record_loader/tag_set_loader.rb 0.00% 2 Missing ⚠️
...ib/record_loader/request_type_validators_loader.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6224      +/-   ##
===========================================
- Coverage    82.67%   82.42%   -0.25%     
===========================================
  Files         1347     1346       -1     
  Lines        33050    33009      -41     
  Branches      3617     3609       -8     
===========================================
- Hits         27325    27209     -116     
- Misses        4899     4960      +61     
- Partials       826      840      +14     
Flag Coverage Δ
javascript 10.68% <ø> (ø)
ruby 83.68% <25.00%> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yoldas yoldas changed the title Cucumber to Rspec migration clean and tidy up Y26-275 - [PR] Cucumber to Rspec migration clean and tidy up Nov 19, 2026
@yoldas yoldas changed the title Y26-275 - [PR] Cucumber to Rspec migration clean and tidy up Y26-275 - [PR] Remove Cucumber after the migration to RSpec Nov 19, 2026
@kshriniwas92
kshriniwas92 marked this pull request as ready for review November 23, 2026 12:10
@kshriniwas92
kshriniwas92 merged commit 7e25b55 into develop Nov 23, 2026
25 of 26 checks passed
@kshriniwas92
kshriniwas92 deleted the y26-275-epic-cucumber-to-rspec-migration branch November 23, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Y26-275 - Epic - Cucumber to RSpec migration

2 participants