From bb54361057c169e1209d771c189ec662fa4e7395 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@gmail.com> Date: Mon, 10 May 2021 21:00:54 -0700 Subject: [PATCH 1/3] [ruby/irb] Skip the new IRB test on Windows for now It's not passing from the beginning https://github.com/ruby/ruby/runs/2550929220 https://ci.appveyor.com/project/ruby/ruby/builds/39100747 https://github.com/ruby/irb/commit/71fc180018 --- test/irb/test_raise_no_backtrace_exception.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb index 925f39a81c..9790d508fe 100644 --- a/test/irb/test_raise_no_backtrace_exception.rb +++ b/test/irb/test_raise_no_backtrace_exception.rb @@ -23,7 +23,7 @@ IRB end def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence - skip if RUBY_ENGINE == 'truffleruby' + skip if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM backup_home = ENV["HOME"] Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir| ENV["HOME"] = tmpdir From 4ee72f4afd879f9197b3fabb9a875afb02a61150 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@gmail.com> Date: Mon, 10 May 2021 21:13:06 -0700 Subject: [PATCH 2/3] Retry choco install by using a wrapper provided by GitHub Actions https://github.com/actions/virtual-environments/pull/721 to address failures like https://github.com/ruby/ruby/runs/2551980671 --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e8633c57ee..c46f8c9463 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -35,7 +35,7 @@ jobs: ${{ runner.os }}-chocolatey- - name: Install libraries with chocolatey run: | - choco install --no-progress openssl winflexbison3 + Choco-Install -PackageName openssl winflexbison3 - name: git config run: | git config --global core.autocrlf false From 3c9e30aef800c8cf84bb2ac85b430fa108ce25c2 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@gmail.com> Date: Mon, 10 May 2021 21:17:33 -0700 Subject: [PATCH 3/3] Try running Choco-Install with powershell https://github.com/ruby/ruby/runs/2552047430 --- .github/workflows/windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c46f8c9463..c8e431451f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -36,6 +36,7 @@ jobs: - name: Install libraries with chocolatey run: | Choco-Install -PackageName openssl winflexbison3 + shell: pwsh - name: git config run: | git config --global core.autocrlf false