Skip to content

Commit

Permalink
Remove pre-test and GIT_SECRETS from baseline test (#12778)
Browse files Browse the repository at this point in the history
* Remove pre-test and GIT_SECRETS from baseline test

Baseline test is to run PR tests multiple times to surface flaky issues.
The pre-test step is to find out if there is any importing dependency issue
between test scripts. This dependency issue only could happen with new
PRs. During baseline test, the dependency issue won't happen. It is unnecessary
for baseline test.

The GIT_SECRETS variable is not really used by baseline tests. This change also
deleted the reference to GIT_SECRETS variable group.

Signed-off-by: Xin Wang <[email protected]>

* Fix depends on conditions

---------

Signed-off-by: Xin Wang <[email protected]>
  • Loading branch information
wangxin authored May 21, 2024
1 parent 416ec58 commit 2b1161e
Showing 1 changed file with 3 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,73 +12,52 @@ schedules:
always: true

stages:
- stage: Pre_test
variables:
- group: GIT_SECRETS
jobs:
- job: validate_test_cases
displayName: "Validate Test Cases"
timeoutInMinutes: 20
continueOnError: false
pool: ubuntu-20.04
steps:
- template: ../pytest-collect-only.yml

- stage: Test_round_1
dependsOn:
- Pre_test
condition: succeeded('Pre_test')
variables:
- group: SONiC-Elastictest
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.yaml
- group: GIT_SECRETS
jobs:
- template: baseline.test.template.yml

- stage: Test_round_2
dependsOn:
- Pre_test
- Test_round_1
condition: and(succeeded('Pre_test'), succeededOrFailed('Test_round_1'))
condition: succeededOrFailed('Test_round_1')
variables:
- group: SONiC-Elastictest
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.yaml
- group: GIT_SECRETS
jobs:
- template: baseline.test.template.yml

- stage: Test_round_3
dependsOn:
- Pre_test
- Test_round_2
condition: and(succeeded('Pre_test'), succeededOrFailed('Test_round_2'))
condition: succeededOrFailed('Test_round_2')
variables:
- group: SONiC-Elastictest
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.yaml
- group: GIT_SECRETS
jobs:
- template: baseline.test.template.yml

- stage: Test_round_4
dependsOn:
- Pre_test
- Test_round_3
condition: and(succeeded('Pre_test'), succeededOrFailed('Test_round_3'))
condition: succeededOrFailed('Test_round_3')
variables:
- group: SONiC-Elastictest
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.yaml
- group: GIT_SECRETS
jobs:
- template: baseline.test.template.yml

0 comments on commit 2b1161e

Please sign in to comment.