Skip to content

[202605] Backport docker-sonic-mgmt and pipeline updates from master#28536

Open
lunyue-ms wants to merge 1 commit into
sonic-net:202605from
lunyue-ms:lunyue/backport-docker-sonic-mgmt-202605
Open

[202605] Backport docker-sonic-mgmt and pipeline updates from master#28536
lunyue-ms wants to merge 1 commit into
sonic-net:202605from
lunyue-ms:lunyue/backport-docker-sonic-mgmt-202605

Conversation

@lunyue-ms

@lunyue-ms lunyue-ms commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Why I did it

dockers/docker-sonic-mgmt/ and .azure-pipelines/docker-sonic-mgmt.yml on 202605 were behind master. This aligns the docker-sonic-mgmt image and its build/scan pipeline on 202605 with master (dependency/security pins, per-container SBOM + SBOM-based vulnerability scan, and the PR-test INCLUDE_JOBS: all).

Work item tracking
  • Microsoft ADO (number only):

How I did it

Took master's version of the affected files directly (rather than per-commit cherry-picks) and adjusted the branch-specific bits, as a single signed-off commit:

  • .azure-pipelines/docker-sonic-mgmt.yml, dockers/docker-sonic-mgmt/Dockerfile.j2 and scripts/build_sbom.py are taken from master (Dockerfile.j2 and build_sbom.py are byte-identical to master).
  • Branch-specific fields target this branch: the schedules/pr branch filters and the sonic-mgmt resource ref202605.
  • The published image is tagged with the branch namedocker-sonic-mgmt:202605 and docker-sonic-mgmt:202605-lastbuild — instead of :latest/:lastbuild, so a 202605 build never overwrites master's shared docker-sonic-mgmt:latest/:lastbuild in the registry. (The local build image tag docker-sonic-mgmt:latest is left unchanged.)

SBOM is kept: 202605 was branched from master after the SBOM feature (#27455) landed, so it already carries the ENABLE_SBOM machinery + scripts/sbom_vuln_scan.py + vex/.

Squashed into one commit authored & signed off by me so DCO passes — the earlier per-commit cherry-picks failed DCO because the upstream squash-merge author identities did not match their Signed-off-by lines.

How to verify it

Build docker-sonic-mgmt on 202605 with ENABLE_SBOM=y; confirm the package set/versions and the SBOM/scan output match master. The pipeline publishes docker-sonic-mgmt:202605.

Which release branch to backport (provide reason below if selected)

This PR is itself the backport to 202605 of changes already on master.

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605
  • 202608

Tested branch

  • 202605

Test result

Pending a build; will update with the tested image version.

Description for the changelog

Align docker-sonic-mgmt image and its SBOM/build pipeline on 202605 with master; publish the image under a branch-qualified tag (docker-sonic-mgmt:202605).

Link to config_db schema for YANG module changes

N/A. No YANG or config_db schema changes.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Align the docker-sonic-mgmt image (Dockerfile.j2), its build/scan pipeline
(.azure-pipelines/docker-sonic-mgmt.yml) and scripts/build_sbom.py with master
so 202605's mgmt build, SBOM generation and SBOM-based vulnerability scan match
master. Branch-specific fields (schedule/pr branch filters and the sonic-mgmt
resource ref) target 202605, and the published image is tagged with the branch
name (docker-sonic-mgmt:202605 and :202605-lastbuild) instead of
:latest/:lastbuild so it never overwrites master's published mgmt image.

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lunyue-ms
lunyue-ms force-pushed the lunyue/backport-docker-sonic-mgmt-202605 branch from a96fc11 to 59acd98 Compare July 23, 2026 02:35
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

This PR has backport request for branch(es): 202605.
Added label(s) for branch(es) 202605.

---Powered by SONiC BuildBot

@mssonicbld

Copy link
Copy Markdown
Collaborator

This PR has backport request label(s) for branch(es): 202605, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202605: <test result>) in the Test result section as well in your PR description.

---Powered by SONiC BuildBot

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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