Skip to content

About

Dump of PRs, Jobs and Durations in the NuttX Repo and NuttX Apps Repo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Dump of PRs, Jobs and Durations in the NuttX Repo and NuttX Apps Repo

See apache/nuttx#17914

These videos explain GitHub Runners and why we're using so many of them, also potential solutions...

GitHub Runners Usage up to 8 Mar 2026:

https://docs.google.com/spreadsheets/d/1JH7BCwTB-U6dwvSsy0tfpNXr534jVX-XYkOYi3FLM8g/edit?gid=0#gid=0

GitHub Runners Usage up to 8 Mar 2026

(Generated by history.sh)

Based on the data from above, we have identified the following PRs as the Most Expensive PRs, in terms of GitHub Runner Usage. We need to study further why these PRs are consuming so many resources, and whether improving our NuttX Dev Process will fix this problem...

Which were generated by: export-nuttx-builds/run.sh

git clone https://github.com/lupyuen/nuttx-github-jobs
cd nuttx-github-jobs

## Dump the GitHub PRs, Jobs and Job Durations for the past 2 days.
## They will be populated in the pr, job and duration folders.
## Calls ../parse-nuttx-builds to download and parse the GitHub Build Logs.
## Which will populate the success, warning and error folders.
./dump-github-jobs.sh 2

## Optional: Push the PRs, Jobs, Durations to GitHub for later analysis
git pull && git add .
git commit --all --message="Updated PRs, Jobs, Durations by \`dump-github-jobs.sh 2\`" && git push

## Join the PRs, Jobs and Durations into one TSV file and one JSON file:
## nuttx-github-jobs.tsv and nuttx-github-jobs.json
cargo run

## Optional: Push the TSV and JSON to GitHub for later analysis
git pull && git add .
git commit --all --message="Updated TSV and JSON by \`cargo run\`" && git push

## Optional: Export the PRs, Jobs, Durations, Build Logs into Static HTML
pushd ../export-nuttx-builds
git pull
cargo run
popd

## Optional: Push the Build Logs and HTML to GitHub for later analysis
git pull && git add .
git commit --all --message="Updated Build Logs and HTML by \`export-nuttx-builds\`" && git push

## Optional: Import nuttx-github-jobs.tsv into Google Sheets for analysis:
## NuttX GitHub Jobs Spreadsheet: https://docs.google.com/spreadsheets/d/1HY7fIZzd_fs3QPyA0TX7vsYOjL86m1fNOf1Wls93luI/edit?gid=1187577522#gid=1187577522
## Most Expensive PRs: https://docs.google.com/spreadsheets/d/1HY7fIZzd_fs3QPyA0TX7vsYOjL86m1fNOf1Wls93luI/edit?gid=70515654#gid=70515654

How to use the JSON Files:

## Find this PR Number
pr_number=18730

## Return Everything Current about this PR Number
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor-pr.json \
  | jq ".[] | select(.pr_number == $pr_number)"

## Return the Current Job Conclusion: success / failure / cancelled
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor-pr.json \
  | jq ".[] | select(.pr_number == $pr_number) | .job_conclusion"

## Return Everything Historical about this PR Number
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor.json \
  | jq ".[] | select(.pr_number == $pr_number)"

## Return all Errors / Warnings for this PR Number
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor.json \
  | jq ".[] | select(.pr_number == $pr_number) | .build_msg"

## Return all Errors for this PR Number
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor.json \
  | jq ".[] | select(.pr_number == $pr_number and .build_score == 0) | .build_msg"

## Return all Warnings for this PR Number
curl https://lupyuen.github.io/nuttx-github-jobs/build-monitor.json \
  | jq ".[] | select(.pr_number == $pr_number and .build_score > 0) | .build_msg"

GitHub Pages has delays publishing huge JSON Files to github.io. You might wanna use these JSON Links instead:

Most Expensive PRs

About

Dump of PRs, Jobs and Durations in the NuttX Repo and NuttX Apps Repo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors