Project

General

Profile

Actions

coordination #37958

closed

[epic] self-tests in os-autoinst-distri-opensuse for impact on staging test schedule

Added by okurz almost 6 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2019-02-25
Due date:
2020-05-19
% Done:

100%

Estimated time:
(Total: 16.00 h)

Description

Motivation

Sometimes when a new test module is introduced – for example by new contributors which are mainly starting with new test modules and not changing existing ones – we forget in code review to think about if this module should be excluded from staging tests causing staging test failures, some frustration on side of SLE release managers and subsequently requests like #37826 which we should try to prevent because they make our life miserable. We should think about a way to prevent staging test breakage by unintentional introduction of new test modules into staging tests, e.g. using self-tests in os-autoinst-distri-opensuse. This test can have the additional benefit that we actually evaluate the test code before we deploy it to production where previously we had "trivial" failures but they could only be catched in production.

Acceptance criteria

  • AC1: travis CI tests on PRs fail if new test modules are introduced to staging tests unintentionally

Suggestions

  • Add a fitting openSUSE staging test vars.json to the repo for test purposes (could be copied from existing ones and stripped down to bare minimum what is needed or newly created)
  • Add a call with isotovideo _exit_after_schedule=1 to only evaluate the schedule and compare against a reference
  • Add instructions to update the reference file whenever a change to the staging tests is actually intended

Further details

It might sound counter-intuitive to use a blacklist for excluding test modules from staging tests (loadtest "…" unless is_staging;) and then define a whitelist for the test to check against but it might be a start towards #15132


Subtasks 5 (0 open5 closed)

action #48389: self-tests in os-autoinst-distri-opensuse executing a simple (staging) test using isotovideoResolvedokurz2019-02-25

Actions
action #48392: [functional][y][spike/research] self-tests in os-autoinst-distri-opensuse for impact on staging test scheduleResolvedybonatakis2019-02-252019-03-12

Actions
action #49064: [functional][y] Move SLES staging tests to use declarative scheduling mechanismResolvedybonatakis2019-03-122019-06-04

Actions
action #54311: [functional][y] Implement hint to trigger VR for staging in case modules used there are changed in the PRResolvedoorlov2019-07-162019-09-10

Actions
action #65432: [functional][y] test if schedules and test data files in the job group do exist in the os-autoinst/os-autoinst-distri-opensuse repoResolvedJERiveraMoya2020-04-082020-05-19

Actions

Related issues 2 (1 open1 closed)

Related to openQA Tests - coordination #15132: [saga][epic] Better structure of test plans in main.pmBlockedokurz2018-11-20

Actions
Copied from openQA Tests - action #36523: [functional][y][medium] self-tests for https://github.com/os-autoinst/os-autoinst-needles-opensuse/Resolvednicksinger2018-05-252018-07-17

Actions
Actions

Also available in: Atom PDF