Skip to content

ci: cns patch testing in release pipeline #3914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

camrynl
Copy link
Contributor

@camrynl camrynl commented Aug 8, 2025

Reason for Change:
Allows for bumping the cns version in the release pipeline byo clusters to test upgrades to the next version. CNS patch test is already in place for cilium scenarios, this PR extends it to the CNIv2 scenarios.
Requires setting upgradeScenario: true in pipeline trigger and updating the following variables:

  • TEST_CNS_VERSION: set to current cns patch
  • CNS_IMAGE_REPO: set the repo for current cns image
  • UPGRADE_CNS_VERSION: set to upgrade cns patch
  • UPGRADE_CNS_IMAGE_REPO: set the repo for upgrade image

Continuation of #3678

Issue Fixed:

Requirements:

Notes:

@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 22:22
@camrynl camrynl requested a review from a team as a code owner August 8, 2025 22:22
@camrynl camrynl requested a review from jimassa August 8, 2025 22:22
@camrynl camrynl added the ci Infra or tooling. label Aug 8, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends the CNS patch testing capability to CNIv2 scenarios in the release pipeline. It allows for testing CNS version upgrades by configuring specific pipeline variables and adds conditional logic to support both regular and upgrade scenarios.

Key changes:

  • Added upgrade scenario support to CNIv2 templates with conditional logic for version handling
  • Enhanced log artifact naming to differentiate between regular and upgrade test runs
  • Extended pipeline configuration to include CNIv2 upgrade test stages alongside existing Cilium upgrade tests

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 12 comments.

File Description
.pipelines/npm/npm-cni-integration-test.yaml Added configurable log type parameter for artifact naming
.pipelines/cni/singletenancy/cniv2-template.yaml Added upgrade scenario support with conditional stage creation and CNS version handling
.pipelines/cni/pipeline.yaml Added CNIv2 upgrade test stages and updated documentation comment
.pipelines/cni/cilium/cilium-overlay-load-test-template.yaml Fixed job dependency to include CNS deployment

@camrynl camrynl enabled auto-merge August 14, 2025 17:25
@camrynl
Copy link
Contributor Author

camrynl commented Aug 14, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@camrynl camrynl added this pull request to the merge queue Aug 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Infra or tooling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants