This is an archive of the discontinued LLVM Phabricator instance.

[dexter] Don't generate results files by default
ClosedPublic

Authored by Orlando on Feb 11 2022, 6:43 AM.

Details

Summary

Dexter saves various files to a new results directory each time it is run (including when it's run by lit tests) and there isn't a way to opt-out. This patch reconfigures the behaviour to be opt-in by removing the default --results-directory location. Now results are only saved if --results-directory is specified.

Diff Detail

Event Timeline

Orlando requested review of this revision.Feb 11 2022, 6:43 AM
Orlando created this revision.

LGTM with query; More restructuring to avoid more indentation would be nice, but here we are ._.

cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/clang-opt-bisect/clang-opt-bisect-results.cpp
13

Seeing rm -rf in any test makes me twitch; would we be able to explicitly delete each file in the results dir, then call rmdir? That at least allows for non-destructive-failures when %t points somewhere ever so slightly unexpected.

Orlando updated this revision to Diff 407879.Feb 11 2022, 7:40 AM
Orlando marked an inline comment as done.

+ addressed inline comment

cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/clang-opt-bisect/clang-opt-bisect-results.cpp
13

Like this?

LGTM with query; More restructuring to avoid more indentation would be nice, but here we are ._.

I agree, but I wanted to just stop the (disk-space) bleeding. It looks like some pickles are getting saved in there too (something else that should probably be looked into), so these results dirs get surprisingly large.

jmorse accepted this revision.Feb 11 2022, 7:42 AM
jmorse added inline comments.
cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/clang-opt-bisect/clang-opt-bisect-results.cpp
13

Yup; consider it damage limitation for when weird things happen.

This revision is now accepted and ready to land.Feb 11 2022, 7:42 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2022, 7:49 AM