Граф коммитов

222 Коммитов

Автор SHA1 Сообщение Дата
Takashi Kokubun 9ee88a070f
Remove MSPECOPT formerly for debugging
At least the comment looks obsoleted. Aren't we using $JOBS already?
2019-11-12 20:56:16 -08:00
Takashi Kokubun 02b6451c17
Improve Actions job name shown on toolip
Hoping to make it like `make (check, ...)`, `make (test-bundler, ...)`
instead of `latest (...)` because some of the jobs are already not
running on a latest platform.
2019-11-12 20:44:01 -08:00
Takashi Kokubun 3118c7a2d2
Run test-bundler / test-bundled-gems for Ubuntu
only once. Doing it on multiple Ubuntu versions may not worth it.
2019-11-12 20:39:45 -08:00
Kazuhiro NISHIYAMA 3ad78264dc
Use style of set-env
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#set-an-environment-variable-set-env
2019-11-13 13:13:52 +09:00
Kazuhiro NISHIYAMA b41a19f92f
Add matrix.os to cache key (#2671)
* Add matrix.os to cache key
* Use multi-line string instead of array
  ref https://github.com/actions/cache/issues/44
2019-11-12 17:22:19 +09:00
Kazuhiro NISHIYAMA 593f0b8853 Try to use actions/cache on windows 2019-11-12 12:05:10 +09:00
Nobuyoshi Nakada 1390d56ecf
Set $JOBS to Tests for parallel tests 2019-11-05 10:28:44 +09:00
Nobuyoshi Nakada c0c9a00f83 Simplify test tasks
Removed `if` conditions separating `test-bundled-gems`, and pass
`TESTOPTS` and `TEST_BUNDLED_GEMS_ALLOW_FAILURES` via `env`.
2019-11-05 02:12:26 +09:00
Nobuyoshi Nakada 6e0b40af3d Try out-of-place build 2019-10-28 22:05:57 +09:00
Kazuhiro NISHIYAMA 3e83f1f00a Add more matrix info to slack payload 2019-10-28 16:53:02 +09:00
Kazuhiro NISHIYAMA 85d966af21 Add ubuntu-16.04 to matrix of GitHub Actions 2019-10-27 20:19:04 +09:00
Kazuhiro NISHIYAMA a7ec88ad61
Add `shell: cmd`
Use cmd instead of new default shell for `call`.
https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/

7bcc639c72/checks (step):6:5
```
call : The term 'call' is not recognized as the name of a cmdlet, function, script file, or operable program.
```
2019-10-25 10:45:46 +09:00
Nobuyoshi Nakada 5040eea959
Do not show progress at chocolatey 2019-10-25 08:54:33 +09:00
Nobuyoshi Nakada b7c8874b62
Install openssl with chocolatey
OpenSSL in chocolatey is 1.1.1d but outdated 1.0.2s is in vcpkg.
2019-10-25 02:31:21 +09:00
Nobuyoshi Nakada 826bbf9837
Split by `&&` 2019-10-25 02:24:00 +09:00
Nobuyoshi Nakada 967b924aa0
Expanded an environment variable
PowerShell does not expand by `%varname%` syntax.
2019-10-25 02:08:03 +09:00
Nobuyoshi Nakada b86af95c5b
Get rid of control flow by cmd.exe
Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
2019-10-25 02:04:14 +09:00
Kazuhiro NISHIYAMA 0b26f56a77
Remove unreachable step level `[ci skip]` 2019-10-10 16:48:26 +09:00
Kazuhiro NISHIYAMA 6f11c3b335
Check '[ci skip]' at job level 2019-10-09 17:46:05 +09:00
Kazuhiro NISHIYAMA 55de0282da
Remove draft-release.yml [ci skip]
I thought default branch's workflow runs on any tags,
but it does not run for stable branches without draft-release.yml.
So I abandoned, and use workflow in ruby/actions instead.
2019-10-01 21:26:54 +09:00
Benoit Daloze 59060aadea Run test-unit tests in CI 2019-09-30 00:16:11 +02:00
Benoit Daloze d090e449ef Exclude the test-unit bundled gem tests since they also fail since the Time#inspect change
* See https://github.com/test-unit/test-unit/issues/165
2019-09-29 13:57:54 +02:00
Benoit Daloze e3b11566bf Remove continue-on-error for test-bundled-gems
* Otherwise, it takes a very long time to notice those tests broke.
2019-09-29 13:57:54 +02:00
Hiroshi SHIBATA c8f7168653
Revert the accidentally commits related GitHub Actions 2019-09-26 19:22:30 +09:00
Hiroshi SHIBATA ad638a713a
[rubygems/rubygems] Added jruby to matrix
https://github.com/rubygems/rubygems/commit/0832c079c8
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA 769a28d7dc
[rubygems/rubygems] Removed 2.2
https://github.com/rubygems/rubygems/commit/7fd2460f76
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA ba8fb735cb
[rubygems/rubygems] Added rvm workflow for Ruby 2.2 and 2.7
https://github.com/rubygems/rubygems/commit/d4ba75dfd2
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA 01c90f17d9
[rubygems/rubygems] Removed the needless configurations
https://github.com/rubygems/rubygems/commit/7134c49179
2019-09-26 17:48:01 +09:00
Hiroshi SHIBATA f5248f6f50
[rubygems/rubygems] Added the initial workflow file.
https://github.com/rubygems/rubygems/commit/6405a1e51a
2019-09-26 17:48:01 +09:00
Kazuhiro NISHIYAMA a1dcb9daa5
Rename from ruby-x.y.z.ext.draft to ruby-x.y.z-draft.ext [ci skip] 2019-09-24 21:52:23 +09:00
Kazuhiro NISHIYAMA a0ce0b6297
Add `if: always()` because 2.4.x's `make check` failed on snapshot [ci skip]
`check-snapshot-ruby_2_4` uses `make test` instead of `make check`.
95692e54f4/.github/workflows/snapshot.yml (L448-L449)

`draft-release` use `make check` to make it simple, and
actions is required regardless of success or failure.

On the other hand, snapshot success can be ignored,
so normally it should not fail.
2019-09-22 10:11:51 +09:00
Kazuhiro NISHIYAMA 9fb9f2d318
Add draft-release.yml [ci skip]
Make draft release packages. (Release packages are official after tests and release announce.)

- Copy from ruby/actions
- Change trigger tags from `draft/v*` to `v*` (I use `draft/v*` on ruby/actions because I want to avoid to cause trouble with shell history on working directory of ruby/ruby.)
- Change secrets names because secrets are repository local and use different names between ruby/ruby and ruby/actions.
2019-09-19 12:47:09 +09:00
Kazuhiro NISHIYAMA 0785469a40 `brew install` may fail, so try to use `tool/travis_retry.sh`
https://github.com/ruby/ruby/runs/224877570#step:3:1008
```
Error: No such file or directory @ dir_s_rmdir - /Users/runner/Library/Caches/Homebrew/downloads/ca756e367eb98d2b525e72b311633c27ffc74eca825a5392153b3488d1adb732--libssh2-1.9.0.mojave.bottle.tar.gz
```
2019-09-17 18:02:03 +09:00
Kazuhiro NISHIYAMA 3c162df9d4 Dump some information 2019-09-13 13:44:03 +09:00
Kazuhiro NISHIYAMA 9f86e5ecb6
Moved coverage.yml to https://github.com/ruby/actions [ci skip] 2019-09-12 18:28:46 +09:00
Kazuhiro NISHIYAMA fba5bbc695
Moved doxygen.yml to https://github.com/ruby/actions [ci skip] 2019-09-11 23:39:36 +09:00
Kazuhiro NISHIYAMA 489676bd20
Add `--no-progress` to `aws s3` [ci skip]
https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
> --no-progress (boolean) File transfer progress is not displayed. This flag is only applied when the quiet and only-show-errors flags are not provided.
2019-09-11 09:35:06 +09:00
Kazuhiro NISHIYAMA c725a4e48f
Check github.repository in doxygen.yml [ci skip] 2019-09-07 14:03:29 +09:00
Kazuhiro NISHIYAMA 7a2bd91ed2
Try to fix `invalid option`
https://github.com/ruby/ruby/runs/212727409#step:11:67
```
invalid option: -j5
```
2019-09-05 17:51:02 +09:00
Kazuhiro NISHIYAMA f4df9fb46b
Change name to `Tests (test-bundled-gems)` in macos.yml too 2019-09-05 17:47:51 +09:00
Kazuhiro NISHIYAMA ccad34f453
Add TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest 2019-09-04 12:51:39 +09:00
Kazuhiro NISHIYAMA 1e30d0af7d
`$JOBS` does not set in `env:` 2019-09-04 12:03:28 +09:00
Kazuhiro NISHIYAMA b0d0b850bc
Use RUBY_TESTOPTS instead of TESTOPTS
https://github.com/ruby/ruby/pull/2417#issuecomment-526884646
> `TESTOPTS` is defaulted to `$(RUBY_TESTOPTS)` in `common.mk` file.
> Use the latter name to pass options via an environment variable.
2019-09-04 11:50:37 +09:00
Takashi Kokubun 7cb19b3f5b
Roughly retry choco install commands
to deal with random failures:
https://github.com/ruby/ruby/runs/210617845
2019-09-03 21:03:11 +09:00
Kazuhiro NISHIYAMA 36a0c668b6
Remove SKIP_DOXYGEN because job.env does not set in `if:` 2019-09-03 18:36:08 +09:00
Kazuhiro NISHIYAMA 624a0ad44d
Use `set-env` instead of `grep` in each step 2019-08-28 10:07:54 +09:00
Kazuhiro NISHIYAMA 108dbb389b
Use JOBS again like macos.yml 2019-08-28 09:45:31 +09:00
Kazuhiro NISHIYAMA 330c2f7597
Change name to `Tests (test-bundled-gems)` 2019-08-28 09:41:14 +09:00
Kazuhiro NISHIYAMA 230f405479
Add name to autoconf 2019-08-28 09:38:52 +09:00
Kazuhiro NISHIYAMA 17c0ce3798
Remove GITHUB_SHA from jobs.<job_id>.steps.env
because default value overrides it.
https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
2019-08-28 09:20:07 +09:00
Kazuhiro NISHIYAMA 767992329e
Allow missing projectnumber [ci skip] 2019-08-28 09:15:40 +09:00
Kazuhiro NISHIYAMA d4de5e6459
Show projectnumber in current index.html and GITHUB_SHA 2019-08-28 09:13:43 +09:00
Kazuhiro NISHIYAMA cbcad66741
Fix doxygen action
- Fix checkout error: `fatal: destination path '.' already exists and is not an empty directory.`
- Remove `GITHUB_SHA` in env, because set automatically
  https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
- Change minute from 0 to 20 for test soon
2019-08-28 02:16:28 +09:00
Kazuhiro NISHIYAMA 71e5871c3b
Run on schedule only and skip if not modified 2019-08-28 01:48:40 +09:00
Takashi Kokubun dd032a5fb4
Make doxygen / coverage torelant to clone race
a little.

Doing both `git clone --depth=1` and `git reset --hard ${sha}` does not
make sense (the latter command either does nothing or just fails), so I
added non-1 value as a depth.

Maybe we don't need depth=50 for pull_request and schedule, so it's 10
for now.
2019-08-28 00:16:16 +09:00
Takashi Kokubun 4209066f0e
Drop more unused configs from doxygen and coverage
workflows, because mame said he has never seen it.
2019-08-27 23:52:43 +09:00
Takashi Kokubun 3bed468e88
Omit unused matrix strategy from doxygen workflow 2019-08-27 23:49:36 +09:00
Kazuhiro NISHIYAMA d806078237
Add graphviz for dot command 2019-08-27 18:46:16 +09:00
Yusuke Endoh 3ac0b75c45
Doxygen in GitHub Actions (#2406)
* .github/workflows/doxygen.yml: add a workflow for doxygen in Actions
2019-08-27 16:39:42 +09:00
Nobuyoshi Nakada 2fb723b8af
Revert "Explain which test task"
This reverts commit 9bc1667a18.

`name` lines are not expanded.
2019-08-27 15:11:39 +09:00
Yusuke Endoh 0c8525ecc9 .github/workflows/coverage.yml: add a cron job for coverage in Actions 2019-08-27 14:40:59 +09:00
Nobuyoshi Nakada 9bc1667a18
Explain which test task 2019-08-27 14:30:52 +09:00
Kazuhiro NISHIYAMA ccc5b22a7f
Expand JOBS instead of meaningless export (#2402)
* Expand JOBS instead of meaningless export

* Remove -j option in TESTOPTS of test-bundled-gems

https://github.com/ruby/ruby/runs/203129516#step:10:167
> invalid option: -j3
2019-08-26 21:09:02 +09:00
Takashi Kokubun fd20b32130
Make GitHub Actions Slack notification consistent
with Travis, rather than AppVeyor.

Formerly it was made similar to AppVeyor to provide some normal set of
CI failure notification. But for some reason people preferred a shorter
variant and introduced a1d606c079 and
d8d8015b93.

Instead of AppVeyor format, this commit chose Travis-like format to achieve
consistency and to include usual CI-failure information, while keeping
it one-liner for people who prefer short notifications.

Note that this shrinks the 40-char sha to 10-char, using the new feature
of k0kubun/action-slack@v2.0.0:
1c88a05dac
2019-08-22 23:10:55 +09:00
aycabta d8d8015b93 Remove footer from message to Slack 2019-08-22 09:24:35 +09:00
aycabta a1d606c079 Show short message to Slack 2019-08-22 07:57:12 +09:00
Takashi Kokubun c030cec7ca
Debug GitHub context on broken notification
sometimes Slack notification footer becomes just " at ".
It seems like `github.event.head_commit` is missing. Let me debug the
context.
2019-08-21 23:13:22 +09:00
Takashi Kokubun d10e28b875
Skip tests on Actions if [ci skip]
It seems that we cannot easily apply job-level [ci skip].
Therefore this commit skips only Tests step if it's [ci skip].
2019-08-20 23:58:37 +09:00
Kazuhiro NISHIYAMA 45bed2850e
Reduce sub-shell and use `&&` instead of `;` 2019-08-19 19:37:07 +09:00
Takashi Kokubun 6c2aa8689a
Roughly retry `brew update`
as it failed randomly https://github.com/ruby/ruby/runs/196712109
2019-08-19 14:59:59 +09:00
Takashi Kokubun d106f08291
Stop reporting test-bundled-gems results
by marking continue-on-error.

I dropped it to test Slack notification, and I finished to test it.
2019-08-19 09:41:52 +09:00
Takashi Kokubun c100e3856a
Workaround errors on multi-line commit message
by using toJson with fields.
2019-08-19 03:40:34 +09:00
Takashi Kokubun e139d27748
Make Slack notification available
for macOS / Windows as well.

Docker-based GitHub Action does not work on these OSes.
2019-08-19 03:14:19 +09:00
Takashi Kokubun 2f6c8ed26e
Implement Slack notification for Actions 2019-08-19 01:49:52 +09:00
Takashi Kokubun e4c43207f9
Revert "Try notifying Slack from Actions"
This reverts commit d8807e8b1a.

We'd need more features. Reverting to customize this later.
2019-08-18 23:32:49 +09:00
Takashi Kokubun d8807e8b1a
Try notifying Slack from Actions
https://github.com/8398a7/action-slack
https://github.com/marketplace/actions/action-slack
2019-08-18 23:19:10 +09:00
Takashi Kokubun a0e80c7cb7
Drop continue-on-error for make check
Like macos.yml, we don't need to ignore `make check` failure.
2019-08-18 09:30:36 +09:00
Hiroshi SHIBATA 2468466a1a Added missing condition for test-bundler and test-bundled-gems. 2019-08-17 13:27:11 +09:00
Hiroshi SHIBATA ea496e9fb2 Added test check to ubuntu on GitHub Actions 2019-08-17 13:27:11 +09:00
Takashi Kokubun 045152df9e
Disable fail-fast of GitHub Actions
This is default: true
https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast

When `make check` fails, we do not want to cancel `make test-bundler`.
2019-08-17 09:43:06 +09:00
Takashi Kokubun 9874dca3e7 Mark bundler / bundled-gems as continue-on-failure
because these tests have failed too often and it's false-positive for
checking healthiness of the master branch.
2019-08-14 23:02:09 +09:00
Takashi Kokubun bf77f43b39
Update the description of check_branch 2019-08-14 22:36:49 +09:00
Takashi Kokubun 8be521662d
Rename check_branch.master to pull_request.check_branch
because it's shown as just "master" on a pull request which does not
have the check_branch.master job yet.

"check_branch" would be easier to understand and now we can grep it from
master branch.
2019-08-14 22:22:12 +09:00
Takashi Kokubun 765d603153
Try to fix variable reference on Windows (#2361)
https://github.com/ruby/ruby/runs/192869165
2019-08-14 10:52:15 +09:00
Takashi Kokubun 8a687b8a4f Stop using official actions/checkout
because it has been unstable, and also it sometimes does not work for a
pull request like:
https://github.com/ruby/ruby/pull/2358/checks?check_run_id=192685048#step:4:17
2019-08-14 10:22:25 +09:00
Takashi Kokubun 79f9c626b6
Use the official actions/checkout again (#2357)
because clone does not checkout exact commit sha, and also we'd need to handle
pull_request on fork, so I tentatively stopped to do this.
2019-08-13 23:36:31 +09:00
Takashi Kokubun 94ca848ca1
Update the comment in check_branch [ci skip] (#2355) 2019-08-13 22:56:44 +09:00
Takashi Kokubun 3979f22cc1
Explain the current status of branches [ci skip] (#2350) 2019-08-13 01:45:10 +09:00
Takashi Kokubun 4e418a6c06
Update check_branch description a little [ci skip] 2019-08-13 01:29:37 +09:00
Takashi Kokubun edd2538268
Add a quick job to be used for branch protection 2019-08-12 23:44:34 +09:00
Hiroshi SHIBATA 188381053c
added --disable-install-doc to Windows workflow of GitHub Actions
Closes: https://github.com/ruby/ruby/pull/2346
2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 8d50bf40d9
Try to nmake test 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 0fd0f74508
Try to merge windows 2016 and 2019 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 040bf4c0a6
Added windows-2019 workflow 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA 981f0be6ff
Try to nmake 2019-08-12 20:11:49 +09:00
Hiroshi SHIBATA bbc5e97b95
Migrate Windows 2016 env to GitHub Actions from AzurePipelines 2019-08-12 20:11:49 +09:00
Takashi Kokubun 5edf921e9b
Revert "Roughly retry `brew update` on GitHub Actions"
This reverts commit 5ee11a95ff.

Sorry, timeout(1) was missing.
2019-08-12 17:55:57 +09:00
Takashi Kokubun 927a43a503
Drop unused ccache
unlike Travis, it seems not used.
2019-08-12 17:46:16 +09:00
Takashi Kokubun 5ee11a95ff
Roughly retry `brew update` on GitHub Actions
because it has failed often on Travis.
2019-08-12 17:44:03 +09:00
Takashi Kokubun d5250808e1
Try testing openssl@1.1 on GitHub Actions
because somebody may want to remove the duplicated Travis osx usage
later.
2019-08-12 16:37:47 +09:00
Takashi Kokubun b1ef14176b
We did not have tool/ before checkout
anyway we don't need authorization here.
Also retry does not seem to work in the original version, so let's
extend this with retries as a separate github action later.
2019-08-12 14:37:26 +09:00
Takashi Kokubun 4f10a61eaa
Stop relying on actions/checkout
because it randomly fails on authorization like:
https://github.com/ruby/ruby/runs/190887455
Also the backoff seems too short. Maybe we need tool/travis_retry.sh for
this too.

Cloning ruby/ruby does not need authorization. We don't need to use
actions/checkout.
2019-08-12 14:30:43 +09:00
Hiroshi SHIBATA 8a8f680f01
Re-use GITHUB_ACTION variables for filtering bundler examples. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA e96321d006
Removed make check 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA fc97aa9313
Fixed the world writable dirs on Ubuntu environment. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA cfb192a7b9
Added test-bundled-gems to GitHub Actions 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA 11a09d78c1
Port ubuntu workflow based on macos 2019-08-12 12:01:39 +09:00
Hiroshi SHIBATA 91fcd87f5c
Increase fetch-depth 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA bb2f24251f
GitHub Actions does not support ANSI color code. Skip failing examples. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA c685679e25
Use check. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA e7996e0fd6
Try to migrate test-bundler to Actions. 2019-08-11 12:17:22 +09:00
Takashi Kokubun c1c8577088
Fix wrong pull_request filter
The specification was not triggered on a pull request.
2019-08-10 20:25:59 +09:00
Takashi Kokubun a6c5ce7a9b
Increase the fetch-depth of GitHub Actions
because small numbers had made Azure Pipelines in the past and it's
using 20 now. I heard GitHub Actions has more parallelism, so it should
be okay.
2019-08-10 19:44:39 +09:00
Takashi Kokubun b3903ef2a1
Set more descriptive labels to workflow 2019-08-10 19:38:28 +09:00
Takashi Kokubun 59a8003ac5
Drop confusing label from workflow
because it's doing more than test-all
2019-08-10 19:33:12 +09:00
Takashi Kokubun 6205f95539
Escape asterisk on pull request paths 2019-08-10 19:29:39 +09:00
Takashi Kokubun e43b3bb442
Skip running GitHub Actions on trunk 2019-08-10 19:28:10 +09:00
Takashi Kokubun 9b203959d5
Rename workflow.yml to macos.yml
to allow having other workflows separately, and configure `name` to
simplify a tooltip label on GitHub.
2019-08-10 19:19:25 +09:00
Takashi Kokubun 49f88eb2f1
Try building workflow on push 2019-08-10 09:34:13 +09:00
Aaron Patterson cb390e87dc
Add more runners
Closes: https://github.com/ruby/ruby/pull/2327
2019-08-09 13:15:18 +09:00
Aaron Patterson 54bdfe27f3
Run macOS tests on GitHub Actions
This commit sets up the CI integration on GitHub Actions.  We should
give it a try because queue times are lower and I think we get more
CPUs.

Closes: https://github.com/ruby/ruby/pull/2327

Co-Authored-By: John Hawthorn <john@hawthorn.email>
2019-08-09 13:15:12 +09:00
Aaron Patterson c7acb37248
Enable GitHub Actions on Ruby
This just enables GitHub actions on our repository so we can try it out.
2019-08-08 11:29:15 -07:00