-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/syslog_telemetry_shared' into re…
…manava_events
- Loading branch information
Showing
1,094 changed files
with
170,577 additions
and
3,454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,53 @@ | ||
jobs: | ||
- job: Build | ||
timeoutInMinutes: 120 | ||
pool: sonicbld | ||
variables: | ||
- template: template-variables.yml | ||
steps: | ||
- checkout: self | ||
clean: true | ||
submodules: recursive | ||
- script: | | ||
set -ex | ||
branch=$(Build.SourceBranchName) | ||
# DIST_MASTER is set in variable. | ||
BRANCH=DIST_${branch^^} | ||
bldenvs=${!BRANCH} | ||
[ "$bldenvs" == "" ] && bldenvs="$(COMMON_LIB_BUILD_ENVS)" | ||
for bldenv in $bldenvs | ||
do | ||
BLDENV=$bldenv make -f Makefile.work configure PLATFORM=vs ENABLE_DOCKER_BASE_PULL=y | ||
done | ||
set +x | ||
echo "##vso[task.setvariable variable=bldenvs;]$bldenvs" | ||
displayName: Make configure | ||
- script: | | ||
set -ex | ||
for bldenv in $(bldenvs) | ||
do | ||
LIBNL3_VERSION_BASE=$(grep "LIBNL3_VERSION_BASE =" rules/libnl3.mk | awk '{print$3}') | ||
LIBNL3_VERSION=$(grep "LIBNL3_VERSION =" rules/libnl3.mk | awk '{print$3}' | sed -e "s/(//" -e "s/)//" -e "s/\\$//" -e "s/LIBNL3_VERSION_BASE/$LIBNL3_VERSION_BASE/") | ||
SONIC_BUILD_JOBS=$(nproc) BLDENV=$bldenv make -f Makefile.work target/debs/$bldenv/libnl-3-200_${LIBNL3_VERSION}_amd64.deb ENABLE_DOCKER_BASE_PULL=y | ||
parameters: | ||
- name: archs | ||
type: object | ||
default: | ||
- amd64 | ||
- armhf | ||
- arm64 | ||
|
||
LIBYANG_VERSION_BASE=$(grep "LIBYANG_VERSION_BASE =" rules/libyang.mk | awk '{print$3}') | ||
LIBYANG_VERSION=$(grep "LIBYANG_VERSION =" rules/libyang.mk | awk '{print$3}' | sed -e "s/\\$//" -e "s/(//" -e "s/)//" -e "s/LIBYANG_VERSION_BASE/$LIBYANG_VERSION_BASE/") | ||
SONIC_BUILD_JOBS=$(nproc) BLDENV=$bldenv make -f Makefile.work target/debs/$bldenv/libyang_${LIBYANG_VERSION}_amd64.deb | ||
done | ||
mv target $(Build.ArtifactStagingDirectory) | ||
displayName: Make common lib packages | ||
- publish: $(Build.ArtifactStagingDirectory) | ||
artifact: common-lib | ||
jobs: | ||
- ${{ each arch in parameters.archs }}: | ||
- job: Build_${{ arch }} | ||
timeoutInMinutes: 120 | ||
${{ if eq(arch,'amd64') }}: | ||
pool: sonicbld | ||
${{ else }}: | ||
pool: sonicbld-${{ arch }} | ||
variables: | ||
- template: template-variables.yml | ||
steps: | ||
- checkout: self | ||
clean: true | ||
submodules: recursive | ||
- script: | | ||
set -ex | ||
branch=$(Build.SourceBranchName) | ||
# replace all: '-' -> '_' | ||
branch=${branch//-/_} | ||
# replace all: 'a' -> 'A', DIST_MASTER is set in variable. | ||
BRANCH=DIST_${branch^^} | ||
# variable name is dynamic | ||
bldenvs=${!BRANCH} | ||
[ "$bldenvs" == "" ] && bldenvs="$(COMMON_LIB_BUILD_ENVS)" | ||
for bldenv in $bldenvs | ||
do | ||
BLDENV=$bldenv make -f Makefile.work configure PLATFORM_ARCH=${{ arch }} PLATFORM=vs ENABLE_DOCKER_BASE_PULL=y | ||
done | ||
set +x | ||
echo "##vso[task.setvariable variable=bldenvs;]$bldenvs" | ||
displayName: Make configure | ||
- script: | | ||
set -ex | ||
for bldenv in $(bldenvs) | ||
do | ||
SONIC_BUILD_JOBS=$(nproc) BLDENV=$bldenv make -f Makefile.work lib-packages ENABLE_DOCKER_BASE_PULL=y | ||
done | ||
mv target $(Build.ArtifactStagingDirectory) | ||
displayName: Make common lib packages | ||
- ${{ if eq(arch,'amd64') }}: | ||
- publish: $(Build.ArtifactStagingDirectory) | ||
artifact: common-lib | ||
- ${{ else }}: | ||
- publish: $(Build.ArtifactStagingDirectory) | ||
artifact: common-lib.${{ arch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | ||
- script: | | ||
set -ex | ||
tar_branch=origin/$(System.PullRequest.TargetBranch) | ||
git diff $tar_branch..HEAD --name-only | grep -v -f .azure-pipelines/vstest-exclude && exit 0 | ||
git diff $tar_branch..HEAD --name-only | grep -f .azure-pipelines/vstest-include && exit 0 | ||
set +x | ||
echo "Skip vstest jobs" | ||
echo "##vso[task.setvariable variable=SKIP_VSTEST;isOutput=true]YES" | ||
name: SetVar | ||
displayName: "Check if vstest is needed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
variables: | ||
DEFAULT_CONTAINER_REGISTRY: 'publicmirror.azurecr.io' | ||
COMMON_LIB_BUILD_ENVS: 'bullseye' | ||
SONIC_SLAVE_DOCKER_DRIVER: 'overlay2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# The steps to trigger the pipeline to publish the artifacts | ||
|
||
parameters: | ||
- name: artifactName | ||
type: string | ||
default: "" | ||
- name: publishPrefix | ||
type: string | ||
default: "$(Build.DefinitionName)/$(Build.SourceBranchName)" | ||
|
||
steps: | ||
- script: | | ||
. functions.sh | ||
sonic_version=$(sonic_get_version) | ||
latest_tag=$(git describe --tags --abbrev=0) | ||
docker_tags="$sonic_version $(Build.SourceBranchName)" | ||
if [ "$(Build.SourceBranchName)" == "master" ]; then | ||
docker_tags="$docker_tags latest" | ||
fi | ||
echo "##vso[task.setvariable variable=sonic_version]$sonic_version" | ||
echo "##vso[task.setvariable variable=latest_tag]$latest_tag" | ||
echo "##vso[task.setvariable variable=docker_tags]$docker_tags" | ||
displayName: 'Set trigger build variables' | ||
- task: TriggerBuild@4 | ||
inputs: | ||
definitionIsInCurrentTeamProject: false | ||
teamProject: internal | ||
tfsServer: $(System.CollectionUri) | ||
buildDefinition: 'publish-artifacts' | ||
queueBuildForUserThatTriggeredBuild: true | ||
ignoreSslCertificateErrors: false | ||
useSameSourceVersion: false | ||
useCustomSourceVersion: false | ||
useSameBranch: false | ||
waitForQueuedBuildsToFinish: false | ||
storeInEnvironmentVariable: true | ||
authenticationMethod: 'Personal Access Token' | ||
password: '$(system.accesstoken)' | ||
enableBuildInQueueCondition: false | ||
dependentOnSuccessfulBuildCondition: false | ||
dependentOnFailedBuildCondition: false | ||
checkbuildsoncurrentbranch: false | ||
failTaskIfConditionsAreNotFulfilled: false | ||
buildParameters: '' | ||
templateParameters: | | ||
pipelineContext: {"buildId":"$(Build.BuildId)", | ||
"pipelineId":"$(System.DefinitionId)", | ||
"project": "$(System.TeamProject)", | ||
"branchName":"$(Build.SourceBranchName)"}, | ||
artifactContext: {"artifactName":"${{ parameters.artifactName }}", | ||
"artifactPatterns":"**/*.bin\n | ||
**/*.swi\n | ||
**/*.raw\n | ||
**/*.img.gz\n | ||
**/*-rpc.gz\n | ||
**/python-saithrift*.deb"}, | ||
publishContext: {"publishPrefix":"${{ parameters.publishPrefix }}", | ||
"keepArtifactName":false, | ||
"dockerImagePatterns":"target/*-rpc.gz", | ||
"dockerTags":"$(docker_tags)", | ||
"version":"$(sonic_version)", | ||
"latestTag":"$(latest_tag)"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
^platform | ||
^.azure-pipelines | ||
^files/build/versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
^platform/vs | ||
^.azure-pipelines/run-test-template.yml |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
- [ ] 202012 | ||
- [ ] 202106 | ||
- [ ] 202111 | ||
- [ ] 202205 | ||
|
||
#### Description for the changelog | ||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.