Skip to content
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 semgrep #2

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
1d69f09
[Mellanox] Provide dummy implementation for get_rx_los and get_tx_fau…
Junchao-Mellanox Sep 30, 2022
92bd6da
[Mellanox] Update SAI to v2205.22.1.19 and SDK/FW to v4.5.3168/v2010.…
volodymyrsamotiy Sep 30, 2022
eea8ebd
[Mellanox] Update MFT to v4.21.0-100 (#11758)
volodymyrsamotiy Sep 30, 2022
004a8b6
[AzurePipeline] Fix vstest step failed by libyang missing. (#12240)
liuh-80 Sep 30, 2022
18850e4
[Arista] Update platform submodules (#12225)
Staphylo Sep 30, 2022
0e33bd8
Test semgrep
maipbui Sep 30, 2022
0a2743d
[submodule] update sonic-utilities (#12138)
wen587 Oct 1, 2022
8c10851
Update azure.github.io links to sonic-net.github.io (#12209)
mdanish-kh Oct 2, 2022
44356fa
[Mellanox] Add NVIDIA copyright header for NVIDIA added files (#12130)
dprital Oct 2, 2022
2f46689
[Arista] Add components for 720DT-48S (#12217)
andywongarista Oct 3, 2022
95f4af3
[actions] Support Semgrep by Github Actions (#12249)
maipbui Oct 3, 2022
c691b73
01.Version-cache - restructuring of Makefile.work (#12000)
Kalimuthu-Velappan Oct 4, 2022
1f0699f
Fix sonic-config low dpkg hit rate issue (#12244)
xumia Oct 5, 2022
3686454
Updated the template with comment recieved (#12276)
kannankvs Oct 6, 2022
9251d4b
[docker-wait-any]: Exit worker thread if main thread is expected to e…
saiarcot895 Oct 6, 2022
ac1d392
Disable brackted-paste mode off by default (#12285)
prgeor Oct 6, 2022
1073a47
[armhf][sonic-installer] Fix the sonic-installer install images on ar…
mlok-nokia Oct 6, 2022
80c1210
iccpd bullseye migration (#12097)
adyeung Oct 6, 2022
1ad1e19
[RDMA] create split profiles for Arista-7050CX3-32S (#12228)
yxieca Oct 6, 2022
648ca07
[device/mellanox] Mitigation for security vulnerability (#11877)
maipbui Oct 6, 2022
a45a455
[swss]: Submodule update (#12286)
theasianpianist Oct 7, 2022
fa2f7cd
Update gnmi pointer (#12293)
zbud-msft Oct 7, 2022
d5a3613
Update debootstrap to 1.0.123+deb11u1 (#12294)
saiarcot895 Oct 7, 2022
3cd9b2e
[device/centec] Replace os.system and remove subprocess with shell=Tr…
maipbui Oct 7, 2022
615f277
[minigraph] Remove SLB and bgp monitor peers for storage backend (#12…
neethajohn Oct 7, 2022
7e0346c
[master] update sonic-utilities (#12307)
wen587 Oct 10, 2022
09fe3f4
Add Structured Events w/ YANG Models (#12270)
zbud-msft Oct 10, 2022
62692f4
Add storage blob related packages (#12220)
yejianquan Oct 10, 2022
019e0ac
[actions] Add auto cherry-pick actions to release branch (#11496)
liushilongbuaa Oct 10, 2022
09d4d3e
[action] Fix trigger issue in PR pre-cherry-pick action. (#12333)
liushilongbuaa Oct 10, 2022
94c9989
[broadcom] Replace popen function (#12106)
maipbui Oct 10, 2022
9b2b8e3
Add gearbox taps to vs gearbox_config.json (#11480)
byu343 Oct 10, 2022
df93a1b
[Build][Bug] Fix apt-get remove version not lock issue (#12193)
xumia Oct 10, 2022
304c6c8
[BFN] Reworked BFN platform thermals plugin (#11723)
Oct 11, 2022
9d37b63
[Nokia] Update Nokia platform IXR7250E device data (#11611)
mlok-nokia Oct 11, 2022
fc99265
[Nokia] Update the nokia platform submodule for Nokia-IXR7250E platfo…
mlok-nokia Oct 11, 2022
247bd78
[action] Fix PR pre-cherry-pick action wrong author issue. (#12339)
liushilongbuaa Oct 11, 2022
c75dfe8
[build] Fix dpkg front lock issue with apt-get (#12332)
liushilongbuaa Oct 11, 2022
cb707b7
fixed nokia platform m0 asic mismatch (#12148)
hehuang-nokia Oct 11, 2022
f182658
Replace eval (#12103)
maipbui Oct 11, 2022
e176512
[Yang model] add Restapi yang file (#12287)
prsunny Oct 11, 2022
aee1466
sonic-swss-common submodule update (#12356)
renukamanavalan Oct 12, 2022
257cc96
Remove swsssdk from sonic OS image and docker container image (#12323)
liuh-80 Oct 12, 2022
34f9a64
[DHCP_RELAY] Updated wait_for_intf.sh to wait for ipv6 global and lin…
vivekrnv Oct 12, 2022
7087763
Revert "[Yang model] add Restapi yang file (#12287)" (#12374)
saiarcot895 Oct 12, 2022
50b77a5
Fixes the exit status of slave build. (#12369)
Kalimuthu-Velappan Oct 13, 2022
bc684fe
[BGP] starting BGP service after swss (#12381)
yxieca Oct 13, 2022
86fec08
[sonic-mpls-tc-map.yang]: yang model for mpls_tc_to_tc_map table. (#1…
Oct 13, 2022
56d2c81
[sonic-dhcp-server.yang]: yang model for dhcp_server table. (#12175)
Oct 13, 2022
0c68a43
Add yang model definition for VOQ_INBAND_INTERFACE (#12306)
tjchadaga Oct 13, 2022
fad4034
Add 36 port 400g SKU for x86_64-arista_7800r3a_36d series of Linecard…
abohanyang Oct 14, 2022
ea101a9
[device/delta] Mitigation for command injection vulnerability (#11865)
maipbui Oct 14, 2022
92d25be
[inventec] Replace os.system and remove subprocess with shell=True (#…
maipbui Oct 14, 2022
629343e
[Mellanox]Adding SKU Mellanox-SN2700-D44C10 (#12396)
dgsudharsan Oct 15, 2022
1f2ee7b
add Restapi Yang model (#12379)
prsunny Oct 15, 2022
e2ae965
[FRR] import FRR patch: zebra: Note when the netlink DUMP command is …
yxieca Oct 16, 2022
094646c
[yang]Update port yang model, change MTU range to [68,9216] (#12223)
pettershao-ragilenetworks Oct 17, 2022
51eac0b
Add k8s master table yang model (#12331)
lixiaoyuner Oct 17, 2022
a750930
* 176c385 (HEAD, origin/master, origin/HEAD, master) Streaming events…
renukamanavalan Oct 17, 2022
7ba1d25
Add 36 port 100g sku for x86_64-arista_7800r3a_36d series of linecard…
skbarista Oct 17, 2022
9ef8464
[pmon] Add smartmontools to pmon docker (#11837)
cytsao1 Oct 17, 2022
dc2cc9d
Updated BRCM SAI to version 7.1.10.4 (#12423)
vmittal-msft Oct 17, 2022
a07aaca
[docker-sonic-mgmt] Cleanup and upgrade some packages (#12218)
wangxin Oct 18, 2022
05b1e06
[action] Add debug info for automerge github action. (#12389)
liushilongbuaa Oct 18, 2022
bc8ee7a
[Mellanox] [SKU] Mellanox-SN4700-V48C32 SKU added (#12250)
vivekrnv Oct 18, 2022
cca17ce
Updated config files to disable DLR_INIT capability (#12401)
vmittal-msft Oct 18, 2022
34b6cc0
[Arista] Fix content of platform.json for DCS-7050CX3-32S (#12082)
andywongarista Oct 19, 2022
2bf2e02
Enable to cancel pipeline jobs during checkout code and tests (#12436)
yejianquan Oct 19, 2022
ef0559c
[TestbedV2]Migrate t0 and t1-lag to TestbedV2 (#12383)
yejianquan Oct 19, 2022
6f67a3a
[device/quanta] Mitigation for security vulnerability (#11867)
maipbui Oct 19, 2022
9f88d03
[QoS] Support dynamic headroom calculation for Barefoot platforms (#1…
MariuszStachura Oct 19, 2022
041d502
Advance dhcprelay submodule head (#12214)
kellyyeh Oct 19, 2022
7c5e4e2
Revert syslog change in dhcp_mon disparity (#12425)
zbud-msft Oct 20, 2022
010f920
[submodule] Update sonic-mgmt-framework HEAD pointer. (#12434)
liushilongbuaa Oct 20, 2022
357c1ea
[action] Update automerge version, change log level and change auto c…
liushilongbuaa Oct 20, 2022
1dec490
[ci] Fix test job issue on checkout step (#12445)
liushilongbuaa Oct 20, 2022
bdebcff
[Barefoot] Add xon_offset to pg_profile_lookup.ini (#12073)
MariuszStachura Oct 20, 2022
13111d9
[submodule] Advance sonic-sairedis pointer (#12147)
dprital Oct 20, 2022
5a9a25e
[submodule] Advance sonic-platform-common pointer (#11965)
dprital Oct 20, 2022
a68ce12
[Mellanox] [SKU] Added Mellanox-SN4700-A96C8V8 SKU (#12347)
vivekrnv Oct 20, 2022
2f49062
[FRR]Adding patch to fix enhanced capability turned on for interface …
dgsudharsan Oct 20, 2022
e57cd47
Add YANG models for structured events (#12290)
zbud-msft Oct 20, 2022
cf20aea
[Arista] Update platform driver library (#12450)
Staphylo Oct 20, 2022
37ad8be
[tunnel_pkt_handler]: Skip nonexistent intfs (#12424)
theasianpianist Oct 20, 2022
3587489
Fix sensord service install (#12376)
andywongarista Oct 21, 2022
66012b4
[bullseye] Update libswsscommon deps (#12463)
maipbui Oct 21, 2022
d7b9c64
Fix the issue that test plan can't be canceled by KVM dump stage (#12…
yejianquan Oct 21, 2022
f4046c1
Add dhcp6relay dualtor option (#12459)
kellyyeh Oct 21, 2022
9cdd787
Add support for UpperlakeElite (#12280)
Staphylo Oct 22, 2022
f39c2ad
Fix extraction of platform.tar.gz for firsttime (#11935)
Staphylo Oct 22, 2022
8c73e68
Remove \n from the end of fs_path in ONIEUpdater (#12465)
stephenxs Oct 23, 2022
2041e76
[submodule] update sonic-utilities pointer (#12462)
vivekrnv Oct 23, 2022
fff6808
[openssh] Update openssh make file, add missing dependency to libnl. …
liuh-80 Oct 24, 2022
c20707f
[master][sonic-linkmgrd] submodule update (#12132)
zjswhhh Oct 24, 2022
a0661e2
[sonic-host-services]: Advance submodule (#12195)
SuvarnaMeenakshi Oct 24, 2022
078608e
Add the original docker tag without username (#12472)
xumia Oct 25, 2022
158371d
[Ci] clean up the old artifacts in the agent before downloading the n…
xumia Oct 25, 2022
81ee948
[action] Use github code scan instead of LGTM. (#12402)
liushilongbuaa Oct 25, 2022
85e3a81
Fix to improve hostname handling (#12064)
devpatha Oct 25, 2022
dad3f61
[Restapi] Update submodule (#12006)
sumukhatv Oct 25, 2022
198b629
[submodule]: Update sonic-sairedis (#12475)
jimmyzhai Oct 26, 2022
3058fb6
Loc moved to prev consolidation change (#12427)
vivekrnv Oct 26, 2022
3d9a6e4
Add yang_config_validation to DEVICE_METADATA yang model (#12497)
isabelmsft Oct 26, 2022
80a7762
[netberg] Replace os.system (#12104)
maipbui Oct 26, 2022
558c904
Fix CVE-2022-37032 on FRR submodule (#12435)
DavidZagury Oct 26, 2022
a4fe681
fix missing import error (#12511)
dmytroxIntel Oct 27, 2022
844f831
[action] Use pull_request_target trigger instead to avoid codeQL chec…
liushilongbuaa Oct 27, 2022
3df031c
[ci] Add azp trigger for future release branches. (#12508)
liushilongbuaa Oct 27, 2022
a771a26
[Build] Add the missing debian source bullseye-updates/buster-updates…
xumia Oct 27, 2022
89f7682
Update BRCM SAI version to 7.1.16.4 (#12515)
tjchadaga Oct 27, 2022
538e4c0
[Restapi Yang] Fix issue with multiple certs (#12495)
prsunny Oct 27, 2022
db74597
Add yang_config_validation to minigraph.py (#12504)
isabelmsft Oct 28, 2022
57e333e
[sonic-bgpcfgd] Replace getstatusoutput function (#12535)
maipbui Oct 28, 2022
f34ca2b
[sonic-eventd] Replace subprocess with shell=True (#12536)
maipbui Oct 28, 2022
a85b34f
update notify-keyspace-events in redis.conf (#12540)
arlakshm Oct 29, 2022
917ad1f
[Mellanox] Update SDK/FW to version 4.5.3186/2010.3186 (#12542)
dprital Oct 30, 2022
4216f34
[submodule] Advance sonic-swss-common pointer (#12510)
Junchao-Mellanox Oct 30, 2022
b841e95
[submodule] Advance sonic-swss-common pointer (#12553)
dprital Oct 31, 2022
d1df284
[submodule] Advance sonic-utilities pointer (#12544)
dprital Oct 31, 2022
6bed69a
Add a yang model for the new "Logger" table in the CONFIG DB (#12067)
EdenGri Oct 31, 2022
a60ebd3
Update BRCM SAI version to 7.1.17.4 (#12546)
Gfrom2016 Oct 31, 2022
934871c
[sonic-config-engine] Replace os.system, replace yaml.load, remove su…
maipbui Oct 31, 2022
a0055ab
[sonic-yang-mgmt] Replace subprocess using with shell=True (#12537)
maipbui Oct 31, 2022
0fcd219
[sonic-ctrmgrd] Replace os.system and remove subprocess with shell=Tr…
maipbui Oct 31, 2022
5d83d42
Added BUILD flags to provision for building the kernel with non-upstr…
vivekrnv Oct 31, 2022
0dd4d5d
[openssh]: Restore behavior of ClientAliveCountMax=0 (#12549)
saiarcot895 Oct 31, 2022
45d1746
Enable P4RT at build time and disable at startup (#10499)
ntoorchi Oct 31, 2022
2b7a3ac
[yang-models]: Change name-space from Azure to sonic-net. (#12416)
Oct 31, 2022
2626573
[TACACS] Send remote address in TACACS+ authorization message. (#12190)
liuh-80 Nov 1, 2022
a31a4e7
Revert "[Barefoot] Add xon_offset to pg_profile_lookup.ini (#12073)" …
Nov 2, 2022
e1440f0
Improve feature mode switch process (#12188)
lixiaoyuner Nov 2, 2022
b3a8167
[system-health] Remove subprocess with shell=True (#12572)
maipbui Nov 2, 2022
1f88a3e
[openssh] Export remote address to environment variable for TACACS au…
liuh-80 Nov 3, 2022
763d3dc
Allow TSA on ibgp sessions between linecards on packet chassis (#12589)
tjchadaga Nov 3, 2022
830b7d8
[Mellanox] Use sdk sysfs instead of ethtool (#12480)
Junchao-Mellanox Nov 3, 2022
6169ae3
Add lossy scheduler for queue 7 (#12596)
bingwang-ms Nov 4, 2022
7b813a9
Update sonic-swss-common submodule (#12578)
liuh-80 Nov 4, 2022
d7a9f18
[ci] Upload the debian packages (#12582)
xumia Nov 4, 2022
7fb8bf7
Fix the pddf_custom_wdt driver rarely reports kernel dump issue while…
jerseyang Nov 4, 2022
b522b77
[sonic-py-common] Remove subprocess with shell=True (#12562)
maipbui Nov 4, 2022
61a085e
Replace os.system and remove subprocess with shell=True (#12177)
maipbui Nov 4, 2022
661c467
Revert "[sonic-config-engine] Replace os.system, replace yaml.load, r…
StormLiangMS Nov 7, 2022
61246b6
[Build] Fix the docker-sync not found issue (#12593)
xumia Nov 7, 2022
c3a51b2
Fix code irregular issues (#12595)
lixiaoyuner Nov 7, 2022
dc0ceaa
[TestbedV2] Add dualtor test using TestbedV2. (#12601)
yutongzhang-microsoft Nov 7, 2022
f0873f2
[SAI PTF]Syncd-rpc and PTF docker support sai ptf v2 (#11610)
richardyu-ms Nov 7, 2022
0017818
[BFN] Fixed FANs indexing for multi-drawer case (#12491)
Nov 7, 2022
5b0c4ec
[device/accton] Replace os.system and remove subprocess with shell=Tr…
maipbui Nov 7, 2022
e2b3bdf
Add YANG model and unit tests for additional structured events (#12554)
zbud-msft Nov 7, 2022
8f48773
Publish additional events (#12563)
zbud-msft Nov 7, 2022
ddf16c9
[arp_update]: Fix hardcoded vlan (#12566)
theasianpianist Nov 7, 2022
c4be3a5
[chassis][Arista] add supervisor to the platform_env.conf (#12615)
arlakshm Nov 7, 2022
18aca96
[submodule] Advance sonic-linux-kernel pointer (#12560)
vivekrnv Nov 8, 2022
c8c2b7f
[Mellanox] [Platform API] Update SN2201 dynamic minimum fan speed tab…
keboliu Nov 8, 2022
e6a0fba
[logrotate]Fix logrotate firstaction script to reflect correct size (…
dgsudharsan Nov 8, 2022
1320319
Update submodule (#12635)
judyjoseph Nov 8, 2022
c259c99
Use the macsec_enabled flag in platform to enable macsec feature stat…
judyjoseph Nov 8, 2022
fc17cca
[sonic-linkmgrd][master] submodule update (#12610)
zjswhhh Nov 8, 2022
f581a77
[Chassis] [Arista] correct platform.json for sup and LC6 names (#12627)
wenyiz2021 Nov 8, 2022
ac5d89c
[Build] Support j2 template for debian sources (#12557)
xumia Nov 9, 2022
66f1cc4
Bugfix #9739: Support when 'bgp_asn' is set to 'None', 'Null', or mis…
cchoate54 Nov 9, 2022
abf1862
[gbsyncd] Enable debug shell for BRCM broncos PHY (#12622)
jimmyzhai Nov 9, 2022
a544a07
Enable Dx010 LPM (#12642)
yxieca Nov 9, 2022
b45aaef
Add Barefoot to the list of supported platforms (#12269)
Nov 10, 2022
0ea4f4d
Clear /etc/resolv.conf before building image (#12592)
devpatha Nov 10, 2022
43463ce
Add missing import (#12624)
dmytroxIntel Nov 10, 2022
1117529
[dhcp_relay] Enable DHCP Relay for BmcMgmtToRRouter in init_cfg (#12648)
Blueve Nov 10, 2022
7c746e6
[master][TestbedV2] migrate t0-sonic test jobs to TestbedV2. (#12651)
yutongzhang-microsoft Nov 10, 2022
10f36d6
[submodule] Advance sonic-swss pointer (#12498)
keboliu Nov 10, 2022
1f5cb98
[submodule] Advance sonic-utilities and sonic-platform-common pointer…
stephenxs Nov 11, 2022
5aa0324
[master][TestbedV2] Migrate multi-asic test jobs to TestbedV2. (#12668)
yutongzhang-microsoft Nov 11, 2022
f97cf57
[BFN] Stop PMON before swss during warm reboot (#12658)
Nov 11, 2022
c6b25a5
advance sonic-swss pointer (#12670)
keboliu Nov 11, 2022
3717e62
update semgrep
maipbui Nov 11, 2022
4bf7171
Merge branch 'master' into bui/test/semgrep
maipbui Nov 11, 2022
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
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .azure-pipelines/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
mv target/docker-sonic-vs.gz target/docker-sonic-vs-asan.gz
fi
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-ptf-sai.gz
if [ $(Build.Reason) != 'PullRequest' ];then
gzip -kd target/sonic-vs.img.gz
SONIC_RUN_CMDS="qemu-img convert target/sonic-vs.img -O vhdx -o subformat=dynamic target/sonic-vs.vhdx" make sonic-slave-run
Expand All @@ -138,9 +139,25 @@ jobs:
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
fi
if [ $(docker_syncd_rpc_image) == yes ]; then
# workaround for issue in rules/sairedis.dep, git ls-files will list un-exist files for cache
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
if [ $(GROUP_NAME) == broadcom ]; then
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-dnx-rpc.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-saiserverv2-brcm.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
echo BUILD_OPTIONS $BUILD_OPTIONS
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-syncd-brcm-rpcv2.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
fi
fi
if [ $(syncd_rpc_image) == yes ]; then
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
displayName: "Set cache options"
- checkout: self
submodules: recursive
condition: eq(variables.SKIP_CHECKOUT, '')
condition: and(succeeded(), eq(variables.SKIP_CHECKOUT, ''))
displayName: 'Checkout code'
- script: |
BRANCH_NAME=$(Build.SourceBranchName)
Expand Down
15 changes: 15 additions & 0 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
fi

make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-ptf-sai.gz
else
if [ ${{ parameters.dbg_image }} == true ]; then
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) INSTALL_DEBUG_TOOLS=y target/sonic-${{ parameters.platform }}.bin && \
Expand All @@ -105,6 +106,20 @@ jobs:
fi
if [ ${{ parameters.sync_rpc_image }} == true ]; then
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y target/docker-syncd-${{ parameters.platform_short }}-rpc.gz
# workaround for issue in rules/sairedis.dep, git ls-files will list un-exist files for cache
pushd ./src/sonic-sairedis/SAI
git stash
popd
if [ ${{ parameters.platform }} == broadcom ]; then
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) SAITHRIFT_V2=y ENABLE_SYNCD_RPC=y target/docker-syncd-brcm-rpcv2.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-saiserverv2-brcm.gz
pushd ./src/sonic-sairedis/SAI
git stash
popd
fi
fi

make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) target/sonic-${{ parameters.platform }}.bin
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schedules:
branches:
include:
- master
- 202012
- 202???
always: true
- cron: "0 4 * * *"
displayName: nightly build for release
Expand Down
139 changes: 139 additions & 0 deletions .azure-pipelines/run-test-scheduler-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
parameters:
- name: TOPOLOGY
type: string

- name: POLL_INTERVAL
type: number
default: 10

- name: POLL_TIMEOUT
type: number
default: 36000

- name: MIN_WORKER
type: number
default: 1

- name: MAX_WORKER
type: number
default: 2

- name: TEST_SET
type: string
default: ""

- name: DEPLOY_MG_EXTRA_PARAMS
type: string
default: ""

- name: COMMON_EXTRA_PARAMS
type: string
default: ""

- name: VM_TYPE
type: string
default: "ceos"

- name: SPECIFIED_PARAMS
type: string
default: "{}"

- name: MGMT_BRANCH
type: string
default: master

- name: NUM_ASIC
type: number
default: 1

steps:
- script: |
set -ex
wget -O ./.azure-pipelines/test_plan.py https://github.com/raw/sonic-net/sonic-mgmt/master/.azure-pipelines/test_plan.py
wget -O ./.azure-pipelines/pr_test_scripts.yaml https://github.com/raw/sonic-net/sonic-mgmt/master/.azure-pipelines/pr_test_scripts.yaml
displayName: Download TestbedV2 scripts

- script: |
set -ex
pip install PyYAML
rm -f new_test_plan_id.txt
python ./.azure-pipelines/test_plan.py create -t ${{ parameters.TOPOLOGY }} -o new_test_plan_id.txt \
--min-worker ${{ parameters.MIN_WORKER }} --max-worker ${{ parameters.MAX_WORKER }} \
--test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) \
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
--mgmt-branch ${{ parameters.MGMT_BRANCH }} --vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" \
--num-asic ${{ parameters.NUM_ASIC }}
TEST_PLAN_ID=`cat new_test_plan_id.txt`

echo "Created test plan $TEST_PLAN_ID"
echo "Check https://www.testbed-tools.org/scheduler/testplan/$TEST_PLAN_ID for test plan status"
echo "##vso[task.setvariable variable=TEST_PLAN_ID]$TEST_PLAN_ID"
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
TENANT_ID: $(TESTBED_TOOLS_MSAL_TENANT_ID)
CLIENT_ID: $(TESTBED_TOOLS_MSAL_CLIENT_ID)
CLIENT_SECRET: $(TESTBED_TOOLS_MSAL_CLIENT_SECRET)
displayName: Trigger test

- script: |
set -ex
echo "Lock testbed"
echo "TestbedV2 is just online and might not be stable enough, for any issue, please send email to sonictestbedtools@microsoft.com"
echo "Runtime detailed progress at https://www.testbed-tools.org/scheduler/testplan/$TEST_PLAN_ID"
# When "LOCK_TESTBED" finish, it changes into "PREPARE_TESTBED"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --timeout 43200 --expected-states PREPARE_TESTBED EXECUTING KVMDUMP FINISHED CANCELLED FAILED
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: Lock testbed
timeoutInMinutes: 240

- script: |
set -ex
echo "Prepare testbed"
echo "Preparing the testbed(add-topo, deploy-mg) may take 15-30 minutes. Before the testbed is ready, the progress of the test plan keeps displayed as 0, please be patient(We will improve the indication in a short time)"
echo "If the progress keeps as 0 for more than 1 hour, please cancel and retry this pipeline"
echo "TestbedV2 is just online and might not be stable enough, for any issue, please send email to sonictestbedtools@microsoft.com"
echo "Runtime detailed progress at https://www.testbed-tools.org/scheduler/testplan/$TEST_PLAN_ID"
# When "PREPARE_TESTBED" finish, it changes into "EXECUTING"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --timeout 2400 --expected-states EXECUTING KVMDUMP FINISHED CANCELLED FAILED
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: Prepare testbed
timeoutInMinutes: 40

- script: |
set -ex
echo "Run test"
echo "TestbedV2 is just online and might not be stable enough, for any issue, please send email to sonictestbedtools@microsoft.com"
echo "Runtime detailed progress at https://www.testbed-tools.org/scheduler/testplan/$TEST_PLAN_ID"
# When "EXECUTING" finish, it changes into "KVMDUMP", "FAILED", "CANCELLED" or "FINISHED"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --timeout 18000 --expected-states KVMDUMP FINISHED CANCELLED FAILED
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: Run test
timeoutInMinutes: 300

- script: |
set -ex
echo "KVM dump"
echo "TestbedV2 is just online and might not be stable enough, for any issue, please send email to sonictestbedtools@microsoft.com"
echo "Runtime detailed progress at https://www.testbed-tools.org/scheduler/testplan/$TEST_PLAN_ID"
# When "KVMDUMP" finish, it changes into "FAILED", "CANCELLED" or "FINISHED"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --timeout 43200 --expected-states FINISHED CANCELLED FAILED
condition: succeededOrFailed()
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: KVM dump
timeoutInMinutes: 20

- script: |
set -ex
echo "Try to cancel test plan $TEST_PLAN_ID, cancelling finished test plan has no effect."
python ./.azure-pipelines/test_plan.py cancel -i "$(TEST_PLAN_ID)"
condition: always()
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
TENANT_ID: $(TESTBED_TOOLS_MSAL_TENANT_ID)
CLIENT_ID: $(TESTBED_TOOLS_MSAL_CLIENT_ID)
CLIENT_SECRET: $(TESTBED_TOOLS_MSAL_CLIENT_SECRET)
displayName: Finalize running test plan
5 changes: 5 additions & 0 deletions .azure-pipelines/run-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ parameters:
- sonic-6asic-vs.img.gz

steps:
- template: cleanup.yml
- checkout: self
clean: true
displayName: 'checkout sonic-mgmt repo'

- script: |
sudo rm -rf ../target
displayName: "Cleanup"

- task: DownloadPipelineArtifact@2
inputs:
artifact: sonic-buildimage.vs
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/trigger-publish-artifacts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ steps:
**/*.raw\n
**/*.img.gz\n
**/*-rpc.gz\n
**/python-saithrift*.deb"},
**/*.deb"},
publishContext: {"publishPrefix":"${{ parameters.publishPrefix }}",
"keepArtifactName":false,
"dockerImagePatterns":"target/*-rpc.gz",
Expand Down
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CodeQL config"
queries:
- uses: security-and-quality
- uses: security-extended
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

#### Ensure to add label/tag for the feature raised. example - [PR#2174](https://github.com/sonic-net/sonic-utilities/pull/2174) where, Generic Config and Update feature has been labelled as GCU.
#### Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

#### Link to config_db schema for YANG module changes
<!--
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Github actions README
This is an introduction about auto-cherry-pick workflow.
take 202205 branch for example:
1. pr_cherrypick_prestep:
```mermaid
graph
Start(Origin PR) --> A{merged?}
A -- NO --> STOP
A -- YES --> A1{Approved<br> for 202205<br> Branch?}
A1 -- NO --> STOP
A1 -- YES --> A2(pr_cherrypick_prestep)
B(pr_cherrypick_prestep)
B --> B1{cherry pick<br>conflict?}
B1 -- YES --> B2(Add tag:<br>Cherry Pick Confclit_202205) --> B3(Add comment:<br>refer author code conflict) --> STOP1(STOP)
B1 -- NO --> B4(Create New PR) -- success --> B5(New PR add tag:<br> automerge) --> B6(New PR add comment:<br>Origin PR link) --> B7(Origin PR add tag:<br>Created PR to 202205 Branch) --> B8(Origin PR add comment:<br>New PR link)
B4 -- fail --> STOP1
```

2. automerge:
```mermaid
graph
Start(PR azp finished successfully) --> A{author:<br>mssonicbld?}
A -- NO --> STOP
A -- YES --> B{tag:<br>automerge?} -- YES --> C(Merge PR)
B -- NO --> STOP
```

3. pr_cherrypick_poststep:
```mermaid
graph
A(PR is Merged) --> B{tag:<br>automerge?}
B -- YES --> B1{author:<br>mssonicbld?}
B1 -- YES --> B2{"title starts:<br>[action] [PR:123]"}
B2 -- YES --> C(Origin PR remove tag:<br> Created PR to 202205 Branch) --> D(Origin PR add tag:<br> Included in 202205 Branch)
B -- NO --> STOP
B1 -- NO --> STOP
B2 -- NO --> STOP
```
3 changes: 2 additions & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: 'pascalgn/automerge-action@v0.13.1'
uses: 'pascalgn/automerge-action@v0.15.5'
env:
GITHUB_TOKEN: '${{ secrets.TOKEN }}'
MERGE_LABELS: 'automerge'
MERGE_METHOD: 'squash'
MERGE_FILTER_AUTHOR: 'mssonicbld'
MERGE_DELETE_BRANCH: true
LOG: "TRACE"
43 changes: 43 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# For more infomation, please visit: https://github.com/github/codeql-action

name: "CodeQL"

on:
push:
branches:
- 'master'
- '202[0-9][0-9][0-9]'
pull_request_target:
branches:
- 'master'
- '202[0-9][0-9][0-9]'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql-config.yml
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
Loading