Skip to content

Move constants and add comments for stress copying #3265

Move constants and add comments for stress copying

Move constants and add comments for stress copying #3265

Workflow file for this run

name: Binding Tests
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
branches:
- master
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# Figure out binding PRs.
binding-refs:
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
uses: ./.github/workflows/pr-binding-refs.yml
with:
pull_request: ${{ github.event.pull_request.number }}
v8-binding-test:
runs-on: ubuntu-20.04
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout V8 Binding
uses: actions/checkout@v2
with:
repository: ${{ needs.binding-refs.outputs.v8_binding_repo }}
path: mmtk-v8
ref: ${{ needs.binding-refs.outputs.v8_binding_ref }}
- name: Use mmtk-core Rust toolchain for bindings
run: |
cp mmtk-core/rust-toolchain mmtk-v8/mmtk
- name: Overwrite MMTk core in V8 binding
run: |
rm -rf mmtk-v8/repos/*
mkdir -p mmtk-v8/repos/mmtk-core
cp -r mmtk-core/* mmtk-v8/repos/mmtk-core
- name: Setup
run: |
cd mmtk-v8
./.github/scripts/ci-setup.sh
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk/Cargo.toml
- name: Test
run: |
cd mmtk-v8
export RUST_BACKTRACE=1
export V8_ROOT=$GITHUB_WORKSPACE/v8_deps
.github/scripts/ci-test.sh
.github/scripts/ci-style.sh
openjdk-binding-test:
runs-on: ubuntu-22.04
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout OpenJDK Binding
uses: actions/checkout@v2
with:
repository: ${{ needs.binding-refs.outputs.openjdk_binding_repo }}
path: mmtk-openjdk
ref: ${{ needs.binding-refs.outputs.openjdk_binding_ref }}
- name: Use mmtk-core Rust toolchain for bindings
run: |
cp mmtk-core/rust-toolchain mmtk-openjdk/mmtk
- name: Setup
run: |
cd mmtk-openjdk
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk/Cargo.toml
- name: Overwrite MMTk core in openjdk binding
run: |
cp -r mmtk-core mmtk-openjdk/repos/
- name: Test
run: |
cd mmtk-openjdk
export RUST_BACKTRACE=1
./.github/scripts/ci-test.sh
./.github/scripts/ci-style.sh
jikesrvm-binding-test:
runs-on: ubuntu-22.04
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout JikesRVM Binding
uses: actions/checkout@v2
with:
repository: ${{ needs.binding-refs.outputs.jikesrvm_binding_repo }}
path: mmtk-jikesrvm
ref: ${{ needs.binding-refs.outputs.jikesrvm_binding_ref }}
- name: Use mmtk-core Rust toolchain for bindings
run: |
cp mmtk-core/rust-toolchain mmtk-jikesrvm/mmtk
- name: Setup
run: |
cd mmtk-jikesrvm
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk/Cargo.toml
- name: Overwrite MMTk core in JikesRVM binding
run: |
cp -r mmtk-core mmtk-jikesrvm/repos
- name: Test
run: |
cd mmtk-jikesrvm
export RUST_BACKTRACE=1
./.github/scripts/ci-test.sh
./.github/scripts/ci-style.sh
julia-binding-test:
runs-on: ubuntu-22.04
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout Julia Binding
uses: actions/checkout@v2
with:
repository: ${{ needs.binding-refs.outputs.julia_binding_repo }}
path: mmtk-julia
ref: ${{ needs.binding-refs.outputs.julia_binding_ref }}
- name: Use mmtk-core Rust toolchain for bindings
run: |
cp mmtk-core/rust-toolchain mmtk-julia/mmtk
- name: Setup
run: |
cd mmtk-julia
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk/Cargo.toml
- name: Overwrite MMTk core in Julia binding
run: |
mkdir -p mmtk-julia/repos/mmtk-core
cp -r mmtk-core/* mmtk-julia/repos/mmtk-core
- name: debug
run: |
ls mmtk-julia
ls mmtk-julia/repos
ls mmtk-julia/repos/mmtk-core
cat mmtk-julia/mmtk/Cargo.toml
- name: Test
run: |
cd mmtk-julia
export RUST_BACKTRACE=1
./.github/scripts/ci-test.sh
./.github/scripts/ci-style.sh
ruby-binding-test:
runs-on: ubuntu-22.04
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
strategy:
fail-fast: true
matrix:
debug-level: ["debug", "release"]
env:
DEBUG_LEVEL: ${{ matrix.debug-level }}
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v3
with:
path: mmtk-core
- name: Checkout MMTk Ruby binding
uses: actions/checkout@v3
with:
repository: ${{ needs.binding-refs.outputs.ruby_binding_repo }}
path: mmtk-ruby
ref: ${{ needs.binding-refs.outputs.ruby_binding_ref }}
- name: Checkout Ruby
uses: actions/checkout@v3
with:
repository: mmtk/ruby
path: ruby
ref: mmtk
- name: Override mmtk-core dependency for binding
run: ./.github/scripts/ci-replace-mmtk-dep.sh ../mmtk-ruby/mmtk/Cargo.toml --mmtk-core-path .
working-directory: mmtk-core
- name: Setup environment
run: ./.github/scripts/ci-setup.sh
working-directory: mmtk-ruby
- name: Build MMTk Ruby ${{ matrix.debug-level }}
run: ./.github/scripts/ci-build.sh
working-directory: mmtk-ruby
- name: Run bootstrap tests (btest)
run: ./.github/scripts/ci-btest.sh
working-directory: mmtk-ruby
- name: Run all tests (test-all)
run: ./.github/scripts/ci-test-all.sh
working-directory: mmtk-ruby