# \#ruby

**URL:** https://discuss.circleci.com/tag/ruby/41.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [Example of splitting by test name for rspec rails](https://discuss.circleci.com/t/example-of-splitting-by-test-name-for-rspec-rails/51459)

<div class="topic-metadata">

**Author:** [@zmf-framework](https://discuss.circleci.com/u/zmf-framework)\
**Replies:** 12\
**Last updated:** [June 17, 2025, 11:09pm UTC](https://discuss.circleci.com/t/example-of-splitting-by-test-name-for-rspec-rails/51459 "2025-06-17T23:09:21Z")

</div>

Does anyone here have an example app using --split-by=timings --timings-type=name successfully with Rspec/Rails in a parallelized (20 - 30 containers) set up? I can’t seem to get this to work. My current command is cir…

---

## ["No timing found for" the same few test files on every new branch](https://discuss.circleci.com/t/no-timing-found-for-the-same-few-test-files-on-every-new-branch/52886)

<div class="topic-metadata">

**Author:** [@henrahmagix](https://discuss.circleci.com/u/henrahmagix)\
**Replies:** 2\
**Last updated:** [March 14, 2025, 12:37pm UTC](https://discuss.circleci.com/t/no-timing-found-for-the-same-few-test-files-on-every-new-branch/52886 "2025-03-14T12:37:37Z")

</div>

Every build on a new branch is missing timings data for the same few files, so all our first runs for new feature branches are slow :cry: We see “No timing found” for several files, the same every time on new branch bui…

---

## [Rubocop (only on Circleci builds) sometimes complains of outdated configuration (there is none)](https://discuss.circleci.com/t/rubocop-only-on-circleci-builds-sometimes-complains-of-outdated-configuration-there-is-none/52859)

<div class="topic-metadata">

**Author:** [@timdiggins](https://discuss.circleci.com/u/timdiggins)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 8:39am UTC](https://discuss.circleci.com/t/rubocop-only-on-circleci-builds-sometimes-complains-of-outdated-configuration-there-is-none/52859 "2025-03-11T08:39:17Z")

</div>

In our builds (which have been executing on circleci for many years) we have a step which runs rubocop: bundle exec rubocop --format quiet Recently these have been failing episodically (unpredictably) with some kind of …

---

## [MacOS bundle install exits with code 127](https://discuss.circleci.com/t/macos-bundle-install-exits-with-code-127/51862)

<div class="topic-metadata">

**Author:** [@dushan-rga](https://discuss.circleci.com/u/dushan-rga)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 4:43pm UTC](https://discuss.circleci.com/t/macos-bundle-install-exits-with-code-127/51862 "2024-09-06T16:43:29Z")

</div>

Hello, I have followed the orb documentation for Flutter and I am running into numerous issues. Regardless of how I set the ruby version and gem install bundle. I always receive an exit code 127 at flutter/install\_ios\_ge…

---

## [Parallelism messing up with time-based tests](https://discuss.circleci.com/t/parallelism-messing-up-with-time-based-tests/51860)

<div class="topic-metadata">

**Author:** [@Menighin](https://discuss.circleci.com/u/Menighin)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 1:55am UTC](https://discuss.circleci.com/t/parallelism-messing-up-with-time-based-tests/51860 "2024-09-06T01:55:36Z")

</div>

Hey everyone, We have a big old build that is taking too long to run tests and Im trying to setup parallelism to speed things up. After the configuration, I can see the tests are indeed running in parallel and are much …

---

## [Using Ruby orb to run RSpec Tests Isn't Running All Tests](https://discuss.circleci.com/t/using-ruby-orb-to-run-rspec-tests-isnt-running-all-tests/49922)

<div class="topic-metadata">

**Author:** [@joshmgrant](https://discuss.circleci.com/u/joshmgrant)\
**Replies:** 5\
**Last updated:** [November 27, 2023, 5:53pm UTC](https://discuss.circleci.com/t/using-ruby-orb-to-run-rspec-tests-isnt-running-all-tests/49922 "2023-11-27T17:53:20Z")

</div>

I’m working with a Rails project that has a fairly large set of tests. These tests have been executed on Circle using the ruby orb and the rspec-test task. When tests get executed using ruby/rspec-test: order…

---

## [New build agent is causing ruby errors: 1.0.108731](https://discuss.circleci.com/t/new-build-agent-is-causing-ruby-errors-1-0-108731/42998)

<div class="topic-metadata">

**Author:** [@henrahmagix](https://discuss.circleci.com/u/henrahmagix)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 6:39pm UTC](https://discuss.circleci.com/t/new-build-agent-is-causing-ruby-errors-1-0-108731/42998 "2023-09-11T18:39:35Z")

</div>

Yesterday, a workflow of ours ran successfully. It involves executing a rake task in a rails app. The “Spin up environment” step reported: Build-agent version 1.0.108423-d73bb89b (2022-02-14T14:44:52+0000) System inform…

---

## [Unable to publish Ruby/Rails docker image from CircleCI](https://discuss.circleci.com/t/unable-to-publish-ruby-rails-docker-image-from-circleci/48871)

<div class="topic-metadata">

**Author:** [@mockdeep](https://discuss.circleci.com/u/mockdeep)\
**Replies:** 0\
**Last updated:** [August 8, 2023, 3:43pm UTC](https://discuss.circleci.com/t/unable-to-publish-ruby-rails-docker-image-from-circleci/48871 "2023-08-08T15:43:42Z")

</div>

We’re seeing an issue building a Ruby Dockerfile on CircleCI. I can build the image locally, but when we try to use the Docker orb to build the image, we see errors complaining about “Operation not permitted”: Step 10/2…

---

## [How does Bundler get updated in cimg/ruby?](https://discuss.circleci.com/t/how-does-bundler-get-updated-in-cimg-ruby/48308)

<div class="topic-metadata">

**Author:** [@smaboshe](https://discuss.circleci.com/u/smaboshe)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 12:43pm UTC](https://discuss.circleci.com/t/how-does-bundler-get-updated-in-cimg-ruby/48308 "2023-06-26T12:43:02Z")

</div>

Hello! I’m using cimg/ruby:3.2.2. It comes pre-packaged with Bundler 2.4.10. At the moment of writing, Bundler 2.4.13 is available. How can I get Bundler 2.4.13 to work with this CircleCI image? Thanks in advance for y…

---

## [Yarn install using cache slow after update from cimg/ruby:2.7.7-browsers to cimg/ruby:3.0.6-browsers](https://discuss.circleci.com/t/yarn-install-using-cache-slow-after-update-from-cimg-ruby-2-7-7-browsers-to-cimg-ruby-3-0-6-browsers/47839)

<div class="topic-metadata">

**Author:** [@joekrump](https://discuss.circleci.com/u/joekrump)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 5:40pm UTC](https://discuss.circleci.com/t/yarn-install-using-cache-slow-after-update-from-cimg-ruby-2-7-7-browsers-to-cimg-ruby-3-0-6-browsers/47839 "2023-05-18T17:40:06Z")

</div>

:wave: I recently updated my docker image for my build from cimg/ruby:2.7.7-browsers to cimg/ruby:3.0.6-browsers and after the update, my yarn install step is taking ~50 seconds, whereas before it was taking ~0.5 seconds…

---

## [Running circleci tests run does not run all my examples](https://discuss.circleci.com/t/running-circleci-tests-run-does-not-run-all-my-examples/47783)

<div class="topic-metadata">

**Author:** [@guiracine](https://discuss.circleci.com/u/guiracine)\
**Replies:** 3\
**Last updated:** [May 15, 2023, 2:38pm UTC](https://discuss.circleci.com/t/running-circleci-tests-run-does-not-run-all-my-examples/47783 "2023-05-15T14:38:12Z")

</div>

Hi, I changed my test step to use circleci tests run to take advantage of the new --fail-fast feature. Previously I was using the ruby/rspecs-test orb. Now I change to use this step’s command: RSPEC\_FILES=$(circleci …

---

## [CircleCI Could not locate Gemfile in subfolder ruby gem](https://discuss.circleci.com/t/circleci-could-not-locate-gemfile-in-subfolder-ruby-gem/45925)

<div class="topic-metadata">

**Author:** [@regalmarrie](https://discuss.circleci.com/u/regalmarrie)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 10:15am UTC](https://discuss.circleci.com/t/circleci-could-not-locate-gemfile-in-subfolder-ruby-gem/45925 "2022-10-28T10:15:35Z")

</div>

I have a ruby gem project, let’s say this is the folder structure - org-lib - .circleci - ticketing - ticket-management so my gem is in folder ticket-management, and there is Gemfile and Gemfile.lock there. and…

---

## [Should the -browser suffixed Docker image mean the orb shouldn't take long to install Chrome?](https://discuss.circleci.com/t/should-the-browser-suffixed-docker-image-mean-the-orb-shouldnt-take-long-to-install-chrome/44703)

<div class="topic-metadata">

**Author:** [@ianterrell](https://discuss.circleci.com/u/ianterrell)\
**Replies:** 4\
**Last updated:** [September 22, 2022, 6:58pm UTC](https://discuss.circleci.com/t/should-the-browser-suffixed-docker-image-mean-the-orb-shouldnt-take-long-to-install-chrome/44703 "2022-09-22T18:58:48Z")

</div>

The slowest part of our build is now the Install Chrome step, which takes between 30-120s. I think the most relevant parts of the config are: version: 2.1 orbs: browser-tools: circleci/browser-tools@1.3.0 jobs: bui…

---

## [Api クエリの変更について](https://discuss.circleci.com/t/api/45349)

<div class="topic-metadata">

**Author:** [@saori-circleci](https://discuss.circleci.com/u/saori-circleci)\
**Replies:** 0\
**Last updated:** [September 10, 2022, 6:11am UTC](https://discuss.circleci.com/t/api/45349 "2022-09-10T06:11:26Z")

</div>

(こちらは Regarding Changes to API Queries の参考訳です) いつも CircleCI をご利用いただきありがとうございます。 弊社のインフラチームは、2022 年 8 月 3 日に一部の内向きの通信ポイントの可視性と制御性を向上させる目的で、CDN の設定変更を行いました。 昨日これを完全にデプロイしたところ、想定外の副作用に対するアラートが発生しました。API への特定のリクエストが HTTP「…

---

## [Build job: LoadError: libffi.so.6: cannot open shared object file: No such file or directory - /home/circleci/project/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib/ffi\_c.so](https://discuss.circleci.com/t/build-job-loaderror-libffi-so-6-cannot-open-shared-object-file-no-such-file-or-directory-home-circleci-project-vendor-bundle-ruby-2-7-0-gems-ffi-1-15-5-lib-ffi-c-so/43661)

<div class="topic-metadata">

**Author:** [@javierbotero](https://discuss.circleci.com/u/javierbotero)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 6:22pm UTC](https://discuss.circleci.com/t/build-job-loaderror-libffi-so-6-cannot-open-shared-object-file-no-such-file-or-directory-home-circleci-project-vendor-bundle-ruby-2-7-0-gems-ffi-1-15-5-lib-ffi-c-so/43661 "2022-09-08T18:22:34Z")

</div>

Hi, I have this traceback error in a build job, I am using the image cimg/ruby:2.7.5-browsers and cimg/postgres:9.6.22 in a rails app #!/bin/bash -eo pipefail bin/rails db:schema:load --trace \`Warning: the running vers…

---

## [Regarding Changes to API Queries](https://discuss.circleci.com/t/regarding-changes-to-api-queries/45321)

<div class="topic-metadata">

**Author:** [@aaronclark](https://discuss.circleci.com/u/aaronclark)\
**Replies:** 0\
**Last updated:** [September 8, 2022, 1:15am UTC](https://discuss.circleci.com/t/regarding-changes-to-api-queries/45321 "2022-09-08T01:15:34Z")

</div>

Hello, On August 3, 2022, our infrastructure teams implemented a CDN configuration change that was intended to give us better visibility and control over some of our network ingress points. This was fully deployed yest…

---

## [ActiveRecord error when running db:schema:load - "NoMethodError: undefined method 'uuid'"](https://discuss.circleci.com/t/activerecord-error-when-running-dbload-nomethoderror-undefined-method-uuid/45241)

<div class="topic-metadata">

**Author:** [@ambreenhasan](https://discuss.circleci.com/u/ambreenhasan)\
**Replies:** 0\
**Last updated:** [August 30, 2022, 6:18pm UTC](https://discuss.circleci.com/t/activerecord-error-when-running-dbload-nomethoderror-undefined-method-uuid/45241 "2022-08-30T18:18:20Z")

</div>

I’m running into an issue when running bundle exec rake db:schema:load when setting up the test database before tests can be ran: “NoMethodError: undefined method \`uuid’ for ActiveRecord” This happens when a table that…

---

## [Split-by=timings not splitting evenly](https://discuss.circleci.com/t/split-by-timings-not-splitting-evenly/43906)

<div class="topic-metadata">

**Author:** [@archonic](https://discuss.circleci.com/u/archonic)\
**Replies:** 0\
**Last updated:** [May 3, 2022, 9:35pm UTC](https://discuss.circleci.com/t/split-by-timings-not-splitting-evenly/43906 "2022-05-03T21:35:23Z")

</div>

I’m splitting by timings but I’ve noticed from the Timings tab that they are not evenly split. I could be done my suite in around half the time if it wasn’t running so many tests on run #0 I’ve tried renaming the pat…

---

## [BCrypt::Errors::InvalidHash: invalid hash](https://discuss.circleci.com/t/bcrypt-invalid-hash/42985)

<div class="topic-metadata">

**Author:** [@ashawley](https://discuss.circleci.com/u/ashawley)\
**Replies:** 4\
**Last updated:** [April 20, 2022, 5:25pm UTC](https://discuss.circleci.com/t/bcrypt-invalid-hash/42985 "2022-04-20T17:25:34Z")

</div>

I have an old Ruby on Rails app, Ruby 2.5 and Rails 3.2, that I finally got around to switching to the next generation Circle docker images, but I’m getting an error on the first test build. bundle \_1.17.3\_ exec rake d…

---

## [Postgres failing with upgrading from 11.6 to 11.14](https://discuss.circleci.com/t/postgres-failing-with-upgrading-from-11-6-to-11-14/42932)

<div class="topic-metadata">

**Author:** [@tonydehnke](https://discuss.circleci.com/u/tonydehnke)\
**Replies:** 4\
**Last updated:** [February 18, 2022, 8:15pm UTC](https://discuss.circleci.com/t/postgres-failing-with-upgrading-from-11-6-to-11-14/42932 "2022-02-18T20:15:23Z")

</div>

Hi, upgrading from Ruby 2.6.6 to 2.6.9, that seems to be working, but now when updating from postgres 11.6-alpine to postgres 11.14 things get stuck (I’ve also tried 11.13 from cimg). It look like the Postgres server ge…

---

## [Error trying to update to circleci/ruby:2.6.9-stretch-node-browsers](https://discuss.circleci.com/t/error-trying-to-update-to-circleci-ruby-2-6-9-stretch-node-browsers/42929)

<div class="topic-metadata">

**Author:** [@tonydehnke](https://discuss.circleci.com/u/tonydehnke)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 5:49am UTC](https://discuss.circleci.com/t/error-trying-to-update-to-circleci-ruby-2-6-9-stretch-node-browsers/42929 "2022-02-14T05:49:45Z")

</div>

Hi, I’m upgrading my project from ruby 2.6.6 to 2.6.9 but Circle CI fails during Spin Up Environment when trying to access the image for circleci/ruby:2.6.9-stretch-node-browsers It worked fine for: circleci/ruby:2.6.6…

---

## [Circleci/mysql:8.0.21 + cimg/ruby:2.7.4-browsers failing](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503)

<div class="topic-metadata">

**Author:** [@jamesarosen](https://discuss.circleci.com/u/jamesarosen)\
**Replies:** 5\
**Last updated:** [February 11, 2022, 4:59pm UTC](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503 "2022-02-11T16:59:02Z")

</div>

We use the circleci/mysql:8.0.21 image for testing: - image: circleci/mysql:8.0.21 auth: username: $DOCKERHUB\_USERNAME password: $DOCKERHUB\_PASSWORD command: | --sql\_mode="NO\_ENGINE\_SUBSTITUTION" --d…

---

## [Error installing bundler, from Dockerfile](https://discuss.circleci.com/t/error-installing-bundler-from-dockerfile/42889)

<div class="topic-metadata">

**Author:** [@evbruno](https://discuss.circleci.com/u/evbruno)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 5:51pm UTC](https://discuss.circleci.com/t/error-installing-bundler-from-dockerfile/42889 "2022-02-09T17:51:58Z")

</div>

Error building Dockerfile on ruby \>= 2.6.9. Dockerfile: FROM ruby:2.6.9-alpine RUN gem install bundler:2.1.4 RUN bundle config set no-cache 'true' RUN bundle install ADD . . outputs: ---\> Running in e2bc34dbc146 ER…

---

## [Could not connect to archive.ubuntu.com:80](https://discuss.circleci.com/t/could-not-connect-to-archive-ubuntu-com-80/42332)

<div class="topic-metadata">

**Author:** [@jeanmw](https://discuss.circleci.com/u/jeanmw)\
**Replies:** 3\
**Last updated:** [December 28, 2021, 4:42am UTC](https://discuss.circleci.com/t/could-not-connect-to-archive-ubuntu-com-80/42332 "2021-12-28T04:42:02Z")

</div>

We are getting a build error on all of our builds that we’ve never seen before: Could not connect to archive.ubuntu.com:80 connection timed out I can visit archive.ubuntu.com:80 and see that it was last updated today,…

---

## [Ruby 3.0.3 docker image](https://discuss.circleci.com/t/ruby-3-0-3-docker-image/42081)

<div class="topic-metadata">

**Author:** [@Geoff](https://discuss.circleci.com/u/Geoff)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 3:57pm UTC](https://discuss.circleci.com/t/ruby-3-0-3-docker-image/42081 "2021-11-29T15:57:56Z")

</div>

Hi, Any idea when ruby 3.0.3 will be released to the docker images? https://hub.docker.com/r/circleci/ruby/tags/?page=1&name=3.0.3 Cheers, Geoff

---

## [Circleci/ruby:3.0.3-node?](https://discuss.circleci.com/t/circleci-ruby-3-0-3-node/42048)

<div class="topic-metadata">

**Author:** [@dorianmariefr](https://discuss.circleci.com/u/dorianmariefr)\
**Replies:** 3\
**Last updated:** [November 27, 2021, 12:05pm UTC](https://discuss.circleci.com/t/circleci-ruby-3-0-3-node/42048 "2021-11-27T12:05:24Z")

</div>

ruby 3.0.3 got released with security updates, any update on when it will be available on circleci?

---

## [Apt-get install command fails with no output, ssh works fine](https://discuss.circleci.com/t/apt-get-install-command-fails-with-no-output-ssh-works-fine/41953)

<div class="topic-metadata">

**Author:** [@eherman](https://discuss.circleci.com/u/eherman)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 8:32pm UTC](https://discuss.circleci.com/t/apt-get-install-command-fails-with-no-output-ssh-works-fine/41953 "2021-11-15T20:32:30Z")

</div>

When I run the following command in my build things fail, with no output. sudo apt-get install ruby-full The output and exit code are: #!/bin/bash -eo pipefail sudo apt-get install ruby-full Exited with code exit st…

---

## [Facing issue on Heroku deployment](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391)

<div class="topic-metadata">

**Author:** [@souravongit](https://discuss.circleci.com/u/souravongit)\
**Replies:** 0\
**Last updated:** [October 1, 2021, 11:01am UTC](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391 "2021-10-01T11:01:01Z")

</div>

I am getting an error on heroku deployment. It was working before suddenly not working Please check the attached screenshot. Here is the setup-heroku.sh #!/bin/bash git remote add heroku $HEROKU\_GIT\_CANARY\_URL wget -q…

---

## [Rspec output dots go off screen (no newlines) or newlines are inserted each 5 tests](https://discuss.circleci.com/t/rspec-output-dots-go-off-screen-no-newlines-or-newlines-are-inserted-each-5-tests/37874)

<div class="topic-metadata">

**Author:** [@trizes](https://discuss.circleci.com/u/trizes)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 7:42pm UTC](https://discuss.circleci.com/t/rspec-output-dots-go-off-screen-no-newlines-or-newlines-are-inserted-each-5-tests/37874 "2021-05-07T19:42:46Z")

</div>

When I open console output for Rspec tests it’s output keeps going to newline each 5 tests (dots). If you open finished build or build that was running for some time, tests that already passed are all gathered on a sing…

---

## [RSpec in circleci deployment](https://discuss.circleci.com/t/rspec-in-circleci-deployment/39844)

<div class="topic-metadata">

**Author:** [@hardreggaecafe](https://discuss.circleci.com/u/hardreggaecafe)\
**Replies:** 0\
**Last updated:** [April 21, 2021, 12:00am UTC](https://discuss.circleci.com/t/rspec-in-circleci-deployment/39844 "2021-04-21T00:00:35Z")

</div>

Hi there. I got the error when running circleci deploy. I tried to implement RSpec in circleci deployment. #!/bin/bash --login bundle exec rake db:create bundle exec rake db:schema:load I, \[2021-04-20T08:36:32.197469…

[Next page](https://discuss.circleci.com/tag/ruby/41.md?match_all_tags=true&page=1&tags%5B%5D=ruby)
