AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Add Wokwi CI - esp32-simtest.yaml

Open petermm opened this issue 1 year ago • 3 comments

NB: The WOKWI_CLI_TOKEN (obtained here https://wokwi.com/dashboard/ci) needs to be set in the Repository secrets eg: Settings -> Actions secrets and variables.

Runs the esp32 tests across 7 targets/models and 3 esp-idf versions.

A limited test scope (latest esp-idf only) is the default unless the PR title contains "full_sim_test" or the last commit message contains it in title or body.

Includes the wifi_example test on boards with wifi. The esp32 board has a SPI SD card attached and tests are run against it ("test_file.beam"). For PR brevity the test_mount (sdmmc test), is not yet adapted for sdspi testing. Likewise each board has potentiometer attached, for ADC testing - for PR brevity tests are not included. One can easily implement uart/i2c etc tests in the future, and massively improve CI coverage.

Requires a WOKWI_CLI_TOKEN obtained here: https://wokwi.com/dashboard/ci - will gracefully handle it's absence.

Includes readme for running from local install.

Exercises the release build config, for largest coverage:

CONFIG_COMPILER_OPTIMIZATION_PERF=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

full_sim_test: https://github.com/petermm/AtomVM/actions/runs/11274530437 Screenshot 2024-10-09 at 23 10 50

These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

petermm avatar Oct 09 '24 21:10 petermm

All resolved, @bettio you just need to add the WOKWI_CLI_TOKEN to repository secrets (Settings -> Actions secrets and variables.) (get token here https://wokwi.com/dashboard/ci) so the job is not skipped ;-)

https://github.com/atomvm/AtomVM/actions/runs/11287326708/job/31393099478?pr=1308

petermm avatar Oct 11 '24 06:10 petermm

I'm not sure it is working. Screenshot_20241011_215933

Also let's make sure that the token will not be displayed on CI output.

bettio avatar Oct 11 '24 20:10 bettio

No rush..

Should just work if WOKWI_CLI_TOKEN is set here https://github.com/atomvm/AtomVM/settings/secrets/actions (Repository secrets)

And the token is not displayed during CI see https://github.com/petermm/AtomVM/actions/runs/11274530437/job/31353894949

petermm avatar Oct 12 '24 10:10 petermm