Skip to content

Commit

Permalink
ci: downgrade and different runners for ci-core matrix (#13784)
Browse files Browse the repository at this point in the history
* ci: downgrade and different runners for ci-core matrix

* fix: use 32cores for core_race, 64 for cron runs

* fix: add back short tests to core_tests

* fix: remove short tests step due to no caching

* fix: use ubuntu22.04 instead of ubuntu-latest, formatting
  • Loading branch information
erikburt authored Jul 9, 2024
1 parent b892f77 commit c5f9173
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,19 @@ jobs:
type:
- cmd: go_core_tests
id: core_unit
os: ubuntu22.04-32cores-128GB
- cmd: go_core_race_tests
id: core_race
# use 64cores for overnight runs only due to massive number of runs from PRs
os: ${{ github.event_name == 'schedule' && 'ubuntu-latest-64cores-256GB' || 'ubuntu-latest-32cores-128GB' }}
- cmd: go_core_fuzz
id: core_fuzz
os: ubuntu22.04-8cores-32GB
name: Core Tests (${{ matrix.type.cmd }})
# We don't directly merge dependabot PRs, so let's not waste the resources
if: github.actor != 'dependabot[bot]'
needs: [filter]
runs-on: ubuntu-latest-64cores-256GB
runs-on: ${{ matrix.type.os }}
steps:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand All @@ -111,9 +115,6 @@ jobs:
- name: Setup Go
if: ${{ needs.filter.outputs.changes == 'true' }}
uses: ./.github/actions/setup-go
- name: Run short tests
if: ${{ needs.filter.outputs.changes == 'true' && matrix.type.cmd == 'go_core_tests' }}
run: go test -short ./...
- name: Setup Solana
if: ${{ needs.filter.outputs.changes == 'true' }}
uses: ./.github/actions/setup-solana
Expand Down

0 comments on commit c5f9173

Please sign in to comment.