This is an archive of the discontinued LLVM Phabricator instance.

test_suite: Add a --just-submit flag and mode
AbandonedPublic

Authored by MatzeB on May 4 2016, 6:05 PM.

Details

Summary

Add a --just-submit=xxx.json option to "lnt runtest test-suite". When this option is used the cmake/make/lit steps are skipped and just the submitted xxx.json lit result is submitted to the lnt server.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 56228.May 4 2016, 6:05 PM
MatzeB retitled this revision from to test_suite: Add a --just-submit flag and mode.
MatzeB updated this object.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
MatzeB added a comment.May 4 2016, 6:16 PM

I should also mention that this commit rewrites some sketchy detection of test compilation failures which would previously look for .test files - unfortuntately those exist even if the compilation failed. Instead I look for the newly introduced 'NOEXE' flag from the lit output now. (I did this as part of this patch because I wanted to get rid of any filesystem activity outside of reading the xxx.json file in --just-submit mode).

cmatthews edited edge metadata.May 4 2016, 6:20 PM

I agree with the updated test parsing logic, that is much better.

This flag seems to be redundant to the "lnt submit" feature which is supposed to do exactly the same thing. I would guess that does not work with the lit json directly though? It seems to me that would be a better place for this functionality, otherwise we have lnt runtest test-suite --just-submit <json> and lnt submit <json> which do the same thing to different kinds of json files.

MatzeB added a comment.May 4 2016, 6:24 PM

I agree with the updated test parsing logic, that is much better.

This flag seems to be redundant to the "lnt submit" feature which is supposed to do exactly the same thing. I would guess that does not work with the lit json directly though? It seems to me that would be a better place for this functionality, otherwise we have lnt runtest test-suite --just-submit <json> and lnt submit <json> which do the same thing to different kinds of json files.

Yes that sounds like the better approach in terms of usability. I just have to find a way to refactor this because it currently relies on some code from test-suite.py/builtintest.py to fill in some information about the compiler and run orders which isn't available in the lit output.

MatzeB abandoned this revision.Jun 15 2017, 5:35 PM

Abandoning this in favor of D34132