summaryrefslogtreecommitdiff
path: root/.github/workflows/yjit-ubuntu.yml
AgeCommit message (Collapse)Author
2022-04-27Rust YJITAlan Wu
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: https://github.com/Shopify/ruby/commit/1fd9573d8b4b65219f1c2407f30a0a60e537f8be 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> Notes: Merged: https://github.com/ruby/ruby/pull/5826
2022-03-24Bump actions/checkout from 2 to 3dependabot[bot]
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> Notes: Merged: https://github.com/ruby/ruby/pull/5704
2022-03-24Bump actions/cache from 2 to 3dependabot[bot]
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> Notes: Merged: https://github.com/ruby/ruby/pull/5705
2022-01-14Get rid of building main again when test-bundled-gemsNobuyoshi Nakada
2021-12-28Fix RBS test failures of taint/trust (#5364)Masataka Pocke Kuwabara
Notes: Merged-By: pocke <p.ck.t22@gmail.com>
2021-12-27Ignore failures taint/trust in RBS tentatively [ci skip]Nobuyoshi Nakada
2021-12-18Skip tests on pull requests labeled as DocumentationNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5293
2021-12-16[DOC] Skip tests if only documents change [ci skip]Nobuyoshi Nakada
Run only checks for source code. Currently, our CIs do almost nothing about the documents.
2021-12-02Cache downloaded filesNobuyoshi Nakada
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. Notes: Merged: https://github.com/ruby/ruby/pull/5201 Merged-By: nobu <nobu@ruby-lang.org>
2021-11-21Throttle pull-requests only [ci skip]Nobuyoshi Nakada
2021-11-18Add --yjit-no-type-prop so we can test YJIT without type propagation (#5135)Maxime Chevalier-Boisvert
* 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 Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2021-11-18Throttle GitHub Actions [ci skip]Nobuyoshi Nakada
As GitHub Actions are choking a lot lately, throttle the checks down to the latest commit only per branches.
2021-10-29Skip tests if only document files changedNobuyoshi Nakada
2021-10-26.github: use GNUMAKEFLAGS instead of JOBS卜部昌平
A bit readable to me. See also https://github.com/ruby/ruby/pull/4880 Notes: Merged: https://github.com/ruby/ruby/pull/5005
2021-10-24Reduce YJIT runs on Ubuntu [ci skip]Nobuyoshi Nakada
2021-10-24Use `${{}}` for if statementNobuyoshi Nakada
2021-10-20Use env var to turn on YJIT for test-bundled-gemsAlan Wu
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-20Remove YJIT CI configs for tests make check runsAlan Wu
"make check" runs "make test-spec" and "make test-all", so they don't need to be individual elements of the matrix.
2021-10-20Turn on YJIT for repeat-count=2 runs through env varAlan Wu
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-20Enable leaked global tests in YJIT workflowsAlan Wu
2021-10-20Correct workflow name for YJIT UbuntuAlan Wu
2021-10-20Try turning off test-bundler-parallel to see if that fixes all the build errorsNoah Gibbs
2021-10-20Don't enable YJIT by default. More tests on both Ubuntu and MacOS.Noah Gibbs
Add RUBY_YJIT_ENABLE env var and YJIT_FORCE_ENABLE compile-time constant. Rename YJIT_STATS to RUBY_YJIT_STATS.