You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Dashboard consolidates the Build Logs from all Linux Build Servers (Alin, mine, GitHub CI). So it's convenient to spot any Errors and Warnings in our builds.
The Highlights Section will turn red if there are errors. (Severity 0)
We can filter the builds by Arch / SubArch / Group / Board / Config:
If you're keen to add your own Ubuntu PC or Mac to our Build Farm, please follow the steps below and tell me your GitHub Gist ID:
What about ingesting macOS / msys2 / msvc Logs? Right now they show tooooo many ... warningses. We should probably fix the warnings before ingesting the logs into NuttX Dashboard.
Select the Board and Config. We'll see the History of Builds for the Board / Config.
With the Git Hash of NuttX Repo and NuttX Apps Repo, hopefully we can track down to the exact commit that failed.
🙏🙏🙏 Please join your Ubuntu PC to our Build Farm, tell me your Gist ID. So we can capture more builds, and track down quickly to the exact commit that failed! 🙏🙏🙏
@lupyuen by any chance, do you have a Dockerfile for the whole setup (I know, I've been talking about docker for a while (it'll be after the doc migration;)))
Reason why I'm asking, is that I have an Unraid server at home, which I host my media. And I was thinking maybe it would be possible to simply docker another docker on it.
run-ci.sh inside a cronjob: Might work? Assuming that it can handle the sudo.
Originally I assumed the Build PC would be compiling NuttX 24 x 7 (because New PRs will be merged all the time), but it's perfectly OK to run it sometimes
Creating a GitHub Account: The NuttX Dashboard will be crawling all your Gists. If we're comfortable letting a bot crawl through your Gists, then it's OK :-)
Also the gh command will be authenticated using your GitHub Account, which means it has all repo access rights, and it might be too powerful. So it depends if you're comfortable with that :-)
## Download the scripts
git clone https://github.com/lupyuen/nuttx-release
cd nuttx-release
## Login to GitHub in Headless Mode
sudo apt install gh
sudo gh auth login
## (1) What Account: "GitHub.com"## (2) Preferred Protocol: "HTTPS"## (3) Authenticate GitHub CLI: "Login with a web browser"## (4) Copy the One-Time Code, press Enter## (5) Press "q" to quit the Text Browser that appears## (6) Switch to Firefox Browser and load https://github.com/login/device## (7) Enter the One-Time Code. GitHub Login will proceed.## See https://stackoverflow.com/questions/78890002/how-to-do-gh-auth-login-when-run-in-headless-mode## Run the Build Job forever: arm-01 ... arm-14
sudo ./run-ci.sh
[Article] Continuous Integration Dashboard for NuttX (Prometheus and Grafana)
Last article we spoke about the (Twice) Daily Builds for NuttX. Today we talk about Monitoring the Daily Builds (also the NuttX Build Farm) with our new NuttX Dashboard:
(1) How we created our Dashboard with Grafana (open-source)
(2) Pulling the Build Data from Prometheus (also open-source)
(3) Which is populated by Pushgateway (staging database)
(4) Integrated with our Community Build Farm and GitHub Actions
(5) Why do all this? Because we can’t afford to run Complete CI Checks on Every Pull Request!
(6) We expect some breakage, and NuttX Dashboard will help with the fixing
Activity
[-][FEATURE] Build Dashboard for NuttX Build Farm[/-][+][FEATURE] NuttX Dashboard for Build Farm[/+]lupyuen commentedon Nov 1, 2024
GitHub Actions CI Logs are now inside NuttX Dashboard
Our NuttX Dashboard now ingests the CI Build Logs from GitHub Actions! (Like an Amoeba)
How It Happens:
What about ingesting macOS / msys2 / msvc Logs? Right now they show tooooo many ... warningses. We should probably fix the warnings before ingesting the logs into NuttX Dashboard.
lupyuen commentedon Nov 2, 2024
NuttX Build History
If a Build Fails, how will we know what Broke the Build?
Browse to nuttx-dashboard.org, click "See the NuttX Build History".
Select the Board and Config. We'll see the History of Builds for the Board / Config.
With the Git Hash of NuttX Repo and NuttX Apps Repo, hopefully we can track down to the exact commit that failed.
🙏🙏🙏 Please join your Ubuntu PC to our Build Farm, tell me your Gist ID. So we can capture more builds, and track down quickly to the exact commit that failed! 🙏🙏🙏
cederom commentedon Nov 3, 2024
Very cool congratz @lupyuen :-) And its already working :-) I need to buy a disk to a laptop that I can use to join The NuttX Farmers :D
lupyuen commentedon Nov 3, 2024
Thanks @cederom! Yep hope to have your laptop in our NuttX Build Farm real soon :-)
cederom commentedon Nov 3, 2024
What minimal disk is recommended 500GB or 1TB?
lupyuen commentedon Nov 3, 2024
@cederom 500 GB should be more than sufficient. I'm using 51 GB right now :-)
https://gist.github.com/nuttxpr/34b8fa96537acdf7400b87d0e6794cf1#file-ci-arm-14-log-L905
lvanasse commentedon Nov 5, 2024
@lupyuen by any chance, do you have a Dockerfile for the whole setup (I know, I've been talking about docker for a while (it'll be after the doc migration;)))
Reason why I'm asking, is that I have an Unraid server at home, which I host my media. And I was thinking maybe it would be possible to simply docker another docker on it.
lupyuen commentedon Nov 5, 2024
@lvanasse Yep the Dockerfile is here: https://github.com/apache/nuttx/blob/master/tools/ci/docker/linux/Dockerfile
If you need the Docker Image, I can export it for you :-)
simbit18 commentedon Nov 6, 2024
Hi @lupyuen this PR #14654 removed the warnings now you can enter msys2 logs in NuttX Dashboard.
lupyuen commentedon Nov 6, 2024
@simbit18 Awesome! Lemme work on it...
lupyuen commentedon Nov 6, 2024
Hi @simbit18: msys2 Builds are now in nuttx-dashboard.org :-)
2 remaining items
lupyuen commentedon Nov 9, 2024
Thank you so much @lvanasse!
ghcommand will be authenticated using your GitHub Account, which means it has all repo access rights, and it might be too powerful. So it depends if you're comfortable with that :-)lupyuen commentedon Nov 9, 2024
@lvanasse As for Target Group: How about these, we can cut down later thanks :-)
I'm running these right now: https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
Alin is running these: https://gist.github.com/jerpelea
lvanasse commentedon Nov 9, 2024
Sounds good! Then if you are not running the script in a cronjob how are you automating the process?
lupyuen commentedon Nov 9, 2024
@lvanasse It runs on my Ubuntu Desktop all day all night, I'm not using the PC for anything else :-)
lvanasse commentedon Nov 9, 2024
@lupyuen, sorry just so I understand correctly, so you do launch the script manually each time it finished?
lupyuen commentedon Nov 9, 2024
@lvanasse Oops sorry, please use this script, it will run all jobs forever:
https://lupyuen.github.io/articles/ci2#build-nuttx-for-all-target-groups
lvanasse commentedon Nov 9, 2024
Ahh ok sorry, I didn't read the whole script properly, and didn't see the infinite loop.
Thank you for the clarification, I'm setting up the server at the moment and I'll let you know my Gist ID after everything is running smoothly :).
lvanasse commentedon Nov 9, 2024
Things seems to be running smoothly :): https://gist.github.com/lvanasse/74976165ac7605a7376a6c026ff020ee
If you want to add my ID to the Nuttx Build Farm, I would be honoured :)!
After it ran a first time through all the target groups, I might just stop it and set it up so I can forget about it and let it run on my server.
lupyuen commentedon Nov 9, 2024
Super Awesome @lvanasse! Your PC is now in our NuttX Build Farm, thank you so much! :-)
https://nuttx-dashboard.org/d/fe2q876wubc3kc/nuttx-build-history?from=now-2d&to=now&timezone=browser&var-arch=$__all&var-subarch=$__all&var-board=$__all&var-config=$__all&var-group=$__all&var-Filters=user%7C%3D%7Clvanasse
Here's how I added your PC to our Build Farm. macOS will join us real soon :-)
lupyuen/ingest-nuttx-builds@4cbaf14
lvanasse commentedon Nov 9, 2024
Awesome! Thank you for everything @lupyuen!
lvanasse commentedon Nov 9, 2024
@lupyuen you might have seen some funniness in my gists. I had a couple of issue with my unraid VM, but things should be smooth from now on :).
lupyuen commentedon Nov 9, 2024
@lvanasse haha cool no worries :-)
lupyuen commentedon Nov 24, 2024
[Article] Continuous Integration Dashboard for NuttX (Prometheus and Grafana)
Last article we spoke about the (Twice) Daily Builds for NuttX. Today we talk about Monitoring the Daily Builds (also the NuttX Build Farm) with our new NuttX Dashboard:
(1) How we created our Dashboard with Grafana (open-source)
(2) Pulling the Build Data from Prometheus (also open-source)
(3) Which is populated by Pushgateway (staging database)
(4) Integrated with our Community Build Farm and GitHub Actions
(5) Why do all this? Because we can’t afford to run Complete CI Checks on Every Pull Request!
(6) We expect some breakage, and NuttX Dashboard will help with the fixing
Check out the article: https://lupyuen.github.io/articles/ci4