rules_swift icon indicating copy to clipboard operation
rules_swift copied to clipboard

fatalError in swift_tests executed in RBE produce a trace/BPT trap and no logs right now

Open ed-irl opened this issue 10 months ago • 1 comments

If a test fatalErrors, it will kill the whole test runner without any logs. Bazel does correctly report a non-0 exit code at least.

In an RBE like BuildBuddy, this produces almost no useful output.

It would be good to wrap the test runner to handle a test process that exits unexpectedly in order to provide log output and other relevant debugging information from the failed test.

There's been a lot of work on the test runner code in rules_swift lately; I'd be interested in working on this but its not clear how such a change would align to the current work in this area. If anyone can give pointers on a design I'd appreciate the feedback.

ed-irl avatar Mar 13 '25 10:03 ed-irl

++, details on how this could be fixed here https://github.com/bazelbuild/rules_swift/issues/1211

keith avatar Jul 05 '25 17:07 keith