mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Switch dist-aarch64-linux to EC2 and update dist-x86_64-linux
For dist-aarch64-linux (full): * GHA 8c takes 2h25m ($2.03/build) * c8g.8xl takes 1h20m ($1.69/build) * c9g.8xl takes 1h ($1.38/build) * c9g.4xl takes 1h10m ($0.81/build) * m9g.2xl takes 1h30m ($0.59/build) - selected And adds a dist-aarch64-linux-quick: * c8g.8xl takes 50m ($1.059/build) * c9g.8xl takes 40m ($0.924/build) * c9g.4xl takes 47m ($0.543/build) - selected * m9g.2xl takes 64m ($0.417/build) For now I've chosen a balance between cost and speed (c9g.4xl). Once we decide where to enable this (e.g., in try builds by default) we can consider aligning with other tasks and saving $/build if we're not able to benefit from increased speed (e.g., because perf won't run until the try build as a whole finishes). For dist-x86_64-linux-full we have this breakdown: * c8a.8xl takes 1h34m ($2.64/build) - current * c8a.4xl takes 1h45m ($1.51/build) - selected * m8a.2xl takes 2h10m ($1.05/build) I'll re-benchmark dist-x86_64-linux-quick in a future PR, for now it will stay on c8a.8xl. This drops codebuild configuration (but not yet cleaning up various related pieces that are more tied into our CI) since it doesn't seem relevant anymore.
This commit is contained in:
@@ -87,31 +87,20 @@ images = {
|
|||||||
"arm64ami" = "latest-gha-runner-ami-arm64",
|
"arm64ami" = "latest-gha-runner-ami-arm64",
|
||||||
}
|
}
|
||||||
jit_runner = "organization"
|
jit_runner = "organization"
|
||||||
|
# Prices per hour of on-demand compute in us-east-2 (as of Aug 2026)
|
||||||
|
# See build speed estimates in https://github.com/rust-lang/simpleinfra/issues/1132
|
||||||
allowed_instances = [
|
allowed_instances = [
|
||||||
# AMD Zen 5 (x86_64) instances, a subset of these is used in production.
|
# AMD Zen 5 (x86_64)
|
||||||
# Prices per hour of on-demand compute in us-east-2 (as of Aug 2026)
|
"m8a.2xlarge", # $0.48688/hr
|
||||||
# See rough assessment of build speed for dist-x86_64-quick in https://github.com/rust-lang/simpleinfra/issues/1132
|
"c8a.4xlarge", # $0.86216/hr
|
||||||
# m8a.2x 8 vCPU, 32 GB $0.48688/hr
|
"c8a.8xlarge", # $1.72432/hr
|
||||||
# c8a.4x 16 vCPU, 32 GB $0.86216/hr
|
"c8a.12xlarge", # $2.58648/hr
|
||||||
# c8a.8x 32 vCPU, 64 GB $1.72432/hr
|
|
||||||
# c8a.12x 48 vCPU, 96 GB $2.58648/hr
|
|
||||||
# CodeBuild 36 vCPU $4.78799/hr
|
|
||||||
"m8a.2xlarge",
|
|
||||||
"c8a.4xlarge",
|
|
||||||
"c8a.8xlarge",
|
|
||||||
"c8a.12xlarge",
|
|
||||||
|
|
||||||
# Graviton 4 (aarch64) instances, currently just for experimentation
|
# Graviton (aarch64)
|
||||||
"m8g.2xlarge",
|
"m9g.2xlarge", # $0.39136/hr
|
||||||
"c8g.4xlarge",
|
"c9g.4xlarge", # $0.69312/hr
|
||||||
"c8g.8xlarge",
|
"c9g.8xlarge", # $1.38624/hr
|
||||||
"c8g.12xlarge",
|
"c9g.12xlarge", # $2.07936/hr
|
||||||
|
|
||||||
# Graviton 5 (aarch64) instances, currently just for experimentation
|
|
||||||
"m9g.2xlarge",
|
|
||||||
"c9g.4xlarge",
|
|
||||||
"c9g.8xlarge",
|
|
||||||
"c9g.12xlarge",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Enable unrolling of rollup member PRs after rollup merge
|
# Enable unrolling of rollup member PRs after rollup merge
|
||||||
|
|||||||
@@ -41,24 +41,24 @@ runners:
|
|||||||
os: ubuntu-24.04-arm
|
os: ubuntu-24.04-arm
|
||||||
<<: *base-job
|
<<: *base-job
|
||||||
|
|
||||||
- &job-aarch64-linux-8c
|
- &job-linux-x86-8c-ec2
|
||||||
os: ubuntu-24.04-arm64-8core-32gb
|
os: ec2-x86_64ami-m8a.2xlarge-x64-linux-$github.run_id-$github.run_attempt
|
||||||
<<: *base-job
|
<<: *base-job
|
||||||
|
|
||||||
# Codebuild runners are provisioned in
|
- &job-linux-x86-16c-ec2
|
||||||
# https://github.com/rust-lang/simpleinfra/blob/b7ddd5e6bec8a93ec30510cdddec02c5666fefe9/terragrunt/accounts/ci-prod/ci-runners/terragrunt.hcl#L2
|
os: ec2-x86_64ami-c8a.4xlarge-x64-linux-$github.run_id-$github.run_attempt
|
||||||
- &job-linux-36c-codebuild
|
|
||||||
free_disk: true
|
|
||||||
codebuild: true
|
|
||||||
os: codebuild-ubuntu-22-36c-$github.run_id-$github.run_attempt
|
|
||||||
<<: *base-job
|
<<: *base-job
|
||||||
|
|
||||||
- &job-linux-x86-32c-ec2
|
- &job-linux-x86-32c-ec2
|
||||||
os: ec2-x86_64ami-c8a.8xlarge-x64-linux-$github.run_id-$github.run_attempt
|
os: ec2-x86_64ami-c8a.8xlarge-x64-linux-$github.run_id-$github.run_attempt
|
||||||
<<: *base-job
|
<<: *base-job
|
||||||
|
|
||||||
- &job-linux-x86-8c-ec2
|
- &job-linux-aarch64-8c-ec2
|
||||||
os: ec2-x86_64ami-m8a.2xlarge-x64-linux-$github.run_id-$github.run_attempt
|
os: ec2-arm64ami-m9g.2xlarge-aarch64-linux-$github.run_id-$github.run_attempt
|
||||||
|
<<: *base-job
|
||||||
|
|
||||||
|
- &job-linux-aarch64-16c-ec2
|
||||||
|
os: ec2-arm64ami-c9g.4xlarge-aarch64-linux-$github.run_id-$github.run_attempt
|
||||||
<<: *base-job
|
<<: *base-job
|
||||||
|
|
||||||
envs:
|
envs:
|
||||||
@@ -96,6 +96,11 @@ jobs:
|
|||||||
IMAGE: dist-x86_64-linux
|
IMAGE: dist-x86_64-linux
|
||||||
CODEGEN_BACKENDS: llvm,cranelift
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
DOCKER_SCRIPT: dist.sh
|
DOCKER_SCRIPT: dist.sh
|
||||||
|
dist-aarch64-linux: &job-dist-aarch64-linux
|
||||||
|
name: dist-aarch64-linux
|
||||||
|
env:
|
||||||
|
IMAGE: dist-aarch64-linux
|
||||||
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
|
|
||||||
|
|
||||||
# Jobs that run on each push to a pull request (PR).
|
# Jobs that run on each push to a pull request (PR).
|
||||||
@@ -167,6 +172,17 @@ pr:
|
|||||||
try:
|
try:
|
||||||
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
|
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
|
||||||
name: dist-x86_64-linux-quick
|
name: dist-x86_64-linux-quick
|
||||||
|
env:
|
||||||
|
IMAGE: dist-x86_64-linux
|
||||||
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
|
DOCKER_SCRIPT: dist.sh
|
||||||
|
DIST_TRY_BUILD: 1
|
||||||
|
- <<: [*job-dist-aarch64-linux, *job-linux-aarch64-16c-ec2]
|
||||||
|
name: dist-aarch64-linux-quick
|
||||||
|
env:
|
||||||
|
IMAGE: dist-aarch64-linux
|
||||||
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
|
DIST_TRY_BUILD: 1
|
||||||
|
|
||||||
# Jobs that only run when explicitly invoked in one of the following ways:
|
# Jobs that only run when explicitly invoked in one of the following ways:
|
||||||
# - comment `@bors try jobs=<job-name>`
|
# - comment `@bors try jobs=<job-name>`
|
||||||
@@ -178,19 +194,20 @@ optional:
|
|||||||
env:
|
env:
|
||||||
IMAGE: pr-check-1
|
IMAGE: pr-check-1
|
||||||
<<: *job-linux-4c
|
<<: *job-linux-4c
|
||||||
- <<: [*job-dist-x86_64-linux, *job-linux-36c-codebuild]
|
# Duplicate the try jobs here so that we can run them via jobs=...
|
||||||
name: dist-x86_64-linux-codebuild
|
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
|
||||||
- <<: [*job-dist-x86_64-linux, *job-linux-36c-codebuild]
|
name: dist-x86_64-linux-quick
|
||||||
name: dist-x86_64-linux-quick-codebuild
|
|
||||||
env:
|
env:
|
||||||
IMAGE: dist-x86_64-linux
|
IMAGE: dist-x86_64-linux
|
||||||
CODEGEN_BACKENDS: llvm,cranelift
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
DOCKER_SCRIPT: dist.sh
|
DOCKER_SCRIPT: dist.sh
|
||||||
DIST_TRY_BUILD: 1
|
DIST_TRY_BUILD: 1
|
||||||
# We repeat the try job here so that it can be explicitly executed using `@bors try jobs`, to test
|
- <<: [*job-dist-aarch64-linux, *job-linux-aarch64-16c-ec2]
|
||||||
# full x64 Linux dist try builds on EC2.
|
name: dist-aarch64-linux-quick
|
||||||
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
|
env:
|
||||||
name: dist-x86_64-linux-quick
|
IMAGE: dist-aarch64-linux
|
||||||
|
CODEGEN_BACKENDS: llvm,cranelift
|
||||||
|
DIST_TRY_BUILD: 1
|
||||||
|
|
||||||
# Main CI jobs that have to be green to merge a commit into the default branch.
|
# Main CI jobs that have to be green to merge a commit into the default branch.
|
||||||
#
|
#
|
||||||
@@ -218,10 +235,7 @@ auto:
|
|||||||
- name: armhf-gnu
|
- name: armhf-gnu
|
||||||
<<: *job-linux-4c
|
<<: *job-linux-4c
|
||||||
|
|
||||||
- name: dist-aarch64-linux
|
- <<: [*job-dist-aarch64-linux, *job-linux-aarch64-16c-ec2]
|
||||||
env:
|
|
||||||
CODEGEN_BACKENDS: llvm,cranelift
|
|
||||||
<<: *job-aarch64-linux-8c
|
|
||||||
|
|
||||||
- name: dist-android
|
- name: dist-android
|
||||||
<<: *job-linux-4c
|
<<: *job-linux-4c
|
||||||
@@ -298,7 +312,7 @@ auto:
|
|||||||
- name: dist-x86_64-illumos
|
- name: dist-x86_64-illumos
|
||||||
<<: *job-linux-4c
|
<<: *job-linux-4c
|
||||||
|
|
||||||
- <<: [*job-dist-x86_64-linux, *job-linux-x86-32c-ec2]
|
- <<: [*job-dist-x86_64-linux, *job-linux-x86-16c-ec2]
|
||||||
|
|
||||||
- name: dist-x86_64-linux-alt
|
- name: dist-x86_64-linux-alt
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user