Skip to content

Add ip service tags update hook#4565

Merged
LiliDeng merged 1 commit into
mainfrom
baihua/tag_hook
Jun 29, 2026
Merged

Add ip service tags update hook#4565
LiliDeng merged 1 commit into
mainfrom
baihua/tag_hook

Conversation

@lubaihua33

@lubaihua33 lubaihua33 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Add IP service tags update hook

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Have run some tests for ip_service_tags. They are all passed.

Test Results

Image VM Size Result
Canonical 0001-com-ubuntu-server-focal 20_04-lts-gen2 latest Standard_D2s_v3 PASSED

Copilot AI review requested due to automatic review settings June 29, 2026 03:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an Azure pluggy hook to allow extending/overriding Public IP service tags during ARM deployment parameter creation, enabling subscription-specific customization without modifying core deployment logic.

Changes:

  • Adds a new Azure hookspec azure_update_ip_service_tag intended to let plugins update Public IP service tags before deployment.
  • Invokes the new hook during Azure ARM deployment parameter construction, with a fallback to the existing BYOIP default tag when no tags are set.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
lisa/sut_orchestrator/azure/platform_.py Calls the new hook while constructing ARM deployment parameters (Public IP service tags).
lisa/sut_orchestrator/azure/hooks.py Defines the new Azure hookspec for updating IP service tags.

Comment thread lisa/sut_orchestrator/azure/platform_.py
Comment thread lisa/sut_orchestrator/azure/hooks.py
Comment thread lisa/sut_orchestrator/azure/hooks.py
@github-actions

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 57.005

@github-actions

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 51.195

@LiliDeng LiliDeng merged commit d092854 into main Jun 29, 2026
61 checks passed
@LiliDeng LiliDeng deleted the baihua/tag_hook branch June 29, 2026 11:00
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