Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into Ractor-Local-GC-v…
Browse files Browse the repository at this point in the history
…ersion-2
  • Loading branch information
rm155 committed Feb 12, 2024
2 parents 7750184 + 16b3907 commit 6275a26
Show file tree
Hide file tree
Showing 309 changed files with 8,106 additions and 6,182 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup/macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ runs:
- name: brew
shell: bash
run: |
brew install --quiet gmp libffi openssl@1.1 zlib autoconf automake libtool readline
brew install --quiet gmp libffi openssl@1.1 zlib autoconf automake libtool
- name: Set ENV
shell: bash
run: |
for lib in openssl@1.1 readline; do
for lib in openssl@1.1 gmp; do
CONFIGURE_ARGS="${CONFIGURE_ARGS:+$CONFIGURE_ARGS }--with-${lib%@*}-dir=$(brew --prefix $lib)"
done
echo CONFIGURE_ARGS="${CONFIGURE_ARGS}" >> $GITHUB_ENV
7 changes: 0 additions & 7 deletions .github/workflows/annocheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/baseruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/bundled_gems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ on:
- '.github/workflows/bundled_gems.yml'
- 'gems/bundled_gems'
merge_group:
branches: ['master']
paths:
- '.github/workflows/bundled_gems.yml'
- 'gems/bundled_gems'
schedule:
- cron: '45 6 * * *'
workflow_dispatch:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/check_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
32 changes: 20 additions & 12 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
if: >-
${{!(false
${{github.repository == 'ruby/ruby' &&
!(false
|| contains(github.event.head_commit.message, '[DOC]')
|| contains(github.event.pull_request.title, '[DOC]')
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
Expand All @@ -52,41 +53,48 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['cpp', 'ruby']
include:
- language: cpp
os: ubuntu-latest
# ruby analysis used large memory. We need to use a larger runner.
- language: ruby
os: macos-arm-oss

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install libraries
if: ${{ matrix.os == 'macos-arm-oss' }}
uses: ./.github/actions/setup/macos

- name: Install libraries
if : ${{ matrix.os == 'ubuntu-latest' }}
uses: ./.github/actions/setup/ubuntu

- uses: ./.github/actions/setup/directories

- name: Remove an obsolete rubygems vendored file
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo rm /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb

- name: Initialize CodeQL
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/autobuild@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
category: '/language:${{ matrix.language }}'
upload: False
output: sarif-results
ram: 8192
# CodeQL randomly hits `OutOfMemoryError "Java heap space"`.
# GitHub recommends running a larger runner to fix it, but we don't pay for it.
continue-on-error: true

- name: filter-sarif
uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0
uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0.1
with:
patterns: |
+**/*.rb
Expand All @@ -109,7 +117,7 @@ jobs:
continue-on-error: true

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
uses: github/codeql-action/upload-sarif@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
sarif_file: sarif-results/${{ matrix.language }}.sarif
continue-on-error: true
7 changes: 0 additions & 7 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ on:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ on:
- '.*.yml'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
38 changes: 10 additions & 28 deletions .github/workflows/prism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ on:
- '**.ronn'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**.md'
- '**.rdoc'
- '**/.document'
- '**.[1-8]'
- '**.ronn'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down Expand Up @@ -83,33 +75,23 @@ jobs:
- run: $SETARCH make

- name: make btest
- name: make test
run: |
make -s btest RUN_OPTS="$RUN_OPTS"
$SETARCH make -s test RUN_OPTS="$RUN_OPTS"
timeout-minutes: 30
env:
GNUMAKEFLAGS: ''
RUBY_TESTOPTS: '-v --tty=no'
RUN_OPTS: ${{ matrix.run_opts }}
continue-on-error: true

# - name: make test
# run: |
# $SETARCH make -s test RUN_OPTS="$RUN_OPTS"
# timeout-minutes: 30
# env:
# GNUMAKEFLAGS: ''
# RUBY_TESTOPTS: '-v --tty=no'
# RUN_OPTS: ${{ matrix.run_opts }}

# - name: make test-all
# run: |
# $SETARCH make -s test-all RUN_OPTS="$RUN_OPTS"
# timeout-minutes: 40
# env:
# GNUMAKEFLAGS: ''
# RUBY_TESTOPTS: '-q --tty=no'
# RUN_OPTS: ${{ matrix.run_opts }}
- name: make test-all
run: |
$SETARCH make -s test-all RUN_OPTS="$RUN_OPTS"
timeout-minutes: 40
env:
GNUMAKEFLAGS: ''
RUBY_TESTOPTS: '-q --tty=no --excludes-dir="../src/test/.excludes-prism" --exclude="test_ast.rb" --exclude="test_regexp.rb" --exclude="error_highlight/test_error_highlight.rb"'
RUN_OPTS: ${{ matrix.run_opts }}

# - name: make test-spec
# run: |
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/rjit-bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/rjit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ on:
- '**.ronn'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**.md'
- '**.rdoc'
- '**/.document'
- '**.[1-8]'
- '**.ronn'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/spec_guards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
- 'spec/**'
- '!spec/*.md'
merge_group:
paths:
- 'spec/**'
- '!spec/*.md'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ on:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ on:
- '**/.document'
- '.*.yml'
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down Expand Up @@ -191,6 +184,8 @@ jobs:
- run: nmake test
timeout-minutes: 5

- run: nmake install

- run: nmake test-spec
timeout-minutes: 10

Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/yjit-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ on:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/yjit-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ on:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
paths-ignore:
- 'doc/**'
- '**/man'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'

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

0 comments on commit 6275a26

Please sign in to comment.