Skip to content

Commit e883171

Browse files
authored
Use spot instances for extended tests (#21221)
I had `spot=false` because those runs were slow. Now they are quite fast, so we can save up while running them: [Before](https://github.com/apache/datafusion/actions/runs/23683585934/job/68999421156): <img width="523" height="366" alt="Zen Browser 2026-03-28 22 09 17" src="https://github.com/user-attachments/assets/27eb875f-b99a-4f12-a5ef-9bd5d13ae36b" /> [After](https://github.com/apache/datafusion/actions/runs/23694905456/job/69028518341#step:12:25): <img width="452" height="379" alt="Zen Browser 2026-03-28 22 09 32" src="https://github.com/user-attachments/assets/c40a446e-3240-4b8c-b139-476b9a4a6a6f" /> Instance family differs between runs (runs-on [picks one](https://runs-on.com/configuration/spot-instances/) based on current cost/availability), but the numbers should be illustrative nonetheless. I also put cpu to 32 since the tests are quite fast
1 parent aadae6b commit e883171

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/extended.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ jobs:
9393
linux-test-extended:
9494
name: cargo test 'extended_tests' (amd64)
9595
needs: [linux-build-lib]
96-
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a+m7a+c8a,cpu=32,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion,spot=false', github.run_id) || 'ubuntu-latest' }}
97-
# spot=false because the tests are long, https://runs-on.com/configuration/spot-instances/#disable-spot-pricing
96+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a+m7a+c8a,cpu=32,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
9897
# note: do not use amd/rust container to preserve disk space
9998
steps:
10099
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
@@ -162,8 +161,7 @@ jobs:
162161
163162
sqllogictest-sqlite:
164163
name: "Run sqllogictests with the sqlite test suite"
165-
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a+m7a+c8a,cpu=48,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion,spot=false', github.run_id) || 'ubuntu-latest' }}
166-
# spot=false because the tests are long, https://runs-on.com/configuration/spot-instances/#disable-spot-pricing
164+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a+m7a+c8a,cpu=32,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
167165
container:
168166
image: amd64/rust
169167
steps:

0 commit comments

Comments
 (0)