Skip to content

[feat] Log all tests in perfloggers, not only performance tests #3516

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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

ekouts
Copy link
Contributor

@ekouts ekouts commented Jul 14, 2025

Fixes #3460 .

Copy link

codecov bot commented Jul 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.26%. Comparing base (e3c4b30) to head (6c37513).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3516      +/-   ##
===========================================
- Coverage    91.27%   91.26%   -0.01%     
===========================================
  Files           62       62              
  Lines        13358    13367       +9     
===========================================
+ Hits         12193    12200       +7     
- Misses        1165     1167       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vkarak vkarak changed the title Add option to log sanity results in perfloggers [feat] Add option to log sanity results in perfloggers Jul 17, 2025
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

lI think it should be even simpler. Since log_performance() is already called in sanity failures for performance tests, what if we simply rename it to log_result() and remove the check is_performance_check() from the log_performance()?

I think this should pretty much get us to what we want.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in ReFrame Backlog Jul 18, 2025
@ekouts
Copy link
Contributor Author

ekouts commented Jul 18, 2025

lI think it should be even simpler. Since log_performance() is already called in sanity failures for performance tests, what if we simply rename it to log_result() and remove the check is_performance_check() from the log_performance()?

I think this should pretty much get us to what we want.

But could it be an issue for users if we add more entries in their logging, without giving the option to disable? For CSCS it's of course fine, but I added the option so that we keep compatibility.

@vkarak
Copy link
Contributor

vkarak commented Jul 18, 2025

lI think it should be even simpler. Since log_performance() is already called in sanity failures for performance tests, what if we simply rename it to log_result() and remove the check is_performance_check() from the log_performance()?
I think this should pretty much get us to what we want.

But could it be an issue for users if we add more entries in their logging, without giving the option to disable? For CSCS it's of course fine, but I added the option so that we keep compatibility.

I don't it's such a big issue as it is not breaking anything. Besides, the perflogs are per test, so there will not be new entries in existing files. So I'd rather go with this change than adding yet another configuration parameter.

@ekouts
Copy link
Contributor Author

ekouts commented Jul 18, 2025

lI think it should be even simpler. Since log_performance() is already called in sanity failures for performance tests, what if we simply rename it to log_result() and remove the check is_performance_check() from the log_performance()?
I think this should pretty much get us to what we want.

But could it be an issue for users if we add more entries in their logging, without giving the option to disable? For CSCS it's of course fine, but I added the option so that we keep compatibility.

I don't it's such a big issue as it is not breaking anything. Besides, the perflogs are per test, so there will not be new entries in existing files. So I'd rather go with this change than adding yet another configuration parameter.

Ok! will make the change :)

@ekouts ekouts changed the title [feat] Add option to log sanity results in perfloggers [feat] Log all tests in perfloggers, not only performance tests Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Log results of tests that are not performance tests
2 participants