Actions
Defect #42770
closedFix system test failures on 5.1-stable and 6.0-stable due to incompatible Ruby version
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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'
Actions