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

Cases that passed in tofino but failed in CI/CD #26

Open
wants to merge 29 commits into
base: pr_phase6_vs_fail
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
83a9b54
Add LAG hash seed test-case (#184)
yuriilisovskyi Aug 26, 2023
0d7633e
adding additional create remove cases (#14)
selldinesh Aug 29, 2023
23b3588
removing switch tunnel
selldinesh Sep 15, 2023
06e6604
resolving PR comments and merge conflict
selldinesh Sep 20, 2023
2c2c95d
resolving precommit checks
selldinesh Sep 20, 2023
ea4fc3c
reverting sai and l2 basic
selldinesh Oct 3, 2023
fce3ed0
Fixed u8/u16 and range Thrift conversions (#188)
andriy-kokhan Sep 5, 2023
f1c811e
Updated PTF use-case. Enabled PTF TCs run from CI/CD (#189)
andriy-kokhan Sep 6, 2023
9da3d23
Fix oper status check (#192)
yuriilisovskyi Sep 13, 2023
19d3c52
Added support for string SAI_NULL_OBJECT_ID for Thrift RPC (#194)
vikumarks Sep 15, 2023
608aae7
Remove unnecessary adding BPs to default VLAN on init (#193)
yuriilisovskyi Sep 15, 2023
60ab703
Adding new DASH TCs for create, set and remove API (#195)
vikumarks Sep 16, 2023
29c1f21
Adding new DASH TCs for create, set and remove API 2nd set (#197)
vikumarks Sep 16, 2023
c989b5a
Fixed set_sku_mode() (#198)
andriy-kokhan Sep 16, 2023
990eb11
Added FDB basic UTs (#199)
andriy-kokhan Sep 17, 2023
3a1d075
Added LAG basic UTs (#200)
andriy-kokhan Sep 19, 2023
439c695
Added FDB flush UTs (#201)
andriy-kokhan Sep 20, 2023
606eced
[CI/CD] Fixed checks what Docker images have to be rebuild (#206)
andriy-kokhan Sep 30, 2023
8ecfd88
Updated to SAI v1.13+ (#205)
andriy-kokhan Sep 30, 2023
cc845ee
Fixed pytest warnings (#207)
andriy-kokhan Oct 1, 2023
a436fb7
Refactored Redis RPC I/O failure processing (#208)
andriy-kokhan Oct 1, 2023
b56db37
Removed obsoleted exec option. Please use "--testbed" instead (#209)
andriy-kokhan Oct 3, 2023
0bacc8a
Add generic SAI Thrift server (#203)
yuriilisovskyi Oct 3, 2023
9e553eb
Fixed "--traffic" option behavior (#210)
andriy-kokhan Oct 3, 2023
9bfe50a
line ending change
selldinesh Oct 3, 2023
17b248e
Merge branch 'opencomputeproject:main' into pr_phase3_create_remove
selldinesh Oct 3, 2023
a33f104
adding additional tofino vs pass cases
selldinesh Oct 5, 2023
18ffa9e
adding failed vs failed cases
selldinesh Oct 5, 2023
e514985
Merge branch 'opencomputeproject:main' into wr_phase6_vs_fail
selldinesh Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/api/test_acl_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
from pprint import pprint


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclCounter:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_entry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclEntry:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_range.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclRange:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclTable:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclTableGroup:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table_group_member.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiAclTableGroupMember:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE_GROUP SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
26 changes: 26 additions & 0 deletions tests/api/test_ars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from pprint import pprint


class TestSaiArs:
# object with no attributes

def test_ars_create(self, npu):
commands = [
{
'name': 'ars_1',
'op': 'create',
'type': 'SAI_OBJECT_TYPE_ARS',
'attributes': [],
}
]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values create =======')
pprint(results)

def test_ars_remove(self, npu):
commands = [{'name': 'ars_1', 'op': 'remove'}]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values remove =======')
pprint(results)
26 changes: 26 additions & 0 deletions tests/api/test_ars_profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from pprint import pprint


class TestSaiArsProfile:
# object with no attributes

def test_ars_profile_create(self, npu):
commands = [
{
'name': 'ars_profile_1',
'op': 'create',
'type': 'SAI_OBJECT_TYPE_ARS_PROFILE',
'attributes': [],
}
]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values create =======')
pprint(results)

def test_ars_profile_remove(self, npu):
commands = [{'name': 'ars_profile_1', 'op': 'remove'}]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values remove =======')
pprint(results)
10 changes: 10 additions & 0 deletions tests/api/test_buffer_pool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiBufferPool:
# object with no parents

Expand Down
51 changes: 51 additions & 0 deletions tests/api/test_buffer_profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiBufferProfile:
# object with parent SAI_OBJECT_TYPE_BUFFER_POOL

def test_buffer_profile_create(self, npu):
commands = [
{
'name': 'buffer_pool_1',
'op': 'create',
'type': 'SAI_OBJECT_TYPE_BUFFER_POOL',
'attributes': [
'SAI_BUFFER_POOL_ATTR_TYPE',
'SAI_BUFFER_POOL_TYPE_INGRESS',
'SAI_BUFFER_POOL_ATTR_SIZE',
'10',
],
},
{
'name': 'buffer_profile_1',
'op': 'create',
'type': 'SAI_OBJECT_TYPE_BUFFER_PROFILE',
'attributes': [
'SAI_BUFFER_PROFILE_ATTR_POOL_ID',
'$buffer_pool_1',
'SAI_BUFFER_PROFILE_ATTR_RESERVED_BUFFER_SIZE',
'10',
'SAI_BUFFER_PROFILE_ATTR_THRESHOLD_MODE',
'SAI_BUFFER_PROFILE_THRESHOLD_MODE_STATIC',
'SAI_BUFFER_PROFILE_ATTR_SHARED_DYNAMIC_TH',
'1',
'SAI_BUFFER_PROFILE_ATTR_SHARED_STATIC_TH',
'10',
],
},
]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values create =======')
pprint(results)
26 changes: 26 additions & 0 deletions tests/api/test_counter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from pprint import pprint


class TestSaiCounter:
# object with no attributes

def test_counter_create(self, npu):
commands = [
{
'name': 'counter_1',
'op': 'create',
'type': 'SAI_OBJECT_TYPE_COUNTER',
'attributes': [],
}
]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values create =======')
pprint(results)

def test_counter_remove(self, npu):
commands = [{'name': 'counter_1', 'op': 'remove'}]

results = [*npu.process_commands(commands)]
print('======= SAI commands RETURN values remove =======')
pprint(results)
10 changes: 10 additions & 0 deletions tests/api/test_debug_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiDebugCounter:
# object with no parents

Expand Down
Loading
Loading