Skip to content

Commit 391ee91

Browse files
committed
ci: disable GC
adbc-arrow-glib based Red ADBC has a GC related problem. ADBC 20 based Red ADBC doesn't use adbc-arrow-glib. So we can remove this workaround once ADBC 20 is released.
1 parent 8f61a0c commit 391ee91

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,16 @@ jobs:
6767
sudo systemctl restart postgresql
6868
sudo -u postgres -H psql -c "CREATE ROLE ${USER} SUPERUSER LOGIN;"
6969
- name: "Test: SQLite3"
70+
env:
71+
# We can remove this once ADBC 20 is released.
72+
ACTIVERECORD_ADBC_ADAPTER_GC: disable
7073
run: |
7174
bundle exec rake
7275
- name: "Test: PostgreSQL"
7376
env:
7477
ACTIVERECORD_ADBC_ADAPTER_BACKEND: postgresql
78+
# We can remove this once ADBC 20 is released.
79+
ACTIVERECORD_ADBC_ADAPTER_GC: disable
7580
PGHOST: /var/run/postgresql
7681
run: |
7782
bundle exec rake

test/helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
require_relative "helper/user"
77

8+
if ENV["ACTIVERECORD_ADBC_ADAPTER_GC"] == "disable"
9+
GC.disable
10+
end
11+
812
if ENV["ACTIVERECORD_ADBC_ADAPTER_DEBUG"] == "yes"
913
ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDERR)
1014
end

0 commit comments

Comments
 (0)