A non-zero exit code was returned. This is expected if there are test failures. Error: exit status 123

We’re getting some unexpected failures on some specs being ran for one of our jobs. Here is our command:

mkdir -p ./reports/rspec
TEST_FILES=$(circleci tests glob “packages/*/spec/mailers”)
echo “$TEST_FILES” | circleci tests run --command=“xargs bundle $HEROKU_BUNDLER_VERSION exec parallel_rspec -n2” --verbose

All tests pass, but circleci is giving the following output with a failure:
DEBU[2023-09-25T17:19:25-05:00] A non-zero exit code was returned. This is expected if there are test failures.
DEBU[2023-09-25T17:19:25-05:00] ending execution
Error: exit status 123
Error: exit status 123

Wondering if there is a way I can further debug to see where the non-zero exit code comes from? Again, everything appears to be succeeding.

This is returned if the command within the --command parameter returns a non-zero exit code. Does exec parallel_rspec -n2 run a separate script? If yes, that’s where I’d suggest trying to add in some debugging and/or looking to see if there’s anything being output that might indicate a failure.

Does this happen intermittently? Or every time