Repository navigation
package almalinux-8 test: use Ruby 3.1 instead of 2.5 for grntest - #1760
Merged
Merged
Conversation
kou
reviewed
Apr 15, 2024
Contributor
There was a problem hiding this comment.
このファイルはパッケージのビルド時だけに使っていて、テスト時には使っていない気がします。
Contributor
There was a problem hiding this comment.
こんな感じじゃない?
diff --git a/packages/yum/test.sh b/packages/yum/test.sh
index 5129f5311..74a579ba3 100755
--- a/packages/yum/test.sh
+++ b/packages/yum/test.sh
@@ -72,6 +72,11 @@ if [ "${run_test}" = "yes" ]; then
. /opt/rh/rh-ruby30/enable
set -u
;;
+ 8)
+ ${DNF} module disable ruby
+ ${DNF} module enable:31
+ ${DNF} install -y ruby-devel
+ ;;
*)
${DNF} install -y ruby-devel
;;
otegami
force-pushed
the
update-ruby-version-on-alma-linux-8
branch
from
April 15, 2024 02:33
4c2b87a to
f48e010
Compare
otegami
force-pushed
the
update-ruby-version-on-alma-linux-8
branch
from
April 15, 2024 02:34
f48e010 to
efa9750
Compare
otegami
marked this pull request as ready for review
April 15, 2024 03:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI failed with the following error log.
Expected
Successfully install gem
grntest.Explanation
The gem
timeoutrequires Ruby version >= 2.6.0.On AlmaLinux8, the default Ruby version is 2.5.0 as shown below.
Solution
Use Ruby 3.1 not 2.5 for grntest.
grntest is used only for test. So newer Ruby doesn't affect anything to users.