You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/10/12 00:27:48 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #34233: [SPARK-36965][PYTHON] Extend python test runner by logging out the temp output files
HyukjinKwon commented on a change in pull request #34233:
URL: https://github.com/apache/spark/pull/34233#discussion_r726674423
##########
File path: python/run-tests.py
##########
@@ -98,10 +103,12 @@ def run_individual_python_test(target_dir, test_name, pyspark_python):
]
env["PYSPARK_SUBMIT_ARGS"] = " ".join(spark_args)
- LOGGER.info("Starting test(%s): %s", pyspark_python, test_name)
+ output_prefix = get_valid_filename(pyspark_python + "__" + test_name + "__").lstrip("_")
+ per_test_output = tempfile.NamedTemporaryFile(prefix=output_prefix, suffix=".log")
+ LOGGER.info(
+ "Starting test(%s): %s (temp output: %s)", pyspark_python, test_name, per_test_output.name)
Review comment:
maybe just a matter of preference .. but maybe just printing out file name alone since it's pretty obvious .. ?
```suggestion
"Starting test(%s): %s (%s)", pyspark_python, test_name, per_test_output.name)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org