From 650b92124bd8ed4d4716a5112d2f004fd2a5dbc0 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 5 Mar 2024 08:35:11 +0000 Subject: [PATCH] misc: Copy the develop .github dir to stable (#912) --- .github/workflows/ci-tests.yaml | 14 +++++++------- .github/workflows/compiler-tests.yaml | 10 +++++----- .github/workflows/daily-tests.yaml | 24 +++++++++++------------- .github/workflows/docker-build.yaml | 2 +- .github/workflows/weekly-tests.yaml | 16 ++++++++-------- 5 files changed, 32 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml index 49928faf20..828eab6fb0 100644 --- a/.github/workflows/ci-tests.yaml +++ b/.github/workflows/ci-tests.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-22.04 if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-22.04 if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check for Change-Id @@ -54,7 +54,7 @@ jobs: needs: [pre-commit, check-for-change-id] # only runs if pre-commit and change-id passes timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: CI Unittests working-directory: ${{ github.workspace }} run: scons build/ALL/unittests.opt -j $(nproc) @@ -68,7 +68,7 @@ jobs: container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest needs: [pre-commit, check-for-change-id] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Unfortunately the 'ubunutu-latest' image doesn't have jq installed. # We therefore need to install it as a step here. @@ -100,7 +100,7 @@ jobs: needs: [pre-commit, check-for-change-id] timeout-minutes: 90 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Clang Compilation working-directory: ${{ github.workspace }} run: scons build/ALL/gem5.fast -j $(nproc) @@ -114,7 +114,7 @@ jobs: matrix: build-target: ${{ fromJson(needs.testlib-quick-matrix.outputs.build-matrix) }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build gem5 run: scons ${{ matrix.build-target }} -j $(nproc) @@ -150,7 +150,7 @@ jobs: run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true # Checkout the repository then download the gem5.opt artifact. - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: ci-tests-${{ github.run_number }}-testlib-quick-all-gem5-builds diff --git a/.github/workflows/compiler-tests.yaml b/.github/workflows/compiler-tests.yaml index 5e903732ce..fde8f3cd44 100644 --- a/.github/workflows/compiler-tests.yaml +++ b/.github/workflows/compiler-tests.yaml @@ -16,15 +16,15 @@ jobs: strategy: fail-fast: false matrix: - image: [gcc-version-12, gcc-version-11, gcc-version-10, 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, + image: [gcc-version-13, gcc-version-12, gcc-version-11, gcc-version-10, 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] timeout-minutes: 2880 # 48 hours container: ghcr.io/gem5/${{ matrix.image }}:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -40,13 +40,13 @@ jobs: matrix: gem5-compilation: [ARM, ARM_MESI_Three_Level, ARM_MESI_Three_Level_HTM, ARM_MOESI_hammer, Garnet_standalone, 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] - image: [gcc-version-12, clang-version-16] + image: [gcc-version-13, clang-version-16] opts: [.opt] runs-on: [self-hosted, linux, x64] timeout-minutes: 2880 # 48 hours container: ghcr.io/gem5/${{ matrix.image }}:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. diff --git a/.github/workflows/daily-tests.yaml b/.github/workflows/daily-tests.yaml index 92041c32b3..81de5c4746 100644 --- a/.github/workflows/daily-tests.yaml +++ b/.github/workflows/daily-tests.yaml @@ -7,6 +7,8 @@ on: # Runs every day from 7AM UTC schedule: - cron: 0 7 * * * + # Allows us to manually start workflow for testing + workflow_dispatch: jobs: name-artifacts: @@ -46,7 +48,7 @@ jobs: needs: name-artifacts container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -75,7 +77,7 @@ jobs: container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -97,7 +99,7 @@ jobs: steps: - name: Clean runner run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -186,7 +188,7 @@ jobs: steps: - name: Clean runner run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -224,7 +226,7 @@ jobs: timeout-minutes: 180 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -249,7 +251,7 @@ jobs: timeout-minutes: 180 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -275,7 +277,7 @@ jobs: timeout-minutes: 720 # 12 hours steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -283,17 +285,13 @@ jobs: - name: Compile build/VEGA_X86/gem5.opt run: scons build/VEGA_X86/gem5.opt -j $(nproc) - name: Get Square test-prog from gem5-resources - uses: wei/wget@v1 - with: - args: -q http://dist.gem5.org/dist/v24-0/test-progs/square/square # Removed -N bc it wasn't available within actions, should be okay bc workspace is clean every time: https://github.com/coder/sshcode/issues/102 + run: build/VEGA_X86/gem5.opt util/obtain-resource.py square-gpu-test -p square - name: Run Square test with VEGA_X86/gem5.opt (SE mode) run: | mkdir -p tests/testing-results ./build/VEGA_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c square - name: Get allSyncPrims-1kernel from gem5-resources - uses: wei/wget@v1 - with: - args: -q http://dist.gem5.org/dist/v24-0/test-progs/heterosync/allSyncPrims-1kernel # Removed -N bc it wasn't available within actions, should be okay bc workspace is clean every time + run: build/VEGA_X86/gem5.opt util/obtain-resource.py allSyncPrims-1kernel -p allSyncPrims-1kernel - name: Run allSyncPrims-1kernel sleepMutex test with VEGA_X86/gem5.opt (SE mode) run: ./build/VEGA_X86/gem5.opt configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c allSyncPrims-1kernel --options="sleepMutex 10 16 4" diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 68b0905e83..1677a231ab 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -9,7 +9,7 @@ jobs: container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. diff --git a/.github/workflows/weekly-tests.yaml b/.github/workflows/weekly-tests.yaml index 62d047709f..fd2527c094 100644 --- a/.github/workflows/weekly-tests.yaml +++ b/.github/workflows/weekly-tests.yaml @@ -15,7 +15,7 @@ jobs: runs-on: [self-hosted, linux, x64] container: ghcr.io/gem5/gcn-gpu:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -35,7 +35,7 @@ jobs: needs: build-gcn-gpu-gem5 timeout-minutes: 480 # 8 hours steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -67,7 +67,7 @@ jobs: needs: build-gcn-gpu-gem5 timeout-minutes: 120 # 2 hours steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -86,7 +86,7 @@ jobs: scons build/x86/out/m5 - name: Download tests working-directory: ${{ github.workspace }}/hip - run: wget http://dist.gem5.org/dist/v22-1/test-progs/halo-finder/ForceTreeTest + run: build/VEGA_X86/gem5.opt util/obtain-resource.py hacc-force-tree -p ForceTreeTest - name: Run HACC tests working-directory: ${{ github.workspace }} run: | @@ -98,7 +98,7 @@ jobs: outputs: build-name: ${{ steps.artifact-name.outputs.name }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. @@ -128,12 +128,12 @@ jobs: steps: - name: Clean runner run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch. ref: develop - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ${{needs.build-gem5.outputs.build-name}} path: build/ALL @@ -162,7 +162,7 @@ jobs: container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest timeout-minutes: 4320 # 3 days steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Scheduled workflows run on the default branch by default. We # therefore need to explicitly checkout the develop branch.