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

596 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 652a624891
miniruby may not be built when cross-compiling 2022-09-03 19:19:55 +09:00
Benoit Daloze a319d3cfdc Run specs with CHECK_LEAKS=true
* To ensure these issues are noticed early.
2022-08-29 15:32:48 +02:00
Hiroshi SHIBATA 3a2bc84954 Added test-syntax-suggest to CI 2022-08-26 12:15:47 +09:00
Maxime Chevalier-Boisvert 60c900f452
Add @k0kubun to CODEOWNERS for YJIT 2022-08-23 14:27:49 -07:00
Hiroshi SHIBATA 9f6fcfcd7f
Ubuntu 18.04 in GHA is deprecated from Aug 8,2022
https://github.com/actions/runner-images/issues/6002
2022-08-23 14:04:15 +09:00
Nobuyoshi Nakada d91865f33f
Ignore `.document` only commits [ci skip] 2022-08-22 18:08:05 +09:00
Nobuyoshi Nakada f0a7694f64
Show the exact version of cl.exe [ci skip]
[Misc #18362] is fixed at cl.exe 19.33.31629.
2022-08-22 17:12:08 +09:00
Nobuyoshi Nakada 74d95744bd
Add `--enable-devel` configure option
Since `RUBY_DEVEL` in cppflags has no effect in the configure script
and makefiles.
2022-08-11 11:34:52 +09:00
Jeremy Evans 357352af5e Do not enable RUBY_DEVEL by RUBY_PATCHLEVEL
This makes RUBY_DEVEL not enabled automatically.  It still can be
enabled manually.

Test manually using RUBY_DEVEL in CI.

Implements [Feature #17468]
2022-08-09 22:13:17 -07:00
Takashi Kokubun 0d68286be9
Revert "Try reproducing the MinGW hang on time command (#6168)"
This reverts commit bee5089d67.

Looking at https://github.com/ruby/ruby/runs/7564065637?check_suite_focus=true,
we concluded that the ruby process for test-all is stuck before exit
when this issue reproduces.

However, because of our limited bandwidth to support MinGW, we're not
investigating this, and therefore we need to keep skipping tests that
hang on this environment.
2022-07-28 16:12:46 -07:00
Takashi Kokubun bee5089d67
Try reproducing the MinGW hang on time command (#6168)
to see if it really exits correctly. 

GitHub Support asked me to confirm the command is exiting correctly.
2022-07-27 21:29:14 -07:00
Nobuyoshi Nakada 91c05b34cd Bundled gems test needs `prepare-gems`
`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
2022-07-25 08:50:07 +09:00
Peter Zhu 3ff53c8e04 Remove macOS 10.15 from CI
macOS 10.15 is deprecated on GitHub Actions and will have periodic
brownouts. See actions/virtual-environments#5583.
2022-07-21 11:49:24 -04:00
Nobuyoshi Nakada e330dceb3f
Mark ruby scripts in YAML [ci skip]
```elisp
(mmm-ify-by-regexp 'ruby-mode
  "^ *#!.*ruby" 0 "^ *shell: *ruby.*{0}" 0 0)
```
2022-07-20 09:40:59 +09:00
Nobuyoshi Nakada 8794cc6289
Tentatively put macOS CIs back with adding macOS 12 2022-07-07 15:06:10 +09:00
Yuta Saito 76619bbb11 [wasm] get rid of workaround use of older binaryen and update to latest
We no longer need to use older version of binaryen since the blocker
issue has been resolved https://github.com/WebAssembly/binaryen/issues/4401
2022-07-06 11:59:38 +09:00
Nobuyoshi Nakada 3a9ff9457a
CI: skip the failing test only 2022-07-05 11:35:14 +09:00
Nobuyoshi Nakada b5f871888e
CI: skip objspace test on MinGW for now 2022-07-05 11:33:47 +09:00
Nobuyoshi Nakada 06a241ad28
Disable USE_DEBUG_COUNTER test for now [ci skip] 2022-07-03 00:07:06 +09:00
Nobuyoshi Nakada 8c6a2cc24e
Add check for USE_DEBUG_COUNTER 2022-07-03 00:05:52 +09:00
Nobuyoshi Nakada 3cf0018119
CI: Add conditions for `test_task` on MinGW 2022-07-01 20:55:29 +09:00
Nobuyoshi Nakada 7dfaa617a4
Use `matrix.arch` separated from `matrix.configure`
Statically determined value should be set statically.
2022-06-30 17:56:04 +09:00
Nobuyoshi Nakada 41cdf9b114
Show flags instead of `-s` option in `GNUMAKEFLAGS` 2022-06-23 22:52:45 +09:00
Nobuyoshi Nakada 2f7c0f656e
Pass LDFLAGS via environment variable 2022-06-23 22:52:45 +09:00
Nobuyoshi Nakada e6f92cada1 Refactor compilations workflow
Now some entries need multiple variables for customization, and only
one environment variable per entry is not enough.
To solve it, dccfff943c has introduced overriding variables by `env`
key for each entries.
This commit uses `env` keys for the other environment variables too,
instead of appending to `$GITHUB_ENV`.
2022-06-22 18:32:22 +09:00
卜部昌平 7ef67bf9a2 [CI] add gcc-12 2022-06-21 15:30:54 +09:00
Jun Aruga eed24b5ee0 .github/workflows/compilers.yml: annocheck: Fix gaps and notes test.
This commit fixes on the annocheck gaps and notes tests on Ubuntu focal on CI.
Added the gcc `-Wa,--generate-missing-build-notes=yes` flag.

See the links below.
* -Wa,option: <https://gcc.gnu.org/onlinedocs/gcc-11.3.0/gcc/Assembler-Options.html#Assembler-Options>.
* --generate-missing-build-notes=yes: <https://www.man7.org/linux/man-pages/man1/as.1.html>.
2022-06-21 09:38:52 +12:00
Jun Aruga f8b6d4f4d1 .github/workflows/compilers.yml: Skip gaps test on annocheck 10.76.
This commit is to skip a failure with annocheck 10.76 on the annocheck test
case on the CI. Previously The test worked with annocheck 10.73.

The issue was reported at <https://bugs.ruby-lang.org/issues/18061#note-24>.
> Hardened: ruby: MAYB: test: gaps because no notes found
> Hardened: ruby: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-gaps.html

It seems that the annocheck added the gaps test at 10.76. Maybe the upstream commit is below.

The annocheck is a part of the annobin project: https://sourceware.org/annobin/
```
$ git clone git://sourceware.org/git/annobin.git

$ git show 61184ae1180a134bfbbd125e9fe339baedd67c18
commit 61184ae1180a134bfbbd125e9fe339baedd67c18
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Jun 13 16:56:46 2022 +0100

    Annocheck: Add TEST_GAPS.  Add MAYB for TEST_NOTES if DWARF info could not be found
...
```
2022-06-20 12:08:25 +02:00
Nobuyoshi Nakada 5047283070
Skip CIs if the head commit message contains '[DOC]' 2022-06-19 11:05:31 +09:00
Jun Aruga cfcf33f127 .github/workflows/compilers.yml: annocheck: Fix a linker flag to pass MJIT tests.
Set the linker flag `-Wl,-z,now` properly.

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>

Fixes [Bug #18781]
2022-06-07 00:25:19 +02:00
Alan Wu 899c90cf8a
YJIT: Relax minimum Rust version requirement to 1.58.1
We want to make it convenient for people to build YJIT and Rust version 1.58.1
or above is available on Ubuntu Jammy, Debian testing, and Fedora 36 through
the usual package manager on those systems. This saves the need to install
`rustup` for some people.

Our code is already 1.58.1 compatible so this commit simply tweaks CI to make
sure that we keep supporting that version. We still test against the latest Rust
version in `--enable-yjit=dev` builds through the Rust version available in
GitHub's CI image.

Rust versions older than 1.58.1 might build YJIT today, but we might make
incompatible changes in the future.

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
2022-05-29 13:43:02 -04:00
Koichi Sasada 2d1e7dfc36 remove `-DTHREAD_DEBUG` rule
(but it was already commented out)
2022-05-24 10:06:51 +09:00
Takashi Kokubun ead96e7b44
Rename test_jit to test_mjit
to avoid confusion with YJIT
2022-05-20 21:32:55 -07:00
Kaíque Kandy Koga aab683af0e
Write skipping instead of skiping [ci skip]
https://www.lexico.com/en/definition/skip
2022-05-18 11:28:36 +09:00
Jun Aruga dccfff943c Add `make test-annocheck` to detect security issues.
* Note that as the annocheck binary package is not available on Ubuntu, and it
  is working in progress in Debian, the script uses Fedora container, and
  it requires docker or podman command.
  https://www.debian.org/devel/wnpp/itp.en.html
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926470
* .github/workflows/compilers.yml: Add "gcc-11 annocheck" case.
  To pass the CI, set `TEST_ANNOCHECK_OPTS: "--skip-pie --skip-notes"` for now.
  See <https://bugs.ruby-lang.org/issues/18061>.
* Skip MJIT tests in case of annocheck case.
  The MJIT tests fail in the annocheck case.
  See <https://bugs.ruby-lang.org/issues/18781>.
2022-05-16 10:10:16 +02:00
Jun Aruga 7522343351 .github/workflows/compilers.yml: Add configure --enable-mkmf-verbose case. 2022-05-12 12:36:10 +02:00
dependabot[bot] 63932ec33e Bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 11:22:26 +09:00
Alan Wu f90549cd38 Rust YJIT
In December 2021, we opened an [issue] to solicit feedback regarding the
porting of the YJIT codebase from C99 to Rust. There were some
reservations, but this project was given the go ahead by Ruby core
developers and Matz. Since then, we have successfully completed the port
of YJIT to Rust.

The new Rust version of YJIT has reached parity with the C version, in
that it passes all the CRuby tests, is able to run all of the YJIT
benchmarks, and performs similarly to the C version (because it works
the same way and largely generates the same machine code). We've even
incorporated some design improvements, such as a more fine-grained
constant invalidation mechanism which we expect will make a big
difference in Ruby on Rails applications.

Because we want to be careful, YJIT is guarded behind a configure
option:

```shell
./configure --enable-yjit # Build YJIT in release mode
./configure --enable-yjit=dev # Build YJIT in dev/debug mode
```

By default, YJIT does not get compiled and cargo/rustc is not required.
If YJIT is built in dev mode, then `cargo` is used to fetch development
dependencies, but when building in release, `cargo` is not required,
only `rustc`. At the moment YJIT requires Rust 1.60.0 or newer.

The YJIT command-line options remain mostly unchanged, and more details
about the build process are documented in `doc/yjit/yjit.md`.

The CI tests have been updated and do not take any more resources than
before.

The development history of the Rust port is available at the following
commit for interested parties:
1fd9573d8b

Our hope is that Rust YJIT will be compiled and included as a part of
system packages and compiled binaries of the Ruby 3.2 release. We do not
anticipate any major problems as Rust is well supported on every
platform which YJIT supports, but to make sure that this process works
smoothly, we would like to reach out to those who take care of building
systems packages before the 3.2 release is shipped and resolve any
issues that may come up.

[issue]: https://bugs.ruby-lang.org/issues/18481

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Noah Gibbs <the.codefolio.guy@gmail.com>
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2022-04-27 11:00:22 -04:00
Alan Wu 9c44b5fbc8 [CI] Use -O2 on LTO builds as intended
Previously, since the `optflags` environment variable was set to `-O1`
and `optflags` comes after the flags appended as `CC`, we were doing LTO
builds with `-O1`.
2022-04-25 14:29:19 -04:00
卜部昌平 4a4c1d6920
[CI] resort to clang-14 (#5824)
* [CI] resort to clang-14

Clang 15 + --std=c2x combination seems actively developed now.
Might better wait for them to mature

* also change default compiler
2022-04-20 16:05:37 +09:00
Tim Smith 4299375b9b Github -> GitHub
Fix the case of GitHub in various places

Signed-off-by: Tim Smith <tsmith@mondoo.com>
2022-04-19 08:31:41 +09:00
Alan Wu 307cb57ba6 Fix build errors with development version of Clang
Maybe not the best idea for CI stability to use development versions of
Clang, but that does give us a preview of what's coming and gives us a
chance to make suggestions upstream.
2022-04-14 15:47:27 -04:00
Hiroshi SHIBATA 033d979640 Disabled cross compile for unknown errors with psych build 2022-03-25 09:53:07 +09:00
Hiroshi SHIBATA 829754b329 Added libyaml-dev into BASERUBY check 2022-03-25 09:53:07 +09:00
dependabot[bot] 137e69b481 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 20:39:14 +09:00
dependabot[bot] 9deacb3155 Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 20:38:15 +09:00
Hiroshi SHIBATA 2ec82dd361
Added dependabot configuration for actions dependencies 2022-03-24 20:31:57 +09:00
Nobuyoshi Nakada 32af1a3b5e [MSWin] Try VS2022 2022-02-20 20:39:48 +09:00
Nobuyoshi Nakada 71388f9d39 [MSWin] Reduce duplicate configurations 2022-02-20 20:39:48 +09:00
Nobuyoshi Nakada 7a8ea2e497
[MSWin] Install OpenSSL with vcpkg 2022-02-13 18:25:59 +09:00
卜部昌平 2cc890d7d3 LLVM 15 begun.
See also a2601c9887
2022-02-10 08:24:18 +09:00
Nobuyoshi Nakada 8fe2ce83ef
[MSWin] Link all vcpkg DLLs except for readline 2022-02-07 13:40:48 +09:00
Nobuyoshi Nakada 65ccae5b2a
[MSWin] Install libyaml using vcpkg 2022-02-07 13:40:48 +09:00
Nobuyoshi Nakada 402d76485c
[MSWin] Install libffi using vcpkg 2022-02-06 22:23:55 +09:00
Nobuyoshi Nakada b9083c206a
[MSWin] Cache installed vcpkg packages 2022-02-06 22:22:58 +09:00
Nobuyoshi Nakada 7ce3a100f2
Fold command line items 2022-02-06 19:22:44 +09:00
Nobuyoshi Nakada 82b0a9004c
[wasm] skip pull-requests labeled as Documentation [ci skip] 2022-01-20 13:18:33 +09:00
卜部昌平 e4f8d5b2f5 .github/workflows: BASERUBY check for Ruby 3.1 2022-01-19 15:38:02 +09:00
Yuta Saito d015b0c928 [wasm] add ci workflow .github/workflows/wasm.yml 2022-01-19 11:19:06 +09:00
Nobuyoshi Nakada 2ae9da23c5
Check with the latest stable 2022-01-16 17:15:02 +09:00
Nobuyoshi Nakada 6328db3c7e
Separate the tests which fail when load-relative enabled 2022-01-16 16:09:12 +09:00
Nobuyoshi Nakada ab1fc6efa4
Add continue-on-skipped_tests flag 2022-01-16 16:08:45 +09:00
Nobuyoshi Nakada 41e6f0967d
Fix typos for multiple skipped_tests 2022-01-16 16:08:44 +09:00
Nobuyoshi Nakada 4c2d6f7655
Test enable-load-relative
Now rubygems has the tests depending on it.
2022-01-15 22:24:16 +09:00
MSP-Greg 49cc7709cb [Actions] mingw - use ruby/setup-ruby@v1 again 2022-01-15 08:59:14 +09:00
Nobuyoshi Nakada f75e871e4f
Try previous ruby-setup-ruby
The commits between db14f2dde9ceeaa8acbcd31884475a7ce97ae9d3 and
11cc84264a91d42bc873f39d70678e44042322d2 seems breaking
OpenSSL::TestConfig#test_s_parse_include.
2022-01-15 00:19:46 +09:00
Nobuyoshi Nakada c54eac6613
Show tool versions 2022-01-15 00:15:23 +09:00
Nobuyoshi Nakada abc4a46046
Get rid of building main again when test-bundled-gems 2022-01-14 14:54:29 +09:00
Peter Zhu 3818cfbd47 Compile with USE_RVARGC=0 on CI 2022-01-06 14:33:35 -05:00
Nobuyoshi Nakada bab8623343
The `include`d set should be expanded values [ci skip]
While the `matrix` level values are expanded from the production
of each arrays, `include`d set should be consist from expanded
single values.
2021-12-28 19:29:47 +09:00
Masataka Pocke Kuwabara b948b1a4e1
Fix RBS test failures of taint/trust (#5364) 2021-12-28 18:18:40 +09:00
Takashi Kokubun 63358581bc
Fix weird MinGW failure notifications
It's been "MinGW / Array", but it will be "MinGW MINGW64 / check" or
"MinGW UCRT64 / check" by this.
2021-12-27 23:35:13 -08:00
卜部昌平 a6e5d70346 USE_RVARGC released; why not CI 2021-12-28 14:52:55 +09:00
Nobuyoshi Nakada 3a223aec2e
Ignore failures taint/trust in RBS tentatively [ci skip] 2021-12-27 00:17:42 +09:00
Nobuyoshi Nakada 1698010bb1
NEWS: Empty gem list if no new gems 2021-12-26 15:37:49 +09:00
Nobuyoshi Nakada bf1444e500
[DOC] Do not push NEWS update to pull-request 2021-12-23 18:43:59 +09:00
Nobuyoshi Nakada 25e417b773
Separate cache key from primary key [ci skip] 2021-12-23 14:59:25 +09:00
Nobuyoshi Nakada 95da41ee0a
Get stdgems JSON files only if modified [ci skip] 2021-12-23 14:30:12 +09:00
Nobuyoshi Nakada 9b917315f4
Make the cache directory [ci skip] 2021-12-21 14:26:18 +09:00
Nobuyoshi Nakada 26c9ef6a89
[DOC] Skip tests if only NEWS.md changed 2021-12-20 19:33:58 +09:00
Nobuyoshi Nakada 922a81a994
Skip tests on pull requests labeled as Documentation 2021-12-18 13:06:15 +09:00
Nobuyoshi Nakada 629c8f12ae
Fix pull_request condition [ci skip] 2021-12-18 13:05:48 +09:00
Nobuyoshi Nakada 424605da7c
[DOC] Cache stdgems list 2021-12-18 10:33:04 +09:00
Nobuyoshi Nakada 73d44512e8
[DOC] Update bundled gems list 2021-12-18 01:17:38 +09:00
Nobuyoshi Nakada 693a561cfa
[DOC] Exclude non-updated stdlibs since the previous release 2021-12-17 02:41:17 +09:00
Nobuyoshi Nakada 5bf0060e0a
[DOC] Skip tests if only documents change [ci skip]
Run only checks for source code.  Currently, our CIs do almost
nothing about the documents.
2021-12-16 17:50:20 +09:00
Nobuyoshi Nakada 333865e56f
Workaround for reline.gemspec
This file searches "lib/reline/version.rb" in the same directory,
"lib/reline".  As no such path, the file in the default load path
is loaded unexpectedly.
2021-12-15 21:47:41 +09:00
Nobuyoshi Nakada ded33ed5b8
Update stdlib in NEWS 2021-12-15 17:55:43 +09:00
Takashi Kokubun 11b8aaa26a
Rename --jit to --mjit (#5248)
* Rename --jit to --mjit

[Feature #18349]

* Fix a few more --jit references

* Fix MJIT Actions

* More s/jit/mjit/ and re-introduce --disable-jit

* Update NEWS.md

* Fix test_bug_reporter_add
2021-12-13 16:08:01 -08:00
Nobuyoshi Nakada 3f1dcd7fff
Cache downloaded files
Cache downloaded external libraries/gems, which are expected not
changed so frequently.

Also sometimes downloading from zlib returns the current time as
the date header in unexpected format, and checksums mismatch at
that time.
2021-12-02 22:21:20 +09:00
Nobuyoshi Nakada 0a1b3b3a67
Try test_interrupt_in_other_thread
Seems working now probably because of system library updates.
2021-11-26 17:57:19 +09:00
Nobuyoshi Nakada 9850176984
Split skipped tests step 2021-11-25 21:34:41 +09:00
Nobuyoshi Nakada 51404eec59
Ignore pkg-config installation failure due to unmet dependencies 2021-11-25 19:13:36 +09:00
Nobuyoshi Nakada a1eaeb8e40
Stop duplicated runs 2021-11-25 19:13:27 +09:00
MSP-Greg 7d55f1b6b6 [Actions] use windows-2022 for mingw
MSP-Greg/ruby-setup-ruby@win-ucrt-1
2021-11-24 23:04:54 +09:00
Nobuyoshi Nakada 784f1e1538
Throttle pull-requests only [ci skip] 2021-11-21 19:23:36 +09:00
Maxime Chevalier-Boisvert cdebf57ec6
Add --yjit-no-type-prop so we can test YJIT without type propagation (#5135)
* Add --yjit-no-type-prop so we can test YJIT without type propagation

* Fix typo in command line option

* Leave just two test workflows enable for YJIT
2021-11-18 10:44:31 -05:00
Nobuyoshi Nakada e2b78440ba
Throttle GitHub Actions [ci skip]
As GitHub Actions are choking a lot lately, throttle the checks
down to the latest commit only per branches.
2021-11-18 22:54:57 +09:00
Nobuyoshi Nakada 2efbb35a8f
Remove macOS CIs [ci skip] 2021-11-18 17:39:28 +09:00
Maxime Chevalier-Boisvert 0fecf1b37e
Add Aaron Patterson (@tenderlove) to YJIT code owners (#5119) 2021-11-15 13:59:43 -05:00
Kazuhiro NISHIYAMA e73197dff5
Update vcvars on windows-2022 [ci skip]
875a056af0
d6a789cbef (diff-a1f67f5c4a583bf90c239743379ad9473fbf1fa9d11c5cb7739c8012404dcc7aR229)
2021-11-12 09:56:24 +09:00
Nobuyoshi Nakada 850912b6e0
Install pkg-config on 32-bit Ubuntu [ci skip] 2021-11-10 17:47:12 +09:00
Nobuyoshi Nakada 5a3b2e6141
Needs `$` in `make` command line to be escaped 2021-11-09 16:21:54 +09:00
Nobuyoshi Nakada 395738e8a5
Separate TestReadline#test_interrupt_in_other_thread
This method is already known to fail on Travis-CI arm32-linux.
2021-11-08 18:33:41 +09:00
Nobuyoshi Nakada a64f7e9c00
Try 32bit environment 2021-11-08 18:04:52 +09:00
Nobuyoshi Nakada e0a5c3d2b7
[MinGW] Set job names 2021-11-07 20:46:26 +09:00
Nobuyoshi Nakada 8dc2fce2be
[MinGW] Highlight where groups 2021-11-07 20:46:26 +09:00
Nobuyoshi Nakada 7068255b0c
[MinGW] Run in sh 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada acd82cc31a
[MinGW] Run test-spec 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada 5ebda74ae1
[MinGW] Pass -j option via environment variables 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada 6295e348a9
[MinGW] Clear BUNDLER_VERSION unconditinally 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada dc4dd96b02
[MinGW] Remove unnecessary encoding settings 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada 8acb2a9b40
[MinGW] Use autogen 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada ec032e86fa
[MinGW] Clear prefix and move the directory to DESTDIR
Also the destination will be created at the installation.
2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada ba0e3ea130
[MSWin] Pass TESTOPTS via RUBY_TESTOPTS 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada 30583bc947
[MSWin] Split nmake step
The workflow output grouping seems effective even in the middle of
lines.
2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada 5eb54c495f [MinGW] Set job env vars at once 2021-11-07 20:39:16 +09:00
Nobuyoshi Nakada b93a5f96c8
bundled_gems: Pull before new commit [ci skip] 2021-11-01 12:50:23 +09:00
Nobuyoshi Nakada 27220b2fe4
Skip CodeQL if only document files changed [ci skip] 2021-10-29 11:04:58 +09:00
Nobuyoshi Nakada 92ad520ad0 Merge macOS CIs to reduce concurrency
On GitHub Actions, the macOS runners seem much more expensive than
Ubuntu, and its limit is the most significant bottlenecks for our
CIs.  As the "check" tasks usually finish 3 or 4 times faster than
"test-bundler-parallel", it will be balanced by running all three
"check" tasks sequentially.
2021-10-29 10:57:02 +09:00
Nobuyoshi Nakada 96648c5093
Mitigate the timeout of tests [ci skip]
* The worker timeouts seem working for test-all.
* The bundled gems have increased.
2021-10-29 10:32:52 +09:00
Nobuyoshi Nakada 0a9cbe8562
Skip tests if only document files changed 2021-10-29 00:22:26 +09:00
卜部昌平 b49ec78fd0 more on eliminating $make 2021-10-26 09:05:46 +09:00
卜部昌平 b682f76339 GNUMAKEFLAGS is too new for mac
It is relatively well known that mac does not update its command line
tools, and make is no exception.  They ship GNU make 3.x, which didn't
yet implemented GNUMAKEFLAGS.

Resort to MAKEFLAGS there.
2021-10-26 09:05:46 +09:00
卜部昌平 748688a63d .github: use GNUMAKEFLAGS instead of JOBS
A bit readable to me.
See also https://github.com/ruby/ruby/pull/4880
2021-10-26 09:05:46 +09:00
Maxime Chevalier-Boisvert 10fe8495cd Update YJIT code owners. Revert accidental commit. 2021-10-25 14:53:22 -04:00
Maxime Chevalier-Boisvert cf52a2c9ba
Add code owners for YJIT sources
Code owners are automatically tagged as reviewers on pull requests
2021-10-25 14:28:39 -04:00
Nobuyoshi Nakada 1ea5325360
Reduce YJIT runs on Ubuntu [ci skip] 2021-10-24 19:35:29 +09:00
Nobuyoshi Nakada fe77a03392
Use `${{}}` for if statement 2021-10-24 19:35:28 +09:00
Nobuyoshi Nakada aee4940d5e
Reduce YJIT runs on macOS [ci skip]
MacOs concurrency on GitHub Actions is limited, and the
performance is relatively poor.
2021-10-22 17:14:00 +09:00
Alan Wu 8a9a2d0049 Move test_yjit_asm.sh into misc
Since conventionally scripts don't live at the top level of the repo.
2021-10-20 18:19:43 -04:00
Alan Wu de0af4faad Revert "Disable YJIT while running MJIT tests (#62)"
This reverts commit 60f3f25cc4.
We don't need to pass --disable-yjit when running MJIT tests anymore
because we are off by default.
2021-10-20 18:19:43 -04:00
Alan Wu 63faab3c36 Minimize diff in existing workflow files 2021-10-20 18:19:43 -04:00
Alan Wu 5d2e5218f6 Use env var to turn on YJIT for test-bundled-gems
tool/test-bundled-gems.rb use sub processes for testing bundled gems and
doesn't support RUN_OPTS. We weren't enabling YJIT for these tests.
Use an include config with RUBY_YJIT_ENABLE to turn on YJIT for these
tests.

Note that we only test with the default call threshold in this setup,
which is the same as before YJIT was off by defauft. The
--yjit-call-threshold command line was never passed to the tests.
2021-10-20 18:19:43 -04:00
Alan Wu ec4a79a746 Remove YJIT CI configs for tests make check runs
"make check" runs "make test-spec" and "make test-all", so they don't
need to be individual elements of the matrix.
2021-10-20 18:19:43 -04:00
Alan Wu 413397b91e Turn on YJIT for repeat-count=2 runs through env var
It wasn't on at all before... Since it's a snowflake "include" matrix
element, might as well test the env var with it.
2021-10-20 18:19:43 -04:00
Alan Wu 27661ee8a3 Turn on YJIT in macOS workflow
It wasn't on at all and the printout of RUBY_DESCRIPTION at the end of
`make check` wasn't saying +YJIT.
2021-10-20 18:19:43 -04:00
Alan Wu 34f1595405 Enable leaked global tests in YJIT workflows 2021-10-20 18:19:42 -04:00
Alan Wu 99facbc070 Correct workflow name for YJIT Ubuntu 2021-10-20 18:19:42 -04:00
Noah Gibbs 4705db6a37 Try turning off test-bundler-parallel to see if that fixes all the build errors 2021-10-20 18:19:42 -04:00
Noah Gibbs 21e58acef3 Don't enable YJIT by default. More tests on both Ubuntu and MacOS.
Add RUBY_YJIT_ENABLE env var and YJIT_FORCE_ENABLE compile-time constant.
Rename YJIT_STATS to RUBY_YJIT_STATS.
2021-10-20 18:19:42 -04:00
Alan Wu b242ea87da Re-enable leaked global check
YJIT should be able to pass this check now.
2021-10-20 18:19:42 -04:00
Maxime Chevalier-Boisvert 7030cae969 Try running with more YJIT options in CI to surface more bugs 2021-10-20 18:19:36 -04:00
Aaron Patterson 9f46e6e64b Disable YJIT while running MJIT tests (#62)
Two JITs running at once may result in strange interactions.  Lets
disable YJIT while running the MJIT tests.
2021-10-20 18:19:35 -04:00
Maxime Chevalier-Boisvert eaf039af98 Create GitHub workflow to run ASM tests (#8)
* Create GitHub workflow to run ASM tests

* Specify path

* Attempt #3

* Set bash flags to print commands, stop on first error

* Remove clear command from test_asm.sh

* Use clang
2021-10-20 18:19:34 -04:00
Maxime Chevalier-Boisvert ef5cfcae0d Delete codeql-analysis-2.yml 2021-10-20 18:19:34 -04:00
Maxime Chevalier-Boisvert 852ffe2627 Create codeql-analysis-2.yml 2021-10-20 18:19:34 -04:00
Alan Wu 40b3290966 Use autogen.sh in YJIT's CI setup
See d825e34962
2021-10-20 18:19:33 -04:00
Maxime Chevalier-Boisvert e56bd95ca0 Rename first call => threshold one 2021-10-20 18:19:32 -04:00
Alan Wu 784ef4cbbd Add a CI check for --yjit-call-threshold=1
Mostly copied from mjit.yml. Thank you Kokubun-san!
2021-10-20 18:19:32 -04:00