sonic-swss: Code changes for WRED and ECN statistics #2750
+371
−3
Azure Pipelines / Azure.sonic-swss
failed
Dec 11, 2024 in 2h 11m 1s
Build #20241210.32 had test failures
Details
- Failed: 1 (0.11%)
- Passed: 832 (92.86%)
- Other: 63 (7.03%)
- Total: 896
- 48922 of 65909 lines covered (74.23%)
Annotations
Check failure on line 5141 in Build log
azure-pipelines / Azure.sonic-swss
Build log #L5141
Bash exited with code '123'.
Check failure on line 6758 in Build log
azure-pipelines / Azure.sonic-swss
Build log #L6758
Bash exited with code '123'.
Check failure on line 1 in test_flex_counters[wred_queue_counter]
azure-pipelines / Azure.sonic-swss
test_flex_counters[wred_queue_counter]
AssertionError: No ID list for counter Ethernet0:0
Raw output
self = <test_flex_counters.TestFlexCounters object at 0x7fc994a73310>
dvs = <conftest.DockerVirtualSwitch object at 0x7fc994ba1e20>
counter_type = 'wred_queue_counter'
@pytest.mark.parametrize("counter_type", counter_group_meta.keys())
def test_flex_counters(self, dvs, counter_type):
> self.verify_flex_counter_flow(dvs, counter_group_meta[counter_type])
test_flex_counters.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
dvslib/dvs_flex_counter.py:112: in verify_flex_counter_flow
self.verify_flex_counters_populated(counter_map, counter_stat)
dvslib/dvs_flex_counter.py:78: in verify_flex_counters_populated
self.wait_for_id_list(stat, name, oid)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <test_flex_counters.TestFlexCounters object at 0x7fc994a73310>
stat = 'WRED_ECN_QUEUE_STAT_COUNTER', name = 'Ethernet0:0'
oid = 'oid:0x15000000000025'
def wait_for_id_list(self, stat, name, oid):
for retry in range(NUMBER_OF_RETRIES):
id_list = self.flex_db.db_connection.hgetall("FLEX_COUNTER_TABLE:" + stat + ":" + oid).items()
if len(id_list) > 0:
return
else:
time.sleep(1)
> assert False, "No ID list for counter " + str(name)
E AssertionError: No ID list for counter Ethernet0:0
dvslib/dvs_flex_counter.py:41: AssertionError
Loading