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

BLE EDTT GATT tests fail with python >= 3.11 #77669

Closed
aescolar opened this issue Aug 28, 2024 · 0 comments · Fixed by #77649
Closed

BLE EDTT GATT tests fail with python >= 3.11 #77669

aescolar opened this issue Aug 28, 2024 · 0 comments · Fixed by #77649
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@aescolar
Copy link
Member

aescolar commented Aug 28, 2024

Describe the bug
When running with python 3.11 or newer, the EDTT GATT tests fail.
Ubuntu 24.04 comes with python 3.12.
The errors are a bunch of python exceptions like

  File "edtt/src/components/attdata.py", line 374, in __str__
    result = self.__opcodeName( opcode );
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "edtt/src/components/attdata.py", line 349, in __opcodeName
    result = result.split('.')[1];
             ~~~~~~~~~~~~~~~~~^^^

This is due to python having changed the behaviour of str() for IntEnum
https://docs.python.org/3/library/enum.html#enum.IntEnum

To Reproduce
Steps to reproduce the behavior:
Have python >= 3.11
In ZEPHYR_BASE, run

  1. tests/bsim/bluetooth/ll/compile.sh
  2. tests/bsim/bluetooth/ll/edtt/tests_scripts/gatt.llcp.sh
  3. See errors

Expected behavior
All tests pass

Impact
Cannot run this tests with newish python versions, or newish distros.
Cannot update CI to ubuntu 24.04

Environment (please complete the following information):

  • OS: Ubuntu 24.04
  • Toolchain (e.g Zephyr SDK, ...): N/A
  • Commit SHA or Version used: Any for last few years.

Additional context
Fix in Zephyr (update manifest) in #77649
Fixed in EDTT upstream in EDTTool/EDTT#86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant