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
{{ message }}
Repository navigation
[Testers Needed] Building PRs in Our Own Repos #18568
We're testing a new way to Build PRs in Our Own NuttX Repos, wonder if you would like to try out, and give your feedback to @simbit18 and me? Thank you so much :-)
And the PR Build should start. Lemme know if it doesn't work thanks!
Why are we doing this? Earlier this year, we saw very high usage of GitHub Runners. By building PRs in Our Own NuttX Repos, we will greatly reduce our usage of GitHub Runners, so that ASF Infrastructure Team won't revoke our access to GitHub CI. So we hope everyone can help out thanks :-)
Hi @lupyuen, don't know if it is possible, but could this be done on a forked Nuttx. So that after a branch is pushed I can build NuttX CI it on my fork and only create a PR when the build NuttX CI is succesful?
If the branch is on GitHub, then it’s possible
example branch esp32_simpleboot:
Repo for NuttX: Laczen/nuttx
NuttX Branch: esp32_simpleboot <- This could be any of your new branches
Repo for NuttX Apps: apache/nuttx-apps
NuttX Apps Branch: master
Host Platform: all
Suggestion: It'd be nice to be able to set env vars to build NuttX (I'm not sure if we'd need to tweak our CI tools or it could be set directly on job).
Hi @tmedicci, I understand your request, and we could consider adding another workflow for Espressif.
I don't think we need something specifically for Espressif. We can set any environment var to the build system. There are a couple of them that "tweaks" the build system.
However, if we add the option to modify the ESP_HAL_3RDPARTY_VERSION environment variable, all of these architectures
will use the same Git hash, but as far as I can see, that is not currently the case, so some jobs will fail.
There are a couple of things to consider here:
ESP_HAL_3RDPARTY_VERSION isn't usually set because the PR itself already contains the version being tested. Just setting ESP_HAL_3RDPARTY_URL is enough to test an under-development branch (yet not yet published, for instance).
However, we always keep it aligned: when we update the version, we do that for every supported chip (xtensa update is on the way). An exception to that is esp32c3-legacy, which is expected to be removed in a major NuttX release.
Another useful feature would be being able to select which set of tests are expected to run manually. For instance, selecting just xtensa-01 or a set of .dats.
Just checked that it's being set here. I increased it on my fork. Perhaps we should increase it because GH-provided runners for regular users might not be as fast as the ones we get from ASF.
Yep the 2-hour timeout is for CI Test / pytest only, to prevent CI Test from running forever. Now that xtensa jobs are running beyond 2 hours, I'm thinking we should extend the timeout to 3 hours? Alternatively: Split xtensa into smaller, quicker jobs. (I don't think we should exceed 2 hours for any single CI job?)
@tmedicci Cool thanks! Remember we did something special for xtensa-03, running on Build Farm only?
* [esp32s3/python: add support for running Python on ESP32-S3 #15955 (review)](https://github.com/apache/nuttx/pull/15955#pullrequestreview-2668723029)
I wonder if we should move it to xtensa-00 and run it on Build Farm only. So we get more space to expand for xtensa-03, 04, 05, ...?
I remember! I had moved it to xtensa-04 and used 03 for the split, but it makes more sense to move to 00 so we have "spare" slots if needed.
From my tests so far, this is excellent and quite easy to use.
Question (maybe not possible): can we have a similar feature to choosing which nuttx-apps branch to run CI against for PRs made to the NuttX repository (and vice versa)? This would make it a lot easier to trust that twin PRs can be merged safely.
Activity
simbit18 commentedon Mar 20, 2026
We have added a second workflow for building a
<board name>:<board configuration>using Make and CMakeLaczen commentedon Mar 24, 2026
Hi @lupyuen, don't know if it is possible, but could this be done on a forked Nuttx. So that after a branch is pushed I can build NuttX CI it on my fork and only create a PR when the build NuttX CI is succesful?
simbit18 commentedon Mar 24, 2026
@Laczen Yes, that is precisely the purpose of this repository github.com/NuttX/manual-nuttx-ci
NuttX/manual-nuttx-ci#1 (comment)
Laczen commentedon Mar 24, 2026
Maybe I was not clear enough. I meant making this workflow a part of the NuttX fork that I already have.
simbit18 commentedon Mar 24, 2026
If the branch is on GitHub, then it’s possible
example branch esp32_simpleboot:
Repo for NuttX: Laczen/nuttx
NuttX Branch: esp32_simpleboot <- This could be any of your new branches
Repo for NuttX Apps: apache/nuttx-apps
NuttX Apps Branch: master
Host Platform: all
tmedicci commentedon Mar 25, 2026
Amazing work, @simbit18 and @lupyuen !
Suggestion: It'd be nice to be able to set env vars to build NuttX (I'm not sure if we'd need to tweak our CI tools or it could be set directly on job).
For instance, being able to set
ESP_HAL_3RDPARTY_URLto ongoing development.simbit18 commentedon Mar 26, 2026
Hi @tmedicci, I understand your request, and we could consider adding another workflow for Espressif.
However, if we add the option to modify the ESP_HAL_3RDPARTY_VERSION environment variable, all of these architectures
will use the same Git hash, but as far as I can see, that is not currently the case, so some jobs will fail.
tmedicci commentedon Mar 26, 2026
I don't think we need something specifically for Espressif. We can set any environment var to the build system. There are a couple of them that "tweaks" the build system.
There are a couple of things to consider here:
ESP_HAL_3RDPARTY_VERSIONisn't usually set because the PR itself already contains the version being tested. Just settingESP_HAL_3RDPARTY_URLis enough to test an under-development branch (yet not yet published, for instance).esp32c3-legacy, which is expected to be removed in a major NuttX release.tmedicci commentedon Mar 26, 2026
Another useful feature would be being able to select which set of tests are expected to run manually. For instance, selecting just
xtensa-01or a set of.dats.simbit18 commentedon Mar 26, 2026
@tmedicci Thank you for your feedback; we’ll do our best to improve.
tmedicci commentedon Mar 26, 2026
Apparently, there is a 2h timeout for the jobs: https://github.com/tmedicci/manual-nuttx-ci/actions/runs/23606479413/job/68750649341#step:10:1334
Is this set by NuttX or the CI?
tmedicci commentedon Mar 26, 2026
Just checked that it's being set here. I increased it on my fork. Perhaps we should increase it because GH-provided runners for regular users might not be as fast as the ones we get from ASF.
simbit18 commentedon Mar 27, 2026
Hi @tmedicci The check does not directly concern the duration of the job but that of pytest, and the following has been added by @lupyuen PR #14849
sleep 7200 ; echo Killing pytest after timeout... ; pkill -f pytest@lupyuen, please correct me if I'm wrong :)
Job Linux (xtensa-01)
failed due to this error
lupyuen commentedon Mar 27, 2026
Yep the 2-hour timeout is for CI Test / pytest only, to prevent CI Test from running forever. Now that xtensa jobs are running beyond 2 hours, I'm thinking we should extend the timeout to 3 hours? Alternatively: Split xtensa into smaller, quicker jobs. (I don't think we should exceed 2 hours for any single CI job?)
tmedicci commentedon Mar 27, 2026
Hi @simbit18
Yes, you're right about that pipeline, but the issue still exists: xtensa pipelines are taking more than 2 hours (more defconfig were added recently).
As @lupyuen proposed, I think we should split into three jobs (instead of 2). That should fix it. I can update #18614 to try it in a separate commit.
lupyuen commentedon Mar 27, 2026
@tmedicci Cool thanks! Remember we did something special for xtensa-03, running on Build Farm only?
I wonder if we should move it to xtensa-00 and run it on Build Farm only. So we get more space to expand for xtensa-03, 04, 05, ...?
tmedicci commentedon Mar 27, 2026
I remember! I had moved it to xtensa-04 and used 03 for the split, but it makes more sense to move to 00 so we have "spare" slots if needed.
lupyuen commentedon Mar 27, 2026
BTW I think we should target 1 hour (highly recommended) to 1.5 hours per CI Job, based on our current Build Times...
https://github.com/apache/nuttx/actions/runs/23618454524/usage
tmedicci commentedon Mar 27, 2026
#18614 was updated. The current (updated) action: https://github.com/apache/nuttx/actions/runs/23646961693/job/68881650944?pr=18614
CI: Retry build upon failure
CI: Retry build upon failure
cederom commentedon Apr 20, 2026
Awesome thank you @lupyuen :-)
I think we need these instructions in our documentation https://nuttx.apache.org/docs/latest/contributing/index.html and these deserve separate section like "Before you submit" or similar? :-)
linguini1 commentedon May 17, 2026
From my tests so far, this is excellent and quite easy to use.
Question (maybe not possible): can we have a similar feature to choosing which
nuttx-appsbranch to run CI against for PRs made to the NuttX repository (and vice versa)? This would make it a lot easier to trust that twin PRs can be merged safely.