VirtualBox

Changeset 77653 in vbox


Ignore:
Timestamp:
Mar 11, 2019 2:03:37 PM (6 years ago)
Author:
vboxsync
Message:

vsheriff: Limit check for hanging testboxes to cHoursBack and testboxes which actually existing currently (which will avoid looking at testboxes which are gone for good years ago or are hanging for a while now), which avoids running into errors which prevent re-running the bad testbox checks at the end of the analysis run. This should finally make it work since the new failure rate is rather high and therefore there are usually too many non-categorized failures to make a decision. Also consider driver load failures as a sign of a bad testbox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r77645 r77653  
    427427        #
    428428        aidFailureReasons = [
     429            self.getFailureReason(self.ktReason_Host_DriverNotLoaded).idFailureReason,
    429430            self.getFailureReason(self.ktReason_Host_DriverNotUnloading).idFailureReason,
    430431            self.getFailureReason(self.ktReason_Host_DriverNotCompilable).idFailureReason,
     
    513514        cStatusTimeoutMins = 10;
    514515
    515         self.oDb.execute('SELECT idTestBox FROM TestBoxStatuses WHERE tsUpdated < (CURRENT_TIMESTAMP - interval \'%s minutes\')', (cStatusTimeoutMins,));
     516        self.oDb.execute('SELECT TestBoxStatuses.idTestBox\n'
     517                         '  FROM TestBoxStatuses, TestBoxes\n'
     518                         ' WHERE TestBoxStatuses.tsUpdated >= (CURRENT_TIMESTAMP - interval \'%s hours\')\n'
     519                         '   AND TestBoxStatuses.tsUpdated < (CURRENT_TIMESTAMP - interval \'%s minutes\')\n'
     520                         '   AND TestBoxStatuses.idTestBox = TestBoxes.idTestBox\n'
     521                         '   AND Testboxes.tsExpire = \'infinity\'::timestamp', (cHoursBack,cStatusTimeoutMins));
    516522        for idTestBox in self.oDb.fetchAll():
    517523            idTestBox = idTestBox[0];
     
    541547
    542548            except Exception as oXcpt:
    543                 rcExit = self.eprint(u'Error reseting testbox #%u (%s): %s\n' % (idTestBox, oTestBox.sName, oXcpt,));
     549                rcExit = self.eprint(u'Error resetting testbox #%u (%s): %s\n' % (idTestBox, oTestBox.sName, oXcpt,));
    544550
    545551        return rcExit;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette