Added LOCAL_USERS_PASSWORDS_RESET table to ConfigDB #874
Azure Pipelines / Azure.sonic-swss-common
failed
Oct 2, 2024 in 7h 1m 38s
Build #20241002.3 had test failures
Details
- Failed: 1 (0.11%)
- Passed: 821 (93.94%)
- Other: 52 (5.95%)
- Total: 874
- 4077 of 6889 branches covered (59.18%)
- 4721 of 5796 lines covered (81.45%)
Annotations
Check failure on line 2651 in Build log
azure-pipelines / Azure.sonic-swss-common
Build log #L2651
Bash exited with code '123'.
Check failure on line 1 in test_duplicate_eni_route_group
azure-pipelines / Azure.sonic-swss-common
test_duplicate_eni_route_group
AssertionError: Field SAI_ENI_ATTR_OUTBOUND_ROUTING_GROUP_ID in ASIC_DB table ASIC_STATE:SAI_OBJECT_TYPE_ENI not equal to oid:0x14008000000617
Raw output
dash_db = <dash_db.DashDB object at 0x7f42a3e0c520>
def test_duplicate_eni_route_group(dash_db: DashDB):
dash_db.set_app_db_entry(APP_DASH_ROUTE_GROUP_TABLE_NAME, ROUTE_GROUP1, ROUTE_GROUP1_CONFIG)
dash_db.set_app_db_entry(APP_DASH_ROUTE_TABLE_NAME, ROUTE_GROUP1, OUTBOUND_ROUTE_PREFIX1, ROUTE_VNET_CONFIG)
rg1_oid = dash_db.wait_for_asic_db_keys("ASIC_STATE:SAI_OBJECT_TYPE_OUTBOUND_ROUTING_GROUP")[0]
dash_db.set_app_db_entry(APP_DASH_ENI_ROUTE_TABLE_NAME, ENI_ID, ENI_ROUTE_GROUP1_CONFIG)
eni_key = dash_db.wait_for_asic_db_keys("ASIC_STATE:SAI_OBJECT_TYPE_ENI")[0]
> dash_db.wait_for_asic_db_field("ASIC_STATE:SAI_OBJECT_TYPE_ENI", eni_key, SAI_ENI_ATTR_OUTBOUND_ROUTING_GROUP_ID, rg1_oid)
dash/test_dash_route_group.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
dash/dash_db.py:148: in wait_for_asic_db_field
success, value = wait_for_result(polling_function, failure_message=failure_message)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
polling_function = <function DashDB.wait_for_asic_db_field.<locals>.polling_function at 0x7f42a3b7fee0>
polling_config = PollingConfig(polling_interval=0.01, timeout=20.0, strict=True)
failure_message = 'Field SAI_ENI_ATTR_OUTBOUND_ROUTING_GROUP_ID in ASIC_DB table ASIC_STATE:SAI_OBJECT_TYPE_ENI not equal to oid:0x14008000000617'
def wait_for_result(
polling_function: Callable[[], Tuple[bool, Any]],
polling_config: PollingConfig = PollingConfig(),
failure_message: str = None,
) -> Tuple[bool, Any]:
"""Run `polling_function` periodically using the specified `polling_config`.
Args:
polling_function: The function being polled. The function cannot take any arguments and
must return a status which indicates if the function was succesful or not, as well as
some return value.
polling_config: The parameters to use to poll the polling function.
failure_message: The message to print if the call times out. This will only take effect
if the PollingConfig is set to strict.
Returns:
If the polling function succeeds, then this method will return True and the output of the
polling function.
If it does not succeed within the provided timeout, it will return False and whatever the
output of the polling function was on the final attempt.
"""
for _ in range(polling_config.iterations()):
status, result = polling_function()
if status:
return (True, result)
time.sleep(polling_config.polling_interval)
if polling_config.strict:
message = failure_message or f"Operation timed out after {polling_config.timeout} seconds with result {result}"
> assert False, message
E AssertionError: Field SAI_ENI_ATTR_OUTBOUND_ROUTING_GROUP_ID in ASIC_DB table ASIC_STATE:SAI_OBJECT_TYPE_ENI not equal to oid:0x14008000000617
dvslib/dvs_common.py:60: AssertionError
Loading