Skip to content

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

Merged
saiarcot895 merged 2 commits intosonic-net:masterfrom
nazariig:master-hash-rel
Feb 13, 2023
Merged

[hash]: Extend VS lib with ECMP/LAG hash#1192
saiarcot895 merged 2 commits intosonic-net:masterfrom
nazariig:master-hash-rel

Conversation

@nazariig
Copy link
Copy Markdown
Collaborator

@nazariig nazariig commented Jan 4, 2023

@nazariig
Copy link
Copy Markdown
Collaborator Author

nazariig commented Jan 5, 2023

@liat-grozovik / @volodymyrsamotiy FYI

@nazariig
Copy link
Copy Markdown
Collaborator Author

nazariig commented Jan 5, 2023

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-sairedis

@azure-pipelines
Copy link
Copy Markdown

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

@saiarcot895
Copy link
Copy Markdown
Contributor

/azpw run

@saiarcot895
Copy link
Copy Markdown
Contributor

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

nazariig commented Feb 8, 2023

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895
Copy link
Copy Markdown
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
Copy Markdown
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
@nazariig
Copy link
Copy Markdown
Collaborator Author

@saiarcot895 code coverage issue has been fixed

@nazariig
Copy link
Copy Markdown
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