Project

General

Profile

Actions

action #120720

open

coordination #68794: [qe-core][functional][epic] rework postfail hooks

[qe-core] Use Utils::Logging::save_ulog to redefine upload_logs in opensusebasetest

Added by szarate over 1 year ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Refactor/Code Improvements
Target version:
-
Start date:
2022-11-18
Due date:
% Done:

0%

Estimated time:
Difficulty:
Sprint:
QE-Core: November Sprint 23 (Nov 15 - Dec 13)

Description

In order for us to shed some time when uploading logs, we can directly cat the logs to the serial console, using script_output and save the contents to the ulogs/ directory in the worker's pool directory, which os-autoinst will upload at the end of the test

This will allow us to save a lot of time and avoid problems with typing when the host is under heavy load.

Tasks

  • Modify save_and_upload_log and tar_and_upload_logs to use save_ulog instead of upload_logs
  • Allow a force_upload flag, so corner cases can be considered

Suggestions

Acceptance Criteria

  1. AC1: os-autoinst uploads the logs properly
  2. AC2: Binary files can be used/viewed properly (images, tar files, executables)
  3. AC3: Large files (500MB) can be uploaded too

Related issues 2 (0 open2 closed)

Related to openQA Tests - action #120723: [qe-core] Guarantee `show_tasks_in_blocked_state` will always be calledResolveddzedro2022-11-18

Actions
Copied to openQA Tests - action #120735: [qe-core] PoC: Decrease typing on `post_fail_hooks` log collectionResolveddvenkatachala2022-11-18

Actions
Actions

Also available in: Atom PDF