This change adds an option --output-format=resultdb to allow llvm-lit generating JSON output for the test results, which can be better integrated with certain CI/CQ framework. This change does not alter the default behavior of llvm-lit when generating an output file.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Hi Haowei,
Can you change this to be a new type of report instead of changing an existing one?
Look at TimeTraceReport for the recipe. Maybe --resultdb-output and ResultDbReport are appropriate names for parameter/class name?
This way the change would be purely additive and I then would be okay landing this as-is, i.e., without tests and documentation. It would then be "your problem" if we (upstream) break this functionality. This is only holds if my fellow reviewers think this okay as well, of course.
I forgot to include the unit tests in the previous change, sorry about that. I was hoping to reuse the code instead of re-inventing the wheels but if adding a new type of report is what you strongly suggest, I can work on implementing that.
LGTM, I am happy with the patch: changes are now purely additive and include tests.
Please wait a week or so before landing to give others a chance to comment. Thanks! :)