-
-
Notifications
You must be signed in to change notification settings - Fork 64
Use authenticated API requests in "Compile Examples" CI workflow #97
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
Conversation
The arduino/compile-sketches GitHub Actions action used in the "Compile Examples" workflow queries the GitHub API for the base ref of the pull request, which is used for the memory deltas determination. There were a couple workflow runs recently (1, 2) that failed due to rate limiting. Authenticated API requests are given a more generous API request allowance, so providing the action with the automatically generated GitHub access token should prevent this from happening again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI failure:
https://github.com/arduino/ArduinoCore-megaavr/pull/97/checks?check_run_id=1885261839#step:8:20954
/github/home/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-size -A /tmp/arduino-sketch-B5105B2618A854F21756DC5FA3022BBE/Tweeter.ino.elf
Sketch uses 65852 bytes (135%) of program storage space. Maximum is 48640 bytes.
Global variables use 2639 bytes (42%) of dynamic memory, leaving 3505 bytes for local variables. Maximum is 6144 bytes.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error during build: text section exceeds available space in board
will require action (it's while compiling this sketch: https://github.com/arduino-libraries/Arduino_OAuth/tree/master/examples/Tweeter), but is unrelated to the changes proposed in this PR.
Memory usage change @ 829a0c6
Click for full report table
Click for full report CSV
|
The arduino/compile-sketches GitHub Actions action used in the "Compile Examples" workflow queries the GitHub API for the base ref of the pull request, which is used for the memory deltas determination.
There were a couple workflow runs recently (1, 2) that failed due to rate limiting. Authenticated API requests are given a more generous API request allowance, so providing the action with the automatically generated GitHub access token should prevent this from happening again.