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

934 Коммитов

Автор SHA1 Сообщение Дата
Naoto Ono 51e32523c2 Resolve a warning in `launchable record build` command 2024-02-29 09:57:30 +09:00
Takashi Kokubun c5b568bab6
Migrate auto_request_review back to CODEOWNERS (#10133) 2024-02-28 18:45:24 +00:00
Naoto Ono 459198999e Expand Launchable into ubuntu workflow 2024-02-26 13:20:29 +09:00
dependabot[bot] a1ca96e1fd Bump github/codeql-action from 3.24.4 to 3.24.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.4 to 3.24.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](e2e140ad14...47b3d888fe)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-25 18:47:18 -08:00
Naoto Ono 2c0cf6837c Launchable: Fix the warning of pip 2024-02-25 12:50:42 +09:00
Naoto Ono 3371936b6f Add Launchable into CI 2024-02-23 14:10:01 +01:00
Takashi Kokubun f403660805 Fallback more macos-arm-oss jobs to macos-14
A follow-up on https://github.com/ruby/ruby/pull/10074
2024-02-22 20:55:43 -08:00
dependabot[bot] 548151d1e9 Bump github/codeql-action from 3.24.3 to 3.24.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.3 to 3.24.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](379614612a...e2e140ad14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-22 19:34:55 -08:00
Takashi Kokubun cdca94208f
Fallback every macos-arm-oss usage to macos-14 (#10074) 2024-02-22 23:15:03 +00:00
Takashi Kokubun 2b0bc447e5 Remove unused matrix.configure from macos.yml 2024-02-22 14:32:52 -08:00
Jun Aruga 6478514502 CI: Refactor a logic for skipped tests.
* 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-22 12:05:54 +01:00
dependabot[bot] 7acc8bbea5 Bump ruby/setup-ruby from 1.171.0 to 1.172.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.171.0 to 1.172.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](22fdc77bf4...d4526a5553)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-21 18:51:30 -08:00
Jun Aruga bac692f508 CI: Fix the no such file or directory error with the working directory.
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-16 19:57:51 +01:00
Takashi Kokubun bc7266c5ce
Bump the required BASERUBY version to 3.0 (#9976) 2024-02-15 23:13:45 -08:00
Takashi Kokubun 785b7ee13d Rename the annocheck job
gcc-11 is not the point of this job.
2024-02-15 21:41:48 -08:00
Takashi Kokubun 0ae4d9c109
Let annocheck workflow run only test-annocheck (#9990)
The test of other tasks seems duplicated.
2024-02-15 21:36:38 -08:00
dependabot[bot] df8ae93756 Bump github/codeql-action from 3.24.1 to 3.24.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.1 to 3.24.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](e675ced7a7...379614612a)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-15 18:57:26 -08:00
Yusuke Endoh d9234ba87b Temporarily allow failures in some bundled gems 2024-02-15 18:42:31 +09:00
Benoit Daloze 95ec71efc5 Revert "CHECK_LEAKS is always enabled with 01459f1"
* This reverts commit cf8fb94295.
* CHECK_LEAKS is no longer always enabled.
2024-02-15 07:44:03 +09:00
Kevin Newton fc2c128e7e [PRISM] Set eval encoding based on string encoding 2024-02-14 13:24:43 -05:00
dependabot[bot] eea7ce55de Bump github/codeql-action from 3.24.0 to 3.24.1
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.0 to 3.24.1.
- [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/v3.24.0...e675ced7a7522a761fc9c8eb26682c8b27c42b2b)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-14 12:17:23 +09:00
Kevin Newton 5de3e3057a [PRISM] Add temporary test exclusions to get eval passing 2024-02-13 21:19:12 -05:00
Benoit Daloze b5327647c2 extract-gems before nmake in Visual Studio workflow
* BTW this workflow is the only one doing extract-extlibs before building.
  It seems building with Visual Studio and nmake has significant differences.
2024-02-13 12:11:34 +01:00
Benoit Daloze 9204416b7f Revert "Try `nmake install` before `nmake test-spec`"
This reverts commit d4a6c6521a.
2024-02-13 12:11:34 +01:00
Nobuyoshi Nakada 01d4d5b8b3
Remove duplicate path-ignore entries [ci skip] 2024-02-13 16:11:44 +09:00
Benoit Daloze d4a6c6521a Try `nmake install` before `nmake test-spec` 2024-02-12 14:31:34 +01:00
Kazuhiro NISHIYAMA 5e12b75716
Remove unavailable filters for merge_group event
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-02-09 17:52:17 +09:00
Hiroshi SHIBATA 9f1afefaa8 Now we can use ruby analysis with large runner 2024-02-08 11:28:39 +09:00
Nobuyoshi Nakada 9ebaf7a8ef Run CodeQL using macos-arm-oss only on ruby/ruby 2024-02-07 20:34:48 +09:00
Hiroshi SHIBATA e965c5a174 Keep cpp build with ubuntu-latest 2024-02-07 20:03:15 +09:00
Hiroshi SHIBATA 78898c53c7 Refer gmp to macOS build 2024-02-07 18:33:28 +09:00
Hiroshi SHIBATA 5d5d27a60d readline-ext is extracted bundled gems at Ruby 3.3 2024-02-07 18:33:28 +09:00
Hiroshi SHIBATA 42c3626940 The default ram size is 13GB at macos runner 2024-02-07 17:27:53 +09:00
Hiroshi SHIBATA 66d6695f7f Try to run with large runner 2024-02-07 17:27:53 +09:00
Hiroshi SHIBATA 8407044388 Update latest version of CodeQL 2024-02-07 17:27:53 +09:00
Kevin Newton ae13f85322 Add test-all to prism 2024-02-06 20:38:41 -05:00
dependabot[bot] 6219066702 Bump actions/upload-artifact from 4.3.0 to 4.3.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](26f96dfa69...5d5d22a312)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-05 18:56:15 -08:00
dependabot[bot] 3af47f14d4 Bump necojackarc/auto-request-review from 0.12.0 to 0.13.0
Bumps [necojackarc/auto-request-review](https://github.com/necojackarc/auto-request-review) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/necojackarc/auto-request-review/releases)
- [Commits](6a51cebffe...e89da1a8cd)

---
updated-dependencies:
- dependency-name: necojackarc/auto-request-review
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-04 19:32:14 -08:00
Nobuyoshi Nakada 3f37b4fe0c
Extend tests for ext/Setup 2024-02-04 17:09:45 +09:00
dependabot[bot] 7fd2c442e2 Bump ruby/setup-ruby from 1.170.0 to 1.171.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.170.0 to 1.171.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](bd03e04863...22fdc77bf4)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 18:39:13 -08:00
dependabot[bot] 2deb105a31 Bump ruby/setup-ruby from 1.169.0 to 1.170.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.169.0 to 1.170.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](5daca16544...bd03e04863)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 16:15:19 +09:00
Takashi Kokubun 1005b7d29f Revert "Provisionally ignore panics that happen in these days often"
This reverts commit e0f4c4e410.

We expect https://github.com/ruby/ruby/pull/9729 to address the failure.
2024-01-29 09:23:39 -08:00
Nobuyoshi Nakada e0f4c4e410
Provisionally ignore panics that happen in these days often [ci skip]
```
    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>
```
2024-01-28 12:46:07 +09:00
Nobuyoshi Nakada 3dde9c1b43
Extract continue-on-error condition to the matrix [ci skip] 2024-01-28 12:30:21 +09:00
Soutaro Matsumoto b822f9f6fc
Bundle rbs-3.4.3 (#9702)
* Bundle rbs-3.4.3
* Remove rbs from `TEST_BUNDLED_GEMS_ALLOW_FAILURES` list
* Add the failing tests to `rbs_skip_tests`
2024-01-26 08:47:29 +09:00
Jeremy Evans 2b9719ea30 Ignore --parser=prism failures until prism compiler fixed for recent optimizations 2024-01-24 19:42:41 -08:00
Jeremy Evans fb596499f7 Temporarily ignore bundled gems failures for rbs and typeprof on macos, similar to ubuntu
This should be reverted after rbs and typeprof are updated to handle
the changes for the optimizations.
2024-01-24 19:42:41 -08:00
Jeremy Evans 4f77d8d328 Do not use ruby2_keywords for ... argument forwarding
This allows ... argument forwarding to benefit from Allocationless
Anonymous Splat Forwarding, allowing the `f` call below to not
allocate an array or a hash.

```ruby
a = [1]
kw = {b: 2}

def c(a, b:)
end

def f(...)
  c(...)
end

f(*a, **kw)
```

This temporarily skips prism locals tests until prism is changed
to use * and ** for ..., instead of using ruby2_keywords.

Ignore failures in rbs bundled gems tests, since they fail due
to this change.
2024-01-24 18:25:55 -08:00
Jeremy Evans b8516d6d01 Add pushtoarray VM instruction
This instruction is similar to concattoarray, but it takes the
number of arguments to push to the array, removes that number
of arguments from the stack, and adds them to the array now at
the top of the stack.

This allows `f(*a, 1)` to allocate only a single array on the
caller side (which can be reused on the callee side in the case of
`def f(*a)`). Prior to this commit, `f(*a, 1)` would generate
3 arrays:

* a dupped by splatarray true
* 1 wrapped in array by newarray
* a dupped again by concatarray

Instructions Before for `a = []; f(*a, 1)`:

```
0000 newarray                               0                         (   1)[Li]
0002 setlocal_WC_0                          a@0
0004 putself
0005 getlocal_WC_0                          a@0
0007 splatarray                             true
0009 putobject_INT2FIX_1_
0010 newarray                               1
0012 concatarray
0013 opt_send_without_block                 <calldata!mid:f, argc:1, ARGS_SPLAT|FCALL>
0015 leave
```

Instructions After for `a = []; f(*a, 1)`:

```
0000 newarray                               0                         (   1)[Li]
0002 setlocal_WC_0                          a@0
0004 putself
0005 getlocal_WC_0                          a@0
0007 splatarray                             true
0009 putobject_INT2FIX_1_
0010 pushtoarray                            1
0012 opt_send_without_block                 <calldata!mid:f, argc:1, ARGS_SPLAT|ARGS_SPLAT_MUT|FCALL>
0014 leave
```

With these changes, method calls to Ruby methods should
implicitly allocate at most one array.

Ignore typeprof bundled gem failure due to unrecognized instruction.
2024-01-24 18:25:55 -08:00
dependabot[bot] c16aaf119a Bump actions/upload-artifact from 4.2.0 to 4.3.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](694cdabd8b...26f96dfa69)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 19:10:16 -08:00