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

[hash]: Extend VS lib with ECMP/LAG hash #1192

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

nazariig
Copy link
Collaborator

@nazariig nazariig commented Jan 4, 2023

@nazariig
Copy link
Collaborator Author

nazariig commented Jan 5, 2023

@liat-grozovik / @volodymyrsamotiy FYI

@nazariig
Copy link
Collaborator Author

nazariig commented Jan 5, 2023

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-sairedis

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 1192 in repo sonic-net/sonic-sairedis

@saiarcot895
Copy link
Contributor

/azpw run

@saiarcot895
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895
Copy link
Contributor

I see a number of test failures in vstest (same failures in both the ASAN and non-ASAN build). I've requested a rerun, but suspect that these are actual failures rather than transient failures. Can you take a look at these?

Snippet of errors:

test_PbhHashCreationDeletion failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:170>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhHashCreationDeletion failed; it passed 0 out of the required 1 times.
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:170>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhTableCreationDeletion passed 1 out of the required 1 times. Success!
test_PbhRuleCreationDeletion failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:250>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhRuleCreationDeletion failed; it passed 0 out of the required 1 times.
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:250>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhRuleUpdate failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:355>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]

@nazariig
Copy link
Collaborator Author

nazariig commented Feb 8, 2023

I see a number of test failures in vstest (same failures in both the ASAN and non-ASAN build). I've requested a rerun, but suspect that these are actual failures rather than transient failures. Can you take a look at these?

Snippet of errors:

test_PbhHashCreationDeletion failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:170>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhHashCreationDeletion failed; it passed 0 out of the required 1 times.
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:170>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhTableCreationDeletion passed 1 out of the required 1 times. Success!
test_PbhRuleCreationDeletion failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:250>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhRuleCreationDeletion failed; it passed 0 out of the required 1 times.
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:250>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]
test_PbhRuleUpdate failed (1 runs remaining out of 2).
	<class 'AssertionError'>
	Unexpected number of keys: expected=0, received=2 (('oid:0x1c000000000565', 'oid:0x1c000000000566')), table="ASIC_STATE:SAI_OBJECT_TYPE_HASH"
	[<TracebackEntry /agent/_work/1/s/sonic-swss/tests/test_pbh.py:355>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_pbh.py:118>, <TracebackEntry /agent/_work/1/s/sonic-swss/tests/dvslib/dvs_database.py:395>]

@saiarcot895 you are right. PBH SWSS tests need to be aligned. It was done in another PR.

@nazariig
Copy link
Collaborator Author

nazariig commented Feb 8, 2023

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895
Copy link
Contributor

Can the PR coverage be bumped up above 80%? Looks like adding a couple of error cases (specifically, SAI_STATUS_BUFFER_OVERFLOW) should cover it.

@nazariig
Copy link
Collaborator Author

nazariig commented Feb 9, 2023

Can the PR coverage be bumped up above 80%? Looks like adding a couple of error cases (specifically, SAI_STATUS_BUFFER_OVERFLOW) should cover it.

@saiarcot895 sure. Will take care.

@nazariig nazariig requested a review from saiarcot895 February 9, 2023 08:31
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@nazariig
Copy link
Collaborator Author

@saiarcot895 code coverage issue has been fixed

@nazariig
Copy link
Collaborator Author

@saiarcot895 can you please help to review & merge?

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