Spenserrrr commented on code in PR #59976:
URL: https://github.com/apache/spark/pull/59976#discussion_r4518441785
##########
python/pyspark/tests/test_worker.py:
##########
@@ -283,6 +285,46 @@ def test_init_response_precedes_output(self):
ser = CPickleSerializer()
self.assertEqual([ser._read_with_length(outfile) for _ in range(2)],
[2, 4])
self.assertEqual(read_int(outfile), SpecialLengths.METRICS_DATA)
+ metrics = json.loads(outfile.read(read_int(outfile)))
+ self.assertIn("bootTimestampMs", metrics)
+ self.assertIn("finishTimestampMs", metrics)
+ self.assertIn("initTimestampMs", metrics)
+ self.assertNotIn("pythonInitializationDurationMs", metrics)
Review Comment:
Removed the unused-key assertion; the boot/init/finish timestamp presence
checks remain.
Generated-by: Codex (GPT-6)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]