From e86420d72d02081662a36ea5b43a46cd71481f6f Mon Sep 17 00:00:00 2001 From: Avimitin Date: Sun, 4 Feb 2024 03:01:49 +0800 Subject: [PATCH] [ci] remove cycle related perf data from subsystem tests Signed-off-by: Avimitin --- .github/scripts/ci.sc | 5 ++++- .github/workflows/subsystem.yml | 21 --------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/scripts/ci.sc b/.github/scripts/ci.sc index 59fa99c164..f82e4e002b 100755 --- a/.github/scripts/ci.sc +++ b/.github/scripts/ci.sc @@ -235,7 +235,10 @@ def runTests(jobs: String, runTarget: String = "ip", resultDir: Option[os.Path], os.write(actualResultDir / "failed-logs" / s"$job.txt", handle.out.text) failed :+ job } else { - writeCycleUpdates(job, testRunDir, actualResultDir) + if (runTarget == "ip") { + writeCycleUpdates(job, testRunDir, actualResultDir) + } + failed } } diff --git a/.github/workflows/subsystem.yml b/.github/workflows/subsystem.yml index 1a06a2e1e7..238636e8d1 100644 --- a/.github/workflows/subsystem.yml +++ b/.github/workflows/subsystem.yml @@ -112,8 +112,6 @@ jobs: name: test-reports-${{ matrix.id }} path: | test-results-*/failed-tests.md - test-results-*/cycle-updates.md - test-results-*/*_cycle.json - uses: actions/upload-artifact@v4 if: failure() @@ -199,22 +197,3 @@ jobs: echo -e "\n## Failed tests\n" >> $GITHUB_STEP_SUMMARY shopt -s nullglob cat test-results-*/failed-tests.md >> $GITHUB_STEP_SUMMARY - echo -e "\n## Cycle updates\n" >> $GITHUB_STEP_SUMMARY - shopt -s nullglob - cat test-results-*/cycle-updates.md >> $GITHUB_STEP_SUMMARY - - name: "Commit cycle updates" - run: | - nix shell ".#ammonite" -c .github/scripts/ci.sc mergeCycleData - git config user.name github-actions - git config user.email github-actions@github.com - changed_cases=$(git diff --name-only '.github/cases/**/default.json') - - if [ -n "$changed_cases" ]; then - echo "changed cases: $changed_cases" - git add '.github/cases/**/default.json' - git commit -m "[ci] update test case cycle data" - git push origin ${{ github.head_ref }} - else - echo "No cycle change detect" - fi -