Skip to content

[FEATURE] Retry for CI Builds #18562

Description

@lupyuen

Update: We have implemented CI Build Retry, as explained in this video:

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

We did a Quantitative Analysis of our Most Expensive PR (in terms of GitHub Runner Usage). We discovered that our CI Jobs are failing too often due to the Failed Downloading of Build Dependencies...

Which causes Developer Frustration and Wasted GitHub Runners. We propose to implement Retry for CI Builds, so that the Build Dependencies will be successfully downloaded when we retry a build. This means that a NuttX Target like pinephone:nsh will be rebuilt when it fails.

Describe the solution you'd like

@simbit18 Would you be able to implement this solution? It's not so urgent, but we need more time to test it thoroughly. Please lemme know thanks :-)

  • Explained here:
    Apache NuttX RTOS: Retrying a CI Build
    Apache NuttX RTOS: Testing of Retry for CI Builds
  • We retry dotest 5 times in case of failure. We could implement a new wrapper function retrytest that will retry dotest 5 times. (dotest builds a Single NuttX Target like pinephone:nsh)
  • For Simplicity: We will retry on Any Failure: Download Failed, Compile Error, ...
  • Each Retry will have a Random Exponential Backoff. Retry 1: Wait randomly 0 to 60 seconds. Retry 2: Wait randomly 0 to 120 seconds. Retry 3: Wait randomly 0 to 240 seconds. Etc
  • We will test at NuttX Mirror Repo, though I think the Download Failures don't happen so often at that repo
  • We will also test at NuttX Build Farm, which has Download Failures much more often

Retry Logic looks like this, it refers to a Single NuttX Target like pinephone:nsh:

Image

dotest is called here, which we can rename as retrytest:

nuttx/tools/testbuild.sh

Lines 582 to 597 in 76fe46a

# Perform the build test for each entry in the test list file
for line in $testlist; do
firstch=${line:0:1}
if [ "X$firstch" == "X/" ]; then
dir=`echo $line | cut -d',' -f1`
list=`find boards$dir -name defconfig | cut -d'/' -f4,6`
for i in ${list}; do
dotest $i${line/"$dir"/}
done
else
dotest $line
fi
done

Describe alternatives you've considered

We considered the alternatives explained in this video:

Verification

  • I have verified before submitting the report.

Activity

  1. added
    Type: Enhancement
    on Mar 19, 2026
  2. simbit18 commented on Mar 19, 2026

    @simbit18
    Contributor

    @lupyuen I’ve been looking for a solution to the problem of failed package downloads for a while now.

    Here are some of my thoughts, the result of wracking my remaining brain cells :)

    Simple solution

    We use curl as our download tool, and it already offers a --retry option.
    https://everything.curl.dev/usingcurl/downloads/retry.html

    So we could use this method to retry X times.

    Most comprehensive solution

    A solution similar to the one used with espressif (esp-hal-3rdparty with git), but here with curl

    add to the file https://github.com/apache/nuttx/blob/master/tools/Config.mk

    # CURL - Download file. cURL command to download a file in the
    #        folder on your local machine.
    #        The fourth argument is an storage path. The third argument is used
    #        if it is not provided or is empty.
    # Example: $(call CURL,$(URL_BASE),$(FOO_ARCHIVE),foo.out,foo_store.out)
    
    define CURL
    	$(ECHO_BEGIN)"Downloading: $2"
    	$(Q) $(if $4, \
           $(call CURLSTORE,$1/$2,$4/$2,$(if $(3),$(3)/$(2),$(2))), \
           curl -L $(if $(V),,-Ss) $(1)/$(2) -o $(if $(3),$(3)/$(2),$(2)))
    	$(ECHO_END)
    endef
    
    # CURLSTORE - Download file is an storage path.
    #             Internal a CURL
    
    define CURLSTORE
    	$(ECHO_BEGIN)"Search in the storage path -> $2"
    	$(Q) $(if $(wildcard $2),, \
           curl -L $(if $(V),,-Ss) $(1) -o $(2))
    	$(Q) cp -f $2 $3
    	$(ECHO_END)
    endef
    
    
    

    When the same packages are downloaded repeatedly in a job, you can use the nxtmpdir folder
    to avoid performing a second download.

    Package storage is enabled as follows -S on [nuttx/.github/workflows/build.yml]

                 ./cibuild.sh -c -A -N -R -S testlist/${{matrix.boards}}.dat 
    

    -S adds the nxtmpdir folder for third-party packages.

    You can use this system + a simple solution to try to reduce the likelihood of errors

    Of course, here it is necessary to standardize all the logic for downloading packages.
    (which is the right thing to do for proper maintenance)

    I think the second is more comprehensive, but, we need the community to help!!!

    We could launch an “adopt a .zip or .tar” campaign!!! :)

    Your approach could also be another solution, but it has a different impact

    on the time required for changes and testing.

    Of course, if it’s a GitHub issue, no solution will fix the problem. :)

  3. lupyuen commented on Mar 19, 2026

    @lupyuen
    MemberAuthor

    Thanks @simbit18! Yeah we might have a problem getting NuttX Community to help with the curl fixes, which are highly intrusive and script-specific. And ultimately you and I will have to standby and make sure that every single fix works correctly :-)

    Do you think we should go ahead to do the Build Retry our own (less intrusive) way, so we won't depend too much on NuttX Community? I'm just worried that the next Peak Period might come again soon, and we'll get into serious trouble with ASF Infra Team, if we use too many NuttX Runners :-(

  4. lupyuen commented on Mar 19, 2026

    @lupyuen
    MemberAuthor

    Sorry: Can curl do Random Exponential Backoff? I suspect a simple retry might not be sufficient, GitHub might still block our downloads, due to suspected spamming :-(

  5. simbit18 commented on Mar 19, 2026

    @simbit18
    Contributor

    Your solution is a good one, but it takes a lot of time, which I don't have right now.

  6. lupyuen commented on Mar 19, 2026

    @lupyuen
    MemberAuthor

    Yeah I fully understand :-) Let's reopen this feature later when we're ready. It's really difficult to push any changes to NuttX CI because...

    1. Only You and I understand how NuttX CI works. Very hard to get anyone else to help us.
    2. NuttX CI is Mission Critical. We can't afford to break it at any time. (And yes, you and I will surely get blamed)
    3. NuttX CI is extremely complex, with lots of legacy quirks. Too much possibility of breaking things, especially when we introduce intrusive changes.

    The next time NuttX runs out of GitHub Runners: Maybe you and I won't be around any more? Let's wait and see :-)

  7. simbit18 commented on Mar 19, 2026

    @simbit18
    Contributor

    @lupyuen Making changes is a very delicate matter.

    Perhaps we need to consider a completely new system for CI, but that takes time.

    Anyway, when is the next marathon? :)

  8. lupyuen commented on Mar 20, 2026

    @lupyuen
    MemberAuthor

    Wonder if this will work for retrying CI Builds? I'll test on NuttX Build Farm, since it fails Dependency Download quite often...

    lupyuen13/nuttx@master...lupyuen13:nuttx:retry-build

  9. simbit18 commented on Mar 20, 2026

    @simbit18
    Contributor

    @lupyuen That sounds like a great solution!
    It should work.

  10. lupyuen commented on Mar 22, 2026

    @lupyuen
    MemberAuthor

    Hmmm interesting: Our Retry Build reuses the Corrupted Zip File (from the previous download). So the Retry Build will always fail. Lemme try to clean up, delete all Zip Files, and discard any leftover files:

    git clean -fd
    git status
    
    pushd ../apps
    git clean -fd
    git status
    popd

    Here's the earlier log: https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/5971712#L1122

    Build Attempt 1
    ====================================================================================
    Configuration/Tool: raspberrypi-4b/lvgl
      Building NuttX...
    [v9.2.1.zip]
      End-of-central-directory signature not found.
      ...
    Wait 55 seconds (60 backoff)
    Build Attempt 2
    ====================================================================================
    Configuration/Tool: raspberrypi-4b/lvgl
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	graphics/lvgl/v9.2.1.zip
      ...
      Building NuttX...
    [v9.2.1.zip]
      End-of-central-directory signature not found.
    
  11. lupyuen commented on Mar 22, 2026

    @lupyuen
    MemberAuthor

    Yep the Retry Build works OK for ESP32 Runtime Download yay! It succeeded at Build Attempt 5: https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/5971711#L1587

    Build Attempt 1
    ====================================================================================
    Configuration/Tool: esp32s3-box/lvgl-3
    fatal: unable to access 'https://github.com/espressif/esp-hal-3rdparty.git/': The requested URL returned error: 500
    ...
    Wait 23 seconds (60 backoff)
    Build Attempt 2
    ====================================================================================
    Configuration/Tool: esp32s3-box/lvgl-3
    Ignored files:
    	graphics/lvgl/lvgl/
    	graphics/lvgl/v9.2.1.zip
    ...
    Wait 119 seconds (120 backoff)
    Build Attempt 3
    ====================================================================================
    Configuration/Tool: esp32s3-box/lvgl-3
    error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
    ...
    Wait 41 seconds (240 backoff)
    Build Attempt 4
    ====================================================================================
    Configuration/Tool: esp32s3-box/lvgl-3
    Ignored files:
    	graphics/lvgl/lvgl/
    	graphics/lvgl/v9.2.1.zip
    ...
    Wait 350 seconds (480 backoff)
    Build Attempt 5
    ====================================================================================
    Configuration/Tool: esp32s3-box/lvgl-3
    2026-03-22 09:35:14
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
      [1/1] Normalize esp32s3-box/lvgl-3
    
  12. lupyuen commented on Mar 23, 2026

    @lupyuen
    MemberAuthor

    This video explains our script for Retry for CI Builds. And how we're testing at NuttX Main Repo / NuttX Mirror Repo / NuttX Build Farm:

  13. lupyuen commented on Mar 25, 2026

    @lupyuen
    MemberAuthor

    I made new video:

    Which explains:

    1. NTFC Download Failures in Most Expensive PR
    2. Compile Errors in Second Most Expensive PR
    3. Build Quirk in ESP32: Retry Scheduled
    vlcsnap-2026-03-25-13h24m40s519
  14. lupyuen commented on Mar 26, 2026

    @lupyuen
    MemberAuthor

    Here's the new video:

    That explains:

    1. Third Most Expensive PR had Download Errors, NTFC Errors and Compile Errors
    2. We propose a new PR Monitoring Dashboard that shows all errors in real time
    Image
  15. acassis commented on Mar 26, 2026

    @acassis
    Contributor

    @lupyuen @simbit18 isn't it possible to create an instruction in our Dockerfile to include these downloadable files in some directory in the Docker and just copy it during the building? This way we avoid downloading them during the build phase and speed up the building time

  16. lupyuen commented on Mar 27, 2026

    @lupyuen
    MemberAuthor

    Here's another video:

    That explains:

    1. Most Expensive Apps PR has 6 Compile Errors and 3 Download Errors
    2. How we're building the PR Monitoring Dashboard
  17. simbit18 commented on Mar 27, 2026

    @simbit18
    Contributor

    @lupyuen The error in the MSVC job has been resolved with this PR #18069 by @xuxin930

    Check ARM GCC toolchain toolchain ...
    Download: ARM GCC toolchain
    An error occurred while executing the script: Failed to download the file: 
    Access Denied
    
  18. lupyuen commented on Mar 30, 2026

    @lupyuen
    MemberAuthor

    We have a new video:

    That explains:

    1. How we're Parsing the GitHub Build Logs for NuttX
    2. How we're generating the PR Monitoring Dashboard for NuttX
    Image
  19. lupyuen commented on Apr 1, 2026

    @lupyuen
    MemberAuthor

    NuttX Build Monitor is now up :-)

    Image
  20. lupyuen commented on Apr 2, 2026

    @lupyuen
    MemberAuthor

    Finally reproduced the Download Errors! But 5 retries are not enough, I'm increasing from 5 retries to 7 retries. The Download Bug is really persistent and highly inconsistent. It seems to happen when we don't have available GitHub Runners? https://github.com/apache/nuttx/actions/runs/23679432579/job/69628262067#step:10:1098

    Build Attempt 1: downloading 'https://github.com/ARMmbed/littlefs/archive/v2.5.1.tar.gz' failed
    Build Attempt 2: (same)
    Build Attempt 3: Success!
    

    Then later within the same arm-05 CI Job: Another download fails: https://github.com/apache/nuttx/actions/runs/23679432579/job/69628262067#step:10:1722

    Build Attempt 1: downloading 'https://github.com/argtable/argtable3/archive/v3.2.0.7402e6e.tar.gz' failed
    Build Attempt 2: Success!
    

    Finally this broke the CI Job: Another download fails after 5 retries, that's why I'm increasing to 7 retries: https://github.com/apache/nuttx/actions/runs/23679432579/job/69628262067#step:10:2047

    Build Attempt 1: downloading 'https://github.com/OpenAMP/libmetal/archive/v2025.10.0.zip' failed
    Build Attempt 2: (same)
    ...
    Build Attempt 6: Still failed, quitting
    
  21. lupyuen commented on Apr 3, 2026

    @lupyuen
    MemberAuthor

    This video explains how we're using the new NuttX Build Monitor to test the Retry of CI Builds. So far the results look promising!

    During our testing: All Download Failures succeeded after retries, none of them exceeded 7 attempts, mostly 4 attempts:

    1. sim:nxcamera OK after 7 attempts: libyuv download retry @ 2026-04-05 23:37:08

    2. qemu-armv8a:netnsh_smp OK after 4 attempts: OpenAMP libmetal download retry

    3. esp32s3-devkit:eth_lan9250 OK after 3 attempts: Xtensa codeload.github download retry

    4. icicle:rpmsg-ch2 OK after 2 attempts: OpenAMP libmetal download retry

    5. sim:matter OK after 2 attempts: LLVM libcxx download retry

    6. sim:matter OK after 2 attempts: NestLabs nlunit-test download retry

    7. nrf52832-dk:sdc OK after 2 attempts: nRFConnect sdk-nrfxlib download retry

    Except for this failure:

    1. sim:nxcamera failed after 8 attempts: libyuv download retry @ 2026-04-07 22:55:11

    Why is sim:nxcamera failing so often?

    See the next comment...

  22. lupyuen commented on Apr 8, 2026

    @lupyuen
    MemberAuthor

    Could this Download Failure be a problem with GitHub Actions? Shouldn't we escalate to GitHub?

    Outside GitHub Actions: We see the same Download Failures happening in our NuttX Build Farm (see below). Thus it's not a problem specific to GitHub Actions. We should not assume that Dependency Downloads are perfect, we should always retry.

    1. NuttX Build Farm sim:nxcamera: libyuv download failed @ 2026-04-07 23:26:23

    2. NuttX Build Farm sim:nxcamera: libyuv download failed @ 2026-04-06 07:38:39

    3. NuttX Build Farm qemu-armv8a:netnsh_smp: argtable3 download failed

    4. NuttX Build Farm sim:lua: lua download failed

    NuttX CI uses a Docker Container, in GitHub Actions and in NuttX Build Farm. Maybe our Docker Image isn't configured correctly for networking?

    That's possible. However our team has no expertise to troubleshoot Docker Networking.

    Why is sim:nxcamera failing so often?

    sim:nxcamera downloads libyuv from chromium.googlesource.com, which seems to be fairly unreliable. We should find an alternative site for it. Alternatively: We cache libyuv inside the Release Downloads Section of the NuttX Mirror Repo.

    https://github.com/apache/nuttx-apps/blob/master/graphics/libyuv/Makefile#L32

    	$(Q) curl -L https://chromium.googlesource.com/libyuv/libyuv/+archive/refs/heads/$(CONFIG_LIBYUV_BRANCH).tar.gz -o libyuv.tar.gz
    

    Update: Here's the patch:

    Isn't it easier to fix the curl command in our Build Scripts to do retry?

    There are at least 73 curl commands in our Build Scripts. We will require significant effort to change and test all 73 curl commands: https://github.com/search?q=repo%3Aapache%2Fnuttx-apps+curl+language%3AMakefile&type=code&p=2&l=Makefile

    FYI curl also supports Exponential Backoff (not randomised though): https://everything.curl.dev/usingcurl/downloads/retry.html#tweak-your-retries

  23. linked a pull request that will close this issueCI: Retry build upon failure #18576on Apr 15, 2026
  24. lupyuen commented on Apr 18, 2026

    @lupyuen
    MemberAuthor

    Download Retry failed twice today (after 4 attempts) at around the same time:

    Update: Fix is here

    First Failure

    https://github.com/apache/nuttx/actions/runs/24605418871/job/71950832530#step:10:451

    Build Attempt 1 of 4
    ====================================================================================
    Configuration/Tool: esp32-audio-kit/audio
    2026-04-18 13:34:29
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100    92  100    92    0     0      8      0  0:00:11  0:00:11 --:--:--    23
    
    gzip: stdin: not in gzip format
    make[3]: *** [Makefile:59: cJSON] Error 2
    make[2]: *** [Makefile:57: /github/workspace/sources/apps/netutils/cjson_context] Error 2
    
    100    92  100    92    0     0      8      0  0:00:11  0:00:11 --:--:--    23
    
    gzip: stdin: not in gzip format
    make[3]: *** [Makefile:76: argtable3] Error 2
    make[2]: *** [Makefile:57: /github/workspace/sources/apps/system/argtable3_context] Error 2
    make: *** [tools/Unix.mk:470: /github/workspace/sources/apps/.context] Error 2
    
    /github/workspace/sources/nuttx /github/workspace/sources/nuttx
    HEAD detached at pull/18730/merge
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    /github/workspace/sources/apps /github/workspace/sources/nuttx
    On branch master
    Your branch is up to date with 'origin/master'.
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    
    Wait 37 seconds (60 backoff)
    Build Attempt 2 of 4
    ====================================================================================
    Configuration/Tool: esp32-audio-kit/audio
    2026-04-18 13:35:29
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	examples/romfs/romfs_testdir.h
    	examples/romfs/testdir.img
    	examples/romfs/testdir/
    	netutils/cjson/v1.7.12.tar.gz
    	system/argtable3/v3.2.0.7402e6e.tar.gz
    
    nothing to commit, working tree clean
      Configuring...
      Building NuttX...
    
    gzip: stdin: not in gzip format
    make[3]: *** [Makefile:59: cJSON] Error 2
    make[2]: *** [Makefile:57: /github/workspace/sources/apps/netutils/cjson_context] Error 2
    
    gzip: stdin: not in gzip format
    make[3]: *** [Makefile:76: argtable3] Error 2
    make[2]: *** [Makefile:57: /github/workspace/sources/apps/system/argtable3_context] Error 2
    make: *** [tools/Unix.mk:470: /github/workspace/sources/apps/.context] Error 2
    
    Wait 93 seconds (120 backoff)
    Build Attempt 3 of 4: (Same error)
    
    Wait 76 seconds (240 backoff)
    Build Attempt 4 of 4: (Same error)
    

    Note that Build Attempts 2, 3 and 4 don't redownload any files. They seem to be reusing a corrupted download. Do we need to delete these in our Retry Script?

    rm -f netutils/cjson/*.gz
    rm -f system/argtable3/*.gz

    Second Failure, around the same time

    https://github.com/apache/nuttx/actions/runs/24605418871/job/71950832521#step:10:324

    Build Attempt 1 of 4
    ====================================================================================
    Configuration/Tool: sim/libcxxtest
    2026-04-18 13:22:14
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
    tar: This does not look like a tar archive
    xz: (stdin): File format not recognized
    make[1]: *** [libcxx/Make.defs:31: libcxx/libcxx] Error 2
    make: *** [tools/Unix.mk:470: libs/libxx/.context] Error 2
    
    /github/workspace/sources/nuttx /github/workspace/sources/nuttx
    HEAD detached at pull/18730/merge
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    /github/workspace/sources/apps /github/workspace/sources/nuttx
    On branch master
    Your branch is up to date with 'origin/master'.
    
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    Wait 7 seconds (60 backoff)
    Build Attempt 2 of 4
    ====================================================================================
    Configuration/Tool: sim/libcxxtest
    2026-04-18 13:22:55
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	examples/nettest/config.h
    	examples/nettest/nettest_host.hobj
    	examples/nettest/nettest_server.hobj
    	examples/nettest/tcpserver
    ...
    Wait 70 seconds (120 backoff)
    Build Attempt 3 of 4
    ====================================================================================
    Configuration/Tool: sim/libcxxtest
    2026-04-18 13:25:41
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
    tar: This does not look like a tar archive
    xz: (stdin): File format not recognized
    make[1]: *** [libcxx/Make.defs:31: libcxx/libcxx] Error 2
    make: *** [tools/Unix.mk:470: libs/libxx/.context] Error 2
    ...
    Wait 227 seconds (240 backoff)
    Build Attempt 4 of 4
    ====================================================================================
    Configuration/Tool: sim/libcxxtest
    2026-04-18 13:30:06
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	examples/nettest/config.h
    	examples/nettest/nettest_host.hobj
    	examples/nettest/nettest_server.hobj
    	examples/nettest/tcpserver
    (Build Failed after 4 attempts)
    

    Note that Build Attempt 2 and 4 don't download any files. Do we need to remove these?

    examples/nettest/config.h
    examples/nettest/nettest_host.hobj
    examples/nettest/nettest_server.hobj
    examples/nettest/tcpserver
    

    Restart The Build: Also failed (but OK after the next rebuild)

    https://github.com/apache/nuttx/actions/runs/24605418871/job/71954440588#step:10:759

    Build Attempt 1 of 4
    ====================================================================================
    Configuration/Tool: sim/wamr
    2026-04-18 15:09:40
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100    92  100    92    0     0      8      0  0:00:11  0:00:11 --:--:--    23
    
    [main.zip]: End-of-central-directory signature not found.
    make[3]: *** [Makefile:111: coremark] Error 9
    make[2]: *** [Makefile:57: /github/workspace/sources/apps/benchmarks/coremark_context] Error 2
    make[1]: *** [Makefile:187: context] Error 2
    
    /github/workspace/sources/nuttx /github/workspace/sources/nuttx
    HEAD detached at pull/18730/merge
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    /github/workspace/sources/apps /github/workspace/sources/nuttx
    On branch master
    Your branch is up to date with 'origin/master'.
    
    nothing to commit, working tree clean
    /github/workspace/sources/nuttx
    
    Wait 14 seconds (60 backoff)
    Build Attempt 2 of 4
    ====================================================================================
    Configuration/Tool: sim/wamr
    2026-04-18 15:10:20
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	benchmarks/coremark/main.zip
    	interpreters/wamr/9f0c4b63ac21c975aee7aae30236e306c8e49d13.zip
    	interpreters/wamr/wamr/
    
    nothing to commit, working tree clean
      Configuring...
      Building NuttX...
    [main.zip]: End-of-central-directory signature not found.
    
    Wait 110 seconds (120 backoff)
    Build Attempt 3 of 4
    ====================================================================================
    Configuration/Tool: sim/wamr
    2026-04-18 15:12:24
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	benchmarks/coremark/main.zip
    	interpreters/wamr/9f0c4b63ac21c975aee7aae30236e306c8e49d13.zip
    	interpreters/wamr/wamr/
    
    nothing to commit, working tree clean
      Configuring...
      Building NuttX...
    [main.zip]: End-of-central-directory signature not found.
    
    Build Attempt 4 of 4
    ====================================================================================
    Configuration/Tool: sim/wamr
    2026-04-18 15:15:49
    ------------------------------------------------------------------------------------
      Cleaning...
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
    	benchmarks/coremark/main.zip
    	interpreters/wamr/9f0c4b63ac21c975aee7aae30236e306c8e49d13.zip
    	interpreters/wamr/wamr/
    
    nothing to commit, working tree clean
      Configuring...
      Building NuttX...
    [main.zip]: End-of-central-directory signature not found.
    (Build failed after 4 attempts)
    

    Again: Build Attempts 2, 3 and 4 don't download any files. They seem to be reusing a corrupted download. Do we need to delete these in our Retry Script?

    rm -f benchmarks/coremark/*.zip
    rm -f interpreters/wamr/*.zip

    Around the Same Time at NuttX Build Farm: Download Retry also failed

    Is there something wrong with github.com downloads around that time?

    https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/5982188#L871

  25. lupyuen commented on Apr 23, 2026

    @lupyuen
    MemberAuthor

    So far the Download Retry works OK, successfully completing the CI Build (instead of terminating the build):

    Date Target Build Log Attempts
    2026-04-20 esp32s3-devkit:fastboot_tcp Download retry OK for argtable3 2
    2026-04-20 esp32s3-devkit:qemu_debug Download retry OK for argtable3 4
    2026-04-20 photon:wlan-perf Download retry OK for argtable3 2
    2026-04-20 nrf5340-dk:rptun_cpunet Download retry OK for libmetal 3
    2026-04-20 photon:wlan Download retry OK for argtable3 2
    2026-04-22 esp32-audio-kit:wifi Download retry OK for cJSON 2
    2026-04-23 stm32f4discovery:canard Download retry OK for libcanard 2
    2026-04-27 sim:wamr Download retry OK for wamr 3
    2026-04-27 esp32-devkitc:cxx Download retry OK for libcxxabi 2
    2026-04-28 nrf5340-dk:rpmsghci_sdc_cpunet Download retry OK for nrfxlib 3
    2026-04-28 esp32c6-devkitm:sta_softap Download retry OK for cJSON 3
    2026-04-28 stm32f777zit6-meadow:f7corecomp Download retry OK for littlefs 3
    2026-04-29 nrf52832-dk:mcuboot_loader_minimal Download retry OK for mcuboot 3
    2026-04-29 gd32f470zk-eval:fmclfsnsh Download retry OK for littlefs 4
    2026-04-29 sim:matter Download retry OK for mbedtls 3
    2026-04-29 qemu-armv8a:xedge_demo Download retry OK for libmetal 3
    2026-04-29 qemu-armv8a:netnsh_smp_hv Download retry OK for argtable3 2
    2026-05-02 esp32s3-devkit:wifi Download retry OK for argtable3 2
    2026-05-02 bl602evb:wifi Download retry OK for ble-test 3
    2026-05-04 thingy53:rpmsghci_sdc_cpunet Download retry OK for libmetal 3
    2026-05-09 esp32c3-devkit:mcuboot_update_agent Download retry OK for mcuboot 3
    2026-05-10 esp32s3-devkit:coremark Download retry OK for coremark 3
    2026-05-10 esp32s3-devkit:mbedtls Download retry OK for cJSON 3
    2026-05-13 olimex-stm32-p407:mqttc Download retry OK for mqttc 2
    2026-05-14 stm32h750b-dk:lvgl Download retry OK for lvgl 4
    2026-05-15 nrf52832-dk:sdc_nimble Download retry OK for nrfxlib 2
    2026-05-15 rv-virt:citest Download retry OK for cmocka 3
    2026-05-15 icicle:rpmsg-ch1 Download retry OK for open-amp 2
    2026-05-15 esp32-devkitc:wifi Download retry OK for cJSON 3
    2026-05-15 sim:wamr Download retry OK for coremark 3
    2026-05-15 canmv230:remote Download retry OK for libmetal 3
    2026-05-15 esp32-devkitc:mcuboot_update_agent Download retry OK for cJSON 2
    2026-05-15 verdin-mx8mp:rpmsg Download retry OK for open-amp 2
    2026-05-15 raspberrypi-4b:lvgl Download retry OK for lvgl 2
    2026-05-15 esp32c3-legacy-devkit:wifi Download retry OK for argtable3 2
    2026-05-15 gd32f450zk-eval:spilfsnsh Download retry OK for littlefs 2
    2026-05-17 esp32-devkitc:wifi_smp Download retry OK for argtable3 2
    2026-05-17 sim:rpproxy_uart Download retry OK for open-amp 3
    2026-05-17 gd32f470zk-eval:fmclfsnsh Download retry OK for littlefs 3
    2026-05-19 gd32f470zk-eval:fmclfsnsh Download retry OK for littlefs 2
    2026-05-19 sim:lvgl_fb Download retry OK for lvgl 2
    2026-05-20 stm32f103-minimum:adb Download retry OK for libuv 2
    2026-05-25 nrf52832-dk:mcuboot_app Download retry OK for mcuboot 3
    2026-05-25 sim:alsa Download retry OK for lame 2
    2026-05-26 spresense:rndis_smp Download retry OK for argtable3 2
    2026-05-31 esp32s2-saola-1:coremark Download retry OK for coremark 2
    2026-05-31 rv-virt:knetnsh64 Download retry OK for open-amp 3
    2026-05-31 qemu-armv8a:fb Download retry OK for dtc 3
    2026-05-31 gd32f470zk-eval:fmclfsnsh Download retry OK for littlefs 3
    2026-06-06 imx93-qsb:rpmsg Download retry OK for libmetal 2
    2026-06-06 esp32-lyrat:rtptools Download retry OK for argtable3 3
    2026-06-06 sim:tflm Download retry OK for tflite 3
    2026-06-07 sabre-6quad:netnsh Download retry OK for microADB 3
    2026-06-07 esp32s2-saola-1:wifi Download retry OK for argtable3 3
    2026-06-07 sim:rtptools Download retry OK for rtptools 3
    2026-06-07 esp32s2-kaluga-1:lvgl_ili9341 Download retry OK for lvgl 3
    2026-06-07 rv-virt:netnsh Download retry OK for argtable3 2
    2026-06-07 gd32f450zk-eval:fmclfsnsh Download retry OK for littlefs 3
    2026-06-07 esp32c3-legacy-devkit:wifi Download retry OK for cJSON 3
    2026-06-07 lckfb-szpi-esp32s3:fastboot_tcp Download retry OK for cJSON 3
    2026-06-11 nrf5340-dk:composite_cpuapp Download retry OK for argtable3 3

    (LLM Analysis of Download Failures)

    Do we have any cases of Download Retry failing after 4 attempts? Very few, it happens during a massive storm of GitHub Download Errors (Can we get compensated for Wasted GitHub Runners?)

    Date Target Build Log Cause
    2026-05-15 teensy-4.x:lua-4.1 Download retry failed for lua GitHub Incident
    2026-05-21 esp32s3-devkit:ble Download retry failed for argtable3 GitHub Incident?
    2026-06-02 nucleo-f446re:systemview Download retry failed for systemview Fixed here
    2026-06-08 sim:usbdev Download retry failed for libuv / argtable3 GitHub Incident

    Has our usage of GitHub Runners gone up, now that Compile Errors and Config Errors are getting retried? Nope, we are only using 10 Full-Time GitHub Runners for the past month, that's 40% of our quota of 25 Full-Time GitHub Runners:

    Image

    ESP-HAL-3rdParty might potentially fail due to git clone errors, right now it says "Retry Scheduled", we need to monitor:

    We saw NTFC Install Errors (git clone failed), so the NTFC Script has been updated to implement retry:

    $ git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-testing
    fatal: unable to access 'https://github.com/szafonimateusz-mi/nuttx-testing/': The requested URL returned error: 500

    Docker Login could also fail! This normally happens when we click "Re-run Failed Jobs" and All Jobs start spamming ghci.io at the same time, with unlimited concurrency. To fix this: Click "Re-run All Jobs" instead, which will do "Fetch Source > Select Builds" with limited concurrency. https://github.com/apache/nuttx-apps/actions/runs/25719743252/job/75518073144#step:7:10

    Run docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2
    Logging into ghcr.io...
    Error: Error response from daemon: Get "https://ghcr.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
    

    (More about Docker Login Retry)

    To see the above Download Retries: Just filter by "Error" in NuttX Build Monitor. More details:

    Image
  26. lupyuen commented on Apr 27, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions