Skip to content

Commit

Permalink
add possible fixes for jobs randomly cancel issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ddjnw1yu committed May 29, 2024
1 parent 41ea2cc commit 7fef67f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pull_request_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/quality_control_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/scheduled_production_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/scheduled_staging_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 7fef67f

Please sign in to comment.