Project

General

Profile

Actions

action #156697

open

Make test variables traceable

Added by tinita 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2024-03-05
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Variables ending up in vars.json can come from job settings (database), worker settings and set_var() calls.
Sometimes it's hard to trace where a variable was set.
It would at least be nice to see if a variable was in vars.json at the beginning, or if it was set during the test.

Suggestions

  • Since %bmwqemu::vars is a tied hash, we can actually trace every change and find out the call stack
  • Log every call to set_var() with diag() (possibly depending on a job setting DEBUG_VARS
  • Save and upload the original vars.jsonseperately
  • Add the trace and timestamp for every set_var() call to the object and output that at the end via diag or upload it
  • Proof of Concept: https://github.com/os-autoinst/os-autoinst/pull/2468

Related issues 1 (0 open1 closed)

Related to openQA Project - action #157333: Log all job setting changes in autoinst-log.txtClosedokurz2024-03-15

Actions
Actions

Also available in: Atom PDF