Skip to content

Clean install baseline before dependency changes - #272

Draft
mihncalo wants to merge 3 commits into
mlcommons:mainfrom
Keysight:docs/issue-236-clean-install-baseline-before-dependency-changes
Draft

mihncalo wants to merge 3 commits into
mlcommons:mainfrom
Keysight:docs/issue-236-clean-install-baseline-before-dependency-changes

Conversation

@mihncalo

@mihncalo mihncalo commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Created a workflow file (install_baseline.yml) that installs an old version of Chakra, before #233, six times on fresh GitHub machines, exactly as its user guide said at that time, and measures how long each install takes.

What each measure job does

Each of the six jobs (Python 3.11.18 and 3.13.18, three runs each) runs on its own fresh ubuntu-24.04 runner:

# Step Timed
– Check out the repo (full history) and install Python with actions/setup-python, as in #227. No pip cache. no
– Record the runner (image, OS, CPUs, Python, git, commits) in env.txt; unpack Chakra at 2ee864f. no
1 python3 -m venv chakra_env, activate. yes
– Upgrade pip to 26.3, needed for the PyPI cutoff. no
2 pip install . (Chakra). Builds the protobuf code and installs HTA as a git dependency. yes
3 PARAM: clone, checkout 7b19f58, pip install . in et_replay. yes
4 HTA: clone, checkout d731cc2, submodules, pip install -r requirements.txt, pip install -e .. Reinstalls the HTA from step 2, as the user guide did; #233 removed this step. yes
– Checks: import Chakra's protobuf module, et_replay and hta; chakra_converter --help; chakra_trace_link --help. no
– Count downloads and network retries; check every downloaded file predates the cutoff. no
– Upload logs, package lists and metrics as an artifact (always, 90 days); fail the job if any step failed. no

Every pip install uses the cutoff (PIP_UPLOADED_PRIOR_TO), no cache and no runner pip config. Wall time = steps 1–4. A failed command skips the rest of its step; later steps still run and the failure is recorded.

Test Plan

When it runs

Trigger What starts it
Push A push to the branch docs/issue-236-clean-install-baseline-before-dependency-changes and the push changes the workflow file. A push that changes other files only does not start it.
Manual The Run workflow button in the Actions tab. GitHub shows this button only after the file is on the default branch (main).

Results

CI Run Link: https://github.com/Keysight/chakra/actions/runs/45408965325

Clean-install baseline: main before #233

Chakra commit 2ee864f (main before #233)
Install USER_GUIDE.md steps 1-4: venv, Chakra, PARAM, HTA
PyPI cutoff 2026-11-05T20:28:23Z
pip 26.3, no cache
Runner image ubuntu24 20261116.376.1

Runs

Python Run Wall time (s) Downloads Failures Counted
3.11.18 1 40.68 110 none yes
3.11.18 2 44.76 110 none yes
3.11.18 3 43.27 110 none yes
3.13.18 1 50.06 109 none yes
3.13.18 2 41.33 109 none yes
3.13.18 3 42.91 109 none yes
3.15.2 1 64.63 110 none yes
3.15.2 2 58.40 110 none yes
3.15.2 3 44.45 110 none yes

Per Python version

Python Counted runs Median (s) Min (s) Max (s) Same packages in all runs
3.11.18 3 43.27 40.68 44.76 yes
3.13.18 3 42.91 41.33 50.06 yes
3.15.2 3 58.40 44.45 64.63 yes
Definitions
  • Wall time: steps 1-4 back to back. The pip upgrade between steps 1 and 2 is not timed.
  • Downloads: files pip downloaded. With no cache, a file a later step needs again (setuptools for each build) is downloaded again and counts again.
  • Counted: every step exited with 0 and pip made no network retries.
  • Same packages: all runs of the version downloaded the same files and installed the same versions.
  • The time of each step is in metrics.txt in each run's artifact.

Aditional Notes

This PR is, for the moment, only open to showcase the base install times on different Python versions ( including 3.15, which will be possible to use once #271 is merged and removes the cap on requires-python

Closes #236

@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@theodorbadea theodorbadea 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.

Let's put this on hold for a moment until we address the removal of grpcio-tools so that we could do the tests with Python 3.15 instead of 3.13.

@mlcommons-cla-bot

Copy link
Copy Markdown

MLCommons CLA bot: All contributors are covered by the MLCommons CLA ✍️ ✅

@mihncalo
mihncalo marked this pull request as draft November 24, 2026 14:10
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.

Record the clean-install time baseline before the dependency changes

2 participants