Skip to content

Commit 20e10a1

Browse files
committed
Merge remote-tracking branch 'upstream/master' into merge-from-upstream
2 parents 3121ffa + 28a572f commit 20e10a1

File tree

322 files changed

+6687
-3915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+6687
-3915
lines changed

.cirrus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ yjit_task:
9090
matrix:
9191
- CC: clang-12
9292
configure: --enable-yjit=dev
93+
rustup_init: --default-toolchain=1.58.1
9394
- CC: gcc-11
9495
configure: --enable-yjit
9596
id_script: id
@@ -107,7 +108,7 @@ yjit_task:
107108
install_rust_script:
108109
- sudo apt-get update -y
109110
- sudo apt-get install -y curl
110-
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
111+
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y $rustup_init"
111112
autogen_script: ./autogen.sh
112113
configure_script: >-
113114
source $HOME/.cargo/env && ./configure -C

.github/CODEOWNERS

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/auto_request_review.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
files:
2+
'yjit*': [team:yjit]
3+
'yjit/**/*': [team:yjit]
4+
'doc/yjit/*': [team:yjit]
5+
'bootstraptest/test_yjit*': [team:yjit]
6+
'test/ruby/test_yjit*': [team:yjit]
7+
'.github/workflows/yjit*': [team:yjit]
8+
options:
9+
ignore_draft: true

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
name: "CodeQL config for the Ruby language"
22

33
languages: cpp
4+
5+
# syntax_suggest consumes an hour.
6+
paths-ignore:
7+
- lib/syntax_suggest
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Request Review
2+
on:
3+
pull_request_target:
4+
types: [opened, ready_for_review, reopened]
5+
jobs:
6+
auto-request-review:
7+
name: Auto Request Review
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Request review based on files changes and/or groups the author belongs to
11+
uses: necojackarc/auto-request-review@e08cdffa277d50854744de3f76230260e61c67f4 # v0.7.0, checking sha
12+
with:
13+
# scope: public_repo
14+
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}

.github/workflows/compilers.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
# environment variables (plus the "echo $GITHUB_ENV" hack) is to reroute that
2323
# restriction.
2424
env:
25-
default_cc: clang-14
25+
default_cc: clang-15
2626
append_cc: ''
2727

2828
# -O1 is faster than -O3 in our tests... Majority of time are consumed trying
@@ -91,6 +91,7 @@ jobs:
9191
# https://sourceware.org/annobin/annobin.html/Test-pie.html
9292
TEST_ANNOCHECK_OPTS: "--skip-pie"
9393
check: true
94+
- { name: clang-16, env: { default_cc: clang-16 } }
9495
- { name: clang-15, env: { default_cc: clang-15 } }
9596
- { name: clang-14, env: { default_cc: clang-14 } }
9697
- { name: clang-13, env: { default_cc: clang-13 } }
@@ -214,7 +215,7 @@ jobs:
214215
name: ${{ matrix.entry.name }}
215216
runs-on: ubuntu-latest
216217
container:
217-
image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || matrix.entry.env.default_cc || 'clang-14' }}
218+
image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || matrix.entry.env.default_cc || 'clang-15' }}
218219
options: --user root
219220
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
220221
env: ${{ matrix.entry.env || matrix.env }}

.github/workflows/mingw.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
- name: set env
7171
run: |
7272
echo "GNUMAKEFLAGS=-j$((2 * NUMBER_OF_PROCESSORS))" >> $GITHUB_ENV
73-
echo "TEST_JOBS=$((15 * NUMBER_OF_PROCESSORS / 10))" >> $GITHUB_ENV
7473
7574
- name: where check
7675
run: |
@@ -116,7 +115,7 @@ jobs:
116115
make update-gems
117116
118117
- name: make all
119-
timeout-minutes: 20
118+
timeout-minutes: 30
120119
run: |
121120
make
122121
@@ -140,7 +139,7 @@ jobs:
140139
make ${{ StartsWith(matrix.test_task, 'test/') && matrix.test_task || 'test-all' }}
141140
env:
142141
RUBY_TESTOPTS: >-
143-
-j${{env.TEST_JOBS}} --retry --job-status=normal --show-skip --timeout-scale=1.5
142+
--retry --job-status=normal --show-skip --timeout-scale=1.5
144143
${{ matrix.test-all-opts }}
145144
BUNDLER_VERSION:
146145
if: ${{matrix.test_task == 'check' || matrix.test_task == 'test-all' || StartsWith(matrix.test_task, 'test/')}}

.github/workflows/mjit-bindgen.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
matrix:
2424
include:
2525
- task: mjit-bindgen
26-
configure: '--enable-yjit=dev_nodebug'
27-
- task: mjit-bindgen
28-
arch: i686
2926
fail-fast: false
3027
env:
3128
SETARCH: ${{ matrix.arch && format('setarch {0}', matrix.arch) }}
@@ -74,7 +71,7 @@ jobs:
7471
env:
7572
arch: ${{ matrix.arch }}
7673
run: >-
77-
$SETARCH ../src/configure -C --disable-install-doc --prefix=$(pwd)/install ${{ matrix.configure }}
74+
$SETARCH ../src/configure -C --disable-install-doc --prefix=$(pwd)/install --enable-yjit=dev_nodebug
7875
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
7976
- run: $SETARCH make incs
8077
- run: $SETARCH make

.github/workflows/ubuntu.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,33 @@ jobs:
2121
make:
2222
strategy:
2323
matrix:
24-
test_task: ["check", "test-syntax-suggest", "test-bundler-parallel", "test-bundled-gems"]
25-
os:
26-
- ubuntu-20.04
27-
configure: ["", "cppflags=-DRUBY_DEBUG"]
24+
# main variables included in the job name
25+
test_task: [check]
26+
configure: [cppflags=-DRUBY_DEBUG] # default to use more assertions
27+
arch: ['']
28+
# specify all jobs with `include` to avoid testing duplicated things
2829
include:
29-
- test_task: "check"
30-
configure: ""
30+
- test_task: check
31+
- test_task: check
3132
arch: i686
32-
- test_task: "check"
33+
configure: '' # test without -DRUBY_DEBUG as well
34+
- test_task: check
3335
configure: "--enable-shared --enable-load-relative"
34-
skipped_tests: "TestGem#test_.*_from_binstubs.*"
35-
continue-on-skipped_tests: true
36-
- test_task: "test-all TESTS=--repeat-count=2"
36+
- test_task: test-all TESTS=--repeat-count=2
37+
- test_task: test-syntax-suggest
38+
- test_task: test-bundler-parallel
39+
- test_task: test-bundled-gems
3740
fail-fast: false
3841
env:
3942
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
4043
RUBY_DEBUG: ci
4144
SETARCH: ${{ matrix.arch && format('setarch {0}', matrix.arch) }}
42-
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
45+
runs-on: ubuntu-20.04
4346
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
4447
steps:
4548
- run: mkdir build
4649
working-directory:
4750
- name: Set ENV
48-
env:
49-
configure: ${{matrix.configure}}
5051
run: |
5152
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
5253
- name: Install libraries
@@ -120,7 +121,7 @@ jobs:
120121
payload: |
121122
{
122123
"ci": "GitHub Actions",
123-
"env": "${{ matrix.os }} / ${{ matrix.test_task }}${{ matrix.configure }}",
124+
"env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}",
124125
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
125126
"commit": "${{ github.sha }}",
126127
"branch": "${{ github.ref }}".split('/').reverse()[0]

.github/workflows/windows.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,12 @@ jobs:
128128
YACC: win_bison
129129
- run: nmake test
130130
timeout-minutes: 5
131+
- run: nmake test-spec
132+
timeout-minutes: 10
131133
- run: nmake test-all
132134
env:
133135
RUBY_TESTOPTS: -j${{env.TEST_JOBS}} --job-status=normal
134136
timeout-minutes: 60
135-
continue-on-error: ${{ matrix.continue-on-error || false }}
136-
- run: nmake test-spec
137-
timeout-minutes: 10
138-
continue-on-error: ${{ matrix.continue-on-error || false }}
139137
- uses: k0kubun/[email protected]
140138
with:
141139
payload: |

0 commit comments

Comments
 (0)