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

testsuite: skip huge test unless requested #210

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

garlick
Copy link
Member

@garlick garlick commented Sep 17, 2024

Problem: the debian riscv64 build environment is failing on the el capitan scaling test.

We don't have detailed test output to diagnose the failure but we can probably assume that this is a fairly under-powered builder.

Disable the test unless TEST_LONG is set in the test environment. Set TEST_LONG when the github workflow runs make check, so we won't lose this coverage in github CI.

Fixes #206

@garlick
Copy link
Member Author

garlick commented Sep 17, 2024

oops might need to do this another way

@garlick
Copy link
Member Author

garlick commented Sep 17, 2024

TEST_LONG=t make check always fails because one of the sharness tests checks that EXPENSIVE tests don't run by default.

Switched the prereq to EXPENSIVE (the correct prereq name to go with TEST_LONG) and also let the test run if GITHUB_CI is set in the environment, then set that in the workflow.

Copy link
Member

@chu11 chu11 left a comment

Choose a reason for hiding this comment

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

lgtm, although I'd recommend adding a comment to t0039 that says set TEST_LONG=1 ... to run. I know I'm going to see that prereq check and do EXPENSIVE=1 make check and be confused why it didn't work :-)

Edit: I guess optionally could do a README.md as well to list testing notes / quirks. But not sure if this is alone crosses the threshold to start a README.md. Up to you :-)

@garlick
Copy link
Member Author

garlick commented Sep 17, 2024

Sure I'll add that and then set MWP. Thanks!

Problem: the debian riscv64 build environment is failing on the
el capitan scaling test.

We don't have detailed test output to diagnose the failure but we
can probably assume that this is a fairly under-powered builder.

Set the EXPENSIVE built-in test prereq so that this test only runs
if TEST_LONG is set in the environment or the --long test option is
given.

To avoid losing coverage in github CI, also allow the test to run
if GITHUB_CI is set in the environment, and then set it where the
workflow runs make check.

Fixes chaos#206

more
@mergify mergify bot merged commit dec7819 into chaos:master Sep 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

powerman 2.4.4 post-build test failure in Debian risc-v building
2 participants