-
Notifications
You must be signed in to change notification settings - Fork 648
[Fixbug]: Fix delete default HFT configuration issue #4025
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ze Gan <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Pull request overview
This PR adds a regression test to verify that a bug related to deleting default HFT (High Frequency Telemetry) configurations has been fixed. The test ensures that TAM_TELEMETRY objects are properly cleaned up from the ASIC database when a default profile with empty object_names and object_counters is deleted.
Key Changes:
- Added
test_hft_empty_default_configtest function to verify proper cleanup of TAM_TELEMETRY objects when deleting a default HFT profile with empty configuration - Test validates that TAM_TELEMETRY objects exist after creation with empty fields and are properly deleted after profile/group removal
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Ze Gan <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Ze Gan <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Hi @r12f , could you please help to review this PR? |
|
Hi @prsunny , could you please help to merge this PR? |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| task_process_status groupTableDel(const std::string &profile_name, const std::string &group_name); | ||
| std::shared_ptr<HFTelProfile> getProfile(const std::string &profile_name); | ||
| std::shared_ptr<HFTelProfile> tryGetProfile(const std::string &profile_name); | ||
| bool isProfileInUse(const std::shared_ptr<HFTelProfile> &profile); |
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.
Not a big issue, but we can mark this as a const function
| bool isProfileInUse(const std::shared_ptr<HFTelProfile> &profile); | |
| bool isProfileInUse(const std::shared_ptr<HFTelProfile> &profile) const; |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Ze Gan <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
What I did
This PR is for fixing a bug that telemetry_tam object may not be deleted after the default HFT profile removed.
Why I did it
To the default profile, its group is empty, so the original checker
isEmptywill be unable to capture the group deletion message.How I verified it
Add a new vstest to cover this scenario.
Details if related