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 calculate_results to calculate statistics excluding trimmed samples #12

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

maurermi
Copy link
Contributor

No description provided.

Modify string literals to contain parsec where 3pc is
currently expected.

Signed-off-by: Michael Maurer <[email protected]>
Update variable names, comments where "Phase Two" is
mentioned to reference PArSEC instead

Signed-off-by: Michael Maurer <[email protected]>
Calculation of statistics now omits the first
TRIM_SAMPLES samples

Signed-off-by: Michael Maurer <[email protected]>
@HalosGhost
Copy link
Collaborator

N.B.: includes #11

@HalosGhost HalosGhost self-requested a review July 7, 2023 19:09
@HalosGhost
Copy link
Collaborator

HalosGhost commented Jul 7, 2023

Concept ACK. However, actually deploying the test controller with this change causes test result calculation (and recalculation with trimming) to exit with a failing status (1).

Exploring more carefully locally.

Edit to add: I actually don't think the failure I'm seeing is coming from this change, because it seems to be happening elsewhere now. Consider this a ut-ACK and a 👍; let's chat later about what could be causing this issue!

@HalosGhost
Copy link
Collaborator

HalosGhost commented May 7, 2024

I have some good time to merge things today on the TC, so I'm redeploying and testing this now!

(N.B.: #17 is purely for testing; this PR will be merged if testing is successful.)

Comment on lines +336 to +339
for i in range(len(tps_lines)):
tps_lines[i]["tps"] = tps_lines[i]["tps"][trim_samples:]
for i in range(len(lat_lines)):
lat_lines[i]["lats"] = lat_lines[i]["lats"][trim_samples:]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@maurermi my python is a bit rusty. I was expecting this code to trim the first trim_samples samples from the set, but that doesn't appear to be what's happening when I go to test (the beginning of the test is preserved, and clearly the last trim_samples samples are removed).

It's pretty clear the previous version of the code did exactly that, but I'm not sure why. Perhaps this should be merged (since it correctly applies the trimming to the stats and charts), and we should consider offering a manual trim-from-begin and trim-from-end inputs? (would mirror the auto-trim-zeros split well)

@HalosGhost
Copy link
Collaborator

Assuming this comment is expected, t-ACK, and this is ready-to-merge. If not, then we should evaluate next steps.

@HalosGhost
Copy link
Collaborator

will need manual-rebase as #11 was merged.

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.

2 participants