You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "lupyuen (via GitHub)" <gi...@apache.org> on 2026/04/19 00:44:38 UTC

[PR] CI: Remove corrupted downloads for build retry [nuttx]

lupyuen opened a new pull request, #18763:
URL: https://github.com/apache/nuttx/pull/18763

   ## Summary
   
   We have implemented CI Build Retry for mitigating Download Failures. But right now it will reuse any Corrupted Downloads (instead of deleting them), which will cause CI Build Retry to fail repeatedly: https://github.com/apache/nuttx/actions/runs/24611381081/job/71966407518#step:10:627
   
   ```
   Ignored files: system/argtable3/v3.2.0.7402e6e.tar.gz
   gzip: stdin: not in gzip format
   make[3]: *** [Makefile:76: argtable3] Error 2
   ```
   
   This PR proposes to change `git clean -fd` to `git clean -xfdq`. This will remove any Corrupted Downloads, preventing their reuse for CI Build Retry:
   
   ```bash
   ## Simulate a corrupted download for argtable3
   $ tools/configure.sh qemu-armv8a/netnsh
   $ Downloading v3.2.0.7402e6e.tar.gz--argtable3
   ## Press Ctrl-C to stop the build
   
   ## `git clean -fd` won't remove the corrupted download 
   $ cd ../apps
   $ git clean -fd
   $ find . -name "v3.2.0.7402e6e.tar.gz" 
   ./system/argtable3/v3.2.0.7402e6e.tar.gz
   
   ## `git clean -xfdq` removes the corrupted download
   $ git clean -xfdq 
   $ find . -name "v3.2.0.7402e6e.tar.gz" 
   ## Corrupted download is deleted correctly
   ```
   
   `git clean -xfdq` is also found in the same testbuild script, so we are using it consistently:
   
   https://github.com/apache/nuttx/blob/12e8f92a282fac58e0dfff587ea3d9502e4804c0/tools/testbuild.sh#L286-L291
   
   ## Impact
   
   CI Build Retry will now work correctly, retrying any Failed Downloads, instead of reusing them.
   
   ## Testing
   
   We tested a Normal Build (without errors), since Download Failures are unpredictable and hard to simulate:
   - https://github.com/lupyuen18/nuttx/actions/runs/24617084017
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Remove corrupted downloads for build retry [nuttx]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #18763:
URL: https://github.com/apache/nuttx/pull/18763#issuecomment-4274935443

   @cederom All github.com downloads were failing really badly over the past 12 hours, not sure why. Even our NuttX Build Farm was affected, running on my Local PC outside GitHub Actions:
   
   <img width="1926" height="1658" alt="Screenshot 2026-04-19 at 7 50 40 AM" src="https://github.com/user-attachments/assets/b69d78e8-80d9-420a-9726-672f175eb453" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Remove corrupted downloads for build retry [nuttx]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen merged PR #18763:
URL: https://github.com/apache/nuttx/pull/18763


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Remove corrupted downloads for build retry [nuttx]

Posted by "cederom (via GitHub)" <gi...@apache.org>.
cederom commented on PR #18763:
URL: https://github.com/apache/nuttx/pull/18763#issuecomment-4274940195

   Thank you so much for keeping an eye @lupyuen !! =)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org