From 75b428423e0b7e8c5dd2a6db0f86824180669784 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Thu, 25 Jan 2024 22:01:51 -0800 Subject: [PATCH] Remove setup-repo, don't set custom REMOTE_WORK_DIR --- .github/workflows/chipyard-run-tests-gpu.yml | 290 ++----------------- 1 file changed, 17 insertions(+), 273 deletions(-) diff --git a/.github/workflows/chipyard-run-tests-gpu.yml b/.github/workflows/chipyard-run-tests-gpu.yml index 0e5b6606..97ab0089 100644 --- a/.github/workflows/chipyard-run-tests-gpu.yml +++ b/.github/workflows/chipyard-run-tests-gpu.yml @@ -13,7 +13,6 @@ defaults: env: tools-cache-version: v17 CI_DIR: ${{ secrets.BUILDDIR }} - REMOTE_WORK_DIR: ${{ secrets.BUILDDIR }}/cy-ci-shared/cy-${{ github.sha }} JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit conda-env-name-no-time: cy-${{ github.run_id }} workflow-timestamp: ${{ github.event.pull_request.updated_at }} @@ -90,29 +89,29 @@ jobs: - name: Create conda env uses: ./.github/actions/create-conda-env - setup-repo: - name: setup-repo - needs: create-conda-env - if: needs.change-filters.outputs.needs-rtl == 'true' - runs-on: self-hosted - steps: - - name: Delete old checkout - run: | - ls -alh . - rm -rf ${{ github.workspace }}/* || true - rm -rf ${{ github.workspace }}/.* || true - ls -alh . - - uses: actions/checkout@v3 - - name: Setup repo copy - run: | - git clone $GITHUB_WORKSPACE ${{ env.REMOTE_WORK_DIR }} + # setup-repo: + # name: setup-repo + # needs: create-conda-env + # if: needs.change-filters.outputs.needs-rtl == 'true' + # runs-on: self-hosted + # steps: + # - name: Delete old checkout + # run: | + # ls -alh . + # rm -rf ${{ github.workspace }}/* || true + # rm -rf ${{ github.workspace }}/.* || true + # ls -alh . + # - uses: actions/checkout@v3 + # - name: Setup repo copy + # run: | + # git clone $GITHUB_WORKSPACE ${{ env.REMOTE_WORK_DIR }} # Sentinel job to simplify how we specify which that basic setup is complete # # When adding new prep jobs, please add them to `needs` below setup-complete: name: setup-complete - needs: setup-repo + needs: [create-conda-env] runs-on: self-hosted steps: - name: Set up complete @@ -166,127 +165,8 @@ jobs: with: group-key: "group-gpu" - # prepare-chipyard-accels: - # name: prepare-chipyard-accels - # needs: setup-complete - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Build RTL on self-hosted - # uses: ./.github/actions/prepare-rtl - # with: - # group-key: "group-accels" - - # prepare-chipyard-other: - # name: prepare-chipyard-other - # needs: setup-complete - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Build RTL on self-hosted - # uses: ./.github/actions/prepare-rtl - # with: - # group-key: "group-other" - ########################################################################## - # chipyard-spike-gemmini-run-tests: - # name: chipyard-spike-gemmini-run-tests - # needs: prepare-chipyard-accels # technically doesn't depend on RTL but should be after the build.sh for Gemmini - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Build Gemmini FireMarshal - # run: | - # conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools - # cd ${{ github.workspace }} && ./scripts/init-submodules-no-riscv-tools.sh --force - # cd ${{ github.workspace }} && source ./scripts/fix-open-files.sh - # git submodule update --init software/firemarshal && cd software/firemarshal && ./init-submodules.sh - # cd ${{ github.workspace }}/generators/gemmini/software && ${{ github.workspace }}/software/firemarshal/marshal -v -d build gemmini-smoke.json - # - name: Running Gemmini FireMarshal smoke test - # run: | - # conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools - # cd ${{ github.workspace }}/generators/gemmini/software && ${{ github.workspace }}/software/firemarshal/marshal -v -d launch -s gemmini-smoke.json - - # chipyard-rocket-run-tests: - # name: chipyard-rocket-run-tests - # needs: prepare-chipyard-cores - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-cores" - # project-key: "chipyard-rocket" - - # chipyard-boom-run-tests: - # name: chipyard-boom-run-tests - # needs: prepare-chipyard-cores - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-cores" - # project-key: "chipyard-boom" - chipyard-vortex-run-tests: name: chipyard-vortex-run-tests needs: prepare-chipyard-gpu @@ -356,137 +236,6 @@ jobs: group-key: "group-gpu" project-key: "coalescer" - # chipyard-spike-run-tests: - # name: chipyard-spike-run-tests - # needs: prepare-chipyard-cores - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-cores" - # project-key: "chipyard-spike" - - # chipyard-gemmini-run-tests: - # name: chipyard-gemmini-run-tests - # needs: prepare-chipyard-accels - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-accels" - # project-key: "chipyard-gemmini" - - # chipyard-nvdla-run-tests: - # name: chipyard-nvdla-run-tests - # needs: prepare-chipyard-accels - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-accels" - # project-key: "chipyard-nvdla" - - # testchipip-run-tests: - # name: testchipip-run-tests - # needs: prepare-chipyard-other - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-other" - # project-key: "testchipip" - - # rocketchip-run-tests: - # name: rocketchip-run-tests - # needs: prepare-chipyard-other - # runs-on: self-hosted - # steps: - # - name: Delete old checkout - # run: | - # ls -alh . - # rm -rf ${{ github.workspace }}/* || true - # rm -rf ${{ github.workspace }}/.* || true - # ls -alh . - # - name: Checkout - # uses: actions/checkout@v3 - # - name: Git workaround - # uses: ./.github/actions/git-workaround - # - name: Create conda env - # uses: ./.github/actions/create-conda-env - # - name: Run amba tests - # uses: ./.github/actions/run-tests - # with: - # group-key: "group-other" - # project-key: "rocketchip-amba" - # # Below tests segfault with verilator, work fine in VCS - # # - name: Run tlsimple tests - # # uses: ./.github/actions/run-tests - # # with: - # # group-key: "group-other" - # # project-key: "rocketchip-tlsimple" - # # - name: Run tlwidth tests - # # uses: ./.github/actions/run-tests - # # with: - # # group-key: "group-other" - # # project-key: "rocketchip-tlwidth" - # # - name: Run tlxbar tests - # # uses: ./.github/actions/run-tests - # # with: - # # group-key: "group-other" - # # project-key: "rocketchip-tlxbar" - # Sentinel job to simplify how we specify which checks need to pass in branch # protection and in Mergify # @@ -494,14 +243,9 @@ jobs: all_tests_passed: name: "all tests passed" needs: [ - # chipyard-rocket-run-tests, - # chipyard-boom-run-tests, chipyard-vortex-run-tests, chipyard-coalescer-run-tests, coalescer-run-tests, - # chipyard-gemmini-run-tests, - # testchipip-run-tests, - # rocketchip-run-tests, ] runs-on: self-hosted steps: