Project

General

Profile

Actions

action #103422

closed

[sporadic] os-autoinst: 13-osutils.t:167 Failed test 'Exit code appear in log' in GHA size:M

Added by livdywan over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-11-30
Due date:
% Done:

0%

Estimated time:

Description

Observation

First seen on https://github.com/os-autoinst/os-autoinst/pull/1871#issuecomment-984670874:

8: [11:23:53] ./12-bmwqemu.t ........................... ok      914 ms ( 0.01 usr  0.00 sys +  0.82 cusr  0.09 csys =  0.92 CPU)
8: 
8:     #   Failed test 'Exit code appear in log'
8:     #   at ./13-osutils.t line 167.
8:     # STDERR:
8:     # [2021-12-02T11:23:54.401579Z] [debug] running `echo foo`
8:     # [2021-12-02T11:23:54.405060Z] [debug] Command `echo foo` terminated with 1
8:     #   foo
8:     # 
8:     # doesn't match:
8:     # (?^u:terminated with 0)
8:     # as expected
8:     # Looks like you failed 1 test of 10.
8: 
8: #   Failed test 'run_diag'
8: #   at ./13-osutils.t line 190.
8: # Looks like you failed 1 test of 9.
8: [11:23:54] ./13-osutils.t ........................... 
8: Dubious, test returned 1 (wstat 256, 0x100)
8: Failed 1/9 subtests 

Another failure in the same test, maybe related:
https://github.com/perlpunk/os-autoinst/runs/4408870749?check_suite_focus=true

8: runcmd 'rm image.qcow2' failed with exit code 1 at /opt/osutils.pm line 112.
8: # Tests were run but no plan was declared and done_testing() was not seen.
8: # Looks like your test exited with 255 just after 7.
8: [14:05:37] ./13-osutils.t ........................... 
8: Dubious, test returned 255 (wstat 65280, 0xff00)
8: All 7 subtests passed 

More occurrences:

I couldn't find another instance. What I did find was another failure that didn't fail CI in 14-isotovideo.t:128.

Acceptance criteria

  • AC1: Failure in 13-osutils.t fails CI
  • AC2: 13-osutils.t passes w/o failures

Suggestions

  • Confirm when 13-osutils.t started failing
  • Fix 13-osutils.t
  • Compare if 14-isotovideo.t and maybe other tests generally don't fail CI
  • Ensure that the pipeline fails if any tests fail

Related issues 4 (0 open4 closed)

Has duplicate openQA Project - action #103485: [sporadic] os-autoinst: flaky test t/13-osutils.tRejectedokurz2021-12-05

Actions
Copied to openQA Project - action #103467: [sporadic] os-autoinst: 14-isotovideo.t:133 'no fatal error recorded' size:MResolvedmkittler2021-11-30

Actions
Copied to openQA Project - action #103611: test failure: os-autoinst: 29-backend-driver.t:31 Failed test 'exit logged'Resolvedmkittler2021-11-30

Actions
Copied to openQA Project - action #103692: Only upgrade o3 workers if package checks are good, same as for o3 webui size:MResolvedmkittler2021-12-25

Actions
Actions

Also available in: Atom PDF