Skip to content

Remove unnecessary config values from CI setup #96

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

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

ianfixes
Copy link
Contributor

The EXPECT_* environment variables are felt by the program as either nil or non-nil, which means that both true and false in the action config will evaluate to non-empty strings.... effectively true. This had the effect of expecting unit tests when none should be expected.

@feilipu feilipu merged commit 6c07080 into feilipu:master Jan 18, 2021
@ianfixes
Copy link
Contributor Author

I was going to wait to see whether the tests passed 😉

@ianfixes
Copy link
Contributor Author

The remaining error looks like a problem with the platform definition.

Discovered example sketch...                     GoldilocksAnalogueTestSuite.ino
Requested library example platform 'Goldilocks Analogue' is defined in 'platforms' YML... ✓
Configured platforms that match architectures in library.properties... 
    Goldilocks Analogue
...Configured platforms that match architectures in library.properties          
Installing dependency of <compile/libraries>: 'AVR Standard C Time Library'... ✓
Installing dependency of <compile/libraries>: 'Goldilocks Analogue DAC Library'... ✓
Installing dependency of <compile/libraries>: 'Goldilocks Analogue SPI RAM Library'... ✓
Compiling GoldilocksAnalogueTestSuite.ino for Goldilocks:avr:"Goldilocks Analogue"... 
Last command:  $  /usr/local/bin/arduino-cli --format json compile --fqbn Goldilocks:avr:"Goldilocks Analogue" --warnings all --dry-run /github/home/Arduino/libraries/FreeRTOS/examples/GoldilocksAnalogueTestSuite/GoldilocksAnalogueTestSuite.ino
Error during build: platform not installed
✗

I'm not familiar enough with that architecture to say what the fix should be.

@feilipu
Copy link
Owner

feilipu commented Jan 18, 2021

Just one failure now, related to the special platform "Goldilocks Analogue".
All the libraries seem to be properly installed for the build, which is great!

So, somehow I've not got the language to get the variant files for Goldilocks Analogue properly installed.
This is standard AVR platform, but just an additional variant file.

My attempt to get it right is here... thoughts?

Perhaps it needs to say below instead?

    package: Goldilocks:avr

@ianfixes
Copy link
Contributor Author

My first thought was that it was a problem in the string quoting of Goldilocks:avr:"Goldilocks Analogue" but I'm wondering if I'm even attempting to install a platform if it's first defined in an example dir. I'm checking that now.

@ianfixes
Copy link
Contributor Author

The answer is in the board name

$ arduino-cli board listall | grep -i goldilocks
Goldilocks 20MHz                    Goldilocks:avr:goldilocks_20MHz
Goldilocks 22.1184MHz               Goldilocks:avr:goldilocks_22MHz
Goldilocks Analogue                 Goldilocks:avr:goldilocks_analogue
-     board: Goldilocks:avr:"Goldilocks Analogue"
+     board: Goldilocks:avr:goldilocks_analogue

@feilipu
Copy link
Owner

feilipu commented Jan 18, 2021

Perfect (nearly, just needed to add the SD library).

But, TBH, I've no idea why the board is referred to as goldilocks_analogue. I don't have a definition like that anywhere AFAIK???

Anyway. Fixed and green tick. ✔️

@ianfixes
Copy link
Contributor Author

I couldn't say how any of the internals work; my knowledge of architectures/platforms/boards extends only as far as knowing what strings to send to the arduino-cli executable that I use as a backend.

Thanks for helping me find a few ways to improve this!

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

Successfully merging this pull request may close these issues.

Arduino CI - How to use standard avr-libc headers?
3 participants