Skip to content

to be skipped

7b27707
Select commit
Loading
Failed to load commit list.
Closed

Tests to be skipped #3673

to be skipped
7b27707
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Azure.sonic-swss failed Jun 19, 2025 in 2h 37m 53s

Build #20250619.10 had test failures

Details

Tests

  • Failed: 5 (0.54%)
  • Passed: 783 (85.20%)
  • Other: 131 (14.25%)
  • Total: 919
Code coverage

  • 48909 of 70518 lines covered (69.36%)

Annotations

Check failure on line 171731 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

Build log #L171731

Bash exited with code '123'.

Check failure on line 5892 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

Build log #L5892

Bash exited with code '123'.

Check failure on line 1 in test_addRemoveBfdSession_with_tsa_case1

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

test_addRemoveBfdSession_with_tsa_case1

AssertionError: Unexpected number of keys: expected=2, received=1 (('oid:0x45000000000614',)), table="ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION"
Raw output
self = <test_bfd.TestBfd object at 0x7fa8f4b91600>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa8f4bc8c10>

    def test_addRemoveBfdSession_with_tsa_case1(self, dvs):
        # This is a test for BFD caching mechanism.
        # This test sets up a BFD session with shutdown_bfd_during_tsa=true and checks state DB for session creation.
        # Then TSA is applied and removal of the session is verified in app db. This is followed by TSB and finally the
        # reinstated session is verified.
        self.setup_db(dvs)
    
        bfdSessions = self.get_exist_bfd_session()
    
        # Create BFD session
        fieldValues = {"local_addr": "10.0.0.1", "type": "demand_active", "shutdown_bfd_during_tsa": "true"}
        self.create_bfd_session("default:default:10.0.0.2", fieldValues)
>       self.adb.wait_for_n_keys("ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION", len(bfdSessions) + 1)

test_bfd.py:515: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dvslib.dvs_database.DVSDatabase object at 0x7fa8f4c22950>
table_name = 'ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION', num_keys = 2
wait_at_least_n_keys = False
polling_config = PollingConfig(polling_interval=0.01, timeout=20.0, strict=True)
failure_message = None

    def wait_for_n_keys(
        self,
        table_name: str,
        num_keys: int,
        wait_at_least_n_keys: bool = False,
        polling_config: PollingConfig = PollingConfig(),
        failure_message: str = None,
    ) -> List[str]:
        """Wait for the specified number of keys to exist in the table.
    
        Args:
            table_name: The name of the table from which to fetch the keys.
            num_keys: The expected number of keys to retrieve from the table.
            polling_config: The parameters to use to poll the db.
            failure_message: The message to print if the call times out. This will only take effect
                if the PollingConfig is set to strict.
    
        Returns:
            The keys stored in the table. If no keys are found, then an empty List is returned.
        """
    
        def access_function():
            keys = self.get_keys(table_name)
            if wait_at_least_n_keys:
                return (len(keys) >= num_keys, keys)
            else:
                return (len(keys) == num_keys, keys)
    
        status, result = wait_for_result(
            access_function, self._disable_strict_polling(polling_config)
        )
    
        if not status:
            message = failure_message or (
                f"Unexpected number of keys: expected={num_keys}, received={len(result)} "
                f'({result}), table="{table_name}"'
            )
>           assert not polling_config.strict, message
E           AssertionError: Unexpected number of keys: expected=2, received=1 (('oid:0x45000000000614',)), table="ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION"

dvslib/dvs_database.py:414: AssertionError

Check failure on line 1 in test_addRemoveBfdSession_with_tsa_case2

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

test_addRemoveBfdSession_with_tsa_case2

AssertionError: Unexpected number of keys: expected=2, received=1 (('oid:0x45000000000614',)), table="ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION"
Raw output
self = <test_bfd.TestBfd object at 0x7fa8f4b91810>
dvs = <conftest.DockerVirtualSwitch object at 0x7fa8f4bc8c10>

    def test_addRemoveBfdSession_with_tsa_case2(self, dvs):
        # This is a test for BFD caching mechanism.
        # This test sets up a BFD session with shutdown_bfd_during_tsa=true and checks state DB for session creation.
        # Then TSA is applied and removal of the session is verified from app db. At this point the session is removed.
        # This isfollowed by TSB. Since the session configuration has been removed during TSB, the BFD session should not
        # start up.
        self.setup_db(dvs)
    
        bfdSessions = self.get_exist_bfd_session()
    
        # Create BFD session
        fieldValues = {"local_addr": "10.0.0.1", "type": "demand_active"}
        self.create_bfd_session("default:default:10.0.0.2", fieldValues)
>       self.adb.wait_for_n_keys("ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION", len(bfdSessions) + 1)

test_bfd.py:582: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dvslib.dvs_database.DVSDatabase object at 0x7fa8f4c22950>
table_name = 'ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION', num_keys = 2
wait_at_least_n_keys = False
polling_config = PollingConfig(polling_interval=0.01, timeout=20.0, strict=True)
failure_message = None

    def wait_for_n_keys(
        self,
        table_name: str,
        num_keys: int,
        wait_at_least_n_keys: bool = False,
        polling_config: PollingConfig = PollingConfig(),
        failure_message: str = None,
    ) -> List[str]:
        """Wait for the specified number of keys to exist in the table.
    
        Args:
            table_name: The name of the table from which to fetch the keys.
            num_keys: The expected number of keys to retrieve from the table.
            polling_config: The parameters to use to poll the db.
            failure_message: The message to print if the call times out. This will only take effect
                if the PollingConfig is set to strict.
    
        Returns:
            The keys stored in the table. If no keys are found, then an empty List is returned.
        """
    
        def access_function():
            keys = self.get_keys(table_name)
            if wait_at_least_n_keys:
                return (len(keys) >= num_keys, keys)
            else:
                return (len(keys) == num_keys, keys)
    
        status, result = wait_for_result(
            access_function, self._disable_strict_polling(polling_config)
        )
    
        if not status:
            message = failure_message or (
                f"Unexpected number of keys: expected={num_keys}, received={len(result)} "
                f'({result}), table="{table_name}"'
            )
>           assert not polling_config.strict, message
E           AssertionError: Unexpected number of keys: expected=2, received=1 (('oid:0x45000000000614',)), table="ASIC_STATE:SAI_OBJECT_TYPE_BFD_SESSION"

dvslib/dvs_database.py:414: AssertionError

Check failure on line 1 in test_macsec

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

test_macsec

collection failure
Raw output
test_macsec.py:417: in <module>
    class TestMACsec(object):
test_macsec.py:631: in TestMACsec
    @pytest.mark.skip(reason="Disable since we remove macsecmgrd and macsecorch.")
E   NameError: name 'pytest' is not defined

Check failure on line 1 in test_pbh

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Azure.sonic-swss

test_pbh

collection failure
Raw output
test_pbh.py:47: in <module>
    class TestPbhInterfaceBinding:
test_pbh.py:48: in TestPbhInterfaceBinding
    @pytest.mark.skipif("PBH_SUPPORT" not in os.environ, reason="Disable since we remove pbhorch.")
E   NameError: name 'os' is not defined