[code sync] Merge code from sonic-net/sonic-sairedis:202511 to 202601 - #132
Merged
Merged
Conversation
…dress S360 vulnerability (#1976) ### Description of PR Summary: Fixes # (issue) The CI agent pool VMSS `sonic-ubuntu-2ca` (Ubuntu 22.04) is flagged by S360 for pip vulnerabilities **USN-8344-1** and **USN-8344-3** (`python3-pip`). The agent image is being redeployed without `python3-pip`, so any pipeline step that runs `pip3` on the agent will break. This PR migrates the vs-test dependency install from `pip3` to `uv`, which is already provided on the agent by the build-web `init.sh`. ### Type of change - [ ] Bug fix - [ ] New feature - [x] Refactor / cleanup - [ ] Documentation update - [ ] Test improvement ### Approach #### What is the motivation for this PR? Remove the dependency on `python3-pip` from the `sonic-ubuntu-2ca` agents so the S360 USN-8344-1/USN-8344-3 vulnerabilities are no longer detected. `uv` is a drop-in replacement already installed on the agent. ##### Work item tracking - Microsoft ADO **(number only)**: 6035751, 6035790 #### How did you do it? In `.azure-pipelines/test-docker-sonic-vs-template.yml`, replaced the agent-side `sudo pip3 install pytest flaky exabgp docker` with `sudo uv pip install --system pytest flaky exabgp docker`. No uv install step is needed in the pipeline (the agent `init.sh` already installs uv to `/usr/local/bin`). #### How did you verify/test it? Ran the vstest pipeline on the `sonictest` pool: the dependency install step succeeds via uv and the vs tests run as before. #### Any platform specific information? None. Follow-up: the in-container `docker-sonic-vs/Dockerfile` still uses `pip3 install scapy`; not scanned on the VMSS, tracked as future work. ### Documentation N/A. Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
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.
<br>* 20432f22 - (HEAD -> 202601, origin/202511) [ci]sonic-ubuntu-2ca agent pool: migrate from python3-pip to uv to address S360 vulnerability (#1976) (2026-07-08) [mssonicbld]<br>