[docs] Update build prerequisites for Ubuntu 24.04 and add performance tips#25522
Conversation
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
Updates the main build documentation to better support Ubuntu 24.04 hosts and to capture practical build performance guidance for contributors building SONiC images.
Changes:
- Extend recommended host OS guidance to include Ubuntu 24.04 and explain the Python 3.12
impremoval impact on legacyj2cli. - Reframe
scripts/prerequisites.shusage (local run vscurl | bash) and document environment-variable overrides. - Add a new “Build performance tips” section covering RAM vs parallelism, container memory limiting, skipping tests, and
rules/config.user.
becc6a4 to
d77a35c
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Addressed all three Copilot review comments in the latest push:
|
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
7b7d0cb to
f88bb1a
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
f88bb1a to
41fd4e6
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
41fd4e6 to
cf5046f
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
cf5046f to
cb87cad
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Addressed all 3 Copilot review threads:
|
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
CI failures: Azure.sonic-buildimage (t2, optional t1-lag-vpp). Please address/re-run.\n\nAI agent on behalf of Ying. |
|
The t2 and t1-lag-vpp (optional) failures are infra-flaky KVM tests — same pattern seen across many PRs currently. All builds pass. Will need a maintainer to re-trigger Azure pipelines when convenient. |
|
CI is currently failing (Azure/Elastictest). Please re-run or investigate the failing jobs; happy to re-review once green. AI agent on behalf of Ying. |
|
Quick pass: change looks fine. CI has failing Azure impacted-area tests; please rerun/check and update. AI agent on behalf of Ying. |
|
Quick check: CI is currently failing on this PR. Please address the failing checks and I can re-review once it's green.\n\n— AI agent on behalf of Ying |
|
The CI failures here are Azure infrastructure flaky tests (kvmtest-t2, vpp, dualtor, etc.) — not related to the code change. These same tests fail across many unrelated PRs. A maintainer CI re-trigger should get them green. Thanks! |
|
AI agent on behalf of Ying: CI has failing checks at the moment (see GitHub/Azure status). Please re-run or fix failures; I’ll re-review once green. |
|
AI agent on behalf of Ying: Azure.sonic-buildimage failed (kvmtest-t2 / optional kvmtest-t1-lag-vpp). Please re-run/resolve. |
|
AI agent on behalf of Ying: quick scan looks fine, but CI currently shows failures/pending. Please check the failing jobs and rerun; I’ll re-review once green. |
|
CI shows failures (Azure/impacted-area tests). Please re-run or confirm if infra flake. Once green, I can approve.\n\nAI agent on behalf of Ying. |
|
AI agent on behalf of Ying: quick check shows outstanding issues.
|
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying. Quick review: [docs]. No issues found.
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying. Quick review: [docs] Update build prerequisites for Ubuntu 24.04 and add performance tips. No issues found.
3b9d6e3 to
734cf23
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
734cf23 to
14fc5a0
Compare
…e tips - Add Ubuntu 24.04 as supported build OS with Python 3.12+ note - Promote running prerequisites.sh locally instead of curl-piping - Document environment variable overrides for prerequisites.sh - Add build performance section: parallelism/memory trade-offs, OOM protection, test skipping, and rules/config.user usage Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com>
- Clarify that running locally requires setting SONIC_DIR to existing clone - Explain that existing clone skips clone/checkout, installs prereqs only - Fix RAM table to match formula (JOBS × 6 GB + 4 GB) Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com>
14fc5a0 to
5fcdc08
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…e tips (sonic-net#25522) * [docs] Update build prerequisites for Ubuntu 24.04 and add performance tips - Add Ubuntu 24.04 as supported build OS with Python 3.12+ note - Promote running prerequisites.sh locally instead of curl-piping - Document environment variable overrides for prerequisites.sh - Add build performance section: parallelism/memory trade-offs, OOM protection, test skipping, and rules/config.user usage Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> * Address Copilot review: clarify prerequisites usage and fix RAM table - Clarify that running locally requires setting SONIC_DIR to existing clone - Explain that existing clone skips clone/checkout, installs prereqs only - Fix RAM table to match formula (JOBS × 6 GB + 4 GB) Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> --------- Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com> Signed-off-by: Feng Pan <fenpan@microsoft.com>
…e tips (sonic-net#25522) * [docs] Update build prerequisites for Ubuntu 24.04 and add performance tips - Add Ubuntu 24.04 as supported build OS with Python 3.12+ note - Promote running prerequisites.sh locally instead of curl-piping - Document environment variable overrides for prerequisites.sh - Add build performance section: parallelism/memory trade-offs, OOM protection, test skipping, and rules/config.user usage Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> * Address Copilot review: clarify prerequisites usage and fix RAM table - Clarify that running locally requires setting SONIC_DIR to existing clone - Explain that existing clone skips clone/checkout, installs prereqs only - Fix RAM table to match formula (JOBS × 6 GB + 4 GB) Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> --------- Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com>
Changes
Ubuntu 24.04 support
j2cli(theimpmodule was removed) and thatjinjanatoris the drop-in replacementPrerequisites script improvements
scripts/prerequisites.shlocally (after clone) as the primary optioncurl | bashone-liner as a secondary option for fresh setupsSONIC_REPO,SONIC_DIR,BRANCH)Build performance tips (new section)
SONIC_BUILD_MEMORYfor container-scoped OOM protectionBUILD_SKIP_TEST=yfor faster dev iterationrules/config.userexample for persistent configMotivation
New contributors frequently hit these issues:
rules/config.userfor persistent build settingsThis PR consolidates our learnings into the main README.