Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a NUM_DOMAINS test override #701

Merged
merged 4 commits into from
Dec 11, 2023
Merged

provide a NUM_DOMAINS test override #701

merged 4 commits into from
Dec 11, 2023

Conversation

lsf37
Copy link
Member

@lsf37 lsf37 commented Dec 10, 2023

Setting the environment variable INPUT_NUM_DOMAINS will cause the build to override the KernelNumDomains setting in the config file with the provided setting. INPUT_NUM_DOMAINS is the name we get from the GitHub workflow input with the name NUM_DOMAINS.

The second commit switches the test to the following NUM_DOMAINS settings:

  • PRs: default as in config file, no matrix
  • push to master: with NUM_DOMAINS = 1 and default (= '')
  • weekly test: with NUM_DOMAINS = 1, 7, and default

The default is 16 in the current config files. 1 leads to structural code changes is the setting most likely to break. 7 is for checking that the proofs also work with a value that is not a power of 2.

This needs seL4/ci-actions#293 to be merged first.

Setting the environment variable INPUT_NUM_DOMAINS will cause the
build to override the KernelNumDomains setting in the config file with
the provided setting.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37 lsf37 force-pushed the num-domains-override branch from c1db711 to 697fbe4 Compare December 10, 2023 10:55
This will now test with the following num_domains settings:

- PRs: default as in config file, no matrix
- push to master: with NUM_DOMAINS = 1 and default (= '')
- weekly test: with NUM_DOMAINS = 1, 7, and default

The default in the current config files is 16. 1 leads to structural
code changes is the setting most likely to break. 7 is for checking
that the proofs also work with a value that is not a power of 2.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37 lsf37 force-pushed the num-domains-override branch from 697fbe4 to 2114b79 Compare December 10, 2023 11:12
@lsf37 lsf37 self-assigned this Dec 10, 2023
@lsf37 lsf37 added CI continuous integration and testing proof engineering nicer, shorter, more maintainable etc proofs and removed proof engineering nicer, shorter, more maintainable etc proofs labels Dec 10, 2023
@lsf37 lsf37 requested a review from Xaphiosis December 10, 2023 11:14
@Xaphiosis
Copy link
Member

I'm somewhat confused, where does NUM_DOMAINS and INPUT_NUM_DOMAINS meet up? At the github level, NUM_DOMAINS is set, but then in scripts, INPUT_NUM_DOMAINS is read.

@lsf37
Copy link
Member Author

lsf37 commented Dec 11, 2023

I'm somewhat confused, where does NUM_DOMAINS and INPUT_NUM_DOMAINS meet up? At the github level, NUM_DOMAINS is set, but then in scripts, INPUT_NUM_DOMAINS is read.

This is a GitHub thing: workflow input names <n> are mapped to environment variables INPUT_<N> on the test runner machine.

@lsf37 lsf37 merged commit 62f0e20 into master Dec 11, 2023
14 checks passed
@lsf37 lsf37 deleted the num-domains-override branch December 11, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI continuous integration and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants