Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ureprofiles into otg_te11.21_update
  • Loading branch information
ANISH-GOTTAPU committed Jan 2, 2025
2 parents ffb534c + 66afa80 commit 9d89552
Show file tree
Hide file tree
Showing 409 changed files with 14,629 additions and 6,884 deletions.
34 changes: 21 additions & 13 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @openconfig/featureprofiles-maintainers will be requested for
# @openconfig/featureprofiles-approvers will be requested for
# review when someone opens a pull request.
* @openconfig/featureprofiles-maintainers
* @openconfig/featureprofiles-approvers

# /feature folders each have owners who are auto requested for review and may merge PR's
/feature/bgp/ @dplore
/feature/acl/ @openconfig/featureprofiles-owner-acl
/feature/aft/ @openconfig/featureprofiles-owner-aft
/feature/bgp/ @openconfig/featureprofiles-owner-bgp
/feature/dhcp/ @alokmtri-g
/feature/ethernet/ @ram-mac
/feature/interface/ @ram-mac
/feature/isis/ @rohit-rp
/feature/mpls/ @swetha-haridasula
/feature/mtu/ @swetha-haridasula
/feature/networkinstance/ @swetha-haridasula
/feature/policy_forwarding/ @swetha-haridasula
/feature/qos @sezhang2
/feature/gribi/ @openconfig/featureprofiles-owner-gribi
/feature/interface/ @openconfig/featureprofiles-owner-interface
/feature/isis/ @openconfig/featureprofiles-owner-isis
/feature/lldp/ @openconfig/featureprofiles-owner-lldp
/feature/mpls/ @openconfig/featureprofiles-owner-mpls
/feature/mtu/ @openconfig/featureprofiles-owner-mtu
/feature/networkinstance/ @openconfig/featureprofiles-owner-networkinstance
/feature/platform/ @openconfig/featureprofiles-owner-platform
/feature/platform/transceiver @openconfig/featureprofiles-owner-platform-transceiver
/feature/qos @openconfig/featureprofiles-owner-qos
/feature/routing_policy/ @swetha-haridasula
/feature/security @mihirpitale-googler
/feature/staticroute/ @swetha-haridasula
/feature/system @self-maurya
/feature/sampling/ @sudhinj
/feature/security @openconfig/featureprofiles-owner-security
/feature/staticroute/ @openconfig/featureprofiles-owner-staticroute
/feature/stp/ @alokmtri-g
/feature/system @openconfig/featureprofiles-owner-system
/feature/vrrp @amrindrr

# Common OTG utilities
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: Set up Go
uses: actions/setup-go@v2.1.3
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: 1.21.x
- name: Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
with:
path: |
~/go/pkg/mod
Expand All @@ -28,13 +28,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: Set up Go
uses: actions/setup-go@v2.1.3
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: 1.21.x
- name: Cache
uses: actions/cache@v3
uses: actions/cache@f4b3439a656ba812b8cb417d2d49f9c810103092
with:
path: |
~/go/pkg/mod
Expand All @@ -45,15 +45,15 @@ jobs:
run: sudo apt-get -y install libpcap-dev
- run: go test -v -coverprofile=profile.cov $(go list ./... | grep -v /.*test.*)
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2
with:
path-to-profile: profile.cov
static_analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Install go
uses: actions/setup-go@v2
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: '1.21'
# Go & staticcheck build cache require a lot of disk space. Reclaim extra
Expand All @@ -66,9 +66,9 @@ jobs:
sudo mv "${HOME}/.cache" /mnt/cache
ln -s /mnt/cache "${HOME}/.cache"
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
with:
path: |
~/go/pkg/mod
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nosimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: stable
cache: false
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/protobufs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install go
uses: actions/setup-go@v2
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: '1.21'
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Cache
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Install protobuf
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@149f6c87b92550901b26acd1632e11c3662e381f
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -38,7 +38,7 @@ jobs:
find github.com/openconfig/featureprofiles/ -name \*.proto -exec api-linter --disable-rule all --enable-rule core {} \+
- name: Validate textprotos
run: |
go install github.com/bstoll/textproto-validator@latest
go install github.com/bstoll/textproto-validator@15e24d0eb567d63615f0aa70940bc073ab674fe7
make protoimports
for i in `find . -name \*.textproto`; do
textproto-validator -I ./protobuf-import $i
Expand All @@ -49,21 +49,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install go
uses: actions/setup-go@v2
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: '1.21'
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 0
- name: Cache
uses: actions/cache@v3
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Fetch Openconfig Models
- name: Fetch OpenConfig Models
run: make openconfig_public
- name: Validate Paths
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Setup Perl
uses: perl-actions/install-with-cpanm@v1
uses: perl-actions/install-with-cpanm@10d60f00b4073f484fc29d45bfbe2f776397ab3d
with:
install: |
Net::IP
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: IP Addresses Assignment
run: |
git diff --name-only main | while read l; do
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Allowed File Types
run: ./tools/allowed_file_types.sh
- name: Block hyphenated directory names
Expand Down Expand Up @@ -65,9 +65,9 @@ jobs:
name: OTG Changes Required
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Check if OTG changes required
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
script: |
const script = require('./.github/workflows/required_otg_changes_check.js')
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/readme_oc_path_and_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: stable
cache: false
Expand All @@ -37,7 +37,7 @@ jobs:
exemption_flags=(
--non-test-readme feature/security/gnsi/certz/test_data/README.md
--non-test-readme feature/experimental/p4rt/README.md
--non-test-readme feature/p4rt/README.md
--non-test-readme feature/security/gnsi/acctz/README.md
)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 0
- name: Check if dependencies and checks are up to date.
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/required_approvals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow is to make sure we have 1 LGTM for business logic and 1 LGTM for code style
name: PR Approval Workflow
on:
pull_request_target:
branches:
- main
jobs:
check-approvals:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
steps:
- name: Check for required approvals
id: check-approvals
uses: skymoore/required-approvals@57612e00c501132dfb35ddaff54615b363f8e076
with:
token: ${{ secrets.GITHUB_TOKEN }}
read_org_scoped_token: ${{ secrets.READ_ORG_SCOPED_TOKEN }}
org_name: openconfig
min_approvals: 2
approval_mode: ALL
pr_number: ${{ github.event.number }}
2 changes: 1 addition & 1 deletion .github/workflows/rundata_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Check that addrundata is up to date.
run: go run ./tools/addrundata
8 changes: 4 additions & 4 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
path: featureprofiles
- name: Checkout wiki
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: "openconfig/featureprofiles.wiki"
path: featureprofiles.wiki
- name: Set up Go
uses: actions/setup-go@v2.1.3
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: 1.21.x
- name: Cache
uses: actions/cache@v3
uses: actions/cache@f4b3439a656ba812b8cb417d2d49f9c810103092
with:
path: |
~/go/pkg/mod
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*~
topologies/kne/testbed.kne.yml
.vscode/
.idea/
# used by `make validate_paths`
openconfig_public/
# used by `make proto/...`
Expand Down
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ The directory tree is organized as follows:
* `cloudbuild/` contains google cloud build scripts for running virtual
routers in containers on [KNE](https://github.com/openconfig/kne)
* `feature/` contains definition and tests of feature profiles.
* `feature/experimental` contains tests which have automation which is
not confirmed to pass on any hardware platform or software release.
When the test automation is passing against at least one DUT,
it is moved to the `feature/` directory.
* `internal/` contains packages used by feature profile tests.
* `proto/` contains protobuf files for feature profiles.
* `tools/` contains code used for CI checks.
Expand Down
Loading

0 comments on commit 9d89552

Please sign in to comment.