Skip to content

[FEATURE] NuttX Dashboard for Build Farm #14558

Closed

Description

@lupyuen

Is your feature request related to a problem? Please describe.

We have the First Version of the NuttX Dashboard for our Build Farm!

Try it here (hosted on Google Cloud): https://nuttx-dashboard.org

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:

Describe the solution you'd like

We created the Dashboard with open-source Grafana and Prometheus. Source Code is here

Describe alternatives you've considered

No response

Verification

  • I have verified before submitting the report.

Activity

  1. added
    Type: Enhancement
    on Oct 30, 2024
  2. self-assigned this
    on Oct 30, 2024
  3. changed the title [-][FEATURE] Build Dashboard for NuttX Build Farm[/-] [+][FEATURE] NuttX Dashboard for Build Farm[/+] on Oct 30, 2024
  4. lupyuen commented on Nov 1, 2024

    @lupyuen
    MemberAuthor

    GitHub Actions CI Logs are now inside NuttX Dashboard

    Our NuttX Dashboard now ingests the CI Build Logs from GitHub Actions! (Like an Amoeba)

    • That's why our Dashboard looks Red, because of errors in the CI Build (pic below)
    • When we click a Red Box, it jumps to the GitHub Actions Log (showing the error)

    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.

    Screenshot 2024-11-01 at 11 43 49 AM

  5. lupyuen commented on Nov 2, 2024

    @lupyuen
    MemberAuthor

    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! 🙏🙏🙏

    Screenshot 2024-11-03 at 9 55 58 AM

  6. cederom commented on Nov 3, 2024

    @cederom
    Contributor

    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

  7. lupyuen commented on Nov 3, 2024

    @lupyuen
    MemberAuthor

    Thanks @cederom! Yep hope to have your laptop in our NuttX Build Farm real soon :-)

  8. cederom commented on Nov 3, 2024

    @cederom
    Contributor

    What minimal disk is recommended 500GB or 1TB?

  9. lupyuen commented on Nov 3, 2024

    @lupyuen
    MemberAuthor
  10. lvanasse commented on Nov 5, 2024

    @lvanasse
    Contributor

    @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.

  11. lupyuen commented on Nov 5, 2024

    @lupyuen
    MemberAuthor
  12. simbit18 commented on Nov 6, 2024

    @simbit18
    Contributor

    Hi @lupyuen this PR #14654 removed the warnings now you can enter msys2 logs in NuttX Dashboard.

  13. lupyuen commented on Nov 6, 2024

    @lupyuen
    MemberAuthor

    @simbit18 Awesome! Lemme work on it...

  14. lupyuen commented on Nov 6, 2024

    @lupyuen
    MemberAuthor

    Hi @simbit18: msys2 Builds are now in nuttx-dashboard.org :-)

    Screenshot 2024-11-07 at 7 41 02 AM

  15. 2 remaining items

  16. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor

    Thank you so much @lvanasse!

    • 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 :-)
  17. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor

    @lvanasse As for Target Group: How about these, we can cut down later thanks :-)

        risc-v-01 risc-v-02 risc-v-03 \
        risc-v-04 risc-v-05 risc-v-06 \
        xtensa-01 xtensa-02 \
        arm64-01 x86_64-01 \
        sim-01 sim-02 sim-03 \
        other
    

    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

  18. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    Sounds good! Then if you are not running the script in a cronjob how are you automating the process?

  19. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor

    @lvanasse It runs on my Ubuntu Desktop all day all night, I'm not using the PC for anything else :-)

  20. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    @lupyuen, sorry just so I understand correctly, so you do launch the script manually each time it finished?

  21. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor

    @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

    ## 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
  22. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    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 :).

  23. reopened this on Nov 9, 2024
  24. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    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.

  25. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor
  26. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    Awesome! Thank you for everything @lupyuen!

  27. lvanasse commented on Nov 9, 2024

    @lvanasse
    Contributor

    @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 :).

  28. lupyuen commented on Nov 9, 2024

    @lupyuen
    MemberAuthor

    @lvanasse haha cool no worries :-)

  29. lupyuen commented on Nov 24, 2024

    @lupyuen
    MemberAuthor

    [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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions