forked from openconfig/featureprofiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openconfig:main' into main
- Loading branch information
Showing
622 changed files
with
59,153 additions
and
12,617 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
# Each line is a file pattern followed by one or more owners. | ||
# Order is important; the last matching pattern takes the most | ||
# precedence. | ||
|
||
# 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 | ||
# review when someone opens a pull request. | ||
* @openconfig/featureprofiles-maintainers @openconfig/featureprofiles-quattro-tl | ||
* @openconfig/featureprofiles-maintainers | ||
|
||
# Tests which are ported from ate_tests to otg_tests may be reviewed by this team. | ||
**/otg_tests/** @openconfig/featureprofiles-maintainers-otg @openconfig/featureprofiles-maintainers @openconfig/featureprofiles-quattro-tl | ||
/internal/otgutils/ @openconfig/featureprofiles-maintainers-otg @openconfig/featureprofiles-maintainers @openconfig/featureprofiles-quattro-tl | ||
# /feature folders each have owners who are auto requested for review and may merge PR's | ||
/feature/bgp/ @dplore | ||
/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/routing_policy/ @swetha-haridasula | ||
/feature/security @mihirpitale-googler | ||
/feature/staticroute/ @swetha-haridasula | ||
/feature/system @self-maurya | ||
/feature/vrrp @amrindrr | ||
|
||
# Order is important; the last matching pattern takes the most | ||
# precedence. | ||
# Common OTG utilities | ||
/internal/otgutils/ @openconfig/featureprofiles-maintainers-otg |
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ jobs: | |
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
- name: Build | ||
run: go build -v ./... | ||
test: | ||
|
@@ -41,7 +40,6 @@ jobs: | |
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
# Dependency for Go module github.com/google/gopacket | ||
- name: Install libpcap-dev | ||
run: sudo apt-get -y install libpcap-dev | ||
|
@@ -65,6 +63,8 @@ jobs: | |
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/hostedtoolcache/CodeQL | ||
sudo mv "${HOME}/.cache" /mnt/cache | ||
ln -s /mnt/cache "${HOME}/.cache" | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Cache | ||
|
@@ -75,7 +75,6 @@ jobs: | |
~/.cache/go-build | ||
~/.cache/staticcheck | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
# Dependency for Go module github.com/google/gopacket | ||
- name: Install libpcap-dev | ||
run: sudo apt-get -y install libpcap-dev | ||
|
@@ -99,9 +98,11 @@ jobs: | |
# | ||
# goimports does not support "gofmt -s" so both goimports and gofmt are | ||
# required. | ||
if goimports -d . | grep '^'; then | ||
exit 1 | ||
fi | ||
find . -name "*.go" | egrep -v "pb.go$" | while read l; do | ||
if goimports -d $l | grep '^'; then | ||
exit 1; | ||
fi; | ||
done | ||
- name: Get revive | ||
run: go install github.com/mgechev/[email protected] | ||
- name: Run revive | ||
|
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 |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: README OpenConfig Path and RPC Coverage | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
schedule: | ||
- cron: "49 0 * * *" | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: stable | ||
cache: false | ||
|
||
- name: Validate Validation Script | ||
run: | | ||
cd tools/validate_readme_spec | ||
./validate_readme_spec_test.sh | ||
- name: Validate Template README | ||
run: | | ||
go install ./tools/validate_readme_spec | ||
validate_readme_spec --alsologtostderr doc/test-requirements-template.md | ||
- name: Validate Test READMEs | ||
run: | | ||
go install ./tools/validate_readme_spec | ||
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/security/gnsi/acctz/README.md | ||
) | ||
# TODO: Just use this one line after all READMEs have converted to the new format. | ||
# validate_readme_spec --alsologtostderr "${exemption_flags[@]}" | ||
function validate() { | ||
validate_readme_spec --feature-dir "$1" --alsologtostderr "${exemption_flags[@]}" | ||
} | ||
##### BEGIN: Validate Changed Test READMEs # TODO: Remove this section after all are converted. | ||
# Adapted from rebase_check.yml | ||
# Notes: | ||
# * Do not use ${GITHUB_REF}, github.sha, or HEAD because they are | ||
# the merged commit of the pull request and main. There are no | ||
# outdated files in the merged commit. | ||
# * refs/pull/${pr_number}/head is not available, so use | ||
# github.event.pull_request.head.sha which is the "head sha" of | ||
# the event that triggered the pull request. | ||
# * Do not use github.event.pull_request.base.sha because it is | ||
# the base when the pull request was created, not after a rebase. | ||
# Ask git merge-base to tell us a suitable base. | ||
readonly HEAD="${{ github.event.pull_request.head.sha }}" | ||
if [ ! -z "${HEAD}" ]; then | ||
readonly BASE="$(git merge-base origin/main "${HEAD}")" | ||
affected_readmes=() | ||
for f in $(git diff --name-only "${BASE}" "${HEAD}" | grep -E '^\W*feature' | xargs -r dirname | sort -u | sed 's/$/\/README.md/'); do | ||
if [ -f "$f" ]; then | ||
affected_readmes+=("$f") | ||
fi | ||
done | ||
echo "########## READMEs in changed directories to be validated (including ones to be exempted):" | ||
printf '%s\n' "${affected_readmes[@]}" | ||
echo "########## Validating READMEs in changed directories:" | ||
for f in "${affected_readmes[@]}"; do | ||
validate_readme_spec --alsologtostderr "${exemption_flags[@]}" "${f}" | ||
done | ||
fi | ||
##### END: Validate Changed Test READMEs ##### | ||
echo "########## Validating already-converted READMEs:" | ||
validate feature/aft | ||
validate feature/bgp/policybase/otg_tests/import_export_multi_test | ||
validate feature/gnmi | ||
validate feature/gnoi | ||
validate feature/isis | ||
validate feature/mtu | ||
validate feature/networkinstance | ||
validate feature/security | ||
validate feature/staticroute | ||
validate feature/system/management | ||
validate feature/system/gnmi/cliorigin/tests/mixed_oc_cli_origin_support_test | ||
validate feature/system/ntp/tests/system_ntp_test | ||
validate feature/qos/otg_tests/bursty_traffic_test |
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.