Skip to content

Commit

Permalink
aws-proofs: provide optional NUM_DOMAINS override
Browse files Browse the repository at this point in the history
If the NUM_DOMAINS input is set, the proof build system will override
the KernelNumDomains setting. We make the NUM_DOMAINS value part of
the cache key so that we get fast proofs on master for things that
already had a successful test on a pull request.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Dec 10, 2023
1 parent 38ce9b3 commit 04877f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions aws-proofs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ automatically spins up and terminates the corresponding AWS instance.
- `L4V_FEATURES`: Optional kernel features to test. Either `MCS` or empty.
- `L4V_PLAT`: Platform variant to test (optional). Either a platform name or
unset.
- `NUM_DOMAINS`: Optional override for the `KenrelNumDomains` config setting.
- `session`: which session to run (e.g. `CRefine` or `ASpec`, or `ASpec
CRefine`, i.e. a space-separated string). Runs all sessions if
unset.
Expand Down
3 changes: 3 additions & 0 deletions aws-proofs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
L4V_PLAT:
description: 'Platform variant to test (optional). Either a platform name or unset.'
required: false
NUM_DOMAINS:
description: 'Optional override for KernelNumDomains config setting.'
required: false
session:
description: 'Which proof session to run (space-separated string)'
required: false
Expand Down
1 change: 1 addition & 0 deletions aws-proofs/steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ssh -o SendEnv=INPUT_CI_BRANCH \
-o SendEnv=INPUT_L4V_ARCH \
-o SendEnv=INPUT_L4V_FEATURES \
-o SendEnv=INPUT_L4V_PLAT \
-o SendEnv=INPUT_NUM_DOMAINS \
-o SendEnv=INPUT_MANIFEST \
-o SendEnv=INPUT_ISA_BRANCH \
-o SendEnv=INPUT_SESSION \
Expand Down
6 changes: 5 additions & 1 deletion aws-proofs/vm-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ isabelle/bin/isabelle components -a
export L4V_ARCH=${INPUT_L4V_ARCH}
export L4V_FEATURES=${INPUT_L4V_FEATURES}
export L4V_PLAT=${INPUT_L4V_PLAT}
L4V_ARCH_FEATURES="${L4V_ARCH}${L4V_FEATURES:+-${L4V_FEATURES}}${L4V_PLAT:+-${L4V_PLAT}}"

FEATURES_STR=${L4V_FEATURES:+-${L4V_FEATURES}}
PLAT_STR=${L4V_PLAT:+-${L4V_PLAT}}
NUM_DOMAINS_STR=${INPUT_NUM_DOMAINS:+-${INPUT_NUM_DOMAINS}}
L4V_ARCH_FEATURES="${L4V_ARCH}${FEATURES_STR}${PLAT_STR}${NUM_DOMAINS_STR}"

CACHE_NAME=${INPUT_CACHE_NAME}
if [ -z "${CACHE_NAME}" ]
Expand Down

0 comments on commit 04877f4

Please sign in to comment.