amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
260 stars 51 forks source link

Benchmark results report doesn't support `tabulate` on Windows. #307

Open cheqianh opened 1 year ago

cheqianh commented 1 year ago

When running below on the GHA Windows runner.

python ./amazon/ionbenchmark/ion_benchmark_cli.py compare ./tests/benchmark_sample_data/compare/cats_baseline.ion ./tests/benchmark_sample_data/compare/cats_baseline.ion --fail

It throws

UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-64: character maps to <undefined>

We disabled log output table for Windows.

Detailed code, see - https://github.com/amazon-ion/ion-python/blob/master/amazon/ionbenchmark/ion_benchmark_cli.py#L115