-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
gNOI Cold Reboot - Integrated tests #20711
base: master
Are you sure you want to change the base?
Conversation
d4ba3f9
to
ad91226
Compare
@hdwhdw @vvolam @qiluo-msft Pls review |
ad91226
to
ee29b8b
Compare
#define ONE_SECOND (1) | ||
#define TWO_SECONDS (2) | ||
#define TENTH_SECOND_MS (100) | ||
#define HALF_SECOND_MS (500) | ||
#define ONE_SECOND_MS (1000) | ||
#define FIFTEEN_HUNDRED_MS (1500) | ||
#define TWO_SECONDS_MS (2000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a level of indirection that make it:
- Hard to change going forward.
- Does not enforce units (miliseconds, seconds), i.e. there is nothing that prevents you to write a
ONE_SECOND
in a parameter which expect miliseconds.
It is of high risk of introducing bugs for unsuspecting maintainers. Please remove it.
For Google code, consider using https://abseil.io/docs/cpp/guides/time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a challenge in using absl. So, retaining this code
8c4cb6c
to
efa4a2b
Compare
663ac61
to
8d52b9b
Compare
8d52b9b
to
446d015
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
446d015
to
00176e7
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
00176e7
to
2253140
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
2253140
to
e9bfc38
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
e9bfc38
to
5bec465
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
5bec465
to
de106e0
Compare
Why I did it
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Added UT cases for Cold Reboot feature
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)