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

Support for MACsec statistics #892

Merged
merged 2 commits into from
Dec 10, 2021
Merged

Support for MACsec statistics #892

merged 2 commits into from
Dec 10, 2021

Conversation

qbdwlr
Copy link
Contributor

@qbdwlr qbdwlr commented Aug 12, 2021

Build dependency on sonic-net/sonic-swss-common#520

@qbdwlr qbdwlr marked this pull request as ready for review November 7, 2021 20:12
@qbdwlr qbdwlr force-pushed the macsecStats branch 2 times, most recently from 1c578b7 to c8db2bf Compare November 9, 2021 15:19
@Pterosaur Pterosaur self-requested a review November 11, 2021 01:51
@Pterosaur
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 14, 2021

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 16, 2021

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Collaborator

kcudnik commented Nov 16, 2021

to pass coverage.Azure.sonic-sairedis.amd64 you would need to add unittests at 50% for added code, can you also add unittests for your code?

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 16, 2021

to pass coverage.Azure.sonic-sairedis.amd64 you would need to add unittests at 50% for added code, can you also add unittests for your code?

@kcudnik Can you point me to similar unittests for sairedis FlexCounter support?

@kcudnik
Copy link
Collaborator

kcudnik commented Nov 16, 2021

you can start adding tests in sonic-sairedis/unittest/syncd path, creating file TestFlexCounter.cpp and follow pattern like for other files in sonic-sairedis/unittest/*, you would just need to cover like 50% of code added of this PR to pass the tests, you probably need to get familiar with gtest framework

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 22, 2021

@kcudnik @Pterosaur I am only assigned to work on SONiC PRs for another week, so I cannot undertake providing all new coverage infrastructure for sairedis FlexCounters in the context of this PR. If coverage is now a requirement for sairedis PR approval, then Ze will have to take up that effort in a separate PR.

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 22, 2021

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Collaborator

kcudnik commented Nov 22, 2021

@qbdwlr ok, then i can force merge this after tests passes, skipping coverage but it needs to be added later

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 23, 2021

@kcudnik After rebasing to include latest commits to sairedis, I see the following failures in lgtm.com that are unrelated to any changes I introduced. Is this a known issue?
[2021-11-23 16:14:12] [build-stderr] saiaclschema_ut.cpp:1:10: fatal error: gmock/gmock.h: No such file or directory
[2021-11-23 16:14:12] [build-stderr] 1 | #include <gmock/gmock.h>
[2021-11-23 16:14:12] [build-stderr] | ^~~~~~~~~~~~~~~
[2021-11-23 16:14:12] [build-stderr] compilation terminated.

@kcudnik
Copy link
Collaborator

kcudnik commented Nov 23, 2021

this is related to latest swss-common starting using gmock lib, it's attempted to be fixed here : 42e5427

@qbdwlr qbdwlr force-pushed the macsecStats branch 2 times, most recently from ee9e6d3 to 886642c Compare November 24, 2021 01:23
@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 28, 2021

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Nov 30, 2021

@kcudnik @Pterosaur Can we get this PR approved/merged? Or do we have to wait for someone to fix these flaky vstests? I was able to re-use recently merged FlexCounter unittest infra to get >50% coverage for this PR, so that is no longer an issue.

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Dec 9, 2021

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qbdwlr
Copy link
Contributor Author

qbdwlr commented Dec 10, 2021

@kcudnik This PR is approved but hasn't been merged yet because vstests have been broken for two weeks. I don't see any fixes for vstest happening soon. Can this PR be merged despite the vstest failures?

@kcudnik
Copy link
Collaborator

kcudnik commented Dec 10, 2021

ok

@kcudnik kcudnik merged commit 323b89b into sonic-net:master Dec 10, 2021
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
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.

4 participants