Project

General

Profile

Actions

action #174235

closed

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #130414: [epic] Improved code coverage in os-autoinst

Cover code of os-autoinst path script/os-autoinst-openvswitch fully (statement coverage) size:S

Added by okurz 4 months ago. Updated 20 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2024-10-08
Due date:
% Done:

0%

Estimated time:

Description

Acceptance criteria

  • AC1: the path script/os-autoinst-openvswitch is listed in codecov.yml under "fully_covered"

Suggestions


Related issues 3 (0 open3 closed)

Copied from openQA Project (public) - action #174232: Cover code of os-autoinst path script/dewebsockify fully (statement coverage) size:SResolvedrobert.richardson2025-01-13

Actions
Copied to openQA Project (public) - action #174238: Cover code of os-autoinst path script/vnctest fully (statement coverage) size:SResolvedybonatakis2024-10-08

Actions
Copied to openQA Project (public) - action #178963: Regression in script/os-autoinst-openvswitch auto_review:"Too few arguments for subroutine 'OVS::_set_ip'":retryResolvedokurz

Actions
Actions #1

Updated by okurz 4 months ago

  • Copied from action #174232: Cover code of os-autoinst path script/dewebsockify fully (statement coverage) size:S added
Actions #2

Updated by okurz 4 months ago

  • Copied to action #174238: Cover code of os-autoinst path script/vnctest fully (statement coverage) size:S added
Actions #3

Updated by okurz 4 months ago

  • Target version changed from Ready to Tools - Next
Actions #4

Updated by okurz 4 months ago

  • Target version changed from Tools - Next to future
Actions #5

Updated by okurz 4 months ago

  • Target version changed from future to Ready
Actions #6

Updated by gpuliti 2 months ago

  • Assignee set to gpuliti
Actions #7

Updated by gpuliti 2 months ago

  • Status changed from Workable to In Progress
Actions #8

Updated by gpuliti about 2 months ago ยท Edited

I started the work extracting the subroutine of the scripts into a module inside OpenQA dir following what have been done for #174232. After discussing it with in slack with oliver I've switch to another method of covering scripts and following what's have been done with #174238.

I'm now encounter this error t/41-openswitch.t .. org.freedesktop.DBus.Error.AccessDenied: Request to own name refused by policy I think something needs to be run first before executing the tests.

Actions #9

Updated by gpuliti about 2 months ago

I've remove the error by change to a DBUS->session, but now I get Waiting for bridge 'br0' to be created and configured...

Actions #10

Updated by gpuliti about 2 months ago

Opened a not ready draft pull request: https://github.com/os-autoinst/os-autoinst/pull/2642

Actions #11

Updated by gpuliti about 2 months ago

  • Status changed from In Progress to Workable

Moved to workable due to the fact that I'm now mainly working on #162035

Actions #12

Updated by gpuliti about 2 months ago

  • Assignee deleted (gpuliti)

The first approach I had was to extract from the script subroutines and create a new module as utility of openQA (like #174232), but after conversations with the team we decide that it's more reliable to follow what have been done in #174238 and make the original script importable.

I've done some changes here https://github.com/os-autoinst/os-autoinst/pull/2642 but it is really WIP.

I'm removing me from the assignee due to vacation period.

Actions #13

Updated by gpuliti about 1 month ago

  • Assignee set to gpuliti
Actions #14

Updated by okurz about 1 month ago

  • Priority changed from Low to Normal
Actions #15

Updated by gpuliti about 1 month ago

  • Status changed from Workable to In Progress
Actions #16

Updated by openqa_review about 1 month ago

  • Due date set to 2025-03-14

Setting due date based on mean cycle time of SUSE QE Tools

Actions #17

Updated by gpuliti about 1 month ago

Open a new pr: https://github.com/os-autoinst/os-autoinst/pull/2673

mainly thing on how to mock and test, also extract the package into a new module.

Actions #18

Updated by gpuliti about 1 month ago

  • Copied to action #178204: Reduce test start time on openqa.suse.de size:S added
Actions #19

Updated by gpuliti about 1 month ago

  • Copied to deleted (action #178204: Reduce test start time on openqa.suse.de size:S)
Actions #20

Updated by gpuliti about 1 month ago

based on https://app.codecov.io/gh/os-autoinst/os-autoinst/pull/2673/indirect-changes ~17% has been covered, but I think there are some problems with line 239 because the script stops during the call of $bus->export_service("org.opensuse.os_autoinst.switch") maybe I need to mock it

Actions #21

Updated by gpuliti about 1 month ago

  • Status changed from In Progress to Workable
Actions #22

Updated by gpuliti about 1 month ago

  • Status changed from Workable to In Progress
Actions #24

Updated by gpuliti 20 days ago

  • Status changed from In Progress to Resolved

Merged

Actions #25

Updated by okurz 20 days ago

  • Due date deleted (2025-03-14)
Actions #26

Updated by okurz 19 days ago

  • Copied to action #178963: Regression in script/os-autoinst-openvswitch auto_review:"Too few arguments for subroutine 'OVS::_set_ip'":retry added
Actions

Also available in: Atom PDF