Discovery ignores plugin errors

Bug #1474765 reported by Marc Koderer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Medium
Marc Koderer

Bug Description

In case of an error in a Tempest plugin code the discovery will simply
ignore it. This can be problematic in the gate since it could be possible
that tests are skipped without any notice.

Revision history for this message
Marc Koderer (m-koderer) wrote :

Steps to reproduce:

# Defined plugin class with missing function
class ManilaTempestPlugin(plugins.TempestPlugin):
     pass

function "load_tests" ignores plugin even though it's specified in setup.cfg.

Changed in tempest:
assignee: nobody → Marc Koderer (m-koderer)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/202012

Changed in tempest:
status: New → In Progress
Changed in tempest:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/202012
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=25319f6fa08c628b310ac6468bdc5db827b1b81b
Submitter: Jenkins
Branch: master

commit 25319f6fa08c628b310ac6468bdc5db827b1b81b
Author: Marc Koderer <email address hidden>
Date: Wed Jul 15 11:28:38 2015 +0200

    Stop test execution in case of an plugin error

    Without setting the on_load_failure_callback parameter
    failures are ignored (only logged). This can be critical in
    gate jobs.

    Change-Id: I820784d759d6dc60ed86d29d90ef900207d848ad
    Closes-Bug: #1474765

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.