Hi,
I have a CI/CD in GitLab which runs all swupdate tests once every week.
https://gitlab.com/toertel/docker-image-swupdate-contribute
Since about September 22 I see the problem that the CrapFileTest might
run endlessly. There is not a specific *_defconfig connected to this.
It seems to be random whether it will hang or not.
I ran "make V=1 test" to get an insight what might be going wrong.
When it hangs it looks like this:
[DEBUG] : SWUPDATE running : [read_module_settings] : No config
settings found for module versions
[TRACE] : SWUPDATE running : [listener_create] : creating socket at
/tmp/swupdateprog
[TRACE] : SWUPDATE running : [network_initializer] : Main loop daemon
[TRACE] : SWUPDATE running : [listener_create] : creating socket at
/tmp/sockinstctrl
[DEBUG] : SWUPDATE running : [read_module_settings] : No config
settings found for module download
[TRACE] : SWUPDATE running : [start_swupdate_subprocess] : Started
chunks_downloader with pid 19491 and fd 8
[TRACE] : SWUPDATE running : [network_thread] : Incoming network
request: processing...
[INFO ] : SWUPDATE started : Software Update started !
[TRACE] : SWUPDATE running : [network_initializer] : Software update started
[TRACE] : SWUPDATE running : [start_delta_downloader] : Starting
Internal process for downloading chunks
[ERROR] : SWUPDATE failed [0] ERROR cpio_utils.c : get_cpiohdr : 52 :
CPIO Format not recognized: magic not found
[ERROR] : SWUPDATE failed [0] ERROR cpio_utils.c : extract_cpio_header
: 732 : CPIO Header corrupted, cannot be parsed
[ERROR] : SWUPDATE failed [1] Image invalid or corrupted. Not installing ...
[TRACE] : SWUPDATE running : [network_initializer] : Main thread sleep again !
[INFO ] : No SWUPDATE running : Waiting for requests...
When it does not hang it finishes the test nicely like this.
[ERROR] : SWUPDATE failed [0] ERROR cpio_utils.c : get_cpiohdr : 52 :
CPIO Format not recognized: magic not found
[ERROR] : SWUPDATE failed [0] ERROR cpio_utils.c : extract_cpio_header
: 732 : CPIO Header corrupted, cannot be parsed
[ERROR] : SWUPDATE failed [1] Image invalid or corrupted. Not installing ...
[TRACE] : SWUPDATE running : [network_initializer] : Main thread sleep again !
[INFO ] : No SWUPDATE running : Waiting for requests...
[ERROR] : SWUPDATE failed [0] ERROR install_from_file.c : endupdate :
55 : SWUpdate *failed* !
[TRACE] : SWUPDATE running : [unlink_sockets] : unlink socket /tmp/swupdateprog
[TRACE] : SWUPDATE running : [unlink_sockets] : unlink socket /tmp/sockinstctrl
I cannot reproduce the problem when running the tests locally on my
PC. And I am lacking fantasy what could go wrong on the GitLab build
machine. It worked there nicely for years.
Has somebody seen something like that before?
Have there been recent changes in swupdate which could explain that?
Cheers
Mark