summaryrefslogtreecommitdiff
path: root/.github/workflows/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-23CI: Abandon CAPI check on macos-15Nobuyoshi Nakada
`hashFiles` is very unstable on macOS runners.
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-10-02macos.yml: macOS 13 hosted runner image is closing downTakashi Kokubun
https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
2025-09-13Remove stale line [ci skip]Nobuyoshi Nakada
2025-09-12Matrix for extra checksNobuyoshi Nakada
2025-09-11Run CAPI check separatelyNobuyoshi Nakada
2025-09-11Check CAPI ext binary compatibilityNobuyoshi Nakada
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-08-29Extend timeout-minutes for macOS --repeat-count=2Takashi Kokubun
https://github.com/ruby/ruby/actions/runs/17308244022/job/49136485007 I'm not sure if it's stuck forever at the end or happens to take that much time around the end of it, but let me just try this first. If it doesn't work, something's wrong with --repeat-count=2 on test-all.
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-18Now irb is a bundled gem and needs rubygemsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13651
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-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-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-22Add `hello`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12427
2024-12-06We need to specify --with-opt-dir for jemalloc installation pathHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12273
2024-12-06Added -with-gmp build to macOSHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12273
2024-12-06Added jemalloc build to GitHub ActionsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12273
2024-11-05Try macos-15 buildHiroshi SHIBATA
https://github.com/actions/runner-images/issues/10686 Notes: Merged: https://github.com/ruby/ruby/pull/11996
2024-11-04macos-12 is deprecated and fails on MondaysTakashi Kokubun
https://github.com/actions/runner-images/issues/10721
2024-10-23CI: Test with gcc-14 on macOSNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11928
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-09-08Try to run gorubyNobuyoshi Nakada
2024-08-30[macOS CI] Delete big SDKs to avoid exhausting disk spaceAlan Wu
Lately we've seen frequent failures on macOS GitHub Action runs due to disk space issues. Poking with du(1) revealed that /Library/Developer/CoreSimulator/Caches/dyld was growing to be multiple gigbytes. Deleting unused stuff is a known workaround to space issues. https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 Notes: Merged: https://github.com/ruby/ruby/pull/11488
2024-08-22Strictly checking pull-request authorHiroshi SHIBATA
2024-07-25Extend RUBY_TEST_TIMEOUT_SCALE on macos-14 and --repeat-count=2Yusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11242
2024-07-05Use macos-14 instead of macos-arm-ossHiroshi SHIBATA
Unfortunately, we can't use macos-arm-oss with enterprise account
2024-06-28Fix missing macOS version in Slack notificationsTakashi Kokubun
matrix.os is not set for some jobs.
2024-06-20Set RUBY_TEST_TIMEOUT_SCALE=3 for --repeat-count=2 testYusuke Endoh
With --repeat-count=2, timing-related test seems to fail frequently. I'm not sure of the cause, but I want to reduce the errors by setting RUBY_TEST_TIMEOUT_SCALE.
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-06-07Stop core upload on macOSYusuke Endoh
It was too big
2024-06-07Upload only from ruby/rubyYusuke Endoh
2024-06-07Fix the command-line arguments for tar compressYusuke Endoh
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-06-07Set `ulimit -c unlimited` for `make test-all` in macOSYusuke Endoh
2024-05-27Try to upload core file on macos GitHub ActionsYusuke Endoh
A core dump occurred, but failed to capture the core file. https://app.launchableinc.com/organizations/ruby/workspaces/ruby/data/test-sessions/2935062?tab=retried-tests Looks like a core file was not created. I am not unsure why, so make sure that the /cores directory is writable and try `ulimit` command.
2024-05-21Upload cores to AWS S3 (if any)Yusuke Endoh
2024-05-21Make sure that kern.coredump=1Yusuke Endoh
2024-05-20--with-gmp-dir option is for ruby itself, not extensionsNobuyoshi Nakada
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>