Skip to content

Commit b334c04

Browse files
yahondaclaude
andcommitted
Move development Ruby builds to daily cron workflows
Remove ruby-head, ruby-debug, truffleruby, and truffleruby-head from test.yml and test_11g.yml so they do not run on every push/PR. Add dedicated daily cron workflows instead: - ruby_head.yml: ruby-head, ruby-debug - jruby_head.yml: jruby-head - truffleruby.yml: truffleruby, truffleruby-head Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 464c728 commit b334c04

5 files changed

Lines changed: 218 additions & 18 deletions

File tree

.github/workflows/jruby_head.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: jruby_head
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
strategy:
13+
matrix:
14+
ruby: [
15+
jruby-head
16+
]
17+
env:
18+
ORACLE_HOME: /opt/oracle/instantclient_23_26
19+
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_26
20+
NLS_LANG: AMERICAN_AMERICA.AL32UTF8
21+
TNS_ADMIN: ./ci/network/admin
22+
DATABASE_NAME: FREEPDB1
23+
TZ: Europe/Riga
24+
DATABASE_SYS_PASSWORD: Oracle18
25+
26+
services:
27+
oracle:
28+
image: gvenzl/oracle-free:latest
29+
ports:
30+
- 1521:1521
31+
env:
32+
TZ: Europe/Riga
33+
ORACLE_PASSWORD: Oracle18
34+
options: >-
35+
--health-cmd healthcheck.sh
36+
--health-interval 10s
37+
--health-timeout 5s
38+
--health-retries 10
39+
40+
steps:
41+
- uses: actions/checkout@v6
42+
- name: Set up Ruby
43+
uses: ruby/setup-ruby@v1
44+
with:
45+
ruby-version: ${{ matrix.ruby }}
46+
- name: Create symbolic link for libaio library compatibility
47+
run: |
48+
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
49+
- name: Download Oracle instant client
50+
run: |
51+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-basic-linux.x64-23.26.1.0.0.zip
52+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sdk-linux.x64-23.26.1.0.0.zip
53+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sqlplus-linux.x64-23.26.1.0.0.zip
54+
- name: Install Oracle instant client
55+
run: |
56+
sudo unzip -q instantclient-basic-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
57+
sudo unzip -qo instantclient-sdk-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
58+
sudo unzip -qo instantclient-sqlplus-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
59+
echo "/opt/oracle/instantclient_23_26" >> $GITHUB_PATH
60+
- name: Install JDBC Driver
61+
run: |
62+
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/233/ojdbc11.jar -O ./lib/ojdbc11.jar
63+
- name: Create database user
64+
run: |
65+
./ci/setup_accounts.sh
66+
- name: Bundle install
67+
run: |
68+
bundle install --jobs 4 --retry 3
69+
- name: Run RSpec
70+
run: |
71+
RUBYOPT=-w bundle exec rspec

.github/workflows/ruby_head.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: ruby_head
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
strategy:
13+
matrix:
14+
ruby: [
15+
ruby-head,
16+
ruby-debug
17+
]
18+
env:
19+
ORACLE_HOME: /opt/oracle/instantclient_23_26
20+
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_26
21+
NLS_LANG: AMERICAN_AMERICA.AL32UTF8
22+
TNS_ADMIN: ./ci/network/admin
23+
DATABASE_NAME: FREEPDB1
24+
TZ: Europe/Riga
25+
DATABASE_SYS_PASSWORD: Oracle18
26+
27+
services:
28+
oracle:
29+
image: gvenzl/oracle-free:latest
30+
ports:
31+
- 1521:1521
32+
env:
33+
TZ: Europe/Riga
34+
ORACLE_PASSWORD: Oracle18
35+
options: >-
36+
--health-cmd healthcheck.sh
37+
--health-interval 10s
38+
--health-timeout 5s
39+
--health-retries 10
40+
41+
steps:
42+
- uses: actions/checkout@v6
43+
- name: Set up Ruby
44+
uses: ruby/setup-ruby@v1
45+
with:
46+
ruby-version: ${{ matrix.ruby }}
47+
- name: Create symbolic link for libaio library compatibility
48+
run: |
49+
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
50+
- name: Download Oracle instant client
51+
run: |
52+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-basic-linux.x64-23.26.1.0.0.zip
53+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sdk-linux.x64-23.26.1.0.0.zip
54+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sqlplus-linux.x64-23.26.1.0.0.zip
55+
- name: Install Oracle instant client
56+
run: |
57+
sudo unzip -q instantclient-basic-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
58+
sudo unzip -qo instantclient-sdk-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
59+
sudo unzip -qo instantclient-sqlplus-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
60+
echo "/opt/oracle/instantclient_23_26" >> $GITHUB_PATH
61+
- name: Install JDBC Driver
62+
run: |
63+
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/233/ojdbc11.jar -O ./lib/ojdbc11.jar
64+
- name: Create database user
65+
run: |
66+
./ci/setup_accounts.sh
67+
- name: Bundle install
68+
run: |
69+
bundle install --jobs 4 --retry 3
70+
- name: Run RSpec
71+
run: |
72+
RUBYOPT=-w bundle exec rspec

.github/workflows/test.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
'4.0',
1616
'3.4',
1717
'3.3',
18-
'3.2',
19-
ruby-head,
20-
ruby-debug,
21-
truffleruby,
22-
truffleruby-head
18+
'3.2'
2319
]
2420
env:
2521
ORACLE_HOME: /opt/oracle/instantclient_23_26
@@ -70,10 +66,6 @@ jobs:
7066
- name: Create database user
7167
run: |
7268
./ci/setup_accounts.sh
73-
- name: Disable ActiveRecord for TruffleRuby
74-
run: |
75-
echo "NO_ACTIVERECORD=true" >> $GITHUB_ENV
76-
if: "contains(matrix.ruby, 'truffleruby')"
7769
- name: Bundle install
7870
run: |
7971
bundle install --jobs 4 --retry 3

.github/workflows/test_11g.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
'4.0',
1616
'3.4',
1717
'3.3',
18-
'3.2',
19-
ruby-head,
20-
ruby-debug,
21-
truffleruby,
22-
truffleruby-head
18+
'3.2'
2319
]
2420
env:
2521
ORACLE_HOME: /opt/oracle/instantclient_21_15
@@ -84,10 +80,6 @@ jobs:
8480
- name: Create database user
8581
run: |
8682
./ci/setup_accounts.sh
87-
- name: Disable ActiveRecord for TruffleRuby
88-
run: |
89-
echo "NO_ACTIVERECORD=true" >> $GITHUB_ENV
90-
if: "contains(matrix.ruby, 'truffleruby')"
9183
- name: Bundle install
9284
run: |
9385
bundle install --jobs 4 --retry 3

.github/workflows/truffleruby.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: truffleruby
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
strategy:
13+
matrix:
14+
ruby: [
15+
truffleruby,
16+
truffleruby-head
17+
]
18+
env:
19+
ORACLE_HOME: /opt/oracle/instantclient_23_26
20+
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_26
21+
NLS_LANG: AMERICAN_AMERICA.AL32UTF8
22+
TNS_ADMIN: ./ci/network/admin
23+
DATABASE_NAME: FREEPDB1
24+
TZ: Europe/Riga
25+
DATABASE_SYS_PASSWORD: Oracle18
26+
NO_ACTIVERECORD: true
27+
28+
services:
29+
oracle:
30+
image: gvenzl/oracle-free:latest
31+
ports:
32+
- 1521:1521
33+
env:
34+
TZ: Europe/Riga
35+
ORACLE_PASSWORD: Oracle18
36+
options: >-
37+
--health-cmd healthcheck.sh
38+
--health-interval 10s
39+
--health-timeout 5s
40+
--health-retries 10
41+
42+
steps:
43+
- uses: actions/checkout@v6
44+
- name: Set up Ruby
45+
uses: ruby/setup-ruby@v1
46+
with:
47+
ruby-version: ${{ matrix.ruby }}
48+
- name: Create symbolic link for libaio library compatibility
49+
run: |
50+
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
51+
- name: Download Oracle instant client
52+
run: |
53+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-basic-linux.x64-23.26.1.0.0.zip
54+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sdk-linux.x64-23.26.1.0.0.zip
55+
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sqlplus-linux.x64-23.26.1.0.0.zip
56+
- name: Install Oracle instant client
57+
run: |
58+
sudo unzip -q instantclient-basic-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
59+
sudo unzip -qo instantclient-sdk-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
60+
sudo unzip -qo instantclient-sqlplus-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
61+
echo "/opt/oracle/instantclient_23_26" >> $GITHUB_PATH
62+
- name: Install JDBC Driver
63+
run: |
64+
wget -q https://download.oracle.com/otn-pub/otn_software/jdbc/233/ojdbc11.jar -O ./lib/ojdbc11.jar
65+
- name: Create database user
66+
run: |
67+
./ci/setup_accounts.sh
68+
- name: Bundle install
69+
run: |
70+
bundle install --jobs 4 --retry 3
71+
- name: Run RSpec
72+
run: |
73+
RUBYOPT=-w bundle exec rspec

0 commit comments

Comments
 (0)