Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
816 commits
Select commit Hold shift + click to select a range
f9f1d95
[Backport 202012] Add an ansible-playbook to collect show tech result…
lizhijianrd Feb 27, 2023
fdecf8e
[202012][m0][bgp] Add support for m0 in bgp test to simulate both t0 …
yaqiangz Feb 27, 2023
b67d6e2
Stop exabgp processes before remove PTF container (for both old and n…
lizhijianrd Feb 28, 2023
4894baa
show counter for port, pg, queue, when ptftest enter, exit and except…
XuChen-MSFT Mar 1, 2023
54bb18d
[202012][dualtor] Remove the redundant function definition (#7621)
lolyu Mar 2, 2023
a380512
Request for 202012 branch:-Modified the test case to send v6 packet f…
rajneeshaec Mar 2, 2023
ef94e5b
[acl][mx] Fix test_stress_acl failed on mx (#7378)
yaqiangz Feb 2, 2023
f80e0d0
Add data plane test in stress acl script (#7549)
xwjiang-ms Mar 2, 2023
6852b94
Add support of using lab tacacs server by default (#7624)
wangxin Mar 3, 2023
5351325
bugfix: miss self (#7675)
XuChen-MSFT Mar 8, 2023
d276d7d
Fix flaky tacacs authorization one server down case (#7683)
wangxin Mar 8, 2023
f3fc541
[connection graph] add baud rate config to console_links.csv (#7622)
Xichen96 Mar 8, 2023
2e8c840
Update port_utils for DellEMC-Z9332f-C32 (#7661)
lizhijianrd Mar 7, 2023
3800211
Fix platform file writer lookup. (#7669)
rbpittman Mar 8, 2023
202816d
[dualtor] Igmore mux not running error in heartbeat failure testcases…
lolyu Mar 8, 2023
2a7e7c9
fixed PFC tests for Sonic fanouts (#6640)
antonptashnik Nov 1, 2022
9e6a05b
Update the fwutil function to support define the component for specif…
nhe-NV Mar 14, 2023
0f49f81
New T0 LAG topo with 8 uplinks (2 ports per LAG) (#7673)
developfast Mar 14, 2023
a8c4850
[Snappi] Modified pfcwd tests to add warm-up traffic (#7712)
developfast Mar 14, 2023
dc09675
Add wait time to verify mux status in sanity check in 202012 branch (…
xwjiang-ms Mar 15, 2023
65f7b85
[Snappi] Disable skip PFC watchdog tests for switches with broadcom A…
developfast Mar 15, 2023
d6aa038
[advanced-reboot] Check OS version at runtime during upgrade path tes…
vaibhavhd Mar 16, 2023
e758f28
[qos 202012] Refresh ARP entry with mac address of PTF port instead o…
XuChen-MSFT Mar 22, 2023
930285f
Fix fwutil parametrization error (#7099)
AndriiLozovyi Dec 24, 2022
a71cb56
[action] Walk around for code scanning hanging issue. (#7752)
liushilongbuaa Mar 16, 2023
3981f37
[ansible] Consider tacacs when deploying fanout (#7778)
Xichen96 Mar 20, 2023
1fd19be
Add missing topo mark to `test_add_property_spytest_junit_xml` (#7795)
lolyu Mar 21, 2023
fbe81c6
Skip test_fwutil on other platforms except Mellanox (#7802)
ZhaohuiS Mar 22, 2023
6a7c20b
to skip fast/warm reboot for non t0 device (#7808)
StormLiangMS Mar 22, 2023
f3bb4bb
[Test case] Fix test_authorization does not wait long enough before r…
lerry-lee Mar 23, 2023
1476b93
Skip IPv6 everflow per interface test on unsupported ASICs (#7840)
bingwang-ms Mar 24, 2023
132c891
Fix exception in when ports is None (#7850)
bingwang-ms Mar 25, 2023
d0d288f
fix show counter issue (#7871)
XuChen-MSFT Mar 28, 2023
b9357d3
Verify hash keys for IPinIP packet (#7908)
bingwang-ms Mar 30, 2023
15b0d6a
Remove unsupported command from TACACS RO user test case. (#7845)
liuh-80 Mar 26, 2023
abbf373
Bfd test bugfix (#6747)
siqbal1986 Nov 17, 2022
8fb7d18
[tunnel qos remap] download syncd rpc image from public_docker_regist…
XuChen-MSFT Mar 27, 2023
8ac9543
stop radvd/arp_update service to reduce background traffic during qos…
XuChen-MSFT Mar 27, 2023
5f2fff4
Use dynamic outer dscp for test_tor_ecn (#7862)
ZhaohuiS Mar 28, 2023
3bececb
ignore error for stopping service (#7870)
XuChen-MSFT Mar 28, 2023
1ce6927
Modify the running topo of script test_fdb_mac_move.py. (#7923)
yutongzhang-microsoft Mar 31, 2023
e69fc5d
[202012] Backport connection graph related files from master to 20201…
lizhijianrd Mar 31, 2023
d13c25c
Fix port alias of Arista-7050-QX-32S (#7117)
lizhijianrd Dec 28, 2022
55f9e68
Use pkill to kill memory hog process (#7910)
theasianpianist Mar 31, 2023
7094c30
[QoS] fix FDB aging in dualtor's qos sai test (#7819)
XuChen-MSFT Apr 6, 2023
9be7533
Skipping drop_packets/test_drop_counters.py::test_dst_ip_absent for c…
rraguraj Mar 28, 2023
12600df
[202012][everflow][m0] Backport m0 support for everflow test (#7985)
yaqiangz Apr 10, 2023
047c17f
add default value for public_docker_registry (#8011)
XuChen-MSFT Apr 12, 2023
cbb3f91
[m0][acl] Add two scenarios support for M0 in ipv4 acl test (#7921) (…
yaqiangz Apr 13, 2023
ce35305
Changed the condition to use branch name instead of Kernel version. (…
siqbal1986 Apr 13, 2023
b30dc96
[conditional_mark] Improved conditional_mark plugin to support "OR" o…
ppikh Jul 21, 2022
d8d0e1c
[log-analyzer] Check both syslog and syslog.1 files when looking for …
vaibhavhd Mar 15, 2023
1b6adc7
[tests] consider tacacs in pytest accessing fanout (#7863)
Xichen96 Apr 10, 2023
b390b24
remove swich mac change behavior in qos sai test (#7944)
XuChen-MSFT Apr 9, 2023
31c2309
[advanced-reboot] Collect all LACPDUs and find max time gap between t…
vaibhavhd Apr 7, 2023
113af0c
fix FDB aging issue after config reload (#7984)
jcaiMR Apr 10, 2023
b8d051e
[Ixia] Added README file for contributor info to ixia dir (#7987)
developfast Apr 10, 2023
7530e76
skip test_memory_exhaustion on Celestica-E1031 (#8007)
lizhijianrd Apr 12, 2023
ff61489
[202012] [conditional_mark] Fix incorrect number of arguments in eval…
neethajohn Apr 17, 2023
98eb079
Skip IPv6 everflow per interface test on unsupported ASICs (#8045)
bingwang-ms Apr 18, 2023
1a5eb7b
To skip dual mock testcase for common tor device in 202012 (#8037)
StormLiangMS Apr 18, 2023
9d9a51d
Skip ecmp testcases for non-mellanox and non T0 platform (#8040)
ZhaohuiS Apr 17, 2023
d6707b1
Fix test_everflow_dscp_with_policer for mellanox vendor (#8050)
slutati1536 Apr 17, 2023
566c7b1
Fix fanout ssh authentication failed issue (#8054)
wangxin Apr 18, 2023
beef5ce
Ignore pmon errors in syncd auto restart test (#8060)
bingwang-ms Apr 18, 2023
56bb06c
disable loganalyzer when test container autorestart (#8069)
lerry-lee Apr 19, 2023
bc40844
[port_config_gen] use the last line of comment as header in reading p…
Xichen96 Apr 19, 2023
bdc75f1
Update dhcp relay test for option82 stripping (#6623)
ganglyu Apr 21, 2023
7350b58
Fix incorrect format in mark condition yaml file (#8099)
ZhaohuiS Apr 21, 2023
fe2789e
Revert bad cherry-pick "Fix test_everflow_dscp_with_policer for mella…
wangxin Apr 24, 2023
d015da3
cherry pick #7984, #6385, #7898 into 202012 (#8112)
jcaiMR Apr 24, 2023
d27f2e1
Removing ip-proto from hash_keys for Cisco-8000 devices (#7977)
svelamal Apr 21, 2023
807e91e
[container_autorestart] Fix config enable feature autorestart before …
lerry-lee Apr 21, 2023
f18e918
Delay 20 seconds at the end of test_ntp (#8098)
bingwang-ms Apr 24, 2023
ca023ec
Fix LogAnalyzer in test_announce_withdraw_route (#8107)
bingwang-ms Apr 25, 2023
02b416c
vxlan vnet tests: (#6063)
antonptashnik Oct 17, 2022
b3d2be3
Add library and sample scripts for running ansible in pure python (#7…
wangxin Apr 6, 2023
cf4c11d
Fix test_everflow_dscp_with_policer for mellanox vendor (#8050)
slutati1536 Apr 17, 2023
4760105
Enhance connection graph and devutils for PDU host vars (#7782)
wangxin Mar 20, 2023
bb75287
Fix pdu KeyError for pdu_controller fixture (#7876)
wangxin Mar 29, 2023
f6cd09a
[202012] [qos] Add multi-asic support for test_buffer_traditional (#8…
neethajohn Apr 28, 2023
c2335b8
[202012] Enable pfcwd runs on dual tor testbeds (#8188)
neethajohn May 1, 2023
aca9e64
Log GET requests in mux simulator (#7974)
xwjiang-ms Apr 10, 2023
50caad0
Stop all processes managed by supervisor before the PTF container is …
lizhijianrd May 4, 2023
39262fd
Ignore kernel error in tech_support test (#8173)
bingwang-ms May 2, 2023
3f53f25
Fix arp_responder.py failed to start in many tests
wsycqyz Apr 26, 2023
0678815
Fix arp_responder VLAN tagged ARP request (#8189)
bingwang-ms May 2, 2023
06cf852
change bgp session up wait time to wait until (#8122)
jcaiMR May 5, 2023
19e388b
Separate the condition for different platform to avoid interaction (#…
kevinskwang May 6, 2023
33fd965
Skip watchdog reboot for t1 (#8176)
rraguraj May 4, 2023
f7c8a75
Fix incorrect pdu_index when there are multiple ports for one PDU (#8…
ZhaohuiS May 4, 2023
fcbcb85
Fix string escape issue for patch_rsyslog (#8219)
wangxin May 6, 2023
3adabf1
Install different version docker-py based on py2 or py3 (#8229)
lizhijianrd May 8, 2023
8841da7
fix get platfrom issue (#8230)
jcaiMR May 9, 2023
ec4a2f3
Update the skip conditions for fgnhg test (#8240)
bingwang-ms May 9, 2023
1a648a6
[Double commit]Fix QoS test failure: brcm_sai_set_switch_attribute/up…
wsycqyz May 10, 2023
bc0bf12
[202012]Bfd conditional mark fix (#8248)
siqbal1986 May 10, 2023
849f222
[Double commit #8268]Flaky test case - sai_qos_tests.PFCXonTest
wsycqyz May 12, 2023
e4fd3e3
[Topo] 3 port tgen topo for RDMA testing (#8212)
developfast May 9, 2023
c11ecc1
[TestbedV2]Add a script to get duts version (#8334)
yutongzhang-microsoft May 18, 2023
fe1f79f
to enhance the test case (#8349)
StormLiangMS May 18, 2023
d1fbdea
revert PR7109, and reenable headroom pool size test (#8337)
XuChen-MSFT May 18, 2023
e84c22d
[Double commit]Flakey test case - TestQosSai.testQosSaiPfcXonLimit
wsycqyz May 19, 2023
9da22c0
update queue range if qos remap enabled (#8254)
lipxu May 17, 2023
3ffca63
Update default vlan topo for 16 uplink testbed (#8324)
neethajohn May 17, 2023
0eed143
Support multiple inventories in scripts upgrade_image.py and get_dut_…
yutongzhang-microsoft May 19, 2023
dd6ddb3
learn arp for each testcase, and fix sai_qos_tests.DscpMappingPB fail…
XuChen-MSFT May 23, 2023
a4fa75f
Fix syntax error in test_reboot.py (#8411)
bingwang-ms May 24, 2023
7c5b877
[Snappi] Validate the IPinIP packet can be transferred without any re…
developfast May 22, 2023
042e50c
[Snappi] Validate PFC Pause Frames Counting Function if the src MAC i…
developfast May 23, 2023
1ae383a
Add new topology t0-56-d48c8 (#8291)
wangxin May 16, 2023
f86631a
Reverted VNET Vxlan test params to prevent route configuration issues…
AharonMalkin May 24, 2023
4e95386
Fix test failure in test_proxy_arp_for_standby_neighbor
wsycqyz May 24, 2023
8b3d4ad
Fix ImportError in scripts under tests/snappi/qos (#8387)
wangxin May 23, 2023
6d2c900
Skip ipinip hash test on mlnx (#8398)
bingwang-ms May 24, 2023
83d6be9
xfail pfxwd warm reboot related case (#8402)
lipxu May 25, 2023
fb00092
Increase the timeout for waiting SSH startup (#8416)
bingwang-ms May 25, 2023
759970d
Avoid using http proxy during announce-routes (#8420)
wangxin May 25, 2023
f4a7ff5
Fix - 'ARPpopulate' object has no attribute 'exec_cmd_on_dut' (#8428)
wsycqyz May 26, 2023
6246c9c
[Double commit]Flakey test case - TestQosSai.testQosSaiPfcXonLimit #8430
wsycqyz May 29, 2023
475b42f
ignore lacp on queue7 (double commit PR#8104) (#8380)
XuChen-MSFT May 29, 2023
63b82a7
[Snappi] Skip warm and fast reboot RDMA test cases for Cisco devices …
developfast May 31, 2023
b77a782
Remove t0 topo in test_ipip_packet_reorder_with_snappi.py (#8460)
developfast May 30, 2023
18de1c0
[202012]Fix dir bcast failure in to-56 topo (#8435)
xwjiang-ms May 31, 2023
8686d48
fix print syntax issue in python2 (#8473)
XuChen-MSFT Jun 1, 2023
d59cacf
[action] Enable auto cherry pick. (#8354)
liushilongbuaa Jun 5, 2023
8be9159
[Snappi] Update imports on test_ipip_packet_reorder_with_snappi.py (#…
developfast Jun 1, 2023
1eb477c
Update mac address for portchannel interfaces (#8463)
developfast May 31, 2023
6d16325
Add code owners for "tests/qos" folder (#8466)
wangxin May 31, 2023
4f9cea4
[qos] add retry to tolerate performance issue of send pfc (#8540)
XuChen-MSFT Jun 10, 2023
90aa735
Move /host/logs_before_reboot to /var/log/ (#8507)
kellyyeh Jun 13, 2023
7680833
Fixes for qos-sai for all tests in T1 - 202012 branch. (#8399)
rraghav-cisco Jun 14, 2023
7e39c70
Fix conditional mark query Github failed issue in 202012 (#8597)
xwjiang-ms Jun 14, 2023
1105de1
Revert "Move /host/logs_before_reboot to /var/log/ (#8507)" (#8608)
kellyyeh Jun 14, 2023
f013aaa
[CoPP] Remove specific version for libssl1.1 to fix setup error (#8620)
ZhaohuiS Jun 15, 2023
3630f62
fix conditional mark issue 202012 (#8630)
xwjiang-ms Jun 16, 2023
2495cfe
Enhance cleanup.sh process in 202012 (#8595)
xwjiang-ms Jun 16, 2023
eec69e3
[Snappi] Validate that switch ignores PFC frame received with no bit …
developfast Jun 14, 2023
708b652
fix "dl_vlan_enable is not defined" (#8656)
XuChen-MSFT Jun 19, 2023
0ca2ca3
Add regex for syslog timestamp in extract_log (#7597)
kellyyeh Mar 5, 2023
2b67823
[202012][Snappi] Update PFC helper.py (#8691)
developfast Jun 22, 2023
e389499
Run test_warm_reboot in PR check (#8686)
kellyyeh Jun 23, 2023
a3fce2d
Restore crm polling interval after module `crm/test_crm.py` running. …
yutongzhang-microsoft Jun 27, 2023
b5680de
update for pfcwd (#8683)
lipxu Jun 27, 2023
7610ed9
Update ansible tmp path at cfg file (#8348)
slutati1536 Jun 28, 2023
4db0b94
Update config_sonic_basedon_testbed.yml (#8690)
developfast Jun 23, 2023
cf8a17d
[202012]Restore vlan running config after module test_host_vlan.py ru…
yutongzhang-microsoft Jun 29, 2023
38aa2f5
[202012][Snappi] Config reload to restart down containers (#8820)
developfast Jul 5, 2023
68f1f3a
Change reload source in module `autorestart/test_container_autorestar…
mssonicbld Jul 7, 2023
49ddfe3
Remove key `WARM_RESTART` after module `bgp/test_bgp_slb.py` running.…
mssonicbld Jul 7, 2023
c1c328c
Remove key `ACL_TABLE_TYPE` in running config after module `acl/test_…
mssonicbld Jul 7, 2023
1bb0112
Add a function to compare running config. (#8880)
yutongzhang-microsoft Jul 10, 2023
a0b43bd
[202012]Fix wrong build_version comparison condition (#8879)
ZhaohuiS Jul 10, 2023
f12147a
Fix false alert for pmon services check in santicy check (#8787)
ZhaohuiS Jul 1, 2023
854032c
Added a conditional skip by bug to vnet_vxlan test (#8582)
AharonMalkin Jun 14, 2023
ca3a20d
Vxlan ECMP test failure in python3 env. (#8842)
siqbal1986 Jul 8, 2023
ac32e6f
When dut is single-asic, set the key "asic0" to keep up with multi-as…
yutongzhang-microsoft Jul 10, 2023
5d55876
Move logs_before_reboot dir to /var/log (#8610)
kellyyeh Jul 11, 2023
fd29e62
Fix mkdir failure in test_ro_disk (#8903)
lizhijianrd Jul 11, 2023
677d69b
cherry pick #7897 tests/bgp/test_bgp_bbr.py into 202012 (#8961)
jcaiMR Jul 13, 2023
b73db1e
[cherry pick] #8901 Delete interfaces admin_state after module vlan/t…
yutongzhang-microsoft Jul 14, 2023
c131183
[cherry pick] #8915 Use common function to recover configuration afte…
yutongzhang-microsoft Jul 14, 2023
b182cab
[202012]Remove multi-asic scenerio in fixture `core_dump_and_config_c…
yutongzhang-microsoft Jul 14, 2023
d467ac5
[202012, CI/CD] Enable PR test (#8966)
yejianquan Jul 14, 2023
2fb1784
Change run_tests.sh to use python2 explicitly(python->python2) in 202…
wsycqyz Jul 17, 2023
b17ab75
fix type error in get_multiple_flows (#9024)
XuChen-MSFT Jul 20, 2023
da84cf6
fix huge console log generated by get_multiple_flows (#9047)
XuChen-MSFT Jul 20, 2023
30f1811
Cherry pick of #8089 (#9056)
vaibhavhd Jul 21, 2023
d0676a4
fib IP range length is function instead of attribute (#9002)
wangxin Jul 20, 2023
b526fd8
[202012][fib] Fix test_fib failed in Nokia 7215 (#8960) (#9078)
yaqiangz Jul 21, 2023
41aa1dc
stress test to replicate production scenario (#6887)
siqbal1986 Nov 30, 2022
2f186f1
[cherry pick] #9025 Fit dualtor scenario when deleting config VLAN|ma…
yutongzhang-microsoft Jul 24, 2023
f36452a
[Fix,202012] fix test_add_rack.py import issue (#9104)
yejianquan Jul 25, 2023
9f3c294
[202012,CI/CD] Use remote PR test template from sonic-mgmt master to …
lerry-lee Jul 27, 2023
e597963
Re-organize files under `ansible/devutil` to have better structure fo…
wangxin Jul 13, 2023
b0fb151
Recover telemetry settings when error happens in module `telemetry/te…
yutongzhang-microsoft Jul 31, 2023
f0e8bf0
Support init localhost ansible host object without supplying inventor…
wangxin Jul 20, 2023
21aedb3
[202012] Change tool scripts to use Python2 explicitly (#9182)
wsycqyz Jul 31, 2023
9d11f4a
[cherry-pick 8035] Check existence of inventory files (#9180)
wangxin Jul 31, 2023
1d87634
Restart container no matter if restore monit config files is success …
yutongzhang-microsoft Jul 27, 2023
1578844
Increase wait time for restapi service startup (#9037)
bingwang-ms Jul 24, 2023
2518d44
[platform_tests] add test to make sure cpuidle is off for m0 and mx (…
Xichen96 Jul 28, 2023
a1e4e94
[202012] Check if BGP has Loopback0 IP as its router ID (#8576) (#9195)
kellyyeh Aug 1, 2023
472cd86
[202012][dhcp_relay] Add dhcpmon test to check for aggregated counter…
kellyyeh Aug 1, 2023
baf7eca
[202012][Snappi] Renaming snappi directory to snappi_tests (#9211)
developfast Aug 1, 2023
ccfade0
Modify import path in get_dut_version.py (#9207)
yutongzhang-microsoft Aug 2, 2023
e6aa264
[testfix] test_vxlan_ecmp cleanup of routes after test runs. (#9175)
siqbal1986 Jul 31, 2023
27b29a8
update default ceos image to newer version (#9185)
Xichen96 Aug 2, 2023
88f6db2
[cherry pick] #9199 Recover default acl rules if necessary in module …
yutongzhang-microsoft Aug 4, 2023
08d603b
[202012] Fix import issue of scripts under tests/snappi_tests (#9253)
wangxin Aug 4, 2023
81247c7
[202012] Fix potential KeyError of fixtures like vmhost (#9280)
wangxin Aug 4, 2023
166e2e3
Remove pg lossless settings of port speed in module iface_namingmode/…
yutongzhang-microsoft Aug 4, 2023
a9aafa2
Issue #6657 - 'systemctl restart ferret' failure in test_decap testcase
wsycqyz Aug 3, 2023
887785e
Skip test_module for non T2 topology (#9290)
ZhaohuiS Aug 5, 2023
f16e136
[202012] Run check_bgp_router_id post reboot (#9341)
kellyyeh Aug 9, 2023
559aed2
[advanced-reboot] Use nohup when executing reboot CLI to prevent PIPE…
vaibhavhd Aug 10, 2023
51a3bae
Revert the change to template acl.json. (#9346)
yutongzhang-microsoft Aug 9, 2023
3b2b097
Improve docker registry related logging (#9248)
xwjiang-ms Aug 3, 2023
51796e4
Get core dump files from dut if new core dump generates. (#9324)
yutongzhang-microsoft Aug 8, 2023
4300f3e
Add support of setting docker_inram_size during upgrade image (#9355)
wangxin Aug 10, 2023
b9b1b08
[202012][Snappi] PFC code refactor for Snappi (#9444)
developfast Aug 14, 2023
eec42ba
Fix wrong bool argument parsing in upgrade_image.py script (#9452)
wangxin Aug 15, 2023
4934f31
[Fix] Fix multi-asic flaky lldp not ready issue (#9453) (#9479)
yejianquan Aug 16, 2023
58debe6
Add 'any' topology mark to pre and post test (#8068)
yejianquan Apr 20, 2023
c107b56
fix tcpdump issue in bgp_update_timer script (#9481)
jcaiMR Aug 16, 2023
9eb950b
Revert "When dut is single-asic, set the key "asic0" to keep up with …
yutongzhang-microsoft Aug 16, 2023
bf97427
[pre-test][Snappi] Changed headroom test params for 7050CX3 (#9466)
developfast Aug 17, 2023
4942122
[202012][Snappi] Validate the PFC frames sent out by the DUT are vali…
developfast Aug 18, 2023
1826b54
Remove Arista products from sku-sensors-data.yml (#9415) (#9569)
Staphylo Aug 21, 2023
cbfbae6
[cherry pick] #9523 Fix PR #9312 for KeyError and AttributeError in 2…
yutongzhang-microsoft Aug 23, 2023
3539831
[202012] SKIP test thermal control related cases for S6100 platform (…
ZhaohuiS Aug 28, 2023
922b96a
Revert PR #9256 "Remove pg lossless settings of port speed in module …
yutongzhang-microsoft Aug 28, 2023
5cb1161
Restore the MAC address of VLAN at the end of test_host_vlan (#9542)
bingwang-ms Aug 18, 2023
ffd81ac
[Ixia] Update ixia directory README (#9469)
developfast Aug 17, 2023
893c31c
Update assert on test_syseepromd.py (#8236) (#9712)
slutati1536 Aug 28, 2023
df2a21a
Cherry-pick to add code owners to have default code reviewer for test…
StormLiangMS Aug 29, 2023
0981484
[202012] Vxlan ecmp primary/secondary switchover tests. (#9751)
siqbal1986 Aug 29, 2023
38f261c
[202012]Enable scale cacl test cases (#9744)
ZhaohuiS Aug 30, 2023
27e527c
Add debug info in test_lldp for AssertionError (#9739)
ZhaohuiS Aug 30, 2023
4048814
PR8399 break backend qos test, partially revert (#9748)
XuChen-MSFT Aug 30, 2023
eae82d7
enhance ecmp tests (#9541) (#9760)
alawing Aug 30, 2023
a70f46c
[Snappi] PFCWD Tolerance Fixes (#9567) (#9749)
developfast Aug 30, 2023
95c35ca
[202012] Address failures on td2 asics for fdb mac move test (#9776)
neethajohn Aug 31, 2023
78fb3d1
[HLX] Stop cpu_wdt service before doing watchdog reboot (#9745) (#9772)
lizhijianrd Aug 31, 2023
7ceae8b
[post-test] Add a param to specify show tech since in post-test (#977…
lizhijianrd Aug 31, 2023
5eda030
[Snappi] PFCWD runtime traffic bug fix (#9781)
developfast Aug 31, 2023
3ac7230
Cherry pick conflict #9331 Add try-finally to recovery DUT in module …
yutongzhang-microsoft Sep 1, 2023
3e2a84e
[Snappi] Validate PFC frame bug fix (#9659)
developfast Aug 30, 2023
e4ad00b
[202012 ]Modify tool python version to python3 (#9817)
yejianquan Sep 4, 2023
77fbe4b
Modify python script's hashbang (#9823)
yejianquan Sep 4, 2023
7917c38
Ignore 'Failed to get port by bridge port ID' in test_vlan.py (#9818)
ZhaohuiS Sep 5, 2023
2689134
Specific field CustomMsg to distinguish config reload or core dump. (…
yutongzhang-microsoft Sep 6, 2023
1a29a73
[202012] Fix bgp update timer failure on dual tor (#9888)
jcaiMR Sep 8, 2023
1af2621
[202012] limit parallel_run cct tasks number to avoid connection issu…
jcaiMR Sep 8, 2023
3b2f51b
[platform][s6100] increase timeout in wait_for to 10 seconds to invok…
vdahiya12 Aug 29, 2023
7b08d5a
[Nightly] Skip test_dir_bcast test on t0-backend (#9793)
developfast Sep 1, 2023
246efe1
[PR test issue]Fix br1 mac issue (#9940)
yejianquan Sep 11, 2023
6934057
[Feat]Support to remove existed br1 by parameter (#9947)
yejianquan Sep 12, 2023
61bd410
Fix 're' not defined issue in 202012 PR test static analysis (#9962)
wangxin Sep 14, 2023
de1ac31
fix bgp slb test case dual tor issue (#9887)
jcaiMR Sep 14, 2023
83b0a29
fix getting current idle driver error (#9799)
Xichen96 Sep 5, 2023
97f6aaa
fix 202012 dualtor dhcpv6 relay script issue (#9960)
jcaiMR Sep 15, 2023
b0998ee
[TACACS] Retry reboot in ro-disk UT when DUT not reachable. (#9639)
liuh-80 Aug 30, 2023
9105f43
Always cleanup cEOS mount dir before creating cEOS (#9986)
wangxin Sep 15, 2023
f3a8b63
Conditionally install env-python3 in setup-container.sh (#9987)
wangxin Sep 15, 2023
79446b2
[202012]Add t1-64-lag topo for test_lag_2.py::test_lag_db_status_with…
ZhaohuiS Sep 18, 2023
e4d5659
[202012] [pfcwd] Add testcase for pfcwd multi port storm trigger and …
neethajohn Sep 21, 2023
6c42455
Increate max timeout to 400s for checking critical services (#10125)
ZhaohuiS Sep 26, 2023
fd5d0ec
[watchdog.yml] Update timeout value for Dell platforms (#10157)
ArunSaravananBalachandran Sep 27, 2023
fc8ba03
[202012]Ignore Failed to parse lldp age error log (#10137)
ZhaohuiS Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
173 changes: 173 additions & 0 deletions .azure-pipelines/get_dut_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
#!/usr/bin/env python2

import argparse
import logging
import os
import sys
import json
import yaml

_self_dir = os.path.dirname(os.path.abspath(__file__))
base_path = os.path.realpath(os.path.join(_self_dir, ".."))
if base_path not in sys.path:
sys.path.append(base_path)
ansible_path = os.path.realpath(os.path.join(_self_dir, "../ansible"))
if ansible_path not in sys.path:
sys.path.append(ansible_path)

from devutil.devices.factory import init_localhost, init_testbed_sonichosts # noqa E402

logger = logging.getLogger(__name__)

RC_INIT_FAILED = 1
RC_GET_DUT_VERSION_FAILED = 2

ASIC_NAME_PATH = '../ansible/group_vars/sonic/variables'


def read_asic_name(hwsku):
asic_name_file = os.path.join(os.path.dirname(__file__), ASIC_NAME_PATH)
try:
with open(asic_name_file) as f:
asic_name = yaml.safe_load(f)

asic_name_dict = {}
for key, value in asic_name.items():
if "hwskus" in key:
asic_name_dict[key] = value

for name, hw in asic_name_dict.items():
if hwsku in hw:
return name.split('_')[1]

return "unknown"

except IOError:
return None


def get_duts_version(sonichosts, output=None):
try:
ret = {}
duts_version = sonichosts.command("show version")
for dut, version in duts_version.items():
ret[dut] = {}
dut_version = version["stdout_lines"]

for line in dut_version:
if ":" in line:
line_splitted = line.split(":", 1)
key = line_splitted[0].strip()
value = line_splitted[1].strip()
if key == "Docker images":
ret[dut]["Docker images"] = []
continue
elif key == "ASIC":
ret[dut]["ASIC TYPE"] = value
continue
elif key == "HwSKU":
ret[dut]["ASIC"] = read_asic_name(value)
ret[dut][key] = value
elif "docker" in line:
line_splitted = line.split()
ret[dut]["Docker images"].append({"REPOSITORY": line_splitted[0],
"TAG": line_splitted[1],
"IMAGE ID": line_splitted[2],
"SIZE": line_splitted[3]})

if output:
with open(output, "w") as f:
f.write(json.dumps(ret))
f.close()
else:
print(ret)
except Exception as e:
logger.error("Failed to get DUT version: {}".format(e))
sys.exit(RC_GET_DUT_VERSION_FAILED)


def validate_args(args):
_log_level_map = {
"debug": logging.DEBUG,
"info": logging.INFO,
"warning": logging.WARNING,
"error": logging.ERROR,
"critical": logging.CRITICAL
}
logging.basicConfig(
stream=sys.stdout,
level=_log_level_map[args.log_level],
format="%(asctime)s %(filename)s#%(lineno)d %(levelname)s - %(message)s"
)


def main(args):
logger.info("Validating arguments")
validate_args(args)

logger.info("Initializing hosts")
localhost = init_localhost(args.inventory, options={"verbosity": args.verbosity})
sonichosts = init_testbed_sonichosts(
args.inventory, args.testbed_name, testbed_file=args.tbfile, options={"verbosity": args.verbosity}
)

if not localhost or not sonichosts:
sys.exit(RC_INIT_FAILED)

get_duts_version(sonichosts, args.output)


if __name__ == "__main__":
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description="Tool for getting sonic device version.")

parser.add_argument(
"-i", "--inventory",
dest="inventory",
nargs="+",
help="Ansible inventory file")

parser.add_argument(
"-t", "--testbed-name",
type=str,
required=True,
dest="testbed_name",
help="Testbed name."
)

parser.add_argument(
"--tbfile",
type=str,
dest="tbfile",
default="testbed.yaml",
help="Testbed definition file."
)

parser.add_argument(
"-v", "--verbosity",
type=int,
dest="verbosity",
default=2,
help="Log verbosity (0-3)."
)

parser.add_argument(
"--log-level",
type=str,
dest="log_level",
choices=["debug", "info", "warning", "error", "critical"],
default="debug",
help="Loglevel"
)

parser.add_argument(
"-o", "--output",
type=str,
dest="output",
required=False,
help="Output duts version to the specified file."
)

args = parser.parse_args()
main(args)
106 changes: 106 additions & 0 deletions .azure-pipelines/pr_test_scripts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
t0:
- arp/test_arp_extended.py
- arp/test_neighbor_mac.py
- arp/test_neighbor_mac_noptf.py
- bgp/test_bgp_fact.py
- bgp/test_bgp_gr_helper.py::test_bgp_gr_helper_routes_perserved
- bgp/test_bgp_speaker.py
- bgp/test_bgp_update_timer.py
- bgp/test_bgpmon.py
- cacl/test_cacl_application.py
- cacl/test_cacl_function.py
- cacl/test_ebtables_application.py
- container_checker/test_container_checker.py
- dhcp_relay/test_dhcp_relay.py
- dhcp_relay/test_dhcpv6_relay.py
- generic_config_updater/test_aaa.py
- generic_config_updater/test_bgpl.py
- generic_config_updater/test_cacl.py
- generic_config_updater/test_dhcp_relay.py
- generic_config_updater/test_ipv6.py
- generic_config_updater/test_lo_interface.py
- generic_config_updater/test_portchannel_interface.py
- generic_config_updater/test_syslog.py
- generic_config_updater/test_vlan_interface.py
- iface_namingmode/test_iface_namingmode.py
- lldp/test_lldp.py
- monit/test_monit_status.py
- ntp/test_ntp.py
- pc/test_po_cleanup.py
- pc/test_po_update.py
- platform_tests/test_advanced_reboot.py::test_warm_reboot
- platform_tests/test_cpu_memory_usage.py
- process_monitoring/test_critical_process_monitoring.py
- route/test_default_route.py
- route/test_static_route.py
- show_techsupport/test_techsupport_no_secret.py
- snmp/test_snmp_cpu.py
- snmp/test_snmp_default_route.py
- snmp/test_snmp_interfaces.py
- snmp/test_snmp_lldp.py
- snmp/test_snmp_loopback.py
- snmp/test_snmp_pfc_counters.py
- snmp/test_snmp_queue.py
- ssh/test_ssh_ciphers.py
- syslog/test_syslog.py
- system_health/test_system_status.py
- tacacs/test_accounting.py
- tacacs/test_authorization.py
- tacacs/test_jit_user.py
- tacacs/test_ro_disk.py
- tacacs/test_ro_user.py
- tacacs/test_rw_user.py
- telemetry/test_telemetry.py
- test_features.py
- test_interfaces.py
- test_procdockerstatsd.py


t0-2vlans:
- dhcp_relay/test_dhcp_relay.py
- dhcp_relay/test_dhcpv6_relay.py

t0-sonic:
- bgp/test_bgp_fact.py

t1-lag:
- bgp/test_bgp_allow_list.py
- bgp/test_bgp_bbr.py
- bgp/test_bgp_bounce.py
- bgp/test_bgp_fact.py
- bgp/test_bgp_multipath_relax.py
- bgp/test_bgp_update_timer.py
- bgp/test_bgpmon.py
- bgp/test_traffic_shift.py
- configlet/test_add_rack.py
- container_checker/test_container_checker.py
- http/test_http_copy.py
- ipfwd/test_mtu.py
- lldp/test_lldp.py
- monit/test_monit_status.py
- pc/test_lag_2.py
- platform_tests/test_cpu_memory_usage.py
- process_monitoring/test_critical_process_monitoring.py
- route/test_default_route.py
- scp/test_scp_copy.py
- test_interfaces.py

multi-asic-t1-lag:
- bgp/test_bgp_fact.py
- snmp/test_snmp_default_route.py
- snmp/test_snmp_loopback.py
- snmp/test_snmp_pfc_counters.py
- snmp/test_snmp_queue.py
- tacacs/test_accounting.py
- tacacs/test_authorization.py
- tacacs/test_jit_user.py
- tacacs/test_ro_disk.py
- tacacs/test_ro_user.py
- tacacs/test_rw_user.py

t2:
- test_vs_chassis_setup.py
- voq/test_voq_init.py

dualtor:
- arp/test_arp_extended.py
41 changes: 41 additions & 0 deletions .azure-pipelines/pytest-collect-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
steps:

- script: |
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor \
-o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
displayName: 'Install Docker'

- checkout: self
clean: true
displayName: 'Checkout sonic-mgmt repo'

- script: |
set -x
sudo docker pull sonicdev-microsoft.azurecr.io:443/docker-sonic-mgmt:latest
sudo docker run -dt --name sonic-mgmt-collect \
-v $(System.DefaultWorkingDirectory):/var/src/sonic-mgmt \
sonicdev-microsoft.azurecr.io:443/docker-sonic-mgmt:latest \
/bin/bash
displayName: 'Prepare sonic-mgmt docker container'

- script: |
set -x
sudo docker exec -t -w /var/src/sonic-mgmt/tests sonic-mgmt-collect \
python2 -m pytest --inventory ../ansible/veos_vtb --host-pattern all \
--testbed_file vtestbed.yaml --testbed vms-kvm-t0 \
--ignore saitests --ignore ptftests --ignore acstests \
--ignore scripts --ignore k8s --ignore sai_qualify --ignore common \
--ignore-conditional-mark \
--color=no --collect-only --continue-on-collection-errors
displayName: 'Run pytest --collect-only'
Loading