Commit graph

62 commits

Author SHA1 Message Date
Lucas Saavedra Vaz
2a3de9c415
test(i2c): Do not use delta as Wokwi timing can be inconsistent (#11080)
* test(i2c): Do not use delta as Wokwi timing can be inconsistent

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-03-13 12:02:43 +02:00
Lucas Saavedra Vaz
9e2f755641
test(i2c): Add test to scan bus (#11022)
* test(i2c): Add test to scan bus

* test(i2c): Add scan test with wifi running

* fix(i2c): Simplify test
2025-03-05 13:33:20 +02:00
Lucas Saavedra Vaz
e3bcc58672
ci(esp32p4): Add missing options for P4 (#11014)
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2025-02-26 11:49:42 +02:00
Lucas Saavedra Vaz
988dbe2973
ci(test): Skip some PSRAM tests in P4 2025-02-22 01:27:17 -03:00
Lucas Saavedra Vaz
42bd7456ce
ci(test): Fix GPIO test 2025-02-21 23:54:52 -03:00
Lucas Saavedra Vaz
543a647f2c
ci(test): Fix PSRAM test 2025-02-21 23:47:01 -03:00
Lucas Saavedra Vaz
978b441cd4
test(wokwi): Add I2C Master test and enable GPIO and PSRAM tests (#10848)
* test(wokwi): Enable PSRAM test

* fix(tests): Add missing diagram for ESP32-P4

* test(wokwi): Enable GPIO test

* test(wokwi): Add I2C master test

* fix(tests): Add missing requirement and improve logging

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-19 23:32:06 +02:00
dependabot[bot]
6c3a49cac7
build(deps): bump cryptography from 43.0.1 to 44.0.1 in /tests (#10961)
Bumps [cryptography](https://github.com/pyca/cryptography) from 43.0.1 to 44.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.1...44.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-13 13:01:13 +02:00
Rodrigo Garcia
1c01fcd196
fix(uart): fixed esp32s2 uart ci test case (#10926)
Wrong pins were used for baud rate detection test case, therefore no data was reaching UART1 RX FIFO from UART0 TX loopback.
2025-02-04 11:04:58 +02:00
Lucas Saavedra Vaz
bfc45db3af
ci(tests): Re-enable UART test for P4 2024-12-11 08:56:12 -03:00
Lucas Saavedra Vaz
76d1f9e643
ci(pre-commit): Bump hooks versions and fix leftover files (#10680)
* update(hooks): Bump pre-commit hooks versions

* fix(formatting): Fix python script formatting

* fix(formatting): Fix leftover files on protected folders
2024-12-09 15:00:41 +02:00
Lucas Saavedra Vaz
e159bf6e46
refactor(uart): Refactor UART test to work with any number of UARTs (#10593)
* refactor(uart): Refactor UART test to work with any number of UARTs

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>

* fix(uart): Set CPU freq on ESP32

* ci(pre-commit): Apply automatic fixes

* fix(spelling): Fix codespell error

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-12-09 11:27:56 +02:00
Lucas Saavedra Vaz
ff613b3f29
ci(uart): Disable UART test for P4 until it is fixed in Wokwi 2024-11-20 10:10:39 -03:00
Lucas Saavedra Vaz
e9b3f2650e
ci(pytest): Bump pytest-embedded to 1.12.0 for P4 fixes 2024-11-14 12:20:18 -03:00
Lucas Saavedra Vaz
32e2230de2
fix(wifi): Fix requirements and guards for hosted Wi-Fi (#10579)
* fix(wifi): Fix requirements and guards for hosted Wi-Fi

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2024-11-07 00:31:29 +02:00
Lucas Saavedra Vaz
61d5c49445
Merge branch 'master' into release/v3.1.x 2024-11-06 13:11:23 -03:00
Lucas Saavedra Vaz
9f3010f214
ci(json): Improve requirement checking (#10554)
* ci(json): Change requirements for sketches that use WiFi

* ci(checks): Optimize requirement checking

* fix(tests): Additional checks before running tests

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2024-11-06 18:08:16 +02:00
Lucas Saavedra Vaz
f1e1f5ab95
Merge branch 'master' into release/v3.1.x 2024-11-04 19:43:44 -03:00
Lucas Saavedra Vaz
eeecf844a7
ci(workflows): General improvements and fixes (#10544)
* ci(triggers): Improve workflow triggering and bump versions

* ci(runtime): Improve runtime tests triggers

* fix(push): Fix push chunks script indentation and lib detection
2024-11-04 23:12:20 +02:00
Rodrigo Garcia
9aeb1ba548
ESP32-P4 UART Pin Definitions (#10521)
* feat(uart): allow pins_arduino.h to define esp32-p4 uart pins

ESP32-P4 has UART default pins only for UART0 and UART1.
This PR allows the board definition from pins_arduino.h to define RX2 ... RX4 and TX2 ... TX4 if necessary.
It also solves the issue of begin(baud) with no pins for UART2...4 by just sending a error message and returning.

* feat(uart): removes the uart2 pin definitions - not existant

* fix(uart): solves the case when uart has already been initialized

* ci(pre-commit): Apply automatic fixes

* fix(ci): uart definition for esp32-p4 uart2 rx,tx pins

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-25 15:07:37 +03:00
Me No Dev
35549272b3
Merge branch 'master' into release/v3.1.x 2024-10-23 15:31:08 +03:00
Lucas Saavedra Vaz
01789a7a89
fix(formatting): Fix formatting and disable JSON hook (#10492) 2024-10-21 18:29:05 +03:00
Lucas Saavedra Vaz
03bfa52d49
Merge branch 'master' into release/v3.1.x 2024-10-21 10:20:31 -03:00
Lucas Saavedra Vaz
9e643c08a7
fix(testing): Checkout proper branch for Wokwi tests and small QoL improvements (#10435)
* fix(tests): Add missing newlines to output

* fix(tests): Improve fibonacci test

* fix(tests): Remove redundant targets from json

* fix(wokwi): Checkout proper base branch for wokwi tests

* feat(logging): Add logging to some tests to improve debugging

* fix(ci): Make CI more permissive and improve messages

* fix(tests): Bump pytest-embedded version to support P4
2024-10-21 15:45:59 +03:00
Jan Procházka
7cfe470d8d
feat(touch): Support NG touch driver for P4 (#10448)
* feat(touch): Support NG touch driver for P4

* fix(ci): Touch test + IDF compilation fixes

* fix(ci): remove debug prints from touch test

* fix(ci): Fix touch test for esp32

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-21 13:29:01 +03:00
Me No Dev
774f2756f1
Merge branch 'master' into release/v3.1.x 2024-10-10 18:38:27 +03:00
Lucas Saavedra Vaz
3445164e2d
test(psram): Add PSRAM test (#10409)
* test(psram): Add PSRAM test

* fix(test): Hide pointer arithmetic warning

* ci(pre-commit): Apply automatic fixes

* fix(json): Remove FQBNs for the test

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-07 15:56:41 +03:00
Lucas Saavedra Vaz
e12e33c581
Merge branch 'master' into release/v3.1.x 2024-10-04 11:14:57 -03:00
Lucas Saavedra Vaz
13511a6b65
ci(tests): Add linpack FPU tests (#10389)
* ci(tests): Add linpack FPU tests

* fix(linpack): Change prints to log_d

* fix(linpack): Fix number of runs check

* ci(pre-commit): Apply automatic fixes

* fix(spelling): Correct spelling mistakes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-04 13:51:47 +03:00
Lucas Saavedra Vaz
69351312e5
Merge branch 'master' into release/v3.1.x 2024-09-30 09:13:12 -03:00
Lucas Saavedra Vaz
e403f0b481
ci(json): Add configuration requirements to ci.json files (#10385)
* ci(json): Add support for checking sdkconfig before running tests

* docs(ci): Add explanation about requires field in JSON

* fix(json): Ignore comments when searching requirements

* feat(json): Add extended regex support to requires field

* change(json): Move to using requirements in JSON

* fix(json): Fix requirements for touch tests

* refactor(json): Fix formatting of JSON files

* fix(spi): Fix SPI example and JSON
2024-09-30 13:43:50 +03:00
Lucas Saavedra Vaz
4bb287eaf6
fix(esp32p4): Fix compilation errors (#10371)
* fix(esp32p4): Add missing touchpad definitions

* fix(esp32p4): Add missing target in SPI example

* fix(esp32p4): Start touch driver fix

* fix(esp32p4): Skip touch examples while it is not implemented

* fix(esp32p4): Add missing analog pin definitions

* refactor(formatting): Fix formatting that was broken in P4 PR

* fix(openthread): Add missing targets to skip

* fix(esp32p4): Skip ethernet sketches

* fix(esp32p4): Disable periman test while touch is not implemented

* fix(esp32p4): Disable touch test while touch is not implemented

* fix(esp32p4): Fix UART test

* fix(esp32p4): Skip Wi-Fi test

* fix(esp32): Skip unsupported example

* fix(esp32p4): Fix skip files

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-25 23:38:21 +03:00
Me No Dev
855da422ba
Merge branch 'master' into release/v3.1.x 2024-09-11 15:18:38 +03:00
Lucas Saavedra Vaz
4e9eb35752
feat(pre-commit): Add JSON formatter to pre-commit hooks (#10324) 2024-09-11 15:18:03 +03:00
dependabot[bot]
eec855a09f
build(deps): bump cryptography from 42.0.7 to 43.0.1 in /tests (#10284)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.7 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.7...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 12:39:58 +03:00
Me No Dev
0a8888d5d6
Merge branch 'master' into release/v3.1.x 2024-08-22 23:48:51 +03:00
Lucas Saavedra Vaz
cd3d0bf569
fix(tests): Use proper API and check for required token (#10223) 2024-08-22 23:44:49 +03:00
Lucas Saavedra Vaz
60cbb6276a
fix(requirements): Avoid version conflicts (#10222) 2024-08-22 23:44:33 +03:00
me-no-dev
e1673e4c0c fix(build): IDF release/v5.3 466a392a and initial changes 2024-08-19 23:28:11 +03:00
Jan Procházka
3a7eda1ef0
ci(wokwi): Pass diagram.json file if exists to pytest (#9720)
* ci(wokwi): Pass diagram.json file if exists to pytest

* ci(wokwi): Rename diagrams to enable editing in Wokwi editor

* ci(tests): Use newest pytest version

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-07-31 14:16:43 +03:00
Lucas Saavedra Vaz
034d568d7c
ci(wifi): Add scan to wifi test (#9805) 2024-06-10 15:30:46 +03:00
Lucas Saavedra Vaz
e3fedc5e8c
ci(refactor): Fix workflows and small improvements (#9793)
* ci(fix): Fix new workflows

* ci(pre-commit): Properly cache python modules

* fix(get.py): Verify files after extraction and make it more readable

* ci(idf): Compile as component when libs change

* ci(wokwi): Re-enable cache for wokwi tests

* ci(tests): Run scripts only from master

* Revert "fix(get.py): Verify files after extraction and make it more readable"

This reverts commit cc40edb40766ea8a013c0d76326bc57314418bff.

* ci(compilation): Fix changed files check

* ci(wokwi): Disable tests that use scenarios
2024-06-07 12:29:27 -03:00
Lucas Saavedra Vaz
f5b8e27df7
ci(refactor): Refactor workflows and skip files (#9696)
* ci(refactor): Refactor workflows and skip files

* ci(refactor): Refactor workflows and skip files

* ci(refactor): Improvements and compilation of only related files

* ci(refactor): Delete duplicated steps

* ci(refactor): General improvements

* ci(refactor): Delete duplicated lines

* ci(refactor): Rename jobs
2024-06-05 15:19:25 +03:00
Lucas Saavedra Vaz
e10de73e61
ci(qemu): Add QEMU emulator to CI (#9558)
* ci(qemu): Add QEMU emulator to CI

* ci(qemu): Fix windows build

* ci(qemu): Fix skips

* ci(qemu): Skip performance tests

* ci(qemu): Disable QEMU tests for now

* fix(platform): Fix build script recipe number
2024-05-13 23:09:10 +02:00
Jan Procházka
84376a765a
ci(hil): Touch skip file whe platform is skipped (#9605) 2024-05-09 13:52:50 -03:00
Lucas Saavedra Vaz
789b1a8425
ci(wokwi): Add Wokwi emulator to workflow (#9540)
* ci(wokwi): Add wokwi emulator to CI

* feat(wokwi): Support scenario

* feat(wokwi): Add simple CI test for push button

* sudo apt command

* sudo both apt commands

* Add missing test.py file

* Test pytest path changes

* empty push

* move wokwi cli token variable

* move token back to wokwi job

* Update hil.yml

* Update hil.yml

* revert run on pr

* run on PR target

* run only on master

* ci(wokwi): Support wokwi

* ci(wokwi): Skip unsupported and performance test

* ci(wokwi): run wokwi tests without label

* debug: run build on windows

* RUN WIFI WITH PSRAM ON-OFF

* fix psram for S3

* Revert "debug: run build on windows"

This reverts commit bc085e50502eb470836276097fa45ee0e2374ed1.

* ci(wokwi): Run workflow only if build was sucessful

* ci(pre-commit): Apply automatic fixes

* ci(wokwi): Add generated files to gitignore

---------

Co-authored-by: Jan Prochazka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-05-07 18:46:19 +03:00
Lucas Saavedra Vaz
1299582047
ci(performance): Add performance tests to CI (#9560)
* ci(performance): Add performance tests to CI

* ci(req): Fix requirements

* ci(pre-commit): Apply automatic fixes

* ci(pre-commit): Increase maximum allowed complexity for python

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2024-05-07 13:16:13 +02:00
Lucas Saavedra Vaz
6bfcd6d9a9
refactor(style): Change some style options (#9526)
* refactor(style): Change some style options

* refactor(style): Apply style changes
2024-04-19 18:16:55 +03:00
Darkl0ud
6b3a9a9bff
Fixed typo for adc_continuous_data typedef in esp32-hal-adc.h/.c (#9529)
* Fixed typo in adc_continuous_data typedef

Fixed typo in adc_continuous_data typedef

* Additional typo fix for adc_continuous_data typedef

Additional commit for previous commit (#9529) adding typo corrections within

1. /docs/en/api/adc.rst
2. /libraries/ESP32/examples/AnalogReadContinuous\AnalogReadContinuous.ino
3. tests/periman/periman.ino

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-04-19 12:42:41 +03:00
Lucas Saavedra Vaz
8d21d6180a
ci(touch_test): Change released test value for ESP32 (#9521) 2024-04-17 13:49:22 +03:00