From 7fef67f28ad4b4af64d96ce811ceef71a6c341cb Mon Sep 17 00:00:00 2001 From: "David J. Yu" <87633683+ddjnw1yu@users.noreply.github.com> Date: Thu, 30 May 2024 11:04:53 +1200 Subject: [PATCH] add possible fixes for jobs randomly cancel issue --- .github/workflows/pull_request_cypress.yml | 8 ++++++++ .github/workflows/quality_control_cypress.yml | 9 +++++++++ .github/workflows/scheduled_production_cypress.yml | 8 ++++++++ .github/workflows/scheduled_staging_cypress.yml | 8 ++++++++ 4 files changed, 33 insertions(+) diff --git a/.github/workflows/pull_request_cypress.yml b/.github/workflows/pull_request_cypress.yml index 38893f59..842ccb68 100644 --- a/.github/workflows/pull_request_cypress.yml +++ b/.github/workflows/pull_request_cypress.yml @@ -61,6 +61,13 @@ jobs: containers: [1, 2, 3, 4] steps: + - name: Cleanup pre-installed tools + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - uses: actions-cool/check-user-permission@main id: checkUser with: @@ -81,6 +88,7 @@ jobs: - name: Automated Run Testing when Pull Request if: steps.checkUser.outputs.require-result == 'true' uses: cypress-io/github-action@v6 + timeout-minutes: 30 env: ROOT_URL: ${{ secrets.ROOT_URL }} # http://localhost:3000 with: diff --git a/.github/workflows/quality_control_cypress.yml b/.github/workflows/quality_control_cypress.yml index e0ce72a9..9b0577d1 100644 --- a/.github/workflows/quality_control_cypress.yml +++ b/.github/workflows/quality_control_cypress.yml @@ -111,6 +111,13 @@ jobs: containers: [1, 2] steps: + - name: Cleanup pre-installed tools + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Checkout uses: actions/checkout@v4 @@ -124,6 +131,7 @@ jobs: env: ROOT_URL: "https://staging.sparc.science" uses: cypress-io/github-action@v6 + timeout-minutes: 30 with: wait-on: ${{ env.ROOT_URL }} record: true @@ -136,6 +144,7 @@ jobs: env: ROOT_URL: "https://sparc.science" uses: cypress-io/github-action@v6 + timeout-minutes: 30 with: wait-on: ${{ env.ROOT_URL }} record: true diff --git a/.github/workflows/scheduled_production_cypress.yml b/.github/workflows/scheduled_production_cypress.yml index 4141aefd..2008001a 100644 --- a/.github/workflows/scheduled_production_cypress.yml +++ b/.github/workflows/scheduled_production_cypress.yml @@ -60,6 +60,13 @@ jobs: containers: [1, 2, 3, 4] steps: + - name: Cleanup pre-installed tools + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Checkout uses: actions/checkout@v4 @@ -70,6 +77,7 @@ jobs: - name: Schedule Run Testing against Production uses: cypress-io/github-action@v6 + timeout-minutes: 30 env: ROOT_URL: "https://sparc.science" with: diff --git a/.github/workflows/scheduled_staging_cypress.yml b/.github/workflows/scheduled_staging_cypress.yml index 6dc7bde7..d1fcdf4a 100644 --- a/.github/workflows/scheduled_staging_cypress.yml +++ b/.github/workflows/scheduled_staging_cypress.yml @@ -60,6 +60,13 @@ jobs: containers: [1, 2, 3, 4] steps: + - name: Cleanup pre-installed tools + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Checkout uses: actions/checkout@v4 @@ -70,6 +77,7 @@ jobs: - name: Schedule Run Testing against Staging uses: cypress-io/github-action@v6 + timeout-minutes: 30 env: ROOT_URL: "https://staging.sparc.science" with: