Skip to content

Add skip_pip_upgrade for container builds - #1134

Merged
arjunsuresh merged 4 commits into
mlcommons:mainfrom
amd:main
Nov 9, 2026
Merged

arjunsuresh merged 4 commits into
mlcommons:mainfrom
amd:main

Conversation

@amd-arsuresh

Copy link
Copy Markdown
Contributor

🧾 PR Checklist

📁 File Hygiene & Output Handling

  • No unintended files (e.g., logs, cache, temp files, pycache, output folders) are committed

📝 Comments & Communication

  • Proper inline comments are added to explain important or non-obvious changes
  • PR title and description clearly state what the PR does and why
  • Related issues (if any) are properly referenced (Fixes #, Related to #, etc.)

🛡️ Safety & Security

  • No secrets or credentials are committed
  • Paths, shell commands, and environment handling are safe and portable

@amd-arsuresh
amd-arsuresh requested a review from a team as a code owner November 9, 2026 05:36
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The change still has two active moderate issues because the new option is not forwarded through the Docker and Apptainer image wrappers, so normal entry points continue generating files with pip upgrades enabled.

2 open issues
What changed in this PR

This pull request adds skip_pip_upgrade support to Dockerfile and Apptainer definition generation.

Changes:

  • Adds Docker and Apptainer metadata mappings for the new option.
  • Conditionally omits --upgrade from the generated package-install commands.
  • Requires propagation through higher-level image entry points.
  • Requires applying the option to the initial pip install --upgrade pip setuptools command.
  • Requires regenerating the affected README documentation.
File Review findings
script/​build-dockerfile/​meta.yaml Moderate (3 votes): The higher-level build,docker,image entry point does not forward skip_pip_upgrade. Nit (1 vote): The generated README does not document the new input.
script/​build-dockerfile/​customize.py Moderate (1 vote): The initial pip install --upgrade pip setuptools command remains unconditional when skipping upgrades is enabled.
script/​build-apptainerfile/​meta.yaml Moderate (3 votes): The higher-level build,apptainer,image entry point does not forward skip_pip_upgrade. Nit (1 vote): The generated README does not document the new input.
script/​build-apptainerfile/​customize.py Moderate (1 vote): The initial pip install --upgrade pip setuptools command remains unconditional when skipping upgrades is enabled.

Review effort: Lite

run_cmd: MLC_APPTAINER_RUN_CMD
run_cmd_extra: MLC_APPTAINER_RUN_CMD_EXTRA
sandbox: MLC_APPTAINER_BUILD_SANDBOX
skip_pip_upgrade: MLC_APPTAINER_SKIP_PIP_UPGRADE
run_cmd_extra: MLC_DOCKER_RUN_CMD_EXTRA
script_tags: MLC_DOCKER_RUN_SCRIPT_TAGS
skip_mlc_sys_upgrade: MLC_DOCKER_SKIP_MLC_SYS_UPGRADE
skip_pip_upgrade: MLC_DOCKER_SKIP_PIP_UPGRADE
@arjunsuresh
arjunsuresh merged commit 02f75f0 into mlcommons:main Nov 9, 2026
121 checks passed
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.

3 participants