Skip to content

Commit 5077413

Browse files
authored
Merge pull request ruby#30 from mmtk/merge-from-upstream
Merge from upstream
2 parents c7351fe + 731ce2e commit 5077413

File tree

264 files changed

+6760
-3174
lines changed

Some content is hidden

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

264 files changed

+6760
-3174
lines changed

.appveyor.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ skip_commits:
1919
- '**/.document'
2020
environment:
2121
ruby_version: "24-%Platform%"
22-
zlib_version: "1.2.12"
2322
matrix:
23+
# Test only the oldest supported version because AppVeyor is unstable, its concurrency
24+
# is limited, and compatibility issues that happen only in newer versions are rare.
25+
# You may test some other stuff on GitHub Actions instead.
2426
- build: vs
2527
vs: 120
26-
ssl: OpenSSL
27-
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
28-
GEMS_FOR_TEST: ""
29-
- build: vs
30-
vs: 140
3128
ssl: OpenSSL-v111
3229
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
3330
GEMS_FOR_TEST: ""
@@ -49,7 +46,7 @@ for:
4946
- git pull -q
5047
- .\bootstrap-vcpkg.bat
5148
- cd %APPVEYOR_BUILD_FOLDER%
52-
- vcpkg --triplet %Platform%-windows install libffi libyaml readline zlib
49+
- vcpkg --triplet %Platform%-windows install --x-use-aria2 libffi libyaml readline zlib
5350
- CALL SET vcvars=%%^VS%VS%COMNTOOLS^%%..\..\VC\vcvarsall.bat
5451
- SET vcvars
5552
- '"%vcvars%" %Platform:x64=amd64%'
@@ -69,9 +66,6 @@ for:
6966
- mkdir \usr\local\bin
7067
- mkdir \usr\local\include
7168
- mkdir \usr\local\lib
72-
- SET ZLIB_ZIP=.downloaded-cache\zlib%zlib_version:.=%.zip
73-
- if not exist %ZLIB_ZIP% curl -fsSL -o %ZLIB_ZIP% --retry 10 https://zlib.net/zlib%zlib_version:.=%.zip
74-
- 7z x -aos -o%APPVEYOR_BUILD_FOLDER%\ext\zlib %ZLIB_ZIP%
7569
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
7670
- for %%I in (c:\Tools\vcpkg\installed\%Platform%-windows\bin\*.dll) do (
7771
if not %%~nI == readline mklink \usr\local\bin\%%~nxI %%I
@@ -124,7 +118,7 @@ notifications:
124118
{{^isPullRequest}}
125119
{
126120
"ci": "AppVeyor CI",
127-
"env": "Visual Studio 2013 / 2015",
121+
"env": "Visual Studio 2013",
128122
"url": "{{buildUrl}}",
129123
"commit": "{{commitId}}",
130124
"branch": "{{branch}}"

.cirrus.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ task:
3939
# the `make` environment variable used in compilers.yml causes some rubygems
4040
# tests to fail.
4141
# https://github.com/rubygems/rubygems/issues/4921
42-
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> $CIRRUS_ENV
43-
print_env_script:
44-
- echo "GNUMAKEFLAGS=$GNUMAKEFLAGS"
42+
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV"
43+
- cat "$CIRRUS_ENV"
4544
# Arm containers are executed in AWS's EKS, and it's not yet supporting IPv6
4645
# See https://github.com/aws/containers-roadmap/issues/835
4746
disable_ipv6_script: sudo ./tool/disable_ipv6.sh
@@ -99,9 +98,9 @@ yjit_task:
9998
# the `make` environment variable used in compilers.yml causes some rubygems
10099
# tests to fail.
101100
# https://github.com/rubygems/rubygems/issues/4921
102-
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> $CIRRUS_ENV
103-
print_env_script:
104-
- echo "GNUMAKEFLAGS=$GNUMAKEFLAGS"
101+
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV"
102+
- echo RUST_BACKTRACE=1 >> "$CIRRUS_ENV"
103+
- cat "$CIRRUS_ENV"
105104
# Arm containers are executed in AWS's EKS, and it's not yet supporting IPv6
106105
# See https://github.com/aws/containers-roadmap/issues/835
107106
disable_ipv6_script: sudo ./tool/disable_ipv6.sh
@@ -124,9 +123,9 @@ yjit_task:
124123
else
125124
echo "only running bindgen on clang image"
126125
fi
127-
boot_miniruby_script: RUST_BACKTRACE=1 ./miniruby --yjit-call-threshold=1 -e0
128-
test_dump_insns_script: RUST_BACKTRACE=1 ./miniruby --yjit-call-threshold=1 --yjit-dump-insns -e0
129-
output_stats_script: RUST_BACKTRACE=1 ./miniruby --yjit-call-threshold=1 --yjit-stats -e0
126+
boot_miniruby_script: ./miniruby --yjit-call-threshold=1 -e0
127+
test_dump_insns_script: ./miniruby --yjit-call-threshold=1 --yjit-dump-insns -e0
128+
output_stats_script: ./miniruby --yjit-call-threshold=1 --yjit-stats -e0
130129
full_build_script: source $HOME/.cargo/env && make
131130
cargo_test_script: source $HOME/.cargo/env && cd yjit && cargo test
132131
make_test_script: source $HOME/.cargo/env && make test RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx"

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ updates:
44
directory: '/'
55
schedule:
66
interval: 'weekly'
7+
ignore:
8+
# It doesn't update the version comment for us
9+
- dependency-name: 'necojackarc/auto-request-review'

.github/workflows/auto_request_review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- 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
11+
uses: necojackarc/auto-request-review@b5e81876454003a4ccb9b89cb205c67d77d7035b # v0.8.0, checking sha
1212
with:
1313
# scope: public_repo
1414
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}

.github/workflows/baseruby.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ on:
66
- 'doc/**'
77
- '**.md'
88
- '**.rdoc'
9+
- '**/.document'
10+
- '**.[1-8]'
11+
- '**.ronn'
912
pull_request:
1013
paths-ignore:
1114
- 'doc/**'
1215
- '**.md'
1316
- '**.rdoc'
17+
- '**/.document'
18+
- '**.[1-8]'
19+
- '**.ronn'
1420

1521
concurrency:
1622
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}

.github/workflows/bundled_gems.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 'gems/bundled_gems'
1212
schedule:
1313
- cron: '45 6 * * *'
14+
workflow_dispatch:
1415

1516
jobs:
1617
update:

.github/workflows/check_dependencies.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
- '**.md'
77
- '**.rdoc'
88
- '**/.document'
9+
- '**.[1-8]'
10+
- '**.ronn'
911
pull_request:
1012
paths-ignore:
1113
- 'doc/**'
1214
- '**.md'
1315
- '**.rdoc'
1416
- '**/.document'
17+
- '**.[1-8]'
18+
- '**.ronn'
1519

1620
concurrency:
1721
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ on:
77
- '**.md'
88
- '**.rdoc'
99
- '**/.document'
10+
- '**.[1-8]'
11+
- '**.ronn'
1012
pull_request:
1113
paths-ignore:
1214
- 'doc/**'
1315
- '**.md'
1416
- '**.rdoc'
1517
- '**/.document'
18+
- '**.[1-8]'
19+
- '**.ronn'
1620
schedule:
1721
- cron: '0 12 * * 4'
1822

@@ -25,7 +29,8 @@ jobs:
2529

2630
# CodeQL runs on ubuntu-latest and windows-latest
2731
runs-on: ubuntu-latest
28-
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
32+
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
33+
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') && github.event.head_commit.pusher.name != 'dependabot[bot]' }}
2934

3035
env:
3136
enable_install_doc: no

.github/workflows/compilers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ on:
77
- '**.md'
88
- '**.rdoc'
99
- '**/.document'
10+
- '**.[1-8]'
11+
- '**.ronn'
1012
pull_request:
1113
paths-ignore:
1214
- 'doc/**'
1315
- '**.md'
1416
- '**.rdoc'
1517
- '**/.document'
18+
- '**.[1-8]'
19+
- '**.ronn'
1620

1721
concurrency:
1822
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}

.github/workflows/macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
- '**.md'
77
- '**.rdoc'
88
- '**/.document'
9+
- '**.[1-8]'
10+
- '**.ronn'
911
pull_request:
1012
paths-ignore:
1113
- 'doc/**'
1214
- '**.md'
1315
- '**.rdoc'
1416
- '**/.document'
17+
- '**.[1-8]'
18+
- '**.ronn'
1519

1620
concurrency:
1721
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}

0 commit comments

Comments
 (0)