Project

General

Profile

Actions

action #88482

closed

coordination #58184: [saga][epic][use case] full version control awareness within openQA

coordination #80372: [epic] Cleanup vars.json as initial information container between openQA worker and isotovideo

Two absolute paths concatenated to form a default needle dir when PRODUCT_DIR/needles doesn't exist

Added by ilausuch about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-02-08
Due date:
% Done:

0%

Estimated time:
6.00 h

Description

Observation

Sometimes a job execution fails with this error

needles_dir not found: /var/lib/openqa/share/tests/opensuse/var/lib/openqa/share/tests/opensuse/products/opensuse/needles (check vars.json?) at /usr/lib/os-autoinst/needle.pm line 330.

Is concatenating two absolute paths (https://github.com/os-autoinst/os-autoinst/blob/adbb28bc61ce4f21a55d07399eac7d48badc6b6f/needle.pm#L328) when needles directory doesn't exist.

Reproduction

Remove the directory needles from /var/lib/openqa/share/tests/opensuse/products/opensuse

Acceptance criteria

  • AC1: Needles folder has a working default or aborts if PRODUCT_DIR/needles doesn't exist

Suggestions

  • Look into logic in needle.pm
  • Improve error message to reveal relevant variables instead of hinting at vars.json i.e. NEEDLES_DIR, CASEDIR and default_needles_dir
  • Log the missing PRODUCTDIR}/needles if this affects the default nedles folder to be used here

Work-around

  • Create a folder PRODUCTDIR}/needles

Related issues 1 (0 open1 closed)

Related to openQA Project - coordination #67723: [epic] Remote openQA worker fails to run tests from openqa-clone-custom-git-refspecResolvedokurz2021-03-18

Actions
Actions

Also available in: Atom PDF