45 minutes ago · Tech · hide

Running RSpec on eight workers got Posebook, a custom Rails CMS, from more than six minutes of RSpec time to about one using parallel_tests-ci that I built to adjust shards automatically as tests get faster or slower, without repeating the GitHub Actions boilerplate for splitting files, running workers, and passing timings between runs. Posebook Benchmarks Each bar shows the slowest worker’s RSpec execution time, excluding setup and spec loading. The serial run took 395 seconds. With eight workers, every run shown took less than 80 seconds of RSpec time. Sharding improved further capturing data from previous runs. How to Use It With Ruby 3.3 or newer, add the gem to your Gemfile and run bundle install: gem 'parallel_tests-ci', '0.1.0', require: false In .github/workflows/test.yml, call the reusable workflow at the same version: name: Test on: [push, pull_request] permissions: contents: read actions: read jobs: test: uses: dblock/parallel_tests-ci/.github/workflows/rspec.yml@v0.1.0…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town