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

PerfMeasurements: add ability to simulate measurements #358

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

olichtne
Copy link
Collaborator

@olichtne olichtne commented Jan 23, 2024

Description

The "bottom" measurements - meaning the most core measurement in a list of measurements that we may run can now be "simulated".

This means that instead of actually running the measurement tools/commands we instead run the following command:

echo simulated start

And instead of returning real measurement results we return the same structure of data with a single 0 value perf interval.

Combining this we can now run all of our ENRT recipes in a "simulation" that preserves the number of commands per test recipe run and should return results compatible with all of our tooling with just the basic 0 value.

The cpu measurement simulation does actually call the real measurement, this is because this isn't a "bottom/core" measurement and is instead designed to always wrap some other measurement.

Tests

I want to use this to generate baseline to threshold mapping for all of the tests and machines that we currently use so i'll link those jobs to here once i have confirmed everything works.

Reviews

(Please add a list of reviewers that should check the validity and sanity of
this merge request before it's accepted. Use the @username syntax. If you
don't know who to mention just link @all.)

Closes: #

@olichtne olichtne self-assigned this Jan 23, 2024
@olichtne olichtne requested a review from jtluka January 23, 2024 15:03
@olichtne olichtne force-pushed the simulate_perf_test branch 3 times, most recently from 2d73fd6 to a9b14a9 Compare January 25, 2024 09:46
@olichtne
Copy link
Collaborator Author

Testing successful in beaker job: J:8848773

The "bottom" measurements - meaning the most core measurement in a list
of measurements that we may run can now be "simulated".

This means that instead of actually running the measurement
tools/commands we instead run the following command:

    echo simulated start

And instead of returning real measurement results we return the same
structure of data with a single 0 value perf interval.

Combining this we can now run all of our ENRT recipes in a "simulation"
that preserves the number of commands per test recipe run and should
return results compatible with all of our tooling with just the basic 0
value.

The cpu measurement simulation does actually call the real measurement,
this is because this isn't a "bottom/core" measurement and is instead
designed to always wrap some other measurement.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
@olichtne
Copy link
Collaborator Author

J:8917772 new test for the rebased MR

@olichtne
Copy link
Collaborator Author

the tests still look ok so i'll merge this in now.

@olichtne olichtne merged commit bd86ed0 into LNST-project:master Feb 13, 2024
3 checks passed
@olichtne olichtne deleted the simulate_perf_test branch February 13, 2024 09:06
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.

1 participant