-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dplore/deprecate-featureprofilefiles
- Loading branch information
Showing
743 changed files
with
53,892 additions
and
14,457 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,36 @@ | ||
# 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/acl/ @alokmtri-g | ||
/feature/aft/ @sudhinj | ||
/feature/bgp/ @dplore | ||
/feature/dhcp/ @alokmtri-g | ||
/feature/ethernet/ @ram-mac | ||
/feature/interface/ @ram-mac | ||
/feature/isis/ @rohit-rp | ||
/feature/lldp/ @alokmtri-g | ||
/feature/mpls/ @swetha-haridasula | ||
/feature/mtu/ @swetha-haridasula | ||
/feature/networkinstance/ @swetha-haridasula | ||
/feature/platform/ @amrindrr | ||
/feature/qos @sezhang2 | ||
/feature/routing_policy/ @swetha-haridasula | ||
/feature/sampling/ @sudhinj | ||
/feature/security @mihirpitale-googler | ||
/feature/staticroute/ @swetha-haridasula | ||
/feature/stp/ @alokmtri-g | ||
/feature/system @swetha-haridasula | ||
/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
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/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
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.