Skip to content

Add handling of data series and scaling data#8

Merged
micaeljtoliveira merged 2 commits intomainfrom
data_series
Oct 2, 2025
Merged

Add handling of data series and scaling data#8
micaeljtoliveira merged 2 commits intomainfrom
data_series

Conversation

@micaeljtoliveira
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (be8eb31) to head (460c24c).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         8    +1     
  Lines          188       211   +23     
=========================================
+ Hits           188       211   +23     

☔ 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.

@micaeljtoliveira micaeljtoliveira force-pushed the data_series branch 2 times, most recently from 33d48ac to 4d4e6d8 Compare September 30, 2025 06:29
@micaeljtoliveira micaeljtoliveira marked this pull request as ready for review September 30, 2025 06:30
@micaeljtoliveira
Copy link
Member Author

@manodeep This one should now be ready for review.

@micaeljtoliveira
Copy link
Member Author

@manodeep I've tried to address all your comments. Please have a look and let me know if you're happy with the changes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@micaeljtoliveira tmax on this line is smaller than tmin - is that supposed to happen?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Related - do we have any sanity checks on the values that tmin <= tavg <= tmax etc?

Copy link
Member Author

Choose a reason for hiding this comment

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

These numbers were originally added by Edward in the other repository and I don't think they were meant to be consistent, as they are only used for testing the parser.

I'm not sure we want to sanity check the numbers coming out of the logs, as that would be a lot of code and a lot of work. For now, let's just assume they are correct.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's fine to assume that the numbers are correct coming from the log files, but can we then swap the numbers in tmin[0] and tmax[0] in this mock profiling data?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, if it bothers you that much, yes, we can swap them. But note that in the context of these unit tests, the actual numbers are quite meaningless.

Copy link
Member Author

Choose a reason for hiding this comment

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

But then most of the other numbers are also problematic: tavg numbers for the "Total runtime" are clearly wrong and tavg for the other region in the 2 CPU case is greater than tmin and tmax...

Copy link
Collaborator

Choose a reason for hiding this comment

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

It probably shouldn't but it does actually bother me 😅

How about a compromise - can we add this an issue/feature request/test to make sure that the semantics of the parsed data are validated?

Copy link
Member Author

@micaeljtoliveira micaeljtoliveira Oct 2, 2025

Choose a reason for hiding this comment

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

I've decided to change the data entirely. Looking at the code being tested, there was no point in having so many metrics. Instead, it seemed more important that the dimensions of the dataset (npucs and number of regions) were different. As said above, the actual numbers are not important, but I made sure tmax values were greater than tmin 😉

Copy link
Collaborator

@manodeep manodeep left a comment

Choose a reason for hiding this comment

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

The linked comment is empty but so I can get another review in. There are two comments that I have made inline as a "reply"

@micaeljtoliveira micaeljtoliveira force-pushed the data_series branch 2 times, most recently from cf73cae to 21d6a2f Compare October 2, 2025 03:55
Copy link
Collaborator

@manodeep manodeep left a comment

Choose a reason for hiding this comment

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

Thanks for the updates - everything looks good. One minor comment - would it be possible to swap the tmin[0] and tmax[0] numbers in the profiling data? That way a future maintainer/reader does not get confused by the semantics of the fake data.

(I am being extra careful since this feature is likely to be re-used by other teams and potentially external folks.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's fine to assume that the numbers are correct coming from the log files, but can we then swap the numbers in tmin[0] and tmax[0] in this mock profiling data?

Copy link
Collaborator

@manodeep manodeep left a comment

Choose a reason for hiding this comment

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

LGTM!

@micaeljtoliveira
Copy link
Member Author

@manodeep Thanks for the review! Feel free to open an issue about the data validation for further discussions.

@micaeljtoliveira micaeljtoliveira merged commit a491eb6 into main Oct 2, 2025
8 checks passed
@micaeljtoliveira micaeljtoliveira deleted the data_series branch October 2, 2025 06:47
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