The GitHub Actions job "Required Checks" on 
texera.git/fix/scorer-metric-list-double-encode-6790 has failed.
Run started by GitHub user kz930 (triggered by kz930).

Head commit for run:
25bcf9db34c0bda8165b063fa77df5bd335bcbcb / kary zheng <[email protected]>
fix(MachineLearningScorer): splice metric_list verbatim instead of 
double-encoding

getSelectedMetrics() returned an EncodableString, so the Python template builder
re-encoded the whole already-quoted fragment as one string value:

    metric_list = ["'Accuracy','F1 Score'"]

i.e. a single malformed element instead of a real list. Every downstream
`if 'X' in metric_list` / `metrics_func[metric]` then failed to match (the
classification path hits a KeyError), so the Scorer produced wrong/empty output.

Changing the return type to a plain String makes the builder splice it verbatim:

    metric_list = ['Accuracy','F1 Score']

The method body is unchanged. Added a regression test asserting the verbatim
metric_list and that the metric names are not base64-re-encoded.

Closes #6790

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/29960979070

With regards,
GitHub Actions via GitBox

Reply via email to