Skip to content

Error in Arduino-ci run because of typo in library.properties produces cryptic error #237

Closed
@RobTillaart

Description

@RobTillaart

Issue Summary

Problem occurred during this run - https://github.com/RobTillaart/RunningAverage/runs/1506309632?check_suite_focus=true

The root cause was that in the library.properties file I had a typo in the line includes=RunningAverager.h instead of RunningAverage.h This caused an error in the unit test code stating that the #include file could not be found. It took some time to find the cause as the dependency was not obvious for me. Fixing the typo solved the problem.

The error message in the log file did not give any clue (see below).

Unit Test log , Illustrating the Problem

Snippet from the log file

Compiling ra_test.ino for arduino:avr:uno... 

Last command:  $  /usr/local/bin/arduino-cli --format json compile --fqbn arduino:avr:uno --warnings all --dry-run 
/github/home/Arduino/libraries/RunningAverage/examples/ra_test/ra_test.ino
/github/home/Arduino/libraries/RunningAverage/examples/ra_test/ra_test.ino:10:10: fatal error: RunningAverage.h: No such file or directory
 #include "RunningAverage.h" 

          ^~~~~~~~~~~~~~~~~~

Request

It would be good if

  • the dependency is documented
  • the test environment checks the dependencies somehow,
  • e.g. it checks the consistency of library.properties file and the library.json file

Thanks,
Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci scriptsThe test runner scriptsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions