More precise stdout capture#273
Conversation
PR Reviewer Guide 🔍(Review updated until commit 1070815)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 1070815
Previous suggestionsSuggestions up to commit bc47662
|
|
will fix some remaining tests soon. The changes should be ready to review now though. I want to deploy this today |
|
Persistent review updated to latest commit 1070815 |
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like
Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
User description
Each test invocation id now has its precise associated stdout which can be accurately compared across runs
This solves the problem with test fixtures printing non-deterministic stuff on stdout.
PR Type
Enhancement, Tests
Description
Introduce
test_stdout_tagfor distinct stdout markersUse new
$######...######$tag formatUpdate regex and parsing logic to extract output
Adjust tests to expect new stdout tags
Changes walkthrough 📝
instrument_existing_tests.py
Add stdout tagging and print enhancementscodeflash/code_utils/instrument_existing_tests.py
test_stdout_tagvariable$######tag formatparse_test_output.py
Enhance test output parsing logiccodeflash/verification/parse_test_output.py
test_instrument_all_and_run.py
Update instrument_all_and_run teststests/test_instrument_all_and_run.py
$######tagstest_instrument_tests.py
Adjust instrumentation test templatestests/test_instrument_tests.py
test_stdout_tag$######tag formattest_instrumentation_run_results_aiservice.py
Revise aiservice instrumentation stdout tagstests/test_instrumentation_run_results_aiservice.py
test_stdout_tag$######tag formattest_test_runner.py
Fix spacing in test_runner assertiontests/test_test_runner.py