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: fix unstable test_detect_port_with_cache (RDT-582) #238

Closed
hfudev opened this issue Nov 7, 2023 · 4 comments
Closed

test: fix unstable test_detect_port_with_cache (RDT-582) #238

hfudev opened this issue Nov 7, 2023 · 4 comments

Comments

@hfudev
Copy link
Member

hfudev commented Nov 7, 2023

Sometimes the test is unstable. For example, https://github.com/espressif/pytest-embedded/actions/runs/6783180237/job/18436888658

Fails for unrelated changes.

@hfudev hfudev added bug Something isn't working and removed bug Something isn't working labels Nov 7, 2023
@github-actions github-actions bot changed the title test: fix unstable test_detect_port_with_cache test: fix unstable test_detect_port_with_cache (RDT-582) Nov 7, 2023
@horw
Copy link
Collaborator

horw commented Nov 9, 2023

Hello, @hfudev!

Do you mean this type of error? Or is there something else that I need to notice?

ERROR test_detect_port_with_cache.py::test_detect_port - ValueError: Couldn't auto detect chip. Please manually specify with "--port"

@horw
Copy link
Collaborator

horw commented Nov 17, 2023

I've checked the log, and there were four ports: USB0, USB1, USB2, and ttyS0. USB2 was being used by the esp32s2. However, for the other ports, we encountered the following errors. Therefore, from my perspective, the issue does not seem to be related to the cache, but rather something else.

2023-11-07 10:49:11 [dut-1] /dev/ttyUSB0 failed to connect: Failed to connect to ESP32: No serial data received.
2023-11-07 10:49:11 [dut-1] For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
2023-11-07 10:49:11 [dut-1] Serial port /dev/ttyUSB1
2023-11-07 10:49:11 [dut-1] Connecting....
2023-11-07 10:49:11 [dut-1] /dev/ttyUSB1 failed to connect: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
2023-11-07 10:49:11 [dut-1] Serial port /dev/ttyS0
2023-11-07 10:49:11 [dut-1] Connecting........2023-11-07 10:49:13 [dut-0] green...
..........
2023-11-07 10:49:15 [dut-1] /dev/ttyS0 failed to connect: Failed to connect to ESP32: No serial data received.

@VojtechBartoska
Copy link

@hfudev PR have been merged already, can you please close this ticket? Thanks!

@hfudev hfudev closed this as completed Feb 8, 2024
@hfudev
Copy link
Member Author

hfudev commented Feb 8, 2024

thanks for noticing!

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

3 participants