[前][次][番号順一覧][スレッド一覧]

ruby-changes:59583

From: Takashi <ko1@a...>
Date: Wed, 1 Jan 2020 03:34:15 +0900 (JST)
Subject: [ruby-changes:59583] 74cb414885 (master): Run tests in the consistent order

https://git.ruby-lang.org/ruby.git/commit/?id=74cb414885

From 74cb4148856230a10daee1d043a8700f6d798bdf Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 31 Dec 2019 10:24:00 -0800
Subject: Run tests in the consistent order

`make check` runs test -> test-all -> test-spec, and other CIs follow that too.

diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index 00fb5fd..ae3ce05 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -116,31 +116,31 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L116
           $env:TMPDIR = "$pwd/temp"
           make -C build test
 
-      - name: test-spec
+      - name: test-all
         if: success() || failure()
-        timeout-minutes: 10
+        timeout-minutes: 25
         run: |
           $env:TMPDIR = "$pwd/temp"
-          $env:PATH = "$pwd/install/bin;$env:PATH"
           # Actions uses UTF8, causes test failures, similar to normal OS setup
           $PSDefaultParameterValues['*:Encoding'] = 'utf8'
           [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
           [Console]::InputEncoding  = [System.Text.Encoding]::GetEncoding("IBM437")
-          ruby -v
-          cd src/spec/ruby
-          ruby ../mspec/bin/mspec -j
+          $jobs = [int]$env:NUMBER_OF_PROCESSORS
+          make -C build test-all TESTOPTS="-j $jobs --retry --job-status=normal --show-skip --timeout-scale=1.5"
 
-      - name: test-all
+      - name: test-spec
         if: success() || failure()
-        timeout-minutes: 25
+        timeout-minutes: 10
         run: |
           $env:TMPDIR = "$pwd/temp"
+          $env:PATH = "$pwd/install/bin;$env:PATH"
           # Actions uses UTF8, causes test failures, similar to normal OS setup
           $PSDefaultParameterValues['*:Encoding'] = 'utf8'
           [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
           [Console]::InputEncoding  = [System.Text.Encoding]::GetEncoding("IBM437")
-          $jobs = [int]$env:NUMBER_OF_PROCESSORS
-          make -C build test-all TESTOPTS="-j $jobs --retry --job-status=normal --show-skip --timeout-scale=1.5"
+          ruby -v
+          cd src/spec/ruby
+          ruby ../mspec/bin/mspec -j
 
       - uses: k0kubun/action-slack@v...
         with:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]