Bug 15303 - AB-INT: sstatetests.SStateMirrors.test_cdn_mirror_qemu* failures
Summary: AB-INT: sstatetests.SStateMirrors.test_cdn_mirror_qemu* failures
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High normal
Target Milestone: 5.0 M2
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard: AB-INT
: 15253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-29 22:46 UTC by Alexandre Belloni
Modified: 2024-01-05 15:16 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Alexandre Belloni 2023-11-29 23:05:39 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6258/steps/23/logs/stdio
rocky9-ty-1

https://autobuilder.yoctoproject.org/typhoon/#/builders/85/builds/2314/steps/25/logs/stdio

This one has:

[Errno 32] Broken pipeTraceback (most recent call last):
  File "/home/pokybuild/yocto-worker/a-quick/build/bitbake/lib/bb/ui/knotty.py", line 647, in main
    ret, error = server.runCommand(["ping"])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pokybuild/yocto-worker/a-quick/build/bitbake/lib/bb/server/process.py", line 503, in runCommand
    self.connection.send(command)
  File "/home/pokybuild/yocto-worker/a-quick/build/bitbake/lib/bb/server/process.py", line 868, in send
    self._send(obj)
  File "/home/pokybuild/yocto-worker/a-quick/build/bitbake/lib/bb/server/process.py", line 847, in _send
    self.writer.send_bytes(obj)
  File "/home/pokybuild/yocto-worker/a-quick/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/multiprocessing/connection.py", line 199, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/home/pokybuild/yocto-worker/a-quick/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/multiprocessing/connection.py", line 410, in _send_bytes
    self._send(header + buf)
  File "/home/pokybuild/yocto-worker/a-quick/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/multiprocessing/connection.py", line 367, in _send
    n = write(self._handle, buf)
        ^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe
Comment 3 Alexandre Belloni 2023-11-29 23:10:17 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6248/steps/23/logs/stdio

Missing objects in the cache:
lzip_1.23.bb:do_collect_spdx_deps
tcl_8.6.13.bb:do_collect_spdx_deps
go-binary-native_1.20.10.bb:do_collect_spdx_deps
zip_3.0.bb:do_collect_spdx_deps
Comment 6 Alexander Kanavin 2023-11-30 16:18:57 UTC
*** Bug 15253 has been marked as a duplicate of this bug. ***
Comment 11 Alexander Kanavin 2023-12-12 13:00:41 UTC
Michael, I found a couple of CDN oddities that seem to be coming from infra rather than bitbake/oe-core code or tests:

1.
/srv/autobuilder/autobuilder.yocto.io/pub/sstate/universal/2d/29/sstate:go-cross-cortexa57:x86_64-poky-linux:1.20.12:r0:x86_64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst exists
but 
https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:x86_64-poky-linux:1.20.12:r0:x86_64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst does not

2. 
wget https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst

returns 504 gateway timeout (but not always!) while 

/srv/autobuilder/autobuilder.yocto.io/pub/sstate/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst

exists.
Comment 12 Alexander Kanavin 2023-12-12 13:03:28 UTC
akanavin@ubuntu2204-arm-1:~$ wget https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst
--2023-12-12 12:59:09--  https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 2a04:4e42::485, 2a04:4e42:200::485, 2a04:4e42:400::485, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|2a04:4e42::485|:443... connected.
HTTP request sent, awaiting response... 504 Gateway Timeout
Retrying.


akanavin@ubuntu2204-arm-1:~$ wget https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst
--2023-12-12 13:01:09--  https://cdn.jsdelivr.net/yocto/sstate/all/universal/2d/29/sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 2a04:4e42:400::485, 2a04:4e42:200::485, 2a04:4e42:600::485, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|2a04:4e42:400::485|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60192161 (57M) [application/octet-stream]
Saving to: ‘sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aarch64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7a339844f64b_populate_sysroot.tar.zst.2’

sstate:go-cross-cortexa57:aarch64-poky-linux:1.20.12:r0:aar 100%[=========================================================================================================================================>]  57.40M  58.9MB/s    in 1.0s
Comment 13 Michael Halstead 2023-12-13 19:04:02 UTC
The CDN didn't have sstate:go-cross-cortexa57:x86_64-poky-linux because the origin server wasn't serving it. https://origin.sstate.yoctoproject.org/all/universal/2d/29/sstate:go-cross-cortexa57:x86_64-poky-linux:1.20.12:r0:x86_64:11:2d291879552b44a099c36e9e85358f703a8b8d8c2c0c2b876a0c7 a339844f64b_populate_sysroot.tar.zst was a 404 as well. I checked the server and it had stale cache data for /srv/autobuilder/autobuilder.yocto.io/pub/sstate/universal/2d/29/

After forcing a refresh the file was available. I've disabled all special caching. The NFS metadata cache lasts for 300 seconds. Let's see if this happens again.
Comment 14 Alexander Kanavin 2023-12-13 19:10:13 UTC
Thanks! 

On my side, I'm going to add a test that runs the same presence checks against local nfs mounted cache, so when the whole test set completes, it becomes possible to establish what isn't in the local cache to begin with, and what failed to propagate to cdn.
Comment 15 Alexandre Belloni 2024-01-05 15:16:23 UTC
Closing as the remaining issues are tracked in 15335