Project

General

Profile

Actions

Feature #77389

open
SZ SZ

ceph-mgr Unit Test coverage: Basic setup and teardown for all classes in the Mgr

Feature #77389: ceph-mgr Unit Test coverage: Basic setup and teardown for all classes in the Mgr

Added by Steven Zuraski 6 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Category:
ceph-mgr
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Iteration 1 of an iterative approach to introduce unit tests to a wider section of the Mgr. Up to this point, testing has been focused on deep coverage of classes. This approach aims to enable Unit Test creation from many people by providing scaffolding to create and destroy objects for each class.

After the scaffolding is in place, we can widely create tests that require little complexity (e.g. working around GIL issues) for many classes, aiming to cover large swaths of code in the mgr, before then focusing on deep coverage of each file. Bob is fantastic at writing these 'simple' tests, and can be leveraged to do so in a time efficient manner.

This tracker will handle the introduction of scaffolding and base tests where there hasn't been any added:

  1. Mgr
  2. DaemonServer
  3. DaemonPerfCounters
  4. MetricCollector
  5. OSDPerfMetricCollector
  6. MDSPerfMetricCollector
  7. DaemonHealthMetricCollector
  8. ThreadMonitor
  9. PyModuleRegistry
  10. PyModuleRunner
  11. PyOSDMap
  12. MgrClient
  13. MgrStandby
  14. StandbyPyModules
  15. MgrOpRequest
  16. PerfCounterInstance

Related issues 2 (1 open — 1 closed)

Related to mgr - Feature #76261: Continued ceph-mgr Unit Test coverage: ActivePyModulesNewSteven Zuraski

Actions
Related to mgr - Bug #72938: Improve unit-test coverage for ceph-mgr code ResolvedSteven Zuraski

Actions

SZ Updated by Steven Zuraski 6 months ago Actions #1

  • Related to Feature #76261: Continued ceph-mgr Unit Test coverage: ActivePyModules added

SZ Updated by Steven Zuraski 6 months ago Actions #2

  • Related to Bug #72938: Improve unit-test coverage for ceph-mgr code added

NM Updated by Nitzan Mordechai 6 months ago Actions #3

  • Tracker changed from Bug to Feature
  • Regression deleted (No)
  • Severity deleted (3 - minor)

SZ Updated by Steven Zuraski 3 months ago Actions #4

  • Pull request ID set to 71237
Actions

Also available in: PDF Atom