action #170206
closedCircleCI failing: t/24-worker-engine.t: Use of uninitialized value $string size:S
Description
Observation¶
A test started to fail a few days ago, it seems to be consistent:
[09:52:39] t/24-worker-engine.t ...................................... 1/?
# Failed test 'no (unexpected) warnings (via done_testing)'
# at t/24-worker-engine.t line 549.
# Got the following unexpected warnings:
# 1: Use of uninitialized value $string in substitution (s///) at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess/CGroup.pm line 26.
# 2: Use of uninitialized value $string in substr at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess/CGroup.pm line 28.
# Looks like you failed 1 test of 13.
[09:52:39] t/24-worker-engine.t ...................................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13 subtests
Acceptance Criteria¶
- AC1: t/24-worker-engine.t consistently passes
Suggestions¶
- The failure seems to be 100% reproducible in all PR's
- Verify if e.g. dependency updates affect this case
- Bisect openQA in case there was a change that caused a regression
- Check Mojo/IOLoop/ReadWriteProcess upstream
Updated by livdywan 3 months ago
livdywan wrote in #note-2:
I'm taking a look. Given the issue is reproducible with a Tumbelweed container from 2024-06 I'm assuming this is not a recent dependency change. Trying older revisions of openQA git now.
- Easily reproducible with older revisions of openQA git from 2024-10.
- Also reproducible with different os-autoinst git revisions.
- No changes in https://github.com/openSUSE/Mojo-IOLoop-ReadWriteProcess since 2023-12
Relevant code: lib/Mojo/IOLoop/ReadWriteProcess/CGroup.pm#L26
Updated by livdywan 3 months ago · Edited
livdywan wrote in #note-3:
Relevant code: lib/Mojo/IOLoop/ReadWriteProcess/CGroup.pm#L26
More specifically _configure_cgroupv2 ends up with an undefined $cgroup_slice
aka $string
. In my container the file seems to contain 0::/
with no name=
in it. I wonder how this was not an issue before? 🤔
Updated by livdywan 3 months ago · Edited
- Status changed from In Progress to Workable
- Assignee deleted (
livdywan)
I tried to adapt the code to avoid ending up with a $cgroup_slice
which is not initialized but somehow couldn't find a way to check that grep contains a string.
Maybe there is something else that I'm missing? Putting it back in the queue for now.
Updated by tinita 3 months ago
- Status changed from In Progress to Feedback
https://github.com/os-autoinst/openQA/pull/6067 Avoid warning for undefined cgroup slice