Implementation of "Impacted Area Based PR testing". #15666
Merged
wangxin merged 48 commits intosonic-net:masterfrom Dec 31, 2024
Merged
Implementation of "Impacted Area Based PR testing". #15666wangxin merged 48 commits intosonic-net:masterfrom
wangxin merged 48 commits intosonic-net:masterfrom
Conversation
lerry-lee
reviewed
Dec 4, 2024
.azure-pipelines/impacted_area_testing/impacted-area-elastictest-template.yml
Outdated
Show resolved
Hide resolved
.azure-pipelines/impacted_area_testing/calculate-instance-numbers.yml
Outdated
Show resolved
Hide resolved
Comment on lines
+22
to
+33
| ingest_cluster = os.getenv("TEST_REPORT_QUERY_KUSTO_CLUSTER_BACKUP") | ||
| access_token = os.getenv('ACCESS_TOKEN', None) | ||
|
|
||
| if not ingest_cluster or not access_token: | ||
| raise RuntimeError( | ||
| "Could not load Kusto Credentials from environment") | ||
| else: | ||
| kcsb = KustoConnectionStringBuilder.with_aad_application_token_authentication(ingest_cluster, | ||
| access_token) # noqa F841 | ||
|
|
||
| client = KustoClient(kcsb) | ||
|
|
Contributor
There was a problem hiding this comment.
If query from kusto fail, post action will be blocked, right? So, suggest to enhance it with setting default instance_num for the calculate_instance_number task.
Contributor
Author
There was a problem hiding this comment.
We have set the default instance number MAX_INSTANCE_NUMBER
8 tasks
c9d0353 to
46f8aef
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wangxin
reviewed
Dec 30, 2024
|
|
||
| - script: | | ||
| set -e | ||
| set -x |
Contributor
Author
There was a problem hiding this comment.
I change this because I want to get more information in our roll out stage. We can clearly get the parameters like scripts, min-worker, max-worker passed into the test plan from console by changing this.
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wangxin
approved these changes
Dec 30, 2024
9 tasks
wangxin
pushed a commit
that referenced
this pull request
Jan 10, 2025
In #15666, we introduced a new approach to PR testing called Impacted Area-Based PR Testing. This model will be rolled out in phases. This PR represents step 2 of the rollout, specifically implementing the t1-lag PR checker partly.
11 tasks
wangxin
pushed a commit
that referenced
this pull request
Jan 20, 2025
…6565) What is the motivation for this PR? In #15666, we introduced a new approach to PR testing called Impacted Area-Based PR Testing. This model will be rolled out in phases. This PR implement the left PR checkers. How did you do it? Roll out the left PR checkers. How did you verify/test it? Test by pipeline itself, to see if PR checkers are running as expected.
11 tasks
wangxin
pushed a commit
that referenced
this pull request
Jan 22, 2025
) What is the motivation for this PR? In PRs #15666 and #16403, we partially rolled out the T0 and T1 PR checkers, considering resource utilization since these checkers require over 20 instances and needed to run in parallel with the legacy PR checkers. After a period of observation, we have confirmed the stability of the new system. In this PR, we complete the rollout of the remaining T0 and T1 PR checkers and officially deprecate the old PR checkers. At the same time, we have added all test scripts into PR testing, and we will gather scripts though pytest mark, so we don't need onboarding PR checkers anymore. How did you do it? In this PR, we complete the rollout of the remaining T0 and T1 PR checkers and officially deprecate the old PR checkers. How did you verify/test it? Test by pipeline itself, to see if we can successfully pass the PR checkers.
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Mar 15, 2025
What is the motivation for this PR? We introduce a new model of PR testing called "Impacted Area-Based PR Testing," designed to be time-efficient, cost-efficient, and highly flexible. The HLD is detailed in sonic-net#14761, and this PR represents its implementation How did you do it? We redefine the scope of PR testing by impacted area, which means we will only run the test scripts really affected by the changes. How did you verify/test it? Test by pipeline.
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Mar 15, 2025
…et#16403) In sonic-net#15666, we introduced a new approach to PR testing called Impacted Area-Based PR Testing. This model will be rolled out in phases. This PR represents step 2 of the rollout, specifically implementing the t1-lag PR checker partly.
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Mar 15, 2025
…nic-net#16565) What is the motivation for this PR? In sonic-net#15666, we introduced a new approach to PR testing called Impacted Area-Based PR Testing. This model will be rolled out in phases. This PR implement the left PR checkers. How did you do it? Roll out the left PR checkers. How did you verify/test it? Test by pipeline itself, to see if PR checkers are running as expected.
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Mar 15, 2025
…ic-net#16598) What is the motivation for this PR? In PRs sonic-net#15666 and sonic-net#16403, we partially rolled out the T0 and T1 PR checkers, considering resource utilization since these checkers require over 20 instances and needed to run in parallel with the legacy PR checkers. After a period of observation, we have confirmed the stability of the new system. In this PR, we complete the rollout of the remaining T0 and T1 PR checkers and officially deprecate the old PR checkers. At the same time, we have added all test scripts into PR testing, and we will gather scripts though pytest mark, so we don't need onboarding PR checkers anymore. How did you do it? In this PR, we complete the rollout of the remaining T0 and T1 PR checkers and officially deprecate the old PR checkers. How did you verify/test it? Test by pipeline itself, to see if we can successfully pass the PR checkers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
We introduce a new model of PR testing called "Impacted Area-Based PR Testing," designed to be time-efficient, cost-efficient, and highly flexible. The HLD is detailed in #14761, and this PR represents its implementation
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
We introduce a new model of PR testing called "Impacted Area-Based PR Testing," designed to be time-efficient, cost-efficient, and highly flexible. The HLD is detailed in #14761, and this PR represents its implementation
How did you do it?
We redefine the scope of PR testing by impacted area, which means we will only run the test scripts really affected by the changes.
How did you verify/test it?
Test by pipeline.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation