chore(ci): simplify import profiler metrics and remove P90/P99 stats - #17775
Merged
Conversation
hebaalazzeh
force-pushed
the
feat/improve-import-profiler-metrics
branch
from
July 20, 2026 15:40
4d553b4 to
68f04cd
Compare
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces an import_profile test step in the CI pipeline and enhances the Python SDK import profiler to support package-based module auto-detection, cache burn-in iteration discarding, and performance regression checks against baseline CSVs. The reviewer feedback highlights several key improvements for robustness and testability, including quoting shell variables in the CI script, preventing potential TypeError and StopIteration exceptions during CSV parsing and parameter handling, and refactoring run_master to return exit codes instead of calling sys.exit() directly.
hebaalazzeh
force-pushed
the
feat/improve-import-profiler-metrics
branch
5 times, most recently
from
July 20, 2026 16:00
57cb1ba to
912a0db
Compare
hebaalazzeh
force-pushed
the
feat/improve-import-profiler-metrics
branch
from
July 20, 2026 16:01
912a0db to
740a160
Compare
hebaalazzeh
marked this pull request as ready for review
July 20, 2026 16:09
parthea
approved these changes
Jul 20, 2026
hebaalazzeh
added a commit
that referenced
this pull request
Jul 20, 2026
…17775) This PR improves the import profiler tool ci check (#17657) by simplifying its output metrics: - **Simplified & Reliable Stats**: Shows only `Min`, `P50` (Median), `Max`, and `StdDev`. Removed the calculation and formatting of `P90`, `P99`, and `Mean` stats as they are not reliable for the standard 10-iteration sample size. - **Enhanced Readability**: Reordered the output values from lowest to highest (`Min` -> `P50` -> `Max`). - **Sample Size Indicator**: Included the number of iterations (`[N=...]`) in the title of each metric section to make sample sizes explicit. - **Cleaned Up Dead Code**: Removed the unused `_calculate_percentiles` helper function to keep the codebase clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the import profiler tool ci check (#17657) by simplifying its output metrics:
Min,P50(Median),Max, andStdDev. Removed the calculation and formatting ofP90,P99, andMeanstats as they are not reliable for the standard 10-iteration sample size.Min->P50->Max).[N=...]) in the title of each metric section to make sample sizes explicit._calculate_percentileshelper function to keep the codebase clean.