Skip to content

Conversation

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Dec 30, 2025

Closes #1433

This PR adds an additional check to the testrunner. The key question is whether to run 'all tests' (actully 'all' and 'verbose') or just a subset. We prefer released version to only run a subset (as e.g. total test runtime is monitored). So far we made the decision based on release versions such as '1.1.0' (having three components) version development snapshot such as 1.1.0.13' (have four, or more). We have been operating in a way where only the latter gets all tests.

So here we propose to addtionally check for an environment variable that may be a 'tell' for a situation where we rather not run tests, so we now consider this too.

Checklist

  • Code compiles correctly
  • R CMD check still passes all tests
  • Preferably, new tests were added which fail without the change
  • Document the changes by file in ChangeLog

Comment on lines +6 to +7
if (Sys.getenv("OMP_THREAD_LIMIT", unset="") != "" && # it is set
Sys.getenv("OMP_THREAD_LIMIT") == "2") { # value is two
Copy link
Member

Choose a reason for hiding this comment

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

This could be just

if (Sys.getenv("OMP_THREAD_LIMIT", unset="") == "2")

or am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hah! That is what I started from and then, somehow, I stared at it long enough to convince myself that what I committed was better. And of course I no longer see why ... Will ponder some more and likely revert.

Copy link
Member

@Enchufa2 Enchufa2 left a comment

Choose a reason for hiding this comment

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

Small comment. Otherwise, LGTM!

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.

Refine heuristic regarding when to run all tests

3 participants