Skip to content

Commit 00ec0bb

Browse files
committed
Auto merge of #159628 - Mark-Simulacrum:ci-experiments, r=<try>
CI experiments
2 parents 9085017 + d49f6d2 commit 00ec0bb

2 files changed

Lines changed: 46 additions & 29 deletions

File tree

rust-bors.toml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,20 @@ images = {
8787
"arm64ami" = "latest-gha-runner-ami-arm64",
8888
}
8989
jit_runner = "organization"
90+
# Prices per hour of on-demand compute in us-east-2 (as of Aug 2026)
91+
# See build speed estimates in https://github.com/rust-lang/simpleinfra/issues/1132
9092
allowed_instances = [
91-
# AMD Zen 5 (x86_64) instances, a subset of these is used in production.
92-
# Prices per hour of on-demand compute in us-east-2 (as of Aug 2026)
93-
# See rough assessment of build speed for dist-x86_64-quick in https://github.com/rust-lang/simpleinfra/issues/1132
94-
# m8a.2x 8 vCPU, 32 GB $0.48688/hr
95-
# c8a.4x 16 vCPU, 32 GB $0.86216/hr
96-
# c8a.8x 32 vCPU, 64 GB $1.72432/hr
97-
# c8a.12x 48 vCPU, 96 GB $2.58648/hr
98-
# CodeBuild 36 vCPU $4.78799/hr
99-
"m8a.2xlarge",
100-
"c8a.4xlarge",
101-
"c8a.8xlarge",
102-
"c8a.12xlarge",
93+
# AMD Zen 5 (x86_64)
94+
"m8a.2xlarge", # $0.48688/hr
95+
"c8a.4xlarge", # $0.86216/hr
96+
"c8a.8xlarge", # $1.72432/hr
97+
"c8a.12xlarge", # $2.58648/hr
10398

104-
# Graviton 4 (aarch64) instances, currently just for experimentation
105-
"m8g.2xlarge",
106-
"c8g.4xlarge",
107-
"c8g.8xlarge",
108-
"c8g.12xlarge",
109-
110-
# Graviton 5 (aarch64) instances, currently just for experimentation
111-
"m9g.2xlarge",
112-
"c9g.4xlarge",
113-
"c9g.8xlarge",
114-
"c9g.12xlarge",
99+
# Graviton (aarch64)
100+
"m9g.2xlarge", # $0.39136/hr
101+
"c9g.4xlarge", # $0.69312/hr
102+
"c9g.8xlarge", # $1.38624/hr
103+
"c9g.12xlarge", # $2.07936/hr
115104
]
116105

117106
# Enable unrolling of rollup member PRs after rollup merge

src/ci/github-actions/jobs.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ runners:
6161
os: ec2-x86_64ami-m8a.2xlarge-x64-linux-$github.run_id-$github.run_attempt
6262
<<: *base-job
6363

64+
- &job-linux-aarch64-8c-ec2
65+
os: ec2-arm64ami-m9g.2xlarge-aarch64-linux-$github.run_id-$github.run_attempt
66+
<<: *base-job
67+
68+
- &job-linux-aarch64-16c-ec2
69+
os: ec2-arm64ami-c9g.4xlarge-aarch64-linux-$github.run_id-$github.run_attempt
70+
<<: *base-job
71+
72+
- &job-linux-aarch64-32c-ec2
73+
os: ec2-arm64ami-c9g.8xlarge-aarch64-linux-$github.run_id-$github.run_attempt
74+
<<: *base-job
75+
76+
6477
envs:
6578
production:
6679
&production
@@ -187,10 +200,12 @@ optional:
187200
CODEGEN_BACKENDS: llvm,cranelift
188201
DOCKER_SCRIPT: dist.sh
189202
DIST_TRY_BUILD: 1
190-
# We repeat the try job here so that it can be explicitly executed using `@bors try jobs`, to test
191-
# full x64 Linux dist try builds on EC2.
192-
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
193-
name: dist-x86_64-linux-quick
203+
- name: dist-aarch64-linux-quick
204+
env:
205+
IMAGE: dist-aarch64-linux
206+
CODEGEN_BACKENDS: llvm,cranelift
207+
DIST_TRY_BUILD: 1
208+
<<: *job-linux-aarch64-32c-ec2
194209

195210
# Main CI jobs that have to be green to merge a commit into the default branch.
196211
#
@@ -218,10 +233,23 @@ auto:
218233
- name: armhf-gnu
219234
<<: *job-linux-4c
220235

221-
- name: dist-aarch64-linux
236+
- name: dist-aarch64-linux-8c
237+
env:
238+
IMAGE: dist-aarch64-linux
239+
CODEGEN_BACKENDS: llvm,cranelift
240+
<<: *job-linux-aarch64-8c-ec2
241+
242+
- name: dist-aarch64-linux-16c
243+
env:
244+
IMAGE: dist-aarch64-linux
245+
CODEGEN_BACKENDS: llvm,cranelift
246+
<<: *job-linux-aarch64-16c-ec2
247+
248+
- name: dist-aarch64-linux-32c
222249
env:
250+
IMAGE: dist-aarch64-linux
223251
CODEGEN_BACKENDS: llvm,cranelift
224-
<<: *job-aarch64-linux-8c
252+
<<: *job-linux-aarch64-32c-ec2
225253

226254
- name: dist-android
227255
<<: *job-linux-4c

0 commit comments

Comments
 (0)