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

code base for slim GCI control plane test infra #3590

Merged
merged 11 commits into from
Nov 29, 2024

Conversation

gopalakrishv
Copy link
Contributor

Developed a code for bring up the control plane test infra with lemmings in KNE topology to work on lemming development activities.

Created a DUT with two IXIA ports connected to the DUT and configured the interfaces, configured the route entry through gRIBI programming.

Same has been validated with the FIB program success acknowledgement.

@gopalakrishv gopalakrishv requested a review from a team as a code owner November 14, 2024 04:26
@OpenConfigBot
Copy link

OpenConfigBot commented Nov 14, 2024

Pull Request Functional Test Report for #3590 / 9f220cc

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
RT: GRIBI Static Route On Lemmings Test
620cef4e Log
Cisco 8000E status
RT: GRIBI Static Route On Lemmings Test
2db70a21 Log
Cisco XRd status
RT: GRIBI Static Route On Lemmings Test
d605476a Log
Juniper ncPTX status
RT: GRIBI Static Route On Lemmings Test
b49008cb Log
Nokia SR Linux status
RT: GRIBI Static Route On Lemmings Test
7890eb18 Log
Openconfig Lemming status
RT: GRIBI Static Route On Lemmings Test
6f33b1cd Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
RT: GRIBI Static Route On Lemmings Test
Cisco 8808 status
RT: GRIBI Static Route On Lemmings Test
Juniper PTX10008 status
RT: GRIBI Static Route On Lemmings Test
Nokia 7250 IXR-10e status
RT: GRIBI Static Route On Lemmings Test

Help

@coveralls
Copy link

coveralls commented Nov 14, 2024

Pull Request Test Coverage Report for Build 12072670189

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.268%

Totals Coverage Status
Change from base Build 12060139005: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@dplore
Copy link
Member

dplore commented Nov 15, 2024

Fails on lemming kne in this PR? See Log

Also, can you add a peer team member to review?

@gopalakrishv
Copy link
Contributor Author

Fails on lemming kne in this PR? See Log

Also, can you add a peer team member to review?

This test case is passed in Lemmings, please find the pass log for your reference.

https://fusion2.corp.google.com/invocations/ecfb03f4-df7d-49bd-b15b-cd0c66bed690/targets/%2F%2Fthird_party%2Fopenconfig%2Ffeatureprofiles%2Ffeature%2Fgribi%2Fotg_tests%2Fgribi_static_route_on_lemmings_test:gribi_static_route_on_lemmings_test_kne_openconfig_lemming/tests

@@ -0,0 +1,36 @@
load("//ops/netops/lab/wbb/testbeds:testbeds.bzl", "featureprofiles_test_suite")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gopalakrishv We should not push Build file in Git. It will be created internally once the PR is merged

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the BUILD file

"testing"
"time"

"google3/third_party/open_traffic_generator/gosnappi/gosnappi"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import packages from github.com, google3 is for internal usage. Same applies for all the imports used in this file. Refer internal/otg_helpers/otg_config_helpers/otgconfighelpers.go for reference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import file paths are updated to gitub

@@ -0,0 +1,188 @@
package basic_static_route_support_test
Copy link

@arukumani-eqa arukumani-eqa Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect below is a already running same gribi test on lemmings ....

Lemmings SKU defined here -- http://shortn/_qSGuvLKhMn

Also the gribi calls are same as file which does similar test -- http://shortn/_ghVJjmX5gu

might be we just need to validate and confirm that the existing test works.

@dplore any thoughts here?

@@ -0,0 +1,48 @@
# GRIBI static route on lemmings test
Copy link

@arukumani-eqa arukumani-eqa Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this has more coverage as well...

http://shortn/_FcU1Zv7i6k

If Lemmings SKU(http://shortn/_qSGuvLKhMn) is already covered in existing tests , then we can use the same i guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purpose of this test case is to give minimum environment for developing the control plane by using the lemmings

@@ -0,0 +1,185 @@
package gribi_static_route_on_lemmings_test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we want to exclude lemming from the namings here ...

the test seems to be agnostic of platform and the lemmings option is passed as a flag to the test in wbb bind -- use_kne_topo ...

I agree for the need of a simple test in case you want to demo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remove the lemmings from the name, it will look like a generic one and will be duplicated due to other test cases, which was covering all the aspects, also this coverage is required to have it for Lemming development. We can execute the test case only on Lemming by executing the below command

blaze test --notest_loasd --test_output=streamed --cache_test_results=no -- //third_party/openconfig/featureprofiles/feature/gribi/otg_tests/gribi_static_route_on_lemmings_test:gribi_static_route_on_lemmings_test_kne_openconfig_lemming

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect if we can include platform aspects into the test files... the tests are really platform agnostic....

Also i believe this is not lemmings only test ... the same test should be able to work on other vendors as well... Also, i do not think the other tests cover this simple case right?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving as this is not a blocker to run tests...

@dplore when you have a chance .... please let us know on your thoughts so that we can do it in a seperate change if any is needed.

@@ -0,0 +1,185 @@
package gribi_static_route_on_lemmings_test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect if we can include platform aspects into the test files... the tests are really platform agnostic....

Also i believe this is not lemmings only test ... the same test should be able to work on other vendors as well... Also, i do not think the other tests cover this simple case right?

@@ -0,0 +1,185 @@
package gribi_static_route_on_lemmings_test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving as this is not a blocker to run tests...

@dplore when you have a chance .... please let us know on your thoughts so that we can do it in a seperate change if any is needed.

@gopalakrishv gopalakrishv merged commit 744b8fd into main Nov 29, 2024
15 checks passed
robshakir added a commit that referenced this pull request Dec 5, 2024
dplore pushed a commit that referenced this pull request Dec 5, 2024
alshabib pushed a commit to alshabib/featureprofiles that referenced this pull request Jan 19, 2025
* code base for slim GCI control plane test infra

* updated the files based on comments

* updated based on comments

* issues are fixed

* textproto issues are fixed
alshabib pushed a commit to alshabib/featureprofiles that referenced this pull request Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants