ci: run full unit shards on eight-core workers (#32567)

This commit is contained in:
Neil
2026-10-23 07:13:51 -07:00
committed by GitHub
parent 0805f1cd70
commit 4ed7fb08af
5 changed files with 10 additions and 4 deletions
@@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04-arm, blacksmith-4vcpu-ubuntu-2404]
runner: [ubuntu-24.04-arm, blacksmith-8vcpu-ubuntu-2404]
runs-on: ${{ matrix.runner }}
timeout-minutes: 10
env:
+1 -1
View File
@@ -894,7 +894,7 @@ jobs:
uses: ./.github/workflows/unit-tests.yml
with:
node_versions: '["24"]'
runner: blacksmith-4vcpu-ubuntu-2404
runner: blacksmith-8vcpu-ubuntu-2404
phase_diagnostics: true
shards: ${{ needs.preflight.outputs.shards }}
run_shards: ${{ needs.code_paths.outputs.mobile_ci_tools != 'true' }}
+1 -1
View File
@@ -175,7 +175,7 @@ jobs:
export ORCA_SHARD_SOURCE_SHA
node config/scripts/run-vitest.mjs run --config config/vitest.config.ts \
--shard=${{ matrix.shard.index }}/${{ matrix.shard.count }} \
${{ (runner.arch == 'ARM64' || inputs.runner == 'blacksmith-4vcpu-ubuntu-2404') && '--maxWorkers=4' || '' }}
${{ inputs.runner == 'blacksmith-8vcpu-ubuntu-2404' && '--maxWorkers=8' || (runner.arch == 'ARM64' || inputs.runner == 'blacksmith-4vcpu-ubuntu-2404') && '--maxWorkers=4' || '' }}
- name: Seal unit module cache
id: module-cache-seal
@@ -375,7 +375,7 @@ describe('CI dependency download caches', () => {
expect(warm['runs-on']).toBe('${{ matrix.runner }}')
expect(warm.strategy.matrix.runner).toEqual(['ubuntu-24.04-arm', pr.jobs.test.with.runner])
expect(pr.jobs.preflight['runs-on']).toBe('blacksmith-8vcpu-ubuntu-2404')
expect(pr.jobs.test.with.runner).toBe('blacksmith-4vcpu-ubuntu-2404')
expect(pr.jobs.test.with.runner).toBe('blacksmith-8vcpu-ubuntu-2404')
expect(units['runs-on']).toBe('${{ inputs.runner }}')
expect(JSON.parse(pr.jobs.test.with.node_versions)).toEqual(['24'])
expect(warmInstall.if).toBeUndefined()
@@ -162,6 +162,12 @@ it('retains four workers on ARM and the four-core Blacksmith unit runner', () =>
'--maxWorkers=4'
)
}
expect(
runInNewContext(expression, {
runner: { arch: 'X64' },
inputs: { runner: 'blacksmith-8vcpu-ubuntu-2404' }
})
).toBe('--maxWorkers=8')
expect(
runInNewContext(expression, { runner: { arch: 'X64' }, inputs: { runner: 'ubuntu-latest' } })
).toBe('')