Skip to content

chore(ci): simplify import profiler metrics and remove P90/P99 stats - #17775

Merged
hebaalazzeh merged 1 commit into
mainfrom
feat/improve-import-profiler-metrics
Jul 20, 2026
Merged

chore(ci): simplify import profiler metrics and remove P90/P99 stats#17775
hebaalazzeh merged 1 commit into
mainfrom
feat/improve-import-profiler-metrics

Conversation

@hebaalazzeh

Copy link
Copy Markdown
Contributor

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.

@hebaalazzeh
hebaalazzeh force-pushed the feat/improve-import-profiler-metrics branch from 4d553b4 to 68f04cd Compare July 20, 2026 15:40

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread ci/run_single_test.sh
Comment thread scripts/import_profiler/profiler.py
Comment thread scripts/import_profiler/profiler.py
Comment thread scripts/import_profiler/profiler.py Outdated
Comment thread scripts/import_profiler/profiler.py Outdated
@hebaalazzeh
hebaalazzeh force-pushed the feat/improve-import-profiler-metrics branch 5 times, most recently from 57cb1ba to 912a0db Compare July 20, 2026 16:00
@hebaalazzeh
hebaalazzeh force-pushed the feat/improve-import-profiler-metrics branch from 912a0db to 740a160 Compare July 20, 2026 16:01
@hebaalazzeh hebaalazzeh self-assigned this Jul 20, 2026
@hebaalazzeh
hebaalazzeh marked this pull request as ready for review July 20, 2026 16:09
@hebaalazzeh
hebaalazzeh requested a review from a team as a code owner July 20, 2026 16:09
@hebaalazzeh
hebaalazzeh merged commit 81390d5 into main Jul 20, 2026
39 checks passed
@hebaalazzeh
hebaalazzeh deleted the feat/improve-import-profiler-metrics branch July 20, 2026 18:04
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.
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