Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yutongzhang-microsoft committed Jan 21, 2025
1 parent 35c69b7 commit 5e89ef4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ steps:
pip install azure-kusto-data
pip install azure-kusto-data azure-identity
echo "${{ parameters.PREPARE_TIME }}"
INSTANCE_NUMBER=$(python ./.azure-pipelines/impacted_area_testing/calculate_instance_number.py --scripts $(SCRIPTS) --topology ${{ parameters.TOPOLOGY }} --branch ${{ parameters.BUILD_BRANCH }} --prepare_time ${{ parameters.PREPARE_TIME }})
if [[ $? -ne 0 ]]; then
Expand Down
70 changes: 35 additions & 35 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,44 +23,44 @@ trigger: none
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)

stages:
- stage: Pre_test
jobs:
- job: static_analysis
displayName: "Static Analysis"
timeoutInMinutes: 10
continueOnError: false
pool: sonic-ubuntu-1c
steps:
- template: .azure-pipelines/pre-commit-check.yml

- job: validate_test_cases
displayName: "Validate Test Cases"
timeoutInMinutes: 30
continueOnError: false
pool: sonic-ubuntu-1c
steps:
- template: .azure-pipelines/pytest-collect-only.yml
parameters:
MGMT_BRANCH: ""

- job: dependency_check
displayName: "Dependency Check"
timeoutInMinutes: 10
pool: sonic-ubuntu-1c
steps:
- template: .azure-pipelines/dependency-check.yml

- job: markers_check
displayName: "Markers Check"
timeoutInMinutes: 10
pool: sonic-ubuntu-1c
steps:
- template: .azure-pipelines/markers-check.yml
#- stage: Pre_test
# jobs:
# - job: static_analysis
# displayName: "Static Analysis"
# timeoutInMinutes: 10
# continueOnError: false
# pool: sonic-ubuntu-1c
# steps:
# - template: .azure-pipelines/pre-commit-check.yml
#
# - job: validate_test_cases
# displayName: "Validate Test Cases"
# timeoutInMinutes: 30
# continueOnError: false
# pool: sonic-ubuntu-1c
# steps:
# - template: .azure-pipelines/pytest-collect-only.yml
# parameters:
# MGMT_BRANCH: ""
#
# - job: dependency_check
# displayName: "Dependency Check"
# timeoutInMinutes: 10
# pool: sonic-ubuntu-1c
# steps:
# - template: .azure-pipelines/dependency-check.yml
#
# - job: markers_check
# displayName: "Markers Check"
# timeoutInMinutes: 10
# pool: sonic-ubuntu-1c
# steps:
# - template: .azure-pipelines/markers-check.yml


- stage: Test
dependsOn: Pre_test
condition: and(succeeded(), in(dependencies.Pre_test.result, 'Succeeded'))
# dependsOn: Pre_test
# condition: and(succeeded(), in(dependencies.Pre_test.result, 'Succeeded'))
variables:
- group: SONiC-Elastictest
- name: inventory
Expand Down

0 comments on commit 5e89ef4

Please sign in to comment.