This is an archive of the discontinued LLVM Phabricator instance.

[test] Add ability to expect timeouts
ClosedPublic

Authored by labath on Dec 15 2015, 7:54 AM.

Details

Summary

This adds ability to mark test that do not complete due to hangs, crashes, etc., as "expected",
to avoid flagging the build red for a known problem. Functionally, this extends the scope of the
existing expectedFailureXXX decorators to cover these states as well. Once this is in, I will
start replacing the magic list of failing tests in dosep.py with our regular annotations which
should hopefully make code simpler.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 42858.Dec 15 2015, 7:54 AM
labath retitled this revision from to [test] Add ability to expect timeouts.
labath updated this object.
labath added a reviewer: tfiala.
labath added a subscriber: lldb-commits.
tfiala accepted this revision.Dec 15 2015, 9:07 AM
tfiala edited edge metadata.

Looks good!

This revision is now accepted and ready to land.Dec 15 2015, 9:07 AM

Hey Pavel,

Change r255676 changed a few things that will require this patch to get updated. I think the main code change will be that ResultsFormatter._make_rerun_eligibility_key(self) has been renamed to ResultsFormatter._make_key(self). I folded the BasicResultsFormatter class into ResultsFormatter since any specialized results formatters still likely want to display the results summary output at the end. That key is now used in several places and they're not at all specific to rerun eligibility.

The rest of the differences are likely just line number changes as the new code here will just need to slide into different final spots in the now top-of-tree version of result_formatter.py.

Thanks, and sorry for the collision!

labath added a subscriber: labath.Dec 16 2015, 2:49 AM

No worries. I wanted to rename that function anyway, but then I
forgot, so it's good that you have reminded me. :)

This revision was automatically updated to reflect the committed changes.