Skip to content

Commit

Permalink
Skip other tests. Just build JikesRVM.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Aug 10, 2023
1 parent 0e6b171 commit 8c340c6
Showing 1 changed file with 133 additions and 128 deletions.
261 changes: 133 additions & 128 deletions .github/workflows/perf-regression-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
- id: branch
# we cannot use env vars in action input (the deploy step). So put the env var to this step's outputs.
run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
# Just test if we can build JikesRVM
- name: Test Build
run: |
cd mmtk-jikesrvm/repos/jikesrvm
JAVA_HOME=/opt/jdk1.6.0_45/ PATH=/opt/apache-ant-1.9.16/bin/:/opt/jdk1.6.0_45/bin/:$PATH ./bin/buildit localhost BaseBaseNoGC
# run
- name: Performance Run
run: |
Expand All @@ -79,132 +84,132 @@ jobs:
publish_branch: gh-pages
keep_files: true

# OpenJDK
openjdk-perf-regression:
runs-on: [self-hosted, Linux, freq-scaling-off]
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout OpenJDK Binding
uses: actions/checkout@v2
with:
repository: mmtk/mmtk-openjdk
path: mmtk-openjdk
- name: Checkout OpenJDK
working-directory: mmtk-openjdk
run: |
./.github/scripts/ci-checkout.sh
# checkout perf-kit
- name: Checkout Perf Kit
uses: actions/checkout@v2
with:
repository: mmtk/ci-perf-kit
ref: "branch-0.6.9"
path: ci-perf-kit
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
# setup
- name: Overwrite MMTk core in openjdk binding
run: cp -r mmtk-core mmtk-openjdk/repos/
- name: Setup Rust Toolchain
run: echo "RUSTUP_TOOLCHAIN=`cat mmtk-core/rust-toolchain`" >> $GITHUB_ENV
# cleanup previosu build
- name: Cleanup previous build
run: |
rm -rf mmtk-openjdk/repos/openjdk/scratch
rm -rf mmtk-openjdk/repos/openjdk/build
- name: Setup
run: |
./ci-perf-kit/scripts/history-run-setup.sh
mkdir -p ci-perf-kit/running/benchmarks/dacapo
cp /usr/share/benchmarks/dacapo/dacapo-2006-10-MR2.jar ci-perf-kit/running/benchmarks/dacapo
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk-openjdk/mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk-openjdk/mmtk/Cargo.toml
- id: branch
# we cannot use env vars in action input (the deploy step). So put the env var to this step's outputs.
run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
# run
- name: Performance Run
run: |
export RESULT_REPO=mmtk/ci-perf-result
export RESULT_REPO_BRANCH=${{ env.RESULT_REPO_BRANCH }}
export RESULT_REPO_ACCESS_TOKEN=${{ secrets.CI_ACCESS_TOKEN }}
export FROM_DATE=2020-07-10
./ci-perf-kit/scripts/openjdk-history-run.sh ./mmtk-openjdk ./reports/${{ steps.branch.outputs.branch_name }}
# deploy
- name: Deploy to Github Page
if: ${{ env.DEPLOY == 'true' }}
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.CI_ACCESS_TOKEN }}
external_repository: mmtk/ci-perf-result
publish_dir: ./reports
publish_branch: gh-pages
keep_files: true
# # OpenJDK
# openjdk-perf-regression:
# runs-on: [self-hosted, Linux, freq-scaling-off]
# steps:
# - name: Checkout MMTk Core
# uses: actions/checkout@v2
# with:
# path: mmtk-core
# - name: Checkout OpenJDK Binding
# uses: actions/checkout@v2
# with:
# repository: mmtk/mmtk-openjdk
# path: mmtk-openjdk
# - name: Checkout OpenJDK
# working-directory: mmtk-openjdk
# run: |
# ./.github/scripts/ci-checkout.sh
# # checkout perf-kit
# - name: Checkout Perf Kit
# uses: actions/checkout@v2
# with:
# repository: mmtk/ci-perf-kit
# ref: "branch-0.6.9"
# path: ci-perf-kit
# token: ${{ secrets.CI_ACCESS_TOKEN }}
# submodules: true
# # setup
# - name: Overwrite MMTk core in openjdk binding
# run: cp -r mmtk-core mmtk-openjdk/repos/
# - name: Setup Rust Toolchain
# run: echo "RUSTUP_TOOLCHAIN=`cat mmtk-core/rust-toolchain`" >> $GITHUB_ENV
# # cleanup previosu build
# - name: Cleanup previous build
# run: |
# rm -rf mmtk-openjdk/repos/openjdk/scratch
# rm -rf mmtk-openjdk/repos/openjdk/build
# - name: Setup
# run: |
# ./ci-perf-kit/scripts/history-run-setup.sh
# mkdir -p ci-perf-kit/running/benchmarks/dacapo
# cp /usr/share/benchmarks/dacapo/dacapo-2006-10-MR2.jar ci-perf-kit/running/benchmarks/dacapo
# sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk-openjdk/mmtk/Cargo.toml
# sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk-openjdk/mmtk/Cargo.toml
# - id: branch
# # we cannot use env vars in action input (the deploy step). So put the env var to this step's outputs.
# run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
# # run
# - name: Performance Run
# run: |
# export RESULT_REPO=mmtk/ci-perf-result
# export RESULT_REPO_BRANCH=${{ env.RESULT_REPO_BRANCH }}
# export RESULT_REPO_ACCESS_TOKEN=${{ secrets.CI_ACCESS_TOKEN }}
# export FROM_DATE=2020-07-10
# ./ci-perf-kit/scripts/openjdk-history-run.sh ./mmtk-openjdk ./reports/${{ steps.branch.outputs.branch_name }}
# # deploy
# - name: Deploy to Github Page
# if: ${{ env.DEPLOY == 'true' }}
# uses: peaceiris/actions-gh-pages@v3
# with:
# personal_token: ${{ secrets.CI_ACCESS_TOKEN }}
# external_repository: mmtk/ci-perf-result
# publish_dir: ./reports
# publish_branch: gh-pages
# keep_files: true

openjdk-mutator-perf:
runs-on: [self-hosted, Linux, freq-scaling-off]
steps:
- name: Checkout MMTk Core
uses: actions/checkout@v2
with:
path: mmtk-core
- name: Checkout OpenJDK Binding
uses: actions/checkout@v2
with:
repository: mmtk/mmtk-openjdk
path: mmtk-openjdk
- name: Checkout OpenJDK
working-directory: mmtk-openjdk
run: |
./.github/scripts/ci-checkout.sh
# checkout perf-kit
- name: Checkout Perf Kit
uses: actions/checkout@v2
with:
repository: mmtk/ci-perf-kit
ref: "branch-0.6.9"
path: ci-perf-kit
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
# setup
- name: Overwrite MMTk core in openjdk binding
run: cp -r mmtk-core mmtk-openjdk/repos/
- name: Setup Rust Toolchain
run: echo "RUSTUP_TOOLCHAIN=`cat mmtk-core/rust-toolchain`" >> $GITHUB_ENV
# cleanup previosu build
- name: Cleanup previous build
run: |
rm -rf mmtk-openjdk/repos/openjdk/scratch
rm -rf mmtk-openjdk/repos/openjdk/build
- id: branch
# we cannot use env vars in action input (the deploy step). So put the env var to this step's outputs.
run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
- name: Setup
run: |
./ci-perf-kit/scripts/history-run-setup.sh
mkdir -p ci-perf-kit/running/benchmarks/dacapo
cp /usr/share/benchmarks/dacapo/dacapo-2006-10-MR2.jar ci-perf-kit/running/benchmarks/dacapo
sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk-openjdk/mmtk/Cargo.toml
sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk-openjdk/mmtk/Cargo.toml
# run
- name: Performance Run
run: |
export RESULT_REPO=mmtk/ci-perf-result
export RESULT_REPO_BRANCH=${{ env.RESULT_REPO_BRANCH }}
export RESULT_REPO_ACCESS_TOKEN=${{ secrets.CI_ACCESS_TOKEN }}
export FROM_DATE=2020-08-03
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
./ci-perf-kit/scripts/mutator-history-run.sh ./mmtk-openjdk ./reports/${{ steps.branch.outputs.branch_name }}
# deploy
- name: Deploy to Github Page
if: ${{ env.DEPLOY == 'true' }}
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.CI_ACCESS_TOKEN }}
external_repository: mmtk/ci-perf-result
publish_dir: ./reports
publish_branch: gh-pages
keep_files: true
# openjdk-mutator-perf:
# runs-on: [self-hosted, Linux, freq-scaling-off]
# steps:
# - name: Checkout MMTk Core
# uses: actions/checkout@v2
# with:
# path: mmtk-core
# - name: Checkout OpenJDK Binding
# uses: actions/checkout@v2
# with:
# repository: mmtk/mmtk-openjdk
# path: mmtk-openjdk
# - name: Checkout OpenJDK
# working-directory: mmtk-openjdk
# run: |
# ./.github/scripts/ci-checkout.sh
# # checkout perf-kit
# - name: Checkout Perf Kit
# uses: actions/checkout@v2
# with:
# repository: mmtk/ci-perf-kit
# ref: "branch-0.6.9"
# path: ci-perf-kit
# token: ${{ secrets.CI_ACCESS_TOKEN }}
# submodules: true
# # setup
# - name: Overwrite MMTk core in openjdk binding
# run: cp -r mmtk-core mmtk-openjdk/repos/
# - name: Setup Rust Toolchain
# run: echo "RUSTUP_TOOLCHAIN=`cat mmtk-core/rust-toolchain`" >> $GITHUB_ENV
# # cleanup previosu build
# - name: Cleanup previous build
# run: |
# rm -rf mmtk-openjdk/repos/openjdk/scratch
# rm -rf mmtk-openjdk/repos/openjdk/build
# - id: branch
# # we cannot use env vars in action input (the deploy step). So put the env var to this step's outputs.
# run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
# - name: Setup
# run: |
# ./ci-perf-kit/scripts/history-run-setup.sh
# mkdir -p ci-perf-kit/running/benchmarks/dacapo
# cp /usr/share/benchmarks/dacapo/dacapo-2006-10-MR2.jar ci-perf-kit/running/benchmarks/dacapo
# sed -i 's/^mmtk[[:space:]]=/#ci:mmtk=/g' mmtk-openjdk/mmtk/Cargo.toml
# sed -i 's/^#[[:space:]]mmtk/mmtk/g' mmtk-openjdk/mmtk/Cargo.toml
# # run
# - name: Performance Run
# run: |
# export RESULT_REPO=mmtk/ci-perf-result
# export RESULT_REPO_BRANCH=${{ env.RESULT_REPO_BRANCH }}
# export RESULT_REPO_ACCESS_TOKEN=${{ secrets.CI_ACCESS_TOKEN }}
# export FROM_DATE=2020-08-03
# export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
# ./ci-perf-kit/scripts/mutator-history-run.sh ./mmtk-openjdk ./reports/${{ steps.branch.outputs.branch_name }}
# # deploy
# - name: Deploy to Github Page
# if: ${{ env.DEPLOY == 'true' }}
# uses: peaceiris/actions-gh-pages@v3
# with:
# personal_token: ${{ secrets.CI_ACCESS_TOKEN }}
# external_repository: mmtk/ci-perf-result
# publish_dir: ./reports
# publish_branch: gh-pages
# keep_files: true

0 comments on commit 8c340c6

Please sign in to comment.