Test 18 - Analyze Messages
Purpose
Summarize textual messages returned by the model runner (AlgoMarker) in the outputs. Useful to spot common error messages or unexpected status codes from the algorithm.
Required Inputs
WORK_DIR: working directory to place outputsSILENCE_RUN_OUTPUT_FILES_PATH: path to the silence-run output file produced by the algorithm, unless set to the special valueGENERATE(in which case this test will skip)
How to Run
What This Test Does
- If
SILENCE_RUN_OUTPUT_FILES_PATHis notGENERATE, the script scans the provided TSV/CSV of algorithm outputs, counts occurrences of each message (uses the last column as the message), and computes the percentage of total outputs for each message. - Outputs the sorted message counts to
${WORK_DIR}/outputs/messages.tsv. - If
SILENCE_RUN_OUTPUT_FILES_PATHequalsGENERATE, the test prints a message and skips processing.
Output Location
${WORK_DIR}/outputs/messages.tsv— columns: message, count, percent_of_total
How to Interpret Results
- Use the TSV to identify the most frequent messages returned by the algorithm. Messages with high frequency may indicate systematic errors or common success markers (e.g.,
<OK>). Investigate rare but critical error messages.
Troubleshooting
- If the script prints "No output files from AlgoMarker - skips", ensure
SILENCE_RUN_OUTPUT_FILES_PATHis set to the path of the algorithm output file and notGENERATE. - If parsing fails, inspect the input file for expected tab-separated columns and ensure the last column contains the message strings.
Files to inspect
${WORK_DIR}/outputs/messages.tsv