Project

General

Profile

Actions

action #178177

closed

coordination #154768: [saga][epic][ux] State-of-art user experience for openQA

coordination #154771: [epic] Improved test developer user experience

Test ./t/21-needles.t fails for me in master branch but apparently not in circleCI

Added by okurz about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2025-03-03
Due date:
% Done:

0%

Estimated time:

Description

Observation

From prove -l t/21-needles.t I get

[12:17:02] ./t/21-needles.t .......................... 3/? t/data/openqa/webui/cache/needle-refs/fedora/0123456789abcdef0123456789abcdef01234567/needles/needle.json is not in a subdir of /tmp/k2BzPHTljL/21-needles/openqa/share/tests or /tmp/k2BzPHTljL/21-needles/openqa/tests at /home/okurz/local/os-autoinst/openQA/lib/OpenQA/WebAPI/Controller/File.pm line 35.

    #   Failed test '200 OK'
    #   at ./t/21-needles.t line 242.
    #          got: '403'
    #     expected: '200'

    #   Failed test 'content is similar'
    #   at ./t/21-needles.t line 242.
    #                   'Forbidden'
    #     doesn't match '(?^u:This is obviously a png file)'
    # Looks like you failed 2 tests of 3.

#   Failed test 'needledir set by jsonfile_in_temp_dir'
#   at ./t/21-needles.t line 244.
error: gpg failed to sign the data:
gpg: skipped "foo <foo@bar>": No secret key
[GNUPG:] INV_SGNR 9 foo <foo@bar>
[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key

fatal: failed to write commit object
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

    #   Failed test 'get needle json'
    #   at ./t/21-needles.t line 264.
    #          got: undef
    #     expected: 't/data/openqa/webui/cache/needle-refs/tmp/HEAD/needles/foo.json'
    # Looks like you failed 1 test of 1.

#   Failed test '_locate_needle_for_ref'
#   at ./t/21-needles.t line 267.
Invalid path at ./t/21-needles.t line 265.

#   Failed test 'no (unexpected) warnings (via END block)'
#   at /usr/lib/perl5/vendor_perl/5.26.1/Test/Builder.pm line 193.
# Got the following unexpected warnings:
#   1: t/data/openqa/webui/cache/needle-refs/fedora/0123456789abcdef0123456789abcdef01234567/needles/needle.json is not in a subdir of /tmp/k2BzPHTljL/21-needles/openqa/share/tests or /tmp/k2BzPHTljL/21-needles/openqa/tests at /home/okurz/local/os-autoinst/openQA/lib/OpenQA/WebAPI/Controller/File.pm line 35.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 9.
[12:17:02] ./t/21-needles.t .......................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/9 subtests

which is on commit 41634a22e


Related issues 2 (0 open2 closed)

Copied from openQA Project (public) - action #178174: Test ./t/16-utils-runcmd.t fails for me in master branch but apparently not in circleCIResolvedtinita2025-03-03

Actions
Copied to openQA Project (public) - action #178180: Test t/14-grutasks.t fails for me in master branch but apparently not in circleCIResolvedtinita2025-03-03

Actions
Actions #1

Updated by okurz about 2 months ago

  • Copied from action #178174: Test ./t/16-utils-runcmd.t fails for me in master branch but apparently not in circleCI added
Actions #2

Updated by okurz about 2 months ago

  • Copied to action #178180: Test t/14-grutasks.t fails for me in master branch but apparently not in circleCI added
Actions #3

Updated by tinita about 2 months ago

  • Status changed from New to Feedback
  • Assignee set to tinita

https://github.com/os-autoinst/openQA/pull/6241 t: Prevent git in tests use tester's ~/.gitconfig

Actions #4

Updated by okurz about 2 months ago

  • Target version changed from Tools - Next to Ready
Actions #5

Updated by okurz about 1 month ago

  • Parent task set to #154771
Actions #6

Updated by tinita about 1 month ago

  • Status changed from Feedback to Resolved
Actions #7

Updated by okurz about 1 month ago

  • Status changed from Resolved to New

that unfortunately did not fix it for me. I now realized that the original problem was triggered by me using

git rebase -x 'env OPENQA_TEST_TIMEOUT_SCALE_FACTOR=5 HEAVY=1 FULLSTACK=1 prove -l --timer --state=hot,fast,save' origin/master^

This can be simplified and still reproduces the problem:

prove -l --state=hot,fast,save

but one still needs to wait for t/21-needles.t to be executed. Further simplified I assume the problem is just triggered by

prove -l ./t/21-needles.t

so similar to #178180

Actions #8

Updated by tinita about 1 month ago

  • Status changed from New to Feedback

https://github.com/os-autoinst/openQA/pull/6254 Improve path handling for needles and OPENQA_BASEDIR

Actions #9

Updated by tinita about 1 month ago

  • Status changed from Feedback to Resolved

I assume the issue is fixed.

Actions

Also available in: Atom PDF