Repository navigation
Add skip_pip_upgrade for container builds - #1134
Merged
Merged
Conversation
Contributor
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
arjunsuresh
approved these changes
Nov 9, 2026
There was a problem hiding this comment.
🟡 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
--upgradefrom the generated package-install commands. - Requires propagation through higher-level image entry points.
- Requires applying the option to the initial
pip install --upgrade pip setuptoolscommand. - 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 |
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.

🧾 PR Checklist
📁 File Hygiene & Output Handling
📝 Comments & Communication
Fixes #,Related to #, etc.)🛡️ Safety & Security