Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
6dea69b
CLITest.yml
qwordy Jan 14, 2020
0b26d7a
Update CLITest.yml for Azure Pipelines
qwordy Jan 14, 2020
40bbcd4
Update CLITest.yml for Azure Pipelines
qwordy Jan 14, 2020
7962f86
Update CLITest.yml for Azure Pipelines
qwordy Jan 14, 2020
a53fbad
Update CLITest.yml for Azure Pipelines
qwordy Jan 14, 2020
cbe2c8a
Update CLITest.yml for Azure Pipelines
qwordy Jan 14, 2020
a303a01
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
dac6e87
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
50d89a6
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
48229dc
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
e94b93b
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
a8a3780
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
0f83b43
Update CLITest.yml for Azure Pipelines
qwordy Jan 20, 2020
0f1e3dd
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
5cf27fd
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
1bedc24
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
c9aab05
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
cf5d1c8
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
90a4189
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
305c99b
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
20caeef
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
e653800
Update CLITest.yml for Azure Pipelines
qwordy Jan 21, 2020
2f70478
Update CLITest.yml for Azure Pipelines
qwordy Jan 22, 2020
0e3ced9
Update CLITest.yml for Azure Pipelines
qwordy Mar 19, 2020
f8c86fb
Update CLITest.yml for Azure Pipelines
qwordy Mar 24, 2020
691f3c4
Update CLITest.yml for Azure Pipelines
qwordy Mar 24, 2020
6f5b345
Update CLITest.yml for Azure Pipelines
qwordy Mar 25, 2020
51eb33b
Update CLITest.yml for Azure Pipelines
qwordy Mar 25, 2020
17140c4
sendemail.py
qwordy Mar 25, 2020
6400751
Update CLITest.yml for Azure Pipelines
qwordy Mar 25, 2020
d411d1f
Update CLITest.yml for Azure Pipelines
qwordy Mar 25, 2020
a77ba73
Update CLITest.yml for Azure Pipelines
qwordy Mar 25, 2020
1213d61
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
7e674f5
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
afb92cf
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
1444b4c
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
0fb6330
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
0a276fb
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
9261277
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
408d040
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
ad77ad0
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
fb6dfc9
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
86b5c30
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
18fc857
update
qwordy Mar 26, 2020
c4d0fdd
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
00f2cc9
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
1f310d7
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Mar 26, 2020
6bca711
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
d9dde29
Update CLITest.yml for Azure Pipelines
qwordy Mar 26, 2020
5aceb5a
Update CLITest.yml for Azure Pipelines
qwordy Mar 31, 2020
55a8b93
Update CLITest.yml for Azure Pipelines
qwordy Mar 31, 2020
605b8de
sendemail
qwordy Mar 31, 2020
ae0b9c1
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Mar 31, 2020
99507b7
Update CLITest.yml for Azure Pipelines
qwordy Mar 31, 2020
a18716d
gen.py
qwordy Apr 21, 2020
c09ac09
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Apr 21, 2020
ec22ced
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Apr 24, 2020
0e305d5
update
qwordy Apr 24, 2020
06215e5
update
qwordy Apr 24, 2020
99f6db3
gen.yml
qwordy Apr 24, 2020
df03bb6
update
qwordy Apr 24, 2020
bbe1cf8
Update gen.yml for Azure Pipelines
qwordy Apr 24, 2020
b74d612
update
qwordy Apr 24, 2020
e2eecc6
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Apr 24, 2020
1464527
gen.py
qwordy Apr 26, 2020
5e4d7f1
Update CLITest.yml
qwordy Apr 26, 2020
f0301c8
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy May 8, 2020
4c5a157
--no-exitfirst
qwordy May 8, 2020
6bc2bdf
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy May 8, 2020
ad5031d
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy May 9, 2020
058e96f
sendemail; trigger
qwordy May 9, 2020
45b7c81
Update CLITest.yml
qwordy May 9, 2020
a99a4ae
trigger
qwordy May 9, 2020
ae067cd
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy May 9, 2020
00db3ba
noexitfirst
qwordy May 10, 2020
0d72647
Update CLITest.yml
qwordy May 10, 2020
6b4c0a1
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Jun 5, 2020
8463634
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Jun 5, 2020
cfcac0f
Update CLITest.yml
qwordy Jun 5, 2020
599f96b
send email
qwordy Jun 5, 2020
a2e3553
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Jun 5, 2020
7102272
Update CLITest.yml
qwordy Jun 11, 2020
bdc1c48
Update CLITest.yml
qwordy Jun 19, 2020
39d2227
gragh_email.py
qwordy Jun 30, 2020
37722c3
live test, update account
qwordy Jul 1, 2020
d4eed99
Update CLITest.yml
qwordy Jul 1, 2020
dfc0d75
graph_email.py
qwordy Jul 1, 2020
adca0eb
update template.yml
qwordy Jul 2, 2020
1478b3a
Update CLITest.yml
qwordy Jul 2, 2020
f0b0a9a
Update template.yml
qwordy Jul 2, 2020
90ff52f
Update CLITest.yml
qwordy Jul 2, 2020
46eee84
json and html report
qwordy Jul 7, 2020
1f388aa
publish artifact
qwordy Jul 7, 2020
1988f7b
template.yml
qwordy Jul 7, 2020
89c1c66
Update CLITest.yml
qwordy Jul 7, 2020
2cc0194
Update CLITest.yml
qwordy Jul 7, 2020
2fc8d11
artifact
qwordy Jul 8, 2020
d7e1071
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Jul 8, 2020
3697b44
Update CLITest.yml
qwordy Jul 8, 2020
8ff45d7
download artifact
qwordy Jul 8, 2020
942a008
download artifact
qwordy Jul 8, 2020
9e200db
Update CLITest.yml
qwordy Jul 8, 2020
6050fa1
email
qwordy Jul 10, 2020
ef20c76
Update CLITest.yml
qwordy Jul 10, 2020
d42631b
email
qwordy Jul 10, 2020
34c1621
Merge branch 'CLITest' of https://github.com/qwordy/azure-cli into CL…
qwordy Jul 10, 2020
cbd8596
Update CLITest.yml
qwordy Jul 10, 2020
2493598
email
qwordy Jul 10, 2020
6db9c6c
Update CLITest.yml
qwordy Jul 10, 2020
131c7ce
Update gen.yml for Azure Pipelines
qwordy Jul 10, 2020
18e12d8
email
qwordy Jul 13, 2020
9c4a6f8
refactor
qwordy Jul 13, 2020
b636bf5
refactor
qwordy Jul 13, 2020
0152beb
name
qwordy Jul 13, 2020
10408bf
name
qwordy Jul 14, 2020
c19fec6
email
qwordy Jul 14, 2020
b0008f4
name
qwordy Jul 14, 2020
41f7339
name
qwordy Jul 14, 2020
a3c112b
name
qwordy Jul 14, 2020
1a9bd94
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Jul 14, 2020
f90e3e9
USER_PARALLELISM
qwordy Jul 15, 2020
4a32771
upload to blob
qwordy Jul 15, 2020
b13b2e0
upload to blob
qwordy Jul 15, 2020
4292a62
name
qwordy Jul 15, 2020
43a2a21
clean.py
qwordy Jul 16, 2020
9e46e01
clean; print output in azdev
qwordy Jul 17, 2020
77289a2
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Jul 20, 2020
96a706c
upload to blob
qwordy Jul 20, 2020
f0ac2b8
upload
qwordy Jul 20, 2020
b77ef58
email
qwordy Jul 20, 2020
024aafa
email
qwordy Jul 21, 2020
9d9d12e
email
qwordy Jul 21, 2020
3438ab6
upload
qwordy Jul 22, 2020
15d301e
email
qwordy Jul 22, 2020
5817523
pytest-rerunfailures
qwordy Jul 22, 2020
4c35324
email
qwordy Jul 22, 2020
859dab4
sendemail
qwordy Jul 27, 2020
5ab96bc
public access to container
qwordy Aug 4, 2020
d003134
log
qwordy Aug 4, 2020
75ede9b
sendemail
qwordy Aug 4, 2020
c6222d7
sendemail
qwordy Aug 4, 2020
20b7e05
sendemail
qwordy Aug 4, 2020
cfa2472
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 5, 2020
fa5eff5
sendemail
qwordy Aug 5, 2020
82f9ff6
CLITest.yml
qwordy Aug 5, 2020
67829be
CLITest.yml
qwordy Aug 5, 2020
0fb91bc
Update CLITest.yml for Azure Pipelines
qwordy Aug 6, 2020
048e349
Update CLITest.yml for Azure Pipelines
qwordy Aug 6, 2020
db7d5d9
pytest -m
qwordy Aug 6, 2020
a63b4c4
serial label
qwordy Aug 6, 2020
83508de
new azdev
qwordy Aug 9, 2020
98b6a5f
test result path
qwordy Aug 10, 2020
bbaf98e
merge test results
qwordy Aug 10, 2020
c0ac001
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 10, 2020
012bea1
storage serial test
qwordy Aug 10, 2020
5aa6e15
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 10, 2020
06354a2
license
qwordy Aug 10, 2020
2d024f4
license
qwordy Aug 10, 2020
9eaef9a
remove serial
qwordy Aug 10, 2020
117db31
update
qwordy Aug 11, 2020
9c17e65
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 12, 2020
9c16587
refactor
qwordy Aug 12, 2020
d731f6c
refactor
qwordy Aug 12, 2020
672af82
condition
qwordy Aug 12, 2020
344c3e2
condition
qwordy Aug 12, 2020
45da17a
condition
qwordy Aug 12, 2020
055d0e8
condition
qwordy Aug 12, 2020
364ac80
condition
qwordy Aug 12, 2020
9904984
condition
qwordy Aug 12, 2020
d638d49
remove useless code
qwordy Aug 12, 2020
9893610
CLITest.yml
qwordy Aug 12, 2020
6e25db4
update clean condition
qwordy Aug 12, 2020
69f5778
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 17, 2020
0f09159
remove schedule
qwordy Aug 17, 2020
7136551
sendemail
qwordy Aug 17, 2020
c316f6d
timeout
qwordy Aug 18, 2020
2820104
update
qwordy Aug 18, 2020
f5f67cb
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Aug 19, 2020
fdedd09
refactor, extract data class
qwordy Aug 19, 2020
15a83f7
sendemail
qwordy Aug 21, 2020
34b6350
sendemail
qwordy Aug 21, 2020
ae51725
CLITest
qwordy Aug 21, 2020
ef3e8a0
Update CLITest.yml for Azure Pipelines
qwordy Aug 25, 2020
f0fc990
history
qwordy Aug 26, 2020
a8134be
fix conflict
qwordy Aug 26, 2020
15b4d1b
debug
qwordy Aug 28, 2020
64f5dcd
write db
qwordy Aug 28, 2020
a48eab7
history
qwordy Aug 28, 2020
3fe8521
pip install mysql-connector-python
qwordy Aug 28, 2020
86bbab1
DB_PWD
qwordy Sep 1, 2020
f14daa1
Fix a bug of module name sorting
qwordy Sep 1, 2020
47d40a4
db
qwordy Sep 1, 2020
c735781
Merge branch 'dev' of https://github.com/Azure/azure-cli into CLITest
qwordy Sep 2, 2020
7056dac
ssl problem
qwordy Sep 2, 2020
e9d060d
test ssl problem
qwordy Sep 3, 2020
4ac9d9e
sendemail, user manual link
qwordy Sep 4, 2020
1f3e61a
Test DB
qwordy Sep 4, 2020
de3426a
sendemail
qwordy Sep 4, 2020
951d9a7
sendemail
qwordy Sep 4, 2020
9958d64
sendemail
qwordy Sep 4, 2020
9de13ec
Support upgrading API version in pipeline
qwordy Sep 9, 2020
c218c94
fix
qwordy Sep 9, 2020
5a94e9b
fix
qwordy Sep 9, 2020
f690ad5
fix
qwordy Sep 9, 2020
4a976f2
merge
qwordy Sep 10, 2020
e07b279
codeowner
qwordy Sep 10, 2020
cce842f
minor changes
qwordy Sep 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/doc/ @jiasli @qwordy @dbradish-microsoft
/tools/ @haroldrandom @fengzhou-msft
/scripts/ @haroldrandom @fengzhou-msft
/scripts/live_test @qwordy
/src/azure-cli-testsdk/ @bim-msft @MyronFanQiu @haroldrandom
/src/azure-cli-core/ @jiasli @Juliehzl @haroldrandom @fengzhou-msft @arrownj @MyronFanQiu @jsntcy
/src/azure-cli/azure/cli/command_modules/acr/ @djyou @fengzhou-msft
Expand Down
42 changes: 36 additions & 6 deletions scripts/live_test/CLITest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Copy link
Member

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.

Copy link
Member

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?

#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
Expand All @@ -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)"
Copy link
Member

Choose a reason for hiding this comment

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

Why is Target not capitalized like USER_USERNAME?

Copy link
Member Author

Choose a reason for hiding this comment

The 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"
Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

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

2 cores does not mean it can only run 2 processes.
https://en.wikipedia.org/wiki/Context_switch

Copy link
Member Author

Choose a reason for hiding this comment

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

Logs in pipeline

RUNNING TESTS LIVE
The tests are set to run against current profile "latest"
============================= test session starts ==============================
platform linux -- Python 3.8.5, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- /home/vsts/work/1/env/bin/python
[gw0] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw1] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw2] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw3] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw4] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw5] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw6] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw7] linux Python 3.8.5 cwd: /home/vsts/work/1

[gw0] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw1] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw2] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw3] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw4] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw5] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw6] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]

[gw7] Python 3.8.5 (default, Jul 21 2020, 12:22:34)  -- [GCC 7.5.0]
gw0 [216] / gw1 [216] / gw2 [216] / gw3 [216] / gw4 [216] / gw5 [216] / gw6 [216] / gw7 [216]

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')
Expand Down
5 changes: 5 additions & 0 deletions scripts/live_test/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.3.0
++++++

* Support upgrading API version in pipeline.

0.2.0
++++++

Expand Down