Skip to content

Commit

Permalink
Lock sqlite3 gem to 1.4 to run Rails CI using rubylang/ruby:master-ni…
Browse files Browse the repository at this point in the history
…ghtly-focal

Managed to reproduce https://buildkite.com/rails/rails/builds/90045#01839e89-85d4-4ef5-a443-6b2993f08f36

- Steps to reproduce

Install Docker
```
git clone https://github.com/rails/rails
cd rails
git clone https://github.com/rails/buildkite-config .buildkite/
RUBY_IMAGE=rubylang/ruby:master-nightly-focal docker-compose -f .buildkite/docker-compose.yml build base
```

- Actual behavior without this change

It gets `Gem::Ext::BuildError: ERROR: Failed to build gem native extension.`

The entire error message can be seen via
https://buildkite.com/rails/rails/builds/90045#01839e89-85d4-4ef5-a443-6b2993f08f36

- Why sqlite gem version is locked to 1.4?

The last successful build installed `sqlite3 1.5.1`. however now it
cannot install 1.5.1, 1.5.0 anymore.
https://buildkite.com/rails/rails/builds/90006#01839032-3ccd-4aca-ad58-2c08beb4351f/142-862

I still have not found the actual reason why. I've just found a related
issue https://bugs.ruby-lang.org/issues/19189
  • Loading branch information
yahonda committed Dec 13, 2022
1 parent caaac48 commit 727d2b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -140,7 +140,7 @@ platforms :ruby, :windows do
gem "racc", ">=1.4.6", require: false

# Active Record.
gem "sqlite3", "~> 1.4"
gem "sqlite3", "~> 1.4", "< 1.5"

group :db do
gem "pg", "~> 1.3"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -628,7 +628,7 @@ DEPENDENCIES
sneakers
sprockets-export
sprockets-rails (>= 2.0.0)
sqlite3 (~> 1.4)
sqlite3 (~> 1.4, < 1.5)
stackprof
stimulus-rails
sucker_punch
Expand Down

0 comments on commit 727d2b4

Please sign in to comment.