<< 1) Regarding the script that uploads CI results to github gists: will
this
work for anyone who runs the docker image? If not, what should be done with
the results? >>

Thanks Nathan! I'm using GitHub Gists as a simple way to push our Build
Logs to the cloud for further processing and alerting. (There might be a
better way)

I'm running my Build Server logged in as the `nuttxpr` GitHub Account (via
`gh login auth`), so all Gists will be published under the `nuttxpr`
account. Someone who runs the Docker Image will probably create a new
GitHub Account to publish the Gists: https://gist.github.com/nuttxpr

What we need next: A script that will (1) Consolidate the Gists
across Multiple GitHub Accounts (2) Scan the Build Logs for Errors and
Warnings (3) Alert somebody.

<< 2) Is there a way to detect (like a GPIO rising or falling edge, for lack
of a better description) that a build that previously succeeded is failing,
or a build that was previously failing succeeds again, to notify only about
targets that change status? >>

We have a problem: There doesn't seem to be an easy to scan our Build Logs
for Errors and Warnings:
https://lupyuen.codeberg.page/articles/ci2.html#find-errors-and-warnings

We should implement this Log Scanning in the script that I mentioned
earlier. Then we can detect Failed Builds and alert somebody. Maybe through
open-source Prometheus + Grafana:
https://lupyuen.github.io/articles/prometheus

<< 3) Regarding M1 macs not being able to run the CI builds, I suggest to
state that as a call to action, e.g., help wanted to make the build succeed
on M1 macs, please see such-and-such issue on github... >>

Yep I'll post an Issue at our NuttX Repo. I'll explain what happens when I
run the CI Build on my M2 Mac. Thanks!

Lup

On Mon, Oct 28, 2024 at 12:15 AM Nathan Hartman <hartman.nat...@gmail.com>
wrote:

> Nice article Lup! Thank you. A few questions:
>
> 1) Regarding the script that uploads CI results to github gists: will this
> work for anyone who runs the docker image? If not, what should be done with
> the results?
>
> 2) Is there a way to detect (like a GPIO rising or falling edge, for lack
> of a better description) that a build that previously succeeded is failing,
> or a build that was previously failing succeeds again, to notify only about
> targets that change status?
>
> 3) Regarding M1 macs not being able to run the CI builds, I suggest to
> state that as a call to action, e.g., help wanted to make the build succeed
> on M1 macs, please see such-and-such issue on github...
>
> Otherwise looks good and thanks again!
>
> Cheers,
> Nathan
>
> On Sat, Oct 26, 2024 at 6:08 PM Lee, Lup Yuen <lu...@appkaki.com> wrote:
>
> > Refurbished Ubuntu PCs have become quite affordable. Can we turn them
> into
> > a (Low-Cost) Build Farm for NuttX?
> >
> > In this article we…
> > (1) Compile NuttX for a group of Arm32 Boards
> > (2) Then scale up and compile NuttX for All Arm32 Boards
> > (3) Thanks to the Docker Image provided by NuttX
> > (4) Why do this? Because GitHub Actions taught us a Painful Lesson:
> > Freebies Won’t Last Forever!
> >
> > Check out the article: https://lupyuen.codeberg.page/articles/ci2.html
> >
> > Lup
> >
>

Reply via email to