Defect #42770
closedFix system test failures on 5.1-stable and 6.0-stable due to incompatible Ruby version
0%
Description
Since commit r23794 and r23795, system tests on the 5.1-stable and 6.0-stable branches have been failing.
6.0-stable:
https://github.com/redmine/redmine/actions/runs/15231116860
Your Ruby version is 3.4.4, but your Gemfile specified >= 3.1.0, < 3.4.0
5.1-stable:
https://github.com/redmine/redmine/actions/runs/15231116811/job/42839073396
Your Ruby version is 3.4.4, but your Gemfile specified >= 3.1.0, < 3.4.0
The issue is caused by system tests running with Ruby 3.4, which is incompatible with the Ruby version constraints specified in each branch’s Gemfile.
The following patches fix the problem by specifying a compatible Ruby version in the GitHub Actions workflow:
6.0-stable:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index fa8b61666..a5510842f 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -79,7 +79,7 @@ jobs:
uses: ./.github/actions/setup-redmine
with:
db-type: sqlite3
- ruby-version: '3.4'
+ ruby-version: '3.3'
5.1-stable:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index fa8b61666..9523e7f53 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -79,7 +79,7 @@ jobs:
uses: ./.github/actions/setup-redmine
with:
db-type: sqlite3
- ruby-version: '3.4'
+ ruby-version: '3.2'
Updated by Katsuya HIDAKA 19 days ago
5.1-stable:
https://github.com/redmine/redmine/actions/runs/15231116811/job/42839073396Your Ruby version is 3.4.4, but your Gemfile specified >= 3.1.0, < 3.4.0
Sorry, the above is incorrect. The actual message is:
Your Ruby version is 3.4.4, but your Gemfile specified >= 2.7.0, < 3.3.0
Updated by Marius BĂLTEANU 19 days ago
- Status changed from New to Resolved
- Assignee set to Marius BĂLTEANU
- Resolution set to Fixed