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

[test_auto_negotiation][202205] the test case doesn't work on many platform #7076

Open
AntonHryshchuk opened this issue Dec 20, 2022 · 0 comments

Comments

@AntonHryshchuk
Copy link
Contributor

Description

The original issue was reported in #5447. As a fix was provided the #5345.
But the issue still exists on branch 202205.

The error message:

E           Failed: Ethernet176 are still down

dut_port   = 'Ethernet176'
duthost    = <MultiAsicSonicHost r-tigon-11>
dutname    = 'r-tigon-11'
enum_dut_portname_module_fixture = 'r-tigon-11|Ethernet176'
fanout     = { os: 'onyx', hostname: 'r-tigris-23', device_type: 'FanoutLeaf' }
fanout_port = 'ethernet 1/45'
portname   = 'Ethernet176'
speed      = '10000'
success    = True
supported_speeds = ['10000', '25000', '40000', '50000', '100000']
wait_result = False

platform_tests/test_auto_negotiation.py:289: Failed

Just to add changes from #5345 to 202205 didn't works:

___________ ERROR collecting platform_tests/test_auto_negotiation.py ___________
/usr/local/lib/python2.7/dist-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/local/lib/python2.7/dist-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/local/lib/python2.7/dist-packages/pluggy/manager.py:87: in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
/usr/local/lib/python2.7/dist-packages/_pytest/python.py:234: in pytest_pycollect_makeitem
    res = list(collector._genfunctions(name, obj))
/usr/local/lib/python2.7/dist-packages/_pytest/python.py:410: in _genfunctions
    self.ihook.pytest_generate_tests(metafunc=metafunc)
/usr/local/lib/python2.7/dist-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/local/lib/python2.7/dist-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/local/lib/python2.7/dist-packages/pluggy/manager.py:87: in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
conftest.py:1345: in pytest_generate_tests
    autoneg_tests_data = get_autoneg_tests_data()
conftest.py:1401: in get_autoneg_tests_data
    for dutport, portinfo in ports.items()
E   KeyError: 'common_port_speeds'

Steps to reproduce the issue:

  1. run "test_auto_negotiation.py" test

Describe the results you received:

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
liat-grozovik pushed a commit that referenced this issue Jan 2, 2023
Issue #5447 is closed as provided the fix.
But tests still failed on 202205.
Created the new issue #7076 and updated the skip in branch 202205

Signed-off-by: Anton <[email protected]>
maksymhedeon pushed a commit to githedgehog/sonic-mgmt that referenced this issue Jan 5, 2023
…net#7077)

Issue sonic-net#5447 is closed as provided the fix.
But tests still failed on 202205.
Created the new issue sonic-net#7076 and updated the skip in branch 202205

Signed-off-by: Anton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant