Skip to content

Conversation

@Josverl
Copy link
Contributor

@Josverl Josverl commented Nov 8, 2025

Summary

Changed the pin numbers used for the I2S rate testing as the pin numbers used were incompatible with the limited GPIO pins availalbe on the ESP32-C3 , causing the tests to fail

Testing

Ran the updated test against:

  • ESP32_GENERIC
  • ESP32_GENERIC_C3
  • ESP32_GENERIC_S2
  • ESP32_GENERIC_S3

Trade-offs and Alternatives

Could use sys.implementation._machine or ._build to determine the board the tests is run on and adjust the pins based on that, rather than through exception handling.

@Josverl Josverl added port-esp32 tests Relates to tests/ directory in source labels Nov 8, 2025
@Josverl Josverl force-pushed the tests/esp32c3-i2s_rate branch 2 times, most recently from 2648361 to 1a81056 Compare November 8, 2025 23:58
@codecov
Copy link

codecov bot commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (713f9dc) to head (787d85e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #18386   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files         171      171           
  Lines       22294    22294           
=======================================
  Hits        21933    21933           
  Misses        361      361           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Josverl
Copy link
Contributor Author

Josverl commented Nov 9, 2025

I can't see any relationship between the change and the failed test on stackless

1 tests failed: thread/thread_gc1.py

Assume this is a flaky test.

Copy link
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Tested on ESP32_GENERIC_C3 and the test now works.

(I did have a similar change in #17782 that used sys.implementation._machine but I think your version is cleaner.)

Changed the pin numbers used for the I2S rate testing as the pin numbers
used were incompatible with the limited GPIO pins availalbe on the
ESP32-C3, causing the tests to fail.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
@dpgeorge dpgeorge force-pushed the tests/esp32c3-i2s_rate branch from 1a81056 to 787d85e Compare November 19, 2025 02:20
@dpgeorge dpgeorge merged commit 787d85e into micropython:master Nov 19, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

port-esp32 tests Relates to tests/ directory in source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants