JorgeGzm commented on PR #16665:
URL: https://github.com/apache/nuttx/pull/16665#issuecomment-3119654342

   > xedge-deps
   
   I don't know exactly what is happening. When I test the "make xedge-deps" 
command directly on my machine, I need to comment out the routines in 
**apps/netutils/xedge/makefile:**
   
   ```
   #include $(APPDIR)/Make.defs
   #include $(APPDIR)/Application.mk
   ```
   
   I compiled the routine that the CI is failing on, and on my local PC the 
download routine does not fail.
   
   ```bash
   user:~/nuttxspace/apps/netutils/xedge$ make xedge-deps
   # 
############################################################################
   # Config and Fetch xedge
   # 
############################################################################
   Downloading BAS from hash 9f74a2f778b002ad8441471b8a7a5b13172dbe76...
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   100 3867k    0 3867k    0     0  3999k      0 --:--:-- --:--:-- --:--:-- 
16.8M
   Downloading BAS-Resources from hash 
227a4b998300fa4cfde871dc7dac92c09e1636c2...
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   100  813k    0  813k    0     0   951k      0 --:--:-- --:--:-- --:--:-- 
24.4M
   # 
############################################################################
   # Library Configuration
   # 
############################################################################
   Creating XedgeZip.c
   ```
   
   When I list the local folder, I can see that the files were actually 
downloaded:
   
   ```bash
   user:~/nuttxspace/apps/netutils/xedge$ ls
   BAS  BAS-Resources  Kconfig  Make.defs  Makefile
   ```
   During the build process, I don't encounter any failures either:
   
   ```bash
   nuttx$ export 
PATH=$PATH:/home/user/Downloads/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin
   user:~/nuttxspace/nuttx$ make distclean -j
   user:~/nuttxspace/nuttx$ ./tools/configure.sh qemu-armv8a:xedge_demo
   user:~/nuttxspace/nuttx$ make -j
   ...
   LD: nuttx
   CP: nuttx.hex
   CP: nuttx.bin
   ```
   
   Based on the failure logs, the errors seem to be occurring in the `echo` and 
`unzip` routines. I'm not sure if this error is actually on my side or if it's 
a CI environment issue. The download works correctly on my local machine.
   
   ```makefile
   file: apps/netutils/xedge/makefile
   56    if [ ! -d $(BAS_UNPACKNAME) ]; then \
   57        echo "Downloading BAS from hash $(BAS_HASH)..."; \
   58        curl -f -L $(BAS_ZIP_URL) -o bas-temp.zip || \
   59        (echo "Error downloading BAS"; exit 1); \
   60        unzip -q bas-temp.zip; \
   61        mv BAS-$(BAS_HASH) $(BAS_UNPACKNAME); \
   62        rm -f bas-temp.zip; \
   63    fi
   ```
   
   Since the same makefile works locally but fails in CI, I suspect there may 
be some environment differences I'm not accounting for. What would you 
recommend I investigate to identify and resolve this issue? 


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to