Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CI] Add --no-install-recommends to clang >= 18 install#180133

Closed
malfet wants to merge 2 commits into
gh/malfet/831/basefrom
gh/malfet/831/head
Closed

[CI] Add --no-install-recommends to clang >= 18 install#180133
malfet wants to merge 2 commits into
gh/malfet/831/basefrom
gh/malfet/831/head

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Apr 11, 2026

Stack from ghstack (oldest at bottom):

The clang >= 18 apt-get path was missing --no-install-recommends, which pulled in llvm-18-dev (~428 MB) as a
recommended dependency of clang-18. The dev package is not needed for CI builds. This brings the install_clang layer from 877 MB to 449 MB.

Authored with Claude.

[ghstack-poisoned]
@malfet malfet requested a review from jeffdaily as a code owner April 11, 2026 19:30
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 11, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/180133

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 63 Pending

As of commit e8520ca with merge base 6222661 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 11, 2026
malfet added a commit that referenced this pull request Apr 11, 2026
The clang >= 18 apt-get path was missing --no-install-recommends (unlike
the older clang path), which pulled in llvm-18-dev (~428 MB) as a
recommended dependency of clang-18. The dev package is not needed for
CI builds. This brings the install_clang layer from 877 MB to 449 MB.

Authored with Claude.


ghstack-source-id: a9c0dda
Pull-Request: #180133
@malfet malfet requested review from a team and Skylion007 April 11, 2026 19:31
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Apr 11, 2026

@pytorchbot merge -f "Let's test it in trunk"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@malfet your PR has been reverted as part of the stack under #180130.

pytorchmergebot added a commit that referenced this pull request Apr 12, 2026
)"

This reverts commit 43feab2.

Reverted #180133 on behalf of https://github.com/huydhn due to I think this detects a leak in trunk and fails ([comment](#180130 (comment)))
@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Apr 12, 2026
[ghstack-poisoned]
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Apr 13, 2026

@pytorchbot merge -f "Let's test in prod"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Apr 13, 2026
The apt valgrind (3.18.1 on jammy) is sufficient for PyTorch's usage (primarily callgrind-based instruction counting in benchmarks). Building 3.20.0 from source also pulled in unnecessary build deps (asciidoc, docbook-xml, docbook-xsl, xsltproc). This saves ~130 MB in the install_base Docker layer and ~70s of build time.

Added suppression for dlopen false-positive, that were fixed in https://sourceware.org/git/?p=valgrind.git;a=commit;h=947388eb043ea1c44b37df94046e1eee790ad776

Authored with Claude.
Pull Request resolved: #180130
Approved by: https://github.com/Skylion007
ghstack dependencies: #180133
pytorchmergebot pushed a commit that referenced this pull request Apr 13, 2026
)

Run git clone, git checkout, and python install.py as the jenkins user directly (via as_jenkins/conda_run), matching the pattern used by install_huggingface() and install_timm() in the same file. This removes two expensive recursive chown calls on the torchbench dir and /opt/conda.

Authored with Claude.
Pull Request resolved: #180180
Approved by: https://github.com/Skylion007
ghstack dependencies: #180133, #180130
@github-actions github-actions Bot deleted the gh/malfet/831/head branch May 14, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants