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

Require OPENMS_TEST_VERBOSE_SUCCESS env variable set if output of successful test executions should be printed #5765

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

timosachsenberg
Copy link
Contributor

Description

Output from successful tests clutter the log. In most cases this information is not needed. Optionally can now be enabled by setting the OPENMS_TEST_VERBOSE_SUCCESS environment variable

Checklist:

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes. (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI:

If your PR is failing you can check out

Note:

  • Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Advanced commands (admins / reviewer only):

  • /rebase will try to rebase the PR on the current develop branch.
  • /reformat (experimental) applies the clang-format style changes as additional commit
  • setting the label NoJenkins will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)

@timosachsenberg timosachsenberg changed the title expect OPENMS_TEST_VERBOSE_SUCCESS env variable set if output of successful test executions should be printed Require OPENMS_TEST_VERBOSE_SUCCESS env variable set if output of successful test executions should be printed Jan 26, 2022
@timosachsenberg
Copy link
Contributor Author

rebuild jenkins

@timosachsenberg timosachsenberg marked this pull request as ready for review January 27, 2022 11:28
@timosachsenberg timosachsenberg merged commit ef6c218 into develop Jan 27, 2022
@timosachsenberg timosachsenberg deleted the feature/reduce_test_output branch January 27, 2022 11:28
@cbielow
Copy link
Contributor

cbielow commented Jan 27, 2022

is this only intended for strings?
And documenting the behaviour would be nice, I think.

@timosachsenberg
Copy link
Contributor Author

it is for all successful lines as these clutter our CI logs and are automatically truncated

@jpfeuffer
Copy link
Contributor

But I think he has a point. There is also "testRealSimilar" and others.

@timosachsenberg
Copy link
Contributor Author

ok I will exclude those lines as well.
were is the best place to document this?

@cbielow
Copy link
Contributor

cbielow commented Jan 27, 2022

No ideal place comes to mind, but maybe installation instructions, at the very end (Testing your OpenMS/TOPP installation)
?

May I suggest to query getenv only once in the ctor of Classtest and caching the result. Otherwise getenv will be called potentially hundreds of times, each time iterating though potentially hundreds of environment variables.

@timosachsenberg
Copy link
Contributor Author

Thanks for the input.
I am looking into alternatives now. E.g., if we can use the ctest verbosity level (which is passed to the test in OpenMS) to disable / enable output of successful tests.

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.

None yet

3 participants