Skip to content

[ci]: Pin sonic-buildimage to pre-LLDP build to unblock vstests#1958

Merged
lolyu merged 1 commit into
sonic-net:masterfrom
lolyu:pin-buildimage-vstest2
Jun 26, 2026
Merged

[ci]: Pin sonic-buildimage to pre-LLDP build to unblock vstests#1958
lolyu merged 1 commit into
sonic-net:masterfrom
lolyu:pin-buildimage-vstest2

Conversation

@lolyu

@lolyu lolyu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description of PR

Temporarily pin the sonic-buildimage docker-sonic-vs artifact download to build 1141167 (20260617.1, commit f1d42c1a) — the last master sonic-buildimage build before PR #26724 merged and broke the DVS (vs) tests.

This mirrors the same workaround applied in sonic-swss PR #4700.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation update
  • Test improvement

Approach

What is the motivation for this PR?

  • Microsoft ADO (number only): 38615544

sonic-buildimage PR #26724 renamed the docker-sonic-vs supervisor program from start.sh to start in platform/vs/docker-sonic-vs/supervisord.conf.j2. The vs tests' DVS readiness check (DockerVirtualSwitch.check_services_ready) polls for the start.sh program to be EXITED. With the renamed program, process_status.get("start.sh") returns None, so the readiness poll never succeeds, every DVS spin-up times out after 60s, and all vs test modules fail at setup (with teardown then failing with 'NoneType' object has no attribute 'get_logs').

This blocks sonic-sairedis CI. Pinning the buildimage VS artifact to the last known-good build unblocks CI while the upstream issue is resolved.

Work item tracking
  • Microsoft ADO (number only):

How did you do it?

In .azure-pipelines/build-docker-sonic-vs-template.yml, changed the Azure.sonic-buildimage.official.vs / sonic-buildimage.vs download from latestFromBranch to specific with runId: 1141167.

This is the only sonic-sairedis download from that pipeline (it fetches just docker-sonic-vs.gz), so it is the single place that needs pinning. Unlike sonic-swss PR #4700 — which pins two tasks from that pipeline (the docker-sonic-vs.gz image and a framework_*.deb) — sonic-sairedis never downloads the sonic-framework deb, so only one hunk is required. Other artifacts (swss-common, sairedis, dash-api, Azure.sonic-buildimage.common_libs libnexthopgroup, vpp) are from different pipelines unaffected by the rename and remain on latestFromBranch.

This is a temporary workaround — revert to latestFromBranch once sonic-buildimage PR #26724 is fixed.

How did you verify/test it?

CI will download the pinned artifact and run DVS tests against the known-good buildimage. YAML validated locally (yaml.safe_load).

Any platform specific information?

CI/pipeline-only change (virtual switch DVS tests). No production code or runtime behavior is affected.

Documentation

N/A — temporary CI workaround, no documentation/Wiki changes needed.

Temporarily pin the sonic-buildimage docker-sonic-vs artifact download to
build 1141167 (20260617.1, commit f1d42c1) - the last master
sonic-buildimage build before PR #26724 merged.

sonic-buildimage PR #26724 renamed the docker-sonic-vs supervisor program
from "start.sh" to "start" in
platform/vs/docker-sonic-vs/supervisord.conf.j2. The DVS readiness check in
the vs tests polls for the "start.sh" program to be EXITED, so with the new
base image the poll never succeeds and every DVS spin-up times out after
60s, failing all vs test modules.

Pinning the Azure.sonic-buildimage.official.vs / sonic-buildimage.vs
download to the known-good build unblocks sonic-sairedis CI while the
upstream issue is resolved. Revert to latestFromBranch afterwards.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@lolyu
lolyu marked this pull request as ready for review June 26, 2026 03:05
@lolyu
lolyu requested a review from yijingyan2 June 26, 2026 03:05
@lolyu

lolyu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

@deepak-singhal0408

Copy link
Copy Markdown
Contributor

What's the agreed direction here — unblock sonic-sairedis CI with this temporary image pin now, or wait for the buildimage fix (revert #28054) to land first? A few PRs (e.g. #1919) are blocked on the red vstest.

@lolyu
lolyu merged commit 7b3b8f3 into sonic-net:master Jun 26, 2026
19 checks passed
saiarcot895 pushed a commit that referenced this pull request Jul 13, 2026
…ts (#1958)" (#1977)

This reverts commit 7b3b8f3.

The DVS image in upstream sonic-buildimage has been fixed, so we
no longer need to the docker-sonic-vs image to an older version.
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.

4 participants