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

Fix the non-running of slow tests in CI #89

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

diazona
Copy link
Owner

@diazona diazona commented Oct 4, 2023

When I added the feature to skip slow tests in CI under most conditions, I made the classic mistake of using the logical ternary operator pattern A && B || C with B being something that evaluates to boolean false. So the result was always C, i.e. '-m "not slow"', which skips the slow tests.

In this commit I'm flipping the sense of the condition so that I can put the truthy value '-m "not slow"' in position B, which makes it work properly.

I tested this with another manually triggered workflow run, and this time it did run the distribution package tests which are normally skipped.

Closes #86

When I added the feature to skip slow tests in CI under most conditions,
I made the classic mistake of using the logical ternary operator pattern
A && B || C with B being something that evaluates to boolean false. So
the result was always C, i.e. '-m "not slow"', which skips the slow
tests.

In this commit I'm flipping the sense of the condition so that I can put
the truthy value '-m "not slow"' in position B, which makes it work
properly.

I hate Javascript :-( or more precisely, the miniature Javascript-based
logic expressions that Github supports in workflow definitions, along
with the lack of strong typing.
@diazona diazona added this to the Initial release milestone Oct 4, 2023
@diazona diazona requested a review from sjlongland October 4, 2023 09:45
@diazona diazona enabled auto-merge October 4, 2023 17:24
@diazona diazona merged commit d5df489 into main Oct 4, 2023
10 checks passed
@diazona diazona deleted the fix-slow-tests/1/dev branch October 4, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow tests do not run from manually triggered workflows
2 participants