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

Update versions-test #36

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
1be01c0
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
3667680
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
2ba4e5f
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
cc36392
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
b4ab487
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
c70dd67
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
7dbf3e1
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
1d72779
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
2532392
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
8709679
Fix bug
xumia Mar 11, 2021
06ae66f
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
e7c8863
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
9a70a06
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
b0a0a41
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
3475e08
Fix bug
xumia Mar 11, 2021
1f0599e
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
db99065
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
68e8dc1
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
358d2c2
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
b04a51b
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
5095d68
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
61337af
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
e2e6bfa
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
01f6462
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
a8000c2
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
84a37d7
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 11, 2021
c6ff212
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
9609ede
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
4cee1db
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
abc24df
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
0c06b8e
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
400c8a8
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
7bc6342
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
f8712fd
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
8509485
Update azure-pipelines.yml for Azure Pipelines
xumia Mar 12, 2021
51b8745
Create automerge.yml
xumia Mar 16, 2021
c76f3a2
Update automerge.yml
xumia Mar 16, 2021
04c63ef
Update automerge.yml
xumia Mar 16, 2021
9effda1
Update automerge.yml
xumia Mar 16, 2021
1cccf91
Update automerge.yml
xumia Mar 16, 2021
4e7fd53
Create versions-test (#23)
xumia Mar 16, 2021
65fef98
Update automerge.yml
xumia Mar 16, 2021
de58054
Update automerge.yml
xumia Mar 16, 2021
7c26da1
Add test file (#25)
xumia Mar 16, 2021
8266804
Update automerge.yml
xumia Mar 16, 2021
5dca0af
Update automerge.yml
xumia Mar 16, 2021
d93f27d
Update automerge.yml
xumia Mar 16, 2021
755450a
Update automerge.yml
xumia Mar 16, 2021
1c784cd
Update automerge.yml
xumia Mar 16, 2021
f1c40de
Create label.yml
xumia Mar 16, 2021
d5a56b1
Create labeler.yml
xumia Mar 16, 2021
c784ae0
Update automerge.yml
xumia Mar 16, 2021
0e3973f
Update label.yml
xumia Mar 16, 2021
90d1b47
Update labeler.yml
xumia Mar 16, 2021
c1201af
Update label.yml
xumia Mar 16, 2021
4fe78bf
Update automerge.yml
xumia Mar 16, 2021
dfb61c2
Update automerge.yml
xumia Mar 16, 2021
634f5fa
Update automerge.yml
xumia Mar 16, 2021
52caed9
Update official-build.yml for Azure Pipelines
xumia Apr 4, 2021
e9a4796
Update official-build.yml for Azure Pipelines
xumia Apr 4, 2021
eefe873
Update build-template.yml
xumia Apr 4, 2021
2269b9f
Update azure-pipelines.yml
xumia Apr 7, 2021
46106b4
Update labeler.yml
xumia Apr 7, 2021
7a5fd01
Update azure-pipelines.yml
xumia Apr 7, 2021
82df54b
Update versions-test
xumia Apr 7, 2021
620d3fa
Update versions-test
xumia Apr 7, 2021
e7f9033
Update versions-test
xumia Apr 7, 2021
e19f2c9
Update versions-test
xumia Apr 7, 2021
ffc7f7b
Update versions-test
xumia Apr 7, 2021
9a421a8
Create versions-py3
xumia Apr 7, 2021
6c215a2
Update mask_disabled_services.py
xumia Apr 7, 2021
a47b3c8
Update mask_disabled_services.py
xumia Apr 7, 2021
98026a3
Create versions-py2
xumia Apr 7, 2021
f95987b
Delete versions-py3
xumia Apr 7, 2021
8b3f2cc
Merge remote-tracking branch 'origin/master' into xumia-patch-11
xumia Apr 7, 2021
bf97e80
Update versions-py2
xumia Apr 7, 2021
56f3d88
Update versions-test
xumia Apr 7, 2021
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
24 changes: 8 additions & 16 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
parameters:
- name: platform
type: string
values:
- broadcom
- centec-arm64
- marvell-armhf
- mellanox
- vs

- name: platform_arch
type: string
Expand All @@ -18,12 +12,6 @@ parameters:

- name: platform_short
type: string
values:
- brcm
- centec-arm64
- marvell-armhf
- mlnx
- vs

- name: cache_mode
type: string
Expand All @@ -34,9 +22,6 @@ parameters:

- name: pool
type: string
values:
- sonicbld
- sonicbld_8c
default: sonicbld

- name: dbg_image
Expand All @@ -59,10 +44,17 @@ parameters:
type: number
default: 600

- name: job_name
type: string
default: ''

jobs:
- job:
pool: ${{ parameters.pool }}
displayName: ${{ parameters.platform }}
${{ if ne(parameters.job_name, '') }}:
displayName: ${{ parameters.job_name }}
${{ if eq(parameters.job_name, '') }}:
displayName: ${{ parameters.platform }}
timeoutInMinutes: ${{ parameters.timeout }}
steps:
- template: cleanup.yml
Expand Down
39 changes: 2 additions & 37 deletions .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ schedules:
displayName: Daily midnight build
branches:
include:
- master
always: true
- disable

trigger: none
pr: none
Expand All @@ -18,45 +17,11 @@ stages:
- stage: Build

jobs:
- template: build-template.yml
parameters:
platform: broadcom
platform_short: brcm
cache_mode: wcache
dbg_image: true
swi_image: true
raw_image: true
sync_rpc_image: true

- template: build-template.yml
parameters:
platform: mellanox
platform_short: mlnx
cache_mode: wcache
dbg_image: true
sync_rpc_image: true

- template: build-template.yml
parameters:
platform: vs
platform_short: vs
dbg_image: true
cache_mode: wcache

- template: build-template.yml
parameters:
timeout: 3600
platform: marvell-armhf
platform_arch: armhf
platform_short: marvell-armhf
cache_mode: wcache
pool: sonicbld_8c

- template: build-template.yml
parameters:
timeout: 3600
platform: centec-arm64
platform_arch: arm64
platform_short: centec-arm64
cache_mode: wcache
pool: sonicbld_8c
pool: sonic-arm64-bld-2
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
automerge:
- all: ['files/build/versions/**']
21 changes: 21 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will merge pull requests automatically
#

name: automerge
on:
check_suite:
types:
- completed
jobs:
automerge:
runs-on: ubuntu-latest
if: github.event.check_suite.app.name == 'Azure Pipelines' && github.event.check_suite.conclusion == 'success'
steps:
- name: automerge
uses: 'pascalgn/[email protected]'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
MERGE_LABELS: 'automerge'
MERGE_METHOD: 'squash'
MERGE_FILTER_AUTHOR: 'xumia'
MERGE_DELETE_BRANCH: true
26 changes: 26 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on:
pull_request:
types:
- opened
- reopened
branches:
- '202012'
- 'master'
paths:
- 'files/build/versions/**'

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
137 changes: 14 additions & 123 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,136 +1,27 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
schedules:
- cron: "0 8 * * *"
displayName: Daily midnight build
branches:
include:
- master
- 202012
paths:
exclude:
- .github
- master
always: true

trigger: none
pr: none

pr:
branches:
include:
- master
paths:
exclude:
- .github

name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
pool: sonicbld

resources:
repositories:
- repository: sonic-mgmt
type: github
name: Azure/sonic-mgmt
endpoint: build
variables:
TIMEOUTINMINUTES: 1

stages:
- stage: Build
pool: sonicbld

jobs:
- template: .azure-pipelines/build-template.yml
parameters:
platform: broadcom
platform_short: brcm
cache_mode: rcache
sync_rpc_image: true

- template: .azure-pipelines/build-template.yml
parameters:
platform: mellanox
platform_short: mlnx
cache_mode: rcache
sync_rpc_image: true

- template: .azure-pipelines/build-template.yml
parameters:
platform: vs
platform_short: vs
cache_mode: rcache

- stage: Test
variables:
- name: inventory
value: veos_vtb
- name: testbed_file
value: vtestbed.csv

jobs:
- job:
pool: sonictest
displayName: "vstest"
timeoutInMinutes: 60
steps:
- checkout: self
clean: true
submodules: recursive
displayName: 'Checkout code'

- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: 9
artifacts: sonic-swss-common.amd64.ubuntu20_04
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
displayName: "Download sonic swss common deb packages"

- task: DownloadPipelineArtifact@2
inputs:
artifact: sonic-buildimage.vs
displayName: "Download sonic-buildimage.vs artifact"

- script: |
set -x
sudo dpkg -i --force-confask,confnew ../sonic-swss-common.amd64.ubuntu20_04/libswsscommon_1.0.0_amd64.deb
sudo dpkg -i ../sonic-swss-common.amd64.ubuntu20_04/python3-swsscommon_1.0.0_amd64.deb
sudo docker load -i ../target/docker-sonic-vs.gz
docker tag docker-sonic-vs:latest docker-sonic-vs:$(Build.BuildNumber)
username=$(id -un)

trap "docker ps; docker images; ip netns list; \
docker rmi docker-sonic-vs:$(Build.BuildNumber); \
ip netns list | grep -E [-]srv[0-9]+ | awk '{print $1}' | xargs -I {} sudo ip netns delete {}; \
sudo chown -R ${username}.${username} .; \
sudo chown -R ${username}.${username} $(System.DefaultWorkingDirectory)" EXIT
pushd platform/vs/tests
sudo py.test -v --junitxml=tr.xml --imgname=docker-sonic-vs:$(Build.BuildNumber)
displayName: "Run vs tests"

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/tr.xml'
testRunTitle: vstest

- job:
pool: sonictest
displayName: "kvmtest-t0"
timeoutInMinutes: 240

steps:
- template: .azure-pipelines/run-test-template.yml
parameters:
dut: vlab-01
tbname: vms-kvm-t0
ptf_name: ptf_vms6-1
tbtype: t0

- job:
pool: sonictest-t1-lag
displayName: "kvmtest-t1-lag"
timeoutInMinutes: 240

- job: job1
steps:
- template: .azure-pipelines/run-test-template.yml
parameters:
dut: vlab-03
tbname: vms-kvm-t1-lag
ptf_name: ptf_vms6-2
tbtype: t1-lag
- script: |
echo abc
1 change: 1 addition & 0 deletions files/build/versions-test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test==1.1.3
1 change: 1 addition & 0 deletions files/build/versions/test2/versions-py2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test==1.1.2
1 change: 1 addition & 0 deletions files/build/versions/versions-test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test==1.1.3