Project

General

Profile

Actions

action #156697

open

Make test variables traceable

Added by tinita about 2 months ago. Updated about 2 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 #1

Updated by tinita about 2 months ago

  • Description updated (diff)
Actions #2

Updated by tinita about 2 months ago

  • Category set to Feature requests
Actions #3

Updated by okurz about 2 months ago

  • Target version set to future

that's a neat idea and could help developers in the future.

Actions #5

Updated by okurz about 2 months ago

  • Related to action #157333: Log all job setting changes in autoinst-log.txt added
Actions

Also available in: Atom PDF