-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Test} Live test pipeline #15117
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
{Test} Live test pipeline #15117
Changes from all commits
6dea69b
0b26d7a
40bbcd4
7962f86
a53fbad
cbe2c8a
a303a01
dac6e87
50d89a6
48229dc
e94b93b
a8a3780
0f83b43
0f1e3dd
5cf27fd
1bedc24
c9aab05
cf5d1c8
90a4189
305c99b
20caeef
e653800
2f70478
0e3ced9
f8c86fb
691f3c4
6f5b345
51eb33b
17140c4
6400751
d411d1f
a77ba73
1213d61
7e674f5
afb92cf
1444b4c
0fb6330
0a276fb
9261277
408d040
ad77ad0
fb6dfc9
86b5c30
18fc857
c4d0fdd
00f2cc9
1f310d7
6bca711
d9dde29
5aceb5a
55a8b93
605b8de
ae0b9c1
99507b7
a18716d
c09ac09
ec22ced
0e305d5
06215e5
99f6db3
df03bb6
bbe1cf8
b74d612
e2eecc6
1464527
5e4d7f1
f0301c8
4c5a157
6bc2bdf
ad5031d
058e96f
45b7c81
a99a4ae
ae067cd
00db3ba
0d72647
6b4c0a1
8463634
cfcac0f
599f96b
a2e3553
7102272
bdc1c48
39d2227
37722c3
d4eed99
dfc0d75
adca0eb
1478b3a
f0b0a9a
90ff52f
46eee84
1f388aa
1988f7b
89c1c66
2cc0194
2fc8d11
d7e1071
3697b44
8ff45d7
942a008
9e200db
6050fa1
ef20c76
d42631b
34c1621
cbd8596
2493598
6db9c6c
131c7ce
18e12d8
9c4a6f8
b636bf5
0152beb
10408bf
c19fec6
b0008f4
41f7339
a3c112b
1a9bd94
f90e3e9
4a32771
b13b2e0
4292a62
43a2a21
9e46e01
77289a2
96a706c
f0ac2b8
b77ef58
024aafa
9d9d12e
3438ab6
15d301e
5817523
4c35324
859dab4
5ab96bc
d003134
75ede9b
c6222d7
20b7e05
cfa2472
fa5eff5
82f9ff6
67829be
0fb91bc
048e349
db7d5d9
a63b4c4
83508de
98b6a5f
bbaf98e
c0ac001
012bea1
5aa6e15
06354a2
2d024f4
9eaef9a
117db31
9c17e65
9c16587
d731f6c
672af82
344c3e2
45da17a
055d0e8
364ac80
9904984
d638d49
9893610
6e25db4
69f5778
0f09159
7136551
c316f6d
2820104
f5f67cb
fdedd09
15a83f7
34b6350
ae51725
ef3e8a0
f0fc990
a8134be
15b4d1b
64f5dcd
a48eab7
3fe8521
86bbab1
f14daa1
47d40a4
c735781
7056dac
e9d060d
4ac9d9e
1f3e61a
de3426a
951d9a7
9958d64
9de13ec
c218c94
5a94e9b
f690ad5
4a976f2
e07b279
cce842f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,8 +166,19 @@ jobs: | |
| pwd | ||
| ls | ||
| # ssh-keygen -f ~/.ssh/id_rsa -t rsa -N '' | ||
| git clone -b $(USER_BRANCH) $(USER_REPO) | ||
| #git clone https://github.com/Azure/azure-cli-extensions.git | ||
| git config --global user.email "AzurePipelines" | ||
| git config --global user.name "AzurePipelines" | ||
| # Commit changes | ||
| if [[ "$(USER_USERNAME)" != "" || "$(USER_TOKEN)" != "" ]]; then | ||
| REPO="$(USER_REPO)" | ||
| # Pass username and token so that we can commit changes | ||
| git clone -b $(USER_BRANCH) ${REPO:0:8}$(USER_USERNAME):$(USER_TOKEN)@${REPO:8} | ||
| #git clone https://github.com/Azure/azure-cli-extensions.git | ||
| else | ||
| git clone -b $(USER_BRANCH) $(USER_REPO) | ||
| #git clone https://github.com/Azure/azure-cli-extensions.git | ||
| fi | ||
|
|
||
| python -m venv env | ||
| source env/bin/activate | ||
| # pip install azdev | ||
|
|
@@ -176,16 +187,35 @@ jobs: | |
| pip install pytest-json-report | ||
| pip install pytest-html | ||
| pip install pytest-rerunfailures | ||
|
|
||
| azdev setup -c azure-cli | ||
|
|
||
| # az login --service-principal --username $(APP_ID) --password $(PASSWORD) --tenant $(TENANT_ID) | ||
| az login -u [email protected] -p $(AZURECLITESTPASSWORD) | ||
| az account set -s 0b1f6471-1bf0-4dda-aec3-cb9272f09590 | ||
| # Sequential | ||
| azdev test $(Target) $(USER_LIVE) --mark serial --xml-path test_results.sequential.xml --no-exitfirst -a "-n 1 --json-report --json-report-summary --json-report-file=$(Target).report.sequential.json --html=$(Target).report.sequential.html --self-contained-html --reruns 3 -s" | ||
| # Parallel | ||
| azdev test $(Target) $(USER_LIVE) --mark "not serial" --xml-path test_results.parallel.xml --no-exitfirst -a "-n $(USER_PARALLELISM) --json-report --json-report-summary --json-report-file=$(Target).report.parallel.json --html=$(Target).report.parallel.html --self-contained-html --reruns 3 -s" | ||
|
|
||
| # Commit changes | ||
| if [[ "$(USER_USERNAME)" != "" || "$(USER_TOKEN)" != "" ]]; then | ||
| azdev test $(Target) --no-exitfirst -a "-n $(USER_PARALLELISM)" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one is internal, one is user variable. |
||
| azdev test $(Target) --live --lf --xml-path test_results.parallel.xml --no-exitfirst -a "-n $(USER_PARALLELISM) --json-report --json-report-summary --json-report-file=$(Target).report.parallel.json --html=$(Target).report.parallel.html --self-contained-html --reruns 3 -s" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to point out that some ADO agent only has 2 cores and the current default USER_PARALLELISM=8 will not be run as expected.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 cores does not mean it can only run 2 processes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logs in pipeline |
||
| else | ||
| # Sequential | ||
| azdev test $(Target) $(USER_LIVE) --mark serial --xml-path test_results.sequential.xml --no-exitfirst -a "-n 1 --json-report --json-report-summary --json-report-file=$(Target).report.sequential.json --html=$(Target).report.sequential.html --self-contained-html --reruns 3 -s" | ||
| # Parallel | ||
| azdev test $(Target) $(USER_LIVE) --mark "not serial" --xml-path test_results.parallel.xml --no-exitfirst -a "-n $(USER_PARALLELISM) --json-report --json-report-summary --json-report-file=$(Target).report.parallel.json --html=$(Target).report.parallel.html --self-contained-html --reruns 3 -s" | ||
| fi | ||
|
|
||
| pwd | ||
| ls | ||
| # Commit changes | ||
| if [[ "$(USER_USERNAME)" != "" || "$(USER_TOKEN)" != "" ]]; then | ||
| cd azure-cli | ||
| git status | ||
| git add . | ||
| git commit -m "Upload recording files" | ||
| git push origin $(USER_BRANCH) | ||
| fi | ||
|
|
||
| condition: eq(variables.Match, '1') | ||
| - task: PublishTestResults@2 | ||
| condition: eq(variables.Match, '1') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some comments about this magical line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen if one of USER_USERNAME and USER_TOKEN is empty?