467 Commits

Author SHA1 Message Date
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 included 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