Skip to content

Use SAI_STATUS_ITEM_NOT_FOUND when key not found#1224

Merged
theasianpianist merged 12 commits intosonic-net:masterfrom
theasianpianist:sai-item-not-found
Apr 19, 2023
Merged

Use SAI_STATUS_ITEM_NOT_FOUND when key not found#1224
theasianpianist merged 12 commits intosonic-net:masterfrom
theasianpianist:sai-item-not-found

Conversation

@theasianpianist
Copy link
Copy Markdown
Contributor

  • Change SAI Meta validation functions to return SAI_STATUS_ITEM_NOT_FOUND if the key being operated on doesn't exist

prsunny
prsunny previously approved these changes Mar 18, 2023
Copy link
Copy Markdown
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

lgtm

@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented Apr 11, 2023

please fix build issues

Signed-off-by: Lawrence Lee <[email protected]>
saiarcot895
saiarcot895 previously approved these changes Apr 14, 2023
@theasianpianist
Copy link
Copy Markdown
Contributor Author

/Azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Lawrence Lee <[email protected]>
prsunny
prsunny previously approved these changes Apr 18, 2023
Copy link
Copy Markdown
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

lgtm

for dir in ${gcov_dirs}; do
source_dir=$(dirname $dir)
output_file="coverage-$source_dir.json"
gcovr --json-pretty -o $output_file --object-directory $source_dir $dir
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you need to add in --exclude-unreachable-branches here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good catch, added

Signed-off-by: Lawrence Lee <[email protected]>
@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Apr 19, 2023

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Apr 19, 2023

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented May 4, 2023

@theasianpianist is there a bug filed for this issue? It cannot be cherry-picked to 202205 cleanly. Please enter separate PR.

theasianpianist added a commit to theasianpianist/sonic-sairedis that referenced this pull request May 4, 2023
* Use SAI_STATUS_ITEM_NOT_FOUND when key not found
* Add unit tests for Meta SAI validation
* generate coverage info for Meta.cpp

Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist
Copy link
Copy Markdown
Contributor Author

@theasianpianist is there a bug filed for this issue? It cannot be cherry-picked to 202205 cleanly. Please enter separate PR.

PR here: #1237

There is no bug for this issue, but it's to support the changes made in this PR: sonic-net/sonic-swss#2714

yxieca pushed a commit that referenced this pull request Aug 29, 2023
* Use SAI_STATUS_ITEM_NOT_FOUND when key not found
* Add unit tests for Meta SAI validation
* generate coverage info for Meta.cpp

Signed-off-by: Lawrence Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants