Skip to content

Add live addon docker image upgrade test#1

Closed
anamehra wants to merge 3771 commits into
masterfrom
anamehra/live_addon_upgrade
Closed

Add live addon docker image upgrade test#1
anamehra wants to merge 3771 commits into
masterfrom
anamehra/live_addon_upgrade

Conversation

@anamehra

@anamehra anamehra commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a standalone live-addon docker image upgrade test.
  • Add --live_addon_docker_image_upgrade_tag for the upgrade target while keeping --live_addon_docker_image_tag as the baseline tag.
  • Add helper flow to teardown stale state, pull the requested registry tag, validate version_matrix, run the container, verify post-start readiness, and check HTTP health.
  • Update the live-addon docker HLD with upgrade-test command-line usage, flow, skip timing, and coverage.

Validation

  • Source PR validation reported 3 passed for live_addon_docker/test_live_addon_docker.py.
  • Local checks on this branch:
    • git diff --check origin/master...HEAD
    • python3 -m py_compile tests/live_addon_docker/conftest.py tests/live_addon_docker/live_addon_docker_helpers.py tests/live_addon_docker/test_live_addon_docker.py

Notes

  • The test skips when either baseline or upgrade image tag is not provided.
  • The same-image skip happens before any DUT steps by comparing baseline and upgrade image_ref from config.
  • The version_matrix check runs after registry pull and before destructive teardown, so an incompatible upgrade leaves the prior container running.

siva-prasad-cisco and others added 30 commits March 2, 2026 17:32
Co-authored-by: Aakash Tiwari <aaktiwar@cisco.com>
…ic-net#2216)

Co-authored-by: Anand Mehra (anamehra) <anamehra@cisco.com>
…g files to master (sonic-net#2382)

Signed-off-by: sdashora <sdashora@cisco.com>
Co-authored-by: rraguraj <rraguraj@cisco.com>
…c-net#2396)

Co-authored-by: Ayushi Srivastava <ayushisr@cisco.com>
…ssion to master (sonic-net#2412)

Co-authored-by: Ayushi Srivastava <ayushisr@cisco.com>
…stbed overview" (sonic-net#2427)

Co-authored-by: Siva Prasad Reddy Mekala Konda (smekalak) <smekalak@cisco.com>
Co-authored-by: Akasha Roy <akroy@sjc-ads-6593.cisco.com>
…ut config deployment automation (sonic-net#2278)

Co-authored-by: Perumal Venkatesh (pevenkat) <pevenkat@cisco.com>
vshelofa and others added 23 commits June 17, 2026 09:47
…ours. (sonic-net#3520)

Co-authored-by: Cursor <cursoragent@cursor.com>
… at report time (sonic-net#3033)

Co-authored-by: Cursor <cursoragent@cursor.com>
…ipelines. (sonic-net#3461)

Co-authored-by: Cursor <cursoragent@cursor.com>
…affic-readiness wait and skip unreliable warmboot tests (sonic-net#3535)

Co-authored-by: Venkata Gouri Rajesh Etla (vrajeshe) <vrajeshe@cisco.com>
…handling (sonic-net#3552)

Signed-off-by: Peter Piao <ppiao@cisco.com>
…11.1/202605 images (sonic-net#3545)

Signed-off-by: Yuriy Harhas <yharhas@cisco.com>
…nic-net#3413)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Venkata Gouri Rajesh Etla (vrajeshe) <vrajeshe@cisco.com>
Require apply_image_tag_to_config before upgrade pulls, run version_matrix
before destructive teardown, and document upgrade flow, skips, and coverage
in the HLD.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fix config-reload table wording, clarify upgrade skip timing, add prepare
step to the upgrade flow diagram, and list the upgrade test in scope.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove pre-test prepare teardown, compare baseline vs upgrade image_ref
before any DUT steps, and run finally cleanup only after baseline install
succeeds. Update HLD upgrade flow and skip timing to match.

Co-authored-by: Cursor <cursoragent@cursor.com>
@anamehra
anamehra force-pushed the anamehra/live_addon_upgrade branch from cbf7228 to 1e844d9 Compare June 30, 2026 19:50
@anamehra anamehra changed the title MIGSOFTWAR-44913: Add live addon docker image upgrade test Add live addon docker image upgrade test Jul 7, 2026
@anamehra
anamehra force-pushed the anamehra/live_addon_upgrade branch from 1e844d9 to fbc5f12 Compare July 7, 2026 22:40
@anamehra anamehra closed this Jul 8, 2026
@anamehra
anamehra deleted the anamehra/live_addon_upgrade branch July 8, 2026 03:01
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.