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

[tests] Attempt to fix compatibility break from SAI headers #3321

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

kcudnik
Copy link
Contributor

@kcudnik kcudnik commented Oct 10, 2024

Error is show up when we move sai headers from v1.14 to v1.15

sonic-net/sonic-sairedis#1431 (comment)

What I did
Fix tests so they can pass during backward compatibility break

Why I did it
because of breaking change in SAI headers, g++ requires all struct fields to be populated:

g++ -DHAVE_CONFIG_H -I. -I../..  -g -DNDEBUG  -std=c++14 -Wall ...... echo './'`warmrestarthelper_ut.cpp
switchorch_ut.cpp: In member function 'virtual void switchorch_test::SwitchOrchTest_SwitchOrchTestHandleEvent_Test::TestBody()':
switchorch_ut.cpp:295:83: error: missing initializer for member '_sai_switch_health_data_t::data' [-Werror=missing-field-initializers]
  295 |         sai_switch_health_data_t data = {.data_type = SAI_HEALTH_DATA_TYPE_GENERAL};
      |         

How I verified it
Local build

Details if related

@kcudnik
Copy link
Contributor Author

kcudnik commented Oct 12, 2024

/azp run

Copy link

Commenter does not have sufficient privileges for PR 3321 in repo sonic-net/sonic-swss

@kcudnik
Copy link
Contributor Author

kcudnik commented Oct 13, 2024

Can we merge this ? I need this change to advance sairedis sai submodule

@kcudnik
Copy link
Contributor Author

kcudnik commented Oct 14, 2024

can you merge this ? i dont heve permissions to merge

@kcudnik
Copy link
Contributor Author

kcudnik commented Oct 15, 2024

@lguohan @prgeor @qiluo-msft can we merge this ? this is blocking

@prsunny prsunny merged commit 90fcead into sonic-net:master Oct 16, 2024
17 checks passed
@kcudnik kcudnik deleted the saibreak branch October 16, 2024 17:45
stepanblyschak pushed a commit to stepanblyschak/sonic-swss that referenced this pull request Nov 13, 2024
…t#3321)

Error is show up when we move sai headers from v1.14 to v1.15

sonic-net/sonic-sairedis#1431 (comment)

What I did
Fix tests so they can pass during backward compatibility break
divyachandralekha pushed a commit to divyachandralekha/sonic-swss that referenced this pull request Dec 12, 2024
…t#3321)

Error is show up when we move sai headers from v1.14 to v1.15

sonic-net/sonic-sairedis#1431 (comment)

What I did
Fix tests so they can pass during backward compatibility break
divyachandralekha pushed a commit to divyachandralekha/sonic-swss that referenced this pull request Dec 12, 2024
…t#3321)

Error is show up when we move sai headers from v1.14 to v1.15

sonic-net/sonic-sairedis#1431 (comment)

What I did
Fix tests so they can pass during backward compatibility break
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.

4 participants