Skip to content

Add INCLUDE_JOBS for PR and baseline tests#23123

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
xwjiang-ms:add_include_topo
Mar 20, 2026
Merged

Add INCLUDE_JOBS for PR and baseline tests#23123
StormLiangMS merged 2 commits intosonic-net:masterfrom
xwjiang-ms:add_include_topo

Conversation

@xwjiang-ms
Copy link
Copy Markdown
Contributor

@xwjiang-ms xwjiang-ms commented Mar 19, 2026

Description of PR

Summary:
Keep the shared PR test template limited to t0,t1,t2 by default, and allow baseline pipelines to override the topology scope to run all supported checkers.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

pr_test_template.yml is shared by PR test and baseline test. PR test should stay scoped to the default t0/t1/t2 jobs, but baseline test needs a way to run the full job set, including jobs such as multi-asic.

How did you do it?

Added INCLUDE_JOBS to pr_test_template.yml with default value t0_job,t1_job,t2_job.
Updated each test job condition to check both:

  1. the existing impacted-area PR_CHECKERS result
  2. whether the job is enabled by INCLUDE_JOBS
    Updated baseline.test.mgmt.public.yml to pass INCLUDE_JOBS: all so baseline keeps running the full job set.
    Did not change get-impacted-area.yml.

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS
Copy link
Copy Markdown
Collaborator

Code Review

LGTM — Clean addition of INCLUDE_TOPOLOGIES parameter to the shared PR test template. Good separation: PR tests default to t0,t1,t2 scope, baseline overrides to all. Logic in get-impacted-area.yml correctly gates PR_CHECKERS generation based on the topology list.

Signed-off-by: xiaweijiang <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xwjiang-ms xwjiang-ms changed the title Keep PR test on t0/t1/t2 and enable baseline to run all topologies Add INCLUDE_JOBS for PR and baseline tests Mar 19, 2026
Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit a2cbe5f into sonic-net:master Mar 20, 2026
16 checks passed
@StormLiangMS
Copy link
Copy Markdown
Collaborator

@xwjiang-ms do we need cherrypick?

StormLiangMS pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Mar 23, 2026
Why I did it
In PR sonic-net/sonic-mgmt#23123, I added INCLUDE_JOBS to allow PR test and baseline test in different scopes. So need corresponding change in baseline yaml
Signed-off-by: xiaweijiang <[email protected]>
vrajeshe pushed a commit to vrajeshe/sonic-mgmt that referenced this pull request Mar 23, 2026
What is the motivation for this PR?
pr_test_template.yml is shared by PR test and baseline test. PR test should stay scoped to the default t0/t1/t2 jobs, but baseline test needs a way to run the full job set, including jobs such as multi-asic.

How did you do it?
Added INCLUDE_JOBS to pr_test_template.yml with default value t0_job,t1_job,t2_job.
Updated each test job condition to check both:

the existing impacted-area PR_CHECKERS result
whether the job is enabled by INCLUDE_JOBS
Updated baseline.test.mgmt.public.yml to pass INCLUDE_JOBS: all so baseline keeps running the full job set.
Did not change get-impacted-area.yml.

Signed-off-by: xiaweijiang <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
What is the motivation for this PR?
pr_test_template.yml is shared by PR test and baseline test. PR test should stay scoped to the default t0/t1/t2 jobs, but baseline test needs a way to run the full job set, including jobs such as multi-asic.

How did you do it?
Added INCLUDE_JOBS to pr_test_template.yml with default value t0_job,t1_job,t2_job.
Updated each test job condition to check both:

the existing impacted-area PR_CHECKERS result
whether the job is enabled by INCLUDE_JOBS
Updated baseline.test.mgmt.public.yml to pass INCLUDE_JOBS: all so baseline keeps running the full job set.
Did not change get-impacted-area.yml.

Signed-off-by: xiaweijiang <[email protected]>
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