Skip to content

Commit e5b51f4

Browse files
committed
CI: Switch to r8g.2xlarge for CBMC proofs
This PR ports pq-code-package/mlkem-native#1250 The r instances have a higher Memory/vCPU ratio and are therefore more suited for the memory-hungry CBMC tests. Therefore, this commit modifies the CBMC CI job to use r8g.2xlarge instances instead of c7g.4xlarge. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 45e64ca commit e5b51f4

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/cbmc.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
uses: ./.github/workflows/ci_ec2_reusable.yml
1818
with:
1919
name: CBMC (ML-DSA-44)
20-
ec2_instance_type: c7g.4xlarge
21-
ec2_ami: ubuntu-latest (custom AMI)
22-
ec2_ami_id: ami-0d7f502261b31b27f # aarch64, ubuntu-latest, 64g
20+
ec2_instance_type: r8g.2xlarge
21+
ec2_ami: ubuntu-latest (aarch64)
22+
ec2_volume_size: 20
2323
compile_mode: native
2424
opt: no_opt
2525
lint: false
@@ -39,9 +39,9 @@ jobs:
3939
uses: ./.github/workflows/ci_ec2_reusable.yml
4040
with:
4141
name: CBMC (ML-DSA-65)
42-
ec2_instance_type: c7g.4xlarge
43-
ec2_ami: ubuntu-latest (custom AMI)
44-
ec2_ami_id: ami-0d7f502261b31b27f # aarch64, ubuntu-latest, 64g
42+
ec2_instance_type: r8g.2xlarge
43+
ec2_ami: ubuntu-latest (aarch64)
44+
ec2_volume_size: 20
4545
compile_mode: native
4646
opt: no_opt
4747
lint: false
@@ -61,9 +61,9 @@ jobs:
6161
uses: ./.github/workflows/ci_ec2_reusable.yml
6262
with:
6363
name: CBMC (ML-DSA-87)
64-
ec2_instance_type: c7g.4xlarge
65-
ec2_ami: ubuntu-latest (custom AMI)
66-
ec2_ami_id: ami-0d7f502261b31b27f # aarch64, ubuntu-latest, 64g
64+
ec2_instance_type: r8g.2xlarge
65+
ec2_ami: ubuntu-latest (aarch64)
66+
ec2_volume_size: 20
6767
compile_mode: native
6868
opt: no_opt
6969
lint: false

.github/workflows/ci_ec2_reusable.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
type: string
2525
description: AMI ID
2626
default: ami-0e8c824f386e1de06
27+
ec2_volume_size:
28+
type: string
29+
default: ""
2730
cflags:
2831
type: string
2932
description: Custom CFLAGS for compilation
@@ -113,6 +116,7 @@ jobs:
113116
mode: start
114117
github-token: ${{ secrets.AWS_GITHUB_TOKEN }}
115118
ec2-image-id: ${{ steps.det_ami_id.outputs.AMI_ID }}
119+
ec2-volume-size: ${{ inputs.ec2_volume_size }}
116120
ec2-instance-type: ${{ inputs.ec2_instance_type }}
117121
subnet-id: subnet-094d73eb42eb6bf5b
118122
security-group-id: sg-0282706dbc92a1579
@@ -130,6 +134,7 @@ jobs:
130134
mode: start
131135
github-token: ${{ secrets.AWS_GITHUB_TOKEN }}
132136
ec2-image-id: ${{ steps.det_ami_id.outputs.AMI_ID }}
137+
ec2-volume-size: ${{ inputs.ec2_volume_size }}
133138
ec2-instance-type: ${{ inputs.ec2_instance_type }}
134139
subnet-id: subnet-094d73eb42eb6bf5b
135140
security-group-id: sg-0282706dbc92a1579

0 commit comments

Comments
 (0)