summaryrefslogtreecommitdiff
path: root/.github/workflows/yjit-macos.yml
AgeCommit message (Collapse)Author
2025-12-02Bump actions/checkout from 6.0.0 to 6.0.1dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v6...v6.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2025-11-27Bump actions/checkout from 5.0.1 to 6.0.0dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.1 to 6.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v5.0.1...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17Bump actions/checkout from 5.0.0 to 5.0.1dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v5...v5.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30CI: Fail the dump crash log step for visual reminderAlan Wu
I forgot that this step existed and thought crash reporting wasn't working when they were simply moved to a different step. Failing these should give a nice visual hint.
2025-09-19Make it easier to reproduce commands from CI (#14609)Randy Stauner
* Comment on not auto-requesting reviews for workflow files * Make it easier to reproduce matrix test_task commands from CI Expand the interpolated command so that it is easier to see exactly what command was run.
2025-09-17GitHub CI: JITs: Dump RUBY_CRASH_REPORT on failureAlan Wu
We sometimes see silent crashes on CI such as <https://github.com/ruby/ruby/actions/runs/17661854762/job/50196469793>. The default of dumping to stderr could be interacting poorly with the parallel workers, so let's use RUBY_CRASH_REPORT to hopefully get more information.
2025-09-09Bump actions/checkout from 4 to 5dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08ZJIT, YJIT: Make the workflow names consistent with file names (#14462)Takashi Kokubun
ZJIT, YJIT: Make the workflow names consistent with file names
2025-08-14Do not skip CI when it mentions "document" (#14232)Takashi Kokubun
2025-06-27Use https://github.com/ruby/power_assert/pull/58Hiroshi SHIBATA
2025-06-26typeprof, rbs and repl_type_completor are working with HEAD nowHiroshi SHIBATA
2025-06-25Simplify Set#inspect outputJeremy Evans
As Set is now a core collection class, it should have special inspect output. Ideally, inspect output should be suitable to eval, similar to array and hash (assuming the elements are also suitable to eval): set = Set[1, 2, 3] eval(set.inspect) == set # should be true The simplest way to do this is to use the Set[] syntax. This deliberately does not use any subclass name in the output, similar to array and hash. It is more important that users know they are dealing with a set than which subclass: Class.new(Set)[] # this does: Set[] # not: #<Class:0x00000c21c78699e0>[] This inspect change breaks the power_assert bundled gem tests, so add power_assert to TEST_BUNDLED_GEMS_ALLOW_FAILURES in the workflows. Implements [Feature #21389]
2025-06-06CI: Fix duplicate timeoutsNobuyoshi Nakada
2025-06-06CI: Fix redirection errorsNobuyoshi Nakada
2025-06-06CI: Timeout launchable setup in 3minNobuyoshi Nakada
2025-06-06CI: Create report files only when Launchable setup succeededNobuyoshi Nakada
2025-05-21YJIT: ZJIT: CI: Smoke test for --[y,z]jit-dump-disasmAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/13376
2025-04-26Implement Set as a core classJeremy Evans
Set has been an autoloaded standard library since Ruby 3.2. The standard library Set is less efficient than it could be, as it uses Hash for storage, which stores unnecessary values for each key. Implementation details: * Core Set uses a modified version of `st_table`, named `set_table`. than `s/st_/set_/`, the main difference is that the stored records do not have values, making them 1/3 smaller. `st_table_entry` stores `hash`, `key`, and `record` (value), while `set_table_entry` only stores `hash` and `key`. This results in large sets using ~33% less memory compared to stdlib Set. For small sets, core Set uses 12% more memory (160 byte object slot and 64 malloc bytes, while stdlib set uses 40 for Set and 160 for Hash). More memory is used because the set_table is embedded and 72 bytes in the object slot are currently wasted. Hopefully we can make this more efficient and have it stored in an 80 byte object slot in the future. * All methods are implemented as cfuncs, except the pretty_print methods, which were moved to `lib/pp.rb` (which is where the pretty_print methods for other core classes are defined). As is typical for core classes, internal calls call C functions and not Ruby methods. For example, to check if something is a Set, `rb_obj_is_kind_of` is used, instead of calling `is_a?(Set)` on the related object. * Almost all methods use the same algorithm that the pure-Ruby implementation used. The exception is when calling `Set#divide` with a block with 2-arity. The pure-Ruby method used tsort to implement this. I developed an algorithm that only allocates a single intermediate hash and does not need tsort. * The `flatten_merge` protected method is no longer necessary, so it is not implemented (it could be). * Similar to Hash/Array, subclasses of Set are no longer reflected in `inspect` output. * RDoc from stdlib Set was moved to core Set, with minor updates. This includes a comprehensive benchmark suite for all public Set methods. As you would expect, the native version is faster in the vast majority of cases, and multiple times faster in many cases. There are a few cases where it is significantly slower: * Set.new with no arguments (~1.6x) * Set#compare_by_identity for small sets (~1.3x) * Set#clone for small sets (~1.5x) * Set#dup for small sets (~1.7x) These are slower as Set does not currently use the AR table optimization that Hash does, so a new set_table is initialized for each call. I'm not sure it's worth the complexity to have an AR table-like optimization for small sets (for hashes it makes sense, as small hashes are used everywhere in Ruby). The rbs and repl_type_completor bundled gems will need updates to support core Set. The pull request marks them as allowed failures. This passes all set tests with no changes. The following specs needed modification: * Modifying frozen set error message (changed for the better) * `Set#divide` when passed a 2-arity block no longer yields the same object as both the first and second argument (this seems like an issue with the previous implementation). * Set-like objects that override `is_a?` such that `is_a?(Set)` return `true` are no longer treated as Set instances. * `Set.allocate.hash` is no longer the same as `nil.hash` * `Set#join` no longer calls `Set#to_a` (it calls the underlying C function). * `Set#flatten_merge` protected method is not implemented. Previously, `set.rb` added a `SortedSet` autoload, which loads `set/sorted_set.rb`. This replaces the `Set` autoload in `prelude.rb` with a `SortedSet` autoload, but I recommend removing it and `set/sorted_set.rb`. This moves `test/set/test_set.rb` to `test/ruby/test_set.rb`, reflecting that switch to a core class. This does not move the spec files, as I'm not sure how they should be handled. Internally, this uses the st_* types and functions as much as possible, and only adds set_* types and functions as needed. The underlying set_table implementation is stored in st.c, but there is no public C-API for it, nor is there one planned, in order to keep the ability to change the internals going forward. For internal uses of st_table with Qtrue values, those can probably be replaced with set_table. To do that, include internal/set_table.h. To handle symbol visibility (rb_ prefix), internal/set_table.h uses the same macro approach that include/ruby/st.h uses. The Set class (rb_cSet) and all methods are defined in set.c. There isn't currently a C-API for the Set class, though C-API functions can be added as needed going forward. Implements [Feature #21216] Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Co-authored-by: Oliver Nutter <mrnoname1000@riseup.net>
2025-04-18Resurrect concurrency in JIT workflowsTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/13131
2025-04-18Add `result` CI job to enable auto-merge ↵Takashi Kokubun
(https://github.com/Shopify/zjit/pull/12) * Add `result` CI job to enable auto-merge * Avoid triggering duplicated jobs on PRs * Drop cancel-in-progress We don't run as many jobs as ruby/ruby CI. We shouldn't need this here. * Fix a typo * Drop the concurrency group too Similarly, we shouldn't need this in the Shopify/zjit repo Notes: Merged: https://github.com/ruby/ruby/pull/13131
2025-04-16Bump up to the latest versions of actionsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13119
2025-03-24Launchable: Fix CI scripts by adding backslashes (#12974)Naoto Ono
The following command doesn't work correctly since a backslash doesn't exist after `exec`. This PR fixes it. ``` if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then exec > >(tee launchable_stdout.log) \ 2> >(tee launchable_stderr.log) fi ``` Notes: Merged-By: ono-max <onoto1998@gmail.com>
2025-03-06Launchable: Send stdout and stderr (#12785)Naoto Ono
Currently, the Launchable team is developing a new feature to attach any logs. Attached log can be anything, such as system logs or stdout. Users can find these logs using any text search. Please note that this feature is a work in progress, so we can't use it yet. I'm going to attach stdout and stderr as attached logs because they will be useful for finding interpreter bugs. When running tests, we sometimes see interpreter itself crash, and the stack is output to stderr. When debugging the cause of the issue, this feature is useful. Notes: Merged-By: ono-max <onoto1998@gmail.com>
2024-12-09Enable more Launchable integration in bootstraptest and test-all (#12255)Naoto Ono
Notes: Merged-By: ono-max <onoto1998@gmail.com>
2024-10-07CI: Use full name of the label 'Documentation'Nobuyoshi Nakada
Since `github.event.pull_request.labels.*.name` is an object filter, the item to be searched in needs to be the same whole string, not a partial string. Notes: Merged: https://github.com/ruby/ruby/pull/11816
2024-09-29Bump actions/checkoutNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11723
2024-09-12Switch the default parser from parse.y to PrismKevin Newton
This commit switches the default parser to Prism. There are a couple of additional changes related to this that are a part of this as well to make this happen. * Switch the default parser in parse.h * Remove the Prism-specific workflow and add a parse.y-specific workflow to CI so that it continues to be tested * Update a few test exclusions since Prism has the correct behavior but parse.y doesn't per https://bugs.ruby-lang.org/issues/20504. * Skips a couple of tests on RBS which are failing because they are using RubyVM::AbstractSyntaxTree.of. Fixes [Feature #20564] Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-08-22Strictly checking pull-request authorHiroshi SHIBATA
2024-07-05Use macos-14 instead of macos-arm-ossHiroshi SHIBATA
Unfortunately, we can't use macos-arm-oss with enterprise account
2024-06-12Bump actions/checkout from 4.1.6 to 4.1.7dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7. - [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/a5ac7e51b41094c92402da3b24376905380afc29...692973e3d937129bcbf40652eb9f2f61becf3332) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-05-31YJIT: CI: Extend SYNTAX_SUGGEST_TIMEOUT for macOSAlan Wu
To make it the same as the Ubuntu job. To avoid timeout failures due to added compilation time in call-threshold=1 runs. See: https://github.com/ruby/ruby/actions/runs/9317760443/job/25648721990
2024-05-17Bump actions/checkout from 4.1.5 to 4.1.6dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.5 to 4.1.6. - [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/44c2b7a8a4ea60a981eaca3cf939b5f4305c123b...a5ac7e51b41094c92402da3b24376905380afc29) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09[DOC] Fix the pattern for man pagesNobuyoshi Nakada
2024-05-06Bump actions/checkout from 4.1.4 to 4.1.5dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.5. - [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/0ad4b8fadaa221de15dcec353f45205ec38ea70b...44c2b7a8a4ea60a981eaca3cf939b5f4305c123b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29YJIT: Pass options to ruby/spec with `-T` (#10599)Alan Wu
We recently found out that `make test-spec` wasn't testing with `--yjit-call-threshold=1` like the other test suites, and that we need to use `-T` to pass options to it.
2024-04-24Bump actions/checkout from 4.1.3 to 4.1.4dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4. - [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/1d96c772d19495a3b5c517cd2bc0cb401ea0529f...0ad4b8fadaa221de15dcec353f45205ec38ea70b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-21Bump actions/checkout from 4.1.2 to 4.1.3dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.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/9bb56186c3b09b4f86b1c65136769dd318469633...1d96c772d19495a3b5c517cd2bc0cb401ea0529f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08Skip even "Document" onlyNobuyoshi Nakada
2024-03-19Bump actions/checkout from 4.1.1 to 4.1.2dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [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/b4ffde65f46336ab88eb53be808477a3936bae11...9bb56186c3b09b4f86b1c65136769dd318469633) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-12Do not fail CI when Launchable failsTakashi Kokubun
It seems to randomly fail: ``` + launchable verify Organization: 'ruby' Workspace: 'ruby' Proxy: None Platform: 'macOS-12.7.3-x86_64-i386-64bit' Python version: '3.12.2' Java command: 'java' launchable version: '1.83.0' Authentication failed. Please set the LAUNCHABLE_TOKEN. If you intend to use tokenless authentication, kindly reach out to our support team for further assistance. ``` https://github.com/ruby/ruby/actions/runs/8253299142/job/22574800261 Such failures should not impact the CI result.
2024-03-12Expand Launchable into yjit-macos and yjit-ubuntuNaoto Ono
2024-03-11Pass `RUN_OPTS` in YJIT macos test (#10214)Nobuyoshi Nakada
`RUN_OPTS` environment variable is set but not passed to the test task, unlike yjit-ubuntu.yml.
2024-03-11Skip documentation changesNobuyoshi Nakada
Many contributors just include the word `documentation` in titles, but not utilize `[DOC]` tag or `Documentation` label.
2024-02-22Fallback more macos-arm-oss jobs to macos-14Takashi Kokubun
A follow-up on https://github.com/ruby/ruby/pull/10074
2024-02-22Fallback every macos-arm-oss usage to macos-14 (#10074)Takashi Kokubun
2024-02-22CI: Refactor a logic for skipped tests.Jun Aruga
* Make the make's TESTS argument update easily by updating TESTS env with added steps. * Use the `$(...)` rather than backquotes. See <https://www.shellcheck.net/wiki/SC2006>. * Use double-quotes for the make's argument `TESTS="$(...)"` to support space-separated skipped tests such as `skipped_tests: 'TestGem#test_.* TestMkmf.*'`. * Replace the `matrix.skipped_tests != ''` with `matrix.skipped_tests`. I think that these expressions are equivalent. See <https://docs.github.com/en/actions/learn-github-actions/expressions#functions> for details. > Type - Result > Null - ''
2024-02-16CI: Fix the no such file or directory error with the working directory.Jun Aruga
Fix the error with the working directory in the result job in some GitHub Actions YAML files. I hit this error on my forked repository below. https://github.com/junaruga/ruby/actions/runs/7921897724/job/21628462038?pr=2#step:2:11 ``` Error: An error occurred trying to start process '/bin/bash' with working directory '/Users/runner/work/ruby/ruby/build'. No such file or directory ```
2024-02-09Remove unavailable filters for merge_group eventKazuhiro NISHIYAMA
actionlint says: - "branches" filter is not available for merge_group event. it is only for push, pull_request, pull_request_target, workflow_run events [events] - "paths" filter is not available for merge_group event. it is only for push, pull_request, pull_request_target events [events] - "paths-ignore" filter is not available for merge_group event. it is only for push, pull_request, pull_request_target events [events]
2024-01-29Revert "Provisionally ignore panics that happen in these days often"Takashi Kokubun
This reverts commit e0f4c4e410a0e4c6cda67e9000696c8f1f01d8aa. We expect https://github.com/ruby/ruby/pull/9729 to address the failure.
2024-01-28Provisionally ignore panics that happen in these days often [ci skip]Nobuyoshi Nakada
``` ruby: YJIT has panicked. More info to follow... thread '<unnamed>' panicked at src/core.rs:2751:9: assertion `left == right` failed: each stub expects a particular iseq left: 0x7fc8d8e09850 right: 0x7fc8d2c2f3a0 stack backtrace: 0: rust_begin_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5 1: core::panicking::panic_fmt at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14 2: core::panicking::assert_failed_inner 3: core::panicking::assert_failed at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:279:5 4: yjit::core::branch_stub_hit_body at /home/runner/work/ruby/ruby/src/yjit/src/core.rs:2751:9 5: yjit::core::branch_stub_hit::{{closure}}::{{closure}} at /home/runner/work/ruby/ruby/src/yjit/src/core.rs:2696:36 6: yjit::stats::with_compile_time at /home/runner/work/ruby/ruby/src/yjit/src/stats.rs:979:15 7: yjit::core::branch_stub_hit::{{closure}} at /home/runner/work/ruby/ruby/src/yjit/src/core.rs:2696:13 8: std::panicking::try::do_call at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40 9: __rust_try 10: std::panicking::try at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19 11: std::panic::catch_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14 12: yjit::cruby::with_vm_lock at /home/runner/work/ruby/ruby/src/yjit/src/cruby.rs:647:21 13: yjit::core::branch_stub_hit at /home/runner/work/ruby/ruby/src/yjit/src/core.rs:2695:9 14: <unknown> ```