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

Make the CI more robust w.r.t. the test_comp_bisim job #2024

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

RyanGlScott
Copy link
Contributor

@RyanGlScott RyanGlScott commented Feb 1, 2024

A collection of various CI and test case–related fixes, observed in the aftermath of #2023:

Mergify: Require coverage test job to pass

Not doing so gives Mergify the freedom to merge a PR even if the coverage CI test job fails, as observed in #2023.

Make test_comp_bisim complete in slightly less time

Locally, this shaves off about 10 seconds from the overall verification time, and it should make this test case finish more reliably within the CI's time limits.

Skip test_comp_bisim test with coverage enabled

Sadly, building SAW with coverage enabled causes it to use noticeably more memory at runtime, which is enough to exceed the GitHub Actions CI runners' maximum memory and cause the job to be SIGKILL'ed when running the test_comp_bisim job. It's not obvious how to fix this, so we simply disable the test_comp_bisim job in CI when running with coverage enabled.

CI: Install specific HPC version on coverage job

This ensures that the default GHC version that GitHub Actions provides (which is not fixed and is likely not to match the version that was used to build SAW with coverage) does not influence which version of hpc is fixed to compute code coverage.

Not doing so gives Mergify the freedom to merge a PR even if the `coverage` CI
test job fails, as observed in
#2023.
@RyanGlScott RyanGlScott added the tooling: CI Issues involving CI/CD scripts or processes label Feb 1, 2024
RyanGlScott and others added 3 commits February 1, 2024 19:23
Locally, this shaves off about 10 seconds from the overall verification time,
and it should make this test case finish more reliably within the CI's time
limits.

Co-authored-by: Eddy Westbrook <[email protected]>
Sadly, building SAW with coverage enabled causes it to use noticeably more
memory at runtime, which is enough to exceed the GitHub Actions CI runners'
maximum memory and cause the job to be SIGKILL'ed when running the
`test_comp_bisim` job. It's not obvious how to fix this, so we simply disable
the `test_comp_bisim` job in CI when running with coverage enabled.
This ensures that the default GHC version that GitHub Actions provides (which
is not fixed and is likely not to match the version that was used to build SAW
with coverage) does not influence which version of `hpc` is fixed to compute
code coverage.
Copy link
Contributor

@eddywestbrook eddywestbrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ryan!

@RyanGlScott RyanGlScott added the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Feb 2, 2024
@mergify mergify bot merged commit ae35e76 into master Feb 2, 2024
40 checks passed
@mergify mergify bot deleted the ci-robustness-tweaks branch February 2, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run tooling: CI Issues involving CI/CD scripts or processes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants