misc,python: Run pre-commit run --all-files
This applies the automatical formatting to the .yaml files. Change-Id: I10d067ba65722aca8aaf64a62b42ae57de468e75
This commit is contained in:
13
.github/workflows/ci-tests.yaml
vendored
13
.github/workflows/ci-tests.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# This workflow runs after a pull-request has been approved by a reviewer.
|
||||
|
||||
name: CI Tests
|
||||
@@ -75,12 +76,12 @@ jobs:
|
||||
run: apt install -y jq
|
||||
|
||||
- name: Get directories for testlib-quick
|
||||
working-directory: "${{ github.workspace }}/tests"
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
id: dir-matrix
|
||||
run: echo "test-dirs-matrix=$(find gem5/* -type d -maxdepth 0 | jq -ncR '[inputs]')" >>$GITHUB_OUTPUT
|
||||
|
||||
- name: Get the build targets for testlib-quick-gem5-builds
|
||||
working-directory: "${{ github.workspace }}/tests"
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
id: build-matrix
|
||||
run: echo "build-matrix=$(./main.py list --build-targets -q | jq -ncR '[inputs]')" >>$GITHUB_OUTPUT
|
||||
|
||||
@@ -130,10 +131,7 @@ jobs:
|
||||
test-dir: ${{ fromJson(needs.testlib-quick-matrix.outputs.test-dirs-matrix) }}
|
||||
steps:
|
||||
- name: Clean runner
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
|
||||
# Checkout the repository then download the gem5.opt artifact.
|
||||
- uses: actions/checkout@v3
|
||||
@@ -165,7 +163,8 @@ jobs:
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ci-tests-run-${{ github.run_number }}-attempt-${{ github.run_attempt }}-testlib-quick-${{ steps.sanitize-test-dir.outputs.sanatized-test-dir }}-status-${{ steps.run-tests.outcome }}-output
|
||||
name: ci-tests-run-${{ github.run_number }}-attempt-${{ github.run_attempt }}-testlib-quick-${{ steps.sanitize-test-dir.outputs.sanatized-test-dir
|
||||
}}-status-${{ steps.run-tests.outcome }}-output
|
||||
path: tests/testing-results
|
||||
retention-days: 30
|
||||
|
||||
|
||||
11
.github/workflows/compiler-tests.yaml
vendored
11
.github/workflows/compiler-tests.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# This workflow runs all of the compiler tests
|
||||
|
||||
name: Compiler Tests
|
||||
@@ -5,7 +6,7 @@ name: Compiler Tests
|
||||
on:
|
||||
# Runs every Friday from 7AM UTC
|
||||
schedule:
|
||||
- cron: '00 7 * * 5'
|
||||
- cron: 00 7 * * 5
|
||||
# Allows us to manually start workflow for testing
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -15,7 +16,9 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image: [gcc-version-12, gcc-version-11, gcc-version-10, gcc-version-9, gcc-version-8, clang-version-16, clang-version-15, clang-version-14, clang-version-13, clang-version-12, clang-version-11, clang-version-10, clang-version-9, clang-version-8, clang-version-7, ubuntu-20.04_all-dependencies, ubuntu-22.04_all-dependencies, ubuntu-22.04_min-dependencies]
|
||||
image: [gcc-version-12, gcc-version-11, gcc-version-10, gcc-version-9, gcc-version-8, clang-version-16, clang-version-15, clang-version-14,
|
||||
clang-version-13, clang-version-12, clang-version-11, clang-version-10, clang-version-9, clang-version-8, clang-version-7, ubuntu-20.04_all-dependencies,
|
||||
ubuntu-22.04_all-dependencies, ubuntu-22.04_min-dependencies]
|
||||
opts: [.opt, .fast]
|
||||
runs-on: [self-hosted, linux, x64, build]
|
||||
timeout-minutes: 2880 # 48 hours
|
||||
@@ -35,7 +38,9 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
gem5-compilation: [ARM, ARM_MESI_Three_Level, ARM_MESI_Three_Level_HTM, ARM_MOESI_hammer, Garnet_standalone, GCN3_X86, MIPS, 'NULL', NULL_MESI_Two_Level, NULL_MOESI_CMP_directory, NULL_MOESI_CMP_token, NULL_MOESI_hammer, POWER, RISCV, SPARC, X86, X86_MI_example, X86_MOESI_AMD_Base, VEGA_X86, GCN3_X86]
|
||||
gem5-compilation: [ARM, ARM_MESI_Three_Level, ARM_MESI_Three_Level_HTM, ARM_MOESI_hammer, Garnet_standalone, GCN3_X86, MIPS, 'NULL', NULL_MESI_Two_Level,
|
||||
NULL_MOESI_CMP_directory, NULL_MOESI_CMP_token, NULL_MOESI_hammer, POWER, RISCV, SPARC, X86, X86_MI_example, X86_MOESI_AMD_Base, VEGA_X86,
|
||||
GCN3_X86]
|
||||
image: [gcc-version-12, clang-version-16]
|
||||
opts: [.opt]
|
||||
runs-on: [self-hosted, linux, x64, build]
|
||||
|
||||
30
.github/workflows/daily-tests.yaml
vendored
30
.github/workflows/daily-tests.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# This workflow runs all of the long tests within main.py, extra tests in nightly.sh, and unittests
|
||||
|
||||
name: Daily Tests
|
||||
@@ -5,7 +6,7 @@ name: Daily Tests
|
||||
on:
|
||||
# Runs every day from 7AM UTC
|
||||
schedule:
|
||||
- cron: '0 7 * * *'
|
||||
- cron: 0 7 * * *
|
||||
|
||||
jobs:
|
||||
name-artifacts:
|
||||
@@ -22,7 +23,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# NULL is in quotes since it is considered a keyword in yaml files
|
||||
image: [ALL, ALL_CHI, ARM, ALL_MSI, ALL_MESI_Two_Level, "NULL", NULL_MI_example, RISCV, VEGA_X86]
|
||||
image: [ALL, ALL_CHI, ARM, ALL_MSI, ALL_MESI_Two_Level, 'NULL', NULL_MI_example, RISCV, VEGA_X86]
|
||||
# this allows us to pass additional command line parameters
|
||||
# the default is to add -j $(nproc), but some images
|
||||
# require more specifications when built
|
||||
@@ -76,17 +77,15 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
test-type: [arm_boot_tests, fs, gpu, insttest_se, learning_gem5, m5threads_test_atomic, memory, multi_isa, replacement_policies, riscv_boot_tests, stdlib, x86_boot_tests]
|
||||
test-type: [arm_boot_tests, fs, gpu, insttest_se, learning_gem5, m5threads_test_atomic, memory, multi_isa, replacement_policies, riscv_boot_tests,
|
||||
stdlib, x86_boot_tests]
|
||||
runs-on: [self-hosted, linux, x64, run]
|
||||
container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest
|
||||
needs: [name-artifacts, build-gem5]
|
||||
timeout-minutes: 1440 # 24 hours for entire matrix to run
|
||||
steps:
|
||||
- name: Clean runner
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Scheduled workflows run on the default branch by default. We
|
||||
@@ -168,16 +167,14 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
test-type: [gem5-library-example-x86-ubuntu-run-ALL-x86_64-opt, gem5-library-example-riscv-ubuntu-run-ALL-x86_64-opt, lupv-example-ALL-x86_64-opt, gem5-library-example-arm-ubuntu-run-test-ALL-x86_64-opt, gem5-library-example-riscvmatched-hello-ALL-x86_64-opt]
|
||||
test-type: [gem5-library-example-x86-ubuntu-run-ALL-x86_64-opt, gem5-library-example-riscv-ubuntu-run-ALL-x86_64-opt, lupv-example-ALL-x86_64-opt,
|
||||
gem5-library-example-arm-ubuntu-run-test-ALL-x86_64-opt, gem5-library-example-riscvmatched-hello-ALL-x86_64-opt]
|
||||
container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest
|
||||
needs: [name-artifacts, build-gem5]
|
||||
timeout-minutes: 1440 # 24 hours
|
||||
steps:
|
||||
- name: Clean runner
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Scheduled workflows run on the default branch by default. We
|
||||
@@ -190,7 +187,8 @@ jobs:
|
||||
- run: chmod u+x build/ALL/gem5.opt
|
||||
- name: long ${{ matrix.test-type }} gem5_library_example_tests
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run --uid SuiteUID:tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py:test-${{ matrix.test-type }} --length=long --skip-build -vv
|
||||
run: ./main.py run --uid SuiteUID:tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py:test-${{ matrix.test-type }} --length=long
|
||||
--skip-build -vv
|
||||
- name: create zip of results
|
||||
if: success() || failure()
|
||||
run: |
|
||||
@@ -281,6 +279,8 @@ jobs:
|
||||
with:
|
||||
args: -q http://dist.gem5.org/dist/develop/test-progs/heterosync/gcn3/allSyncPrims-1kernel # Removed -N bc it wasn't available within actions, should be okay bc workspace is clean every time
|
||||
- name: Run allSyncPrims-1kernel sleepMutex test with GCN3_X86/gem5.opt (SE mode)
|
||||
run: ./build/GCN3_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c allSyncPrims-1kernel --options="sleepMutex 10 16 4"
|
||||
run: ./build/GCN3_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c allSyncPrims-1kernel --options="sleepMutex 10 16
|
||||
4"
|
||||
- name: Run allSyncPrims-1kernel lfTreeBarrUsing test with GCN3_X86/gem5.opt (SE mode)
|
||||
run: ./build/GCN3_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c allSyncPrims-1kernel --options="lfTreeBarrUniq 10 16 4"
|
||||
run: ./build/GCN3_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c allSyncPrims-1kernel --options="lfTreeBarrUniq
|
||||
10 16 4"
|
||||
|
||||
1
.github/workflows/docker-build.yaml
vendored
1
.github/workflows/docker-build.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: Docker images build and push
|
||||
|
||||
on:
|
||||
|
||||
3
.github/workflows/gpu-tests.yaml
vendored
3
.github/workflows/gpu-tests.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# This workflow runs all of the very-long tests within main.py
|
||||
|
||||
name: Weekly Tests
|
||||
@@ -5,7 +6,7 @@ name: Weekly Tests
|
||||
on:
|
||||
# Runs every Sunday from 7AM UTC
|
||||
schedule:
|
||||
- cron: '00 7 * * 6'
|
||||
- cron: 00 7 * * 6
|
||||
# Allows us to manually start workflow for testing
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
8
.github/workflows/utils.yaml
vendored
8
.github/workflows/utils.yaml
vendored
@@ -1,8 +1,9 @@
|
||||
---
|
||||
# This workflow file contains miscellaneous tasks to manage the repository.
|
||||
name: Utils for Repository
|
||||
on:
|
||||
schedule:
|
||||
- cron: '30 1 * * *'
|
||||
- cron: 30 1 * * *
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -13,7 +14,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/stale@v8.0.0
|
||||
with:
|
||||
close-issue-message: 'This issue is being closed because it has been inactive waiting for response for 30 days. If this is still an issue, please open a new issue and reference this one.'
|
||||
close-issue-message: This issue is being closed because it has been inactive waiting for response for 30 days. If this is still an issue,
|
||||
please open a new issue and reference this one.
|
||||
days-before-stale: 21
|
||||
days-before-close: 7
|
||||
any-of-labels: 'needs details'
|
||||
any-of-labels: needs details
|
||||
|
||||
8
.github/workflows/weekly-tests.yaml
vendored
8
.github/workflows/weekly-tests.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# This workflow runs all of the very-long tests within main.py
|
||||
|
||||
name: Weekly Tests
|
||||
@@ -5,7 +6,7 @@ name: Weekly Tests
|
||||
on:
|
||||
# Runs every Sunday from 7AM UTC
|
||||
schedule:
|
||||
- cron: '00 7 * * 6'
|
||||
- cron: 00 7 * * 6
|
||||
# Allows us to manually start workflow for testing
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -45,10 +46,7 @@ jobs:
|
||||
timeout-minutes: 4320 # 3 days
|
||||
steps:
|
||||
- name: Clean runner
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Scheduled workflows run on the default branch by default. We
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
# See CONTRIBUTING.md for details of gem5's contribution process.
|
||||
#
|
||||
# This file contains a list of gem5's subsystems and their
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
|
||||
Reference in New Issue
Block a user