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

Update performance baseline checks #4520

Merged
merged 4 commits into from
Dec 6, 2023
Merged

Conversation

amametjanov
Copy link
Member

Update performance baseline checks:

  • add more details to TestStatus.log for base, comp, threshold tput+mem values
  • append (not overwrite) to perf-baselines to keep history
  • record sha, date, value of new blesses

Test suite: PFS.ne30pg2_r05_oECv3.F2010.chrysalis_intel.bench-noio
Test baseline: same
Test namelist changes: none
Test status: bit for bit

User interface changes?: N
Update gh-pages html (Y/N)?: N

- add more details to TestStatus logs for base, comp, threshold
- append (not overwrite) to perf-baselines to keep history
- record sha and date of new blesses
@@ -429,7 +428,7 @@ def read_baseline_file(baseline_file):
Value stored in baseline file without comments.
"""
with open(baseline_file) as fd:
lines = [x.strip() for x in fd.readlines() if not x.startswith("#")]
lines = [x.strip().split(" ")[-1] for x in fd.readlines() if not x.startswith("#")]

return "\n".join(lines)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be return lines[-1] to return the latest value.

@jasonb5
Copy link
Collaborator

jasonb5 commented Nov 27, 2023

@amametjanov Just need the one change, passing pre-commit and tests. I can fix the tests if you'd like.

@amametjanov amametjanov force-pushed the azamat/baselines/update-perf-info branch from 1f0768d to 94d0d8b Compare December 4, 2023 21:56
Also add black formatting and update unit tests.
@amametjanov amametjanov force-pushed the azamat/baselines/update-perf-info branch from 94d0d8b to ef22a0c Compare December 4, 2023 23:35
@amametjanov amametjanov requested a review from jasonb5 December 4, 2023 23:59
Copy link
Contributor

github-actions bot commented Dec 6, 2023

@jgfouca jgfouca merged commit ea369e9 into master Dec 6, 2023
9 checks passed
@jgfouca jgfouca deleted the azamat/baselines/update-perf-info branch December 6, 2023 16:42
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.

3 participants