{"receipt_id":"agent1-1","seq":1,"branch_id":"agent1","kind":"command","cmd":"git ls-files -z","path":null,"exit_code":0,"stdout_tail":"c/memray/reporters/assets/common.test.js\u0000src/memray/reporters/assets/flamegraph.js\u0000src/memray/reporters/assets/flamegraph_common.js\u0000src/memray/reporters/assets/table.js\u0000src/memray/reporters/assets/temporal_flamegraph.js\u0000src/memray/reporters/flamegraph.py\u0000src/memray/reporters/frame_tools.py\u0000src/memray/reporters/stats.py\u0000src/memray/reporters/summary.py\u0000src/memray/reporters/table.py\u0000src/memray/reporters/templates/__init__.py\u0000src/memray/reporters/templates/assets/.gitattributes\u0000src/memray/reporters/templates/assets/flamegraph.css\u0000src/memray/reporters/templates/assets/flamegraph.js\u0000src/memray/reporters/templates/assets/flamegraph_common.js\u0000src/memray/reporters/templates/assets/table.css\u0000src/memray/reporters/templates/assets/table.js\u0000src/memray/reporters/templates/assets/temporal_flamegraph.js\u0000src/memray/reporters/templates/base.html\u0000src/memray/reporters/templates/classic_base.html\u0000src/memray/reporters/templates/flamegraph.html\u0000src/memray/reporters/templates/table.html\u0000src/memray/reporters/templates/temporal_flamegraph.html\u0000src/memray/reporters/transform.py\u0000src/memray/reporters/tree.css\u0000src/memray/reporters/tree.py\u0000src/memray/reporters/tui.css\u0000src/memray/reporters/tui.py\u0000src/vendor/libbacktrace/.gitignore\u0000src/vendor/libbacktrace/Isaac.Newton-Opticks.txt\u0000src/vendor/libbacktrace/LICENSE\u0000src/vendor/libbacktrace/Makefile.am\u0000src/vendor/libbacktrace/Makefile.in\u0000src/vendor/libbacktrace/README.md\u0000src/vendor/libbacktrace/aclocal.m4\u0000src/vendor/libbacktrace/alloc.c\u0000src/vendor/libbacktrace/allocfail.c\u0000src/vendor/libbacktrace/allocfail.sh\u0000src/vendor/libbacktrace/atomic.c\u0000src/vendor/libbacktrace/backtrace-supported.h.in\u0000src/vendor/libbacktrace/backtrace.c\u0000src/vendor/libbacktrace/backtrace.h\u0000src/vendor/libbacktrace/btest.c\u0000src/vendor/libbacktrace/compile\u0000src/vendor/libbacktrace/config.guess\u0000src/vendor/libbacktrace/config.h.in\u0000src/vendor/libbacktrace/config.sub\u0000src/vendor/libbacktrace/config/enable.m4\u0000src/vendor/libbacktrace/config/lead-dot.m4\u0000src/vendor/libbacktrace/config/libtool.m4\u0000src/vendor/libbacktrace/config/ltoptions.m4\u0000src/vendor/libbacktrace/config/ltsugar.m4\u0000src/vendor/libbacktrace/config/ltversion.m4\u0000src/vendor/libbacktrace/config/lt~obsolete.m4\u0000src/vendor/libbacktrace/config/multi.m4\u0000src/vendor/libbacktrace/config/override.m4\u0000src/vendor/libbacktrace/config/unwind_ipinfo.m4\u0000src/vendor/libbacktrace/config/warnings.m4\u0000src/vendor/libbacktrace/configure\u0000src/vendor/libbacktrace/configure.ac\u0000src/vendor/libbacktrace/debuginfod_support.h\u0000src/vendor/libbacktrace/dwarf.c\u0000src/vendor/libbacktrace/edtest.c\u0000src/vendor/libbacktrace/edtest2.c\u0000src/vendor/libbacktrace/elf.c\u0000src/vendor/libbacktrace/fileline.c\u0000src/vendor/libbacktrace/filenames.h\u0000src/vendor/libbacktrace/filetype.awk\u0000src/vendor/libbacktrace/install-debuginfo-for-buildid.sh.in\u0000src/vendor/libbacktrace/install-sh\u0000src/vendor/libbacktrace/instrumented_alloc.c\u0000src/vendor/libbacktrace/internal.h\u0000src/vendor/libbacktrace/libtool.m4\u0000src/vendor/libbacktrace/ltmain.sh\u0000src/vendor/libbacktrace/ltoptions.m4\u0000src/vendor/libbacktrace/ltsugar.m4\u0000src/vendor/libbacktrace/ltversion.m4\u0000src/vendor/libbacktrace/lt~obsolete.m4\u0000src/vendor/libbacktrace/macho.c\u0000src/vendor/libbacktrace/missing\u0000src/vendor/libbacktrace/mmap.c\u0000src/vendor/libbacktrace/mmapio.c\u0000src/vendor/libbacktrace/move-if-change\u0000src/vendor/libbacktrace/mtest.c\u0000src/vendor/libbacktrace/nounwind.c\u0000src/vendor/libbacktrace/pecoff.c\u0000src/vendor/libbacktrace/posix.c\u0000src/vendor/libbacktrace/print.c\u0000src/vendor/libbacktrace/read.c\u0000src/vendor/libbacktrace/simple.c\u0000src/vendor/libbacktrace/sort.c\u0000src/vendor/libbacktrace/state.c\u0000src/vendor/libbacktrace/stest.c\u0000src/vendor/libbacktrace/test-driver\u0000src/vendor/libbacktrace/test_format.c\u0000src/vendor/libbacktrace/testlib.c\u0000src/vendor/libbacktrace/testlib.h\u0000src/vendor/libbacktrace/ttest.c\u0000src/vendor/libbacktrace/unittest.c\u0000src/vendor/libbacktrace/unknown.c\u0000src/vendor/libbacktrace/xcoff.c\u0000src/vendor/libbacktrace/xztest.c\u0000src/vendor/libbacktrace/ztest.c\u0000src/vendor/libbacktrace_2446c66076480ce07a6bd868badcbceb3eeecc2e_debuginfod_patch.diff\u0000src/vendor/libbacktrace_2446c66076480ce07a6bd868badcbceb3eeecc2e_patch.diff\u0000src/vendor/regenerate_libbacktrace.sh\u0000tests/__init__.py\u0000tests/conftest.py\u0000tests/integration/__init__.py\u0000tests/integration/misbehaving_extension/__init__.py\u0000tests/integration/misbehaving_extension/misbehaving.cpp\u0000tests/integration/misbehaving_extension/setup.py\u0000tests/integration/multithreaded_extension/__init__.py\u0000tests/integration/multithreaded_extension/main.py\u0000tests/integration/multithreaded_extension/setup.py\u0000tests/integration/multithreaded_extension/testext.cpp\u0000tests/integration/native_extension/main.py\u0000tests/integration/native_extension/native_ext.c\u0000tests/integration/native_extension/setup.py\u0000tests/integration/rpath_extension/ext.c\u0000tests/integration/rpath_extension/setup.py\u0000tests/integration/rpath_extension/sharedlibs/sharedlib.c\u0000tests/integration/test_api.py\u0000tests/integration/test_attach.py\u0000tests/integration/test_extensions.py\u0000tests/integration/test_greenlet.py\u0000tests/integration/test_ipython.py\u0000tests/integration/test_main.py\u0000tests/integration/test_native_tracking.py\u0000tests/integration/test_processes.py\u0000tests/integration/test_socket.py\u0000tests/integration/test_threads.py\u0000tests/integration/test_tracing.py\u0000tests/integration/test_tracking.py\u0000tests/test_utils.py\u0000tests/unit/__init__.py\u0000tests/unit/__snapshots__/test_tree_reporter.ambr\u0000tests/unit/__snapshots__/test_tui_reporter.ambr\u0000tests/unit/conftest.py\u0000tests/unit/test_allocation_lifetime_aggregator.py\u0000tests/unit/test_attach.py\u0000tests/unit/test_cli.py\u0000tests/unit/test_flamegraph_reporter.py\u0000tests/unit/test_frame_tools.py\u0000tests/unit/test_high_water_mark_aggregator.py\u0000tests/unit/test_highwatermark_command.py\u0000tests/unit/test_reader.py\u0000tests/unit/test_stats_reporter.py\u0000tests/unit/test_summary_reporter.py\u0000tests/unit/test_table_reporter.py\u0000tests/unit/test_templates.py\u0000tests/unit/test_tracker.py\u0000tests/unit/test_transform_reporter.py\u0000tests/unit/test_tree_reporter.py\u0000tests/unit/test_tui_reporter.py\u0000tests/utils.py\u0000valgrind.supp\u0000webpack.config.js\u0000","stderr_tail":"","stdout_sha256":"fb203cd2b77a4df44c19482b42f0b7149ed30108799b0558344ac7adf62cfb34","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-1.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:27.930869Z","duration_s":0.003946,"timed_out":false,"image_before":"99388c46-9f5b-4281-8c76-ba0055b0d66c","image_after":"47b9b4ff-e540-40b2-8d7f-98805b8e66ec","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-2","seq":2,"branch_id":"agent1","kind":"command","cmd":"python3 -c \"import sys; print(sys.flags); print('isolated:', sys.flags.isolated)\"","path":null,"exit_code":0,"stdout_tail":"sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0, warn_default_encoding=0, int_max_str_digits=-1)\nisolated: 0\n","stderr_tail":"","stdout_sha256":"4ca823bb1d2e5f68f0a37e2c42c612fcb3671e98adb81c71420e81b6f2e7e964","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-2.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:37.847689Z","duration_s":0.014192999999999999,"timed_out":false,"image_before":"47b9b4ff-e540-40b2-8d7f-98805b8e66ec","image_after":"4acecf15-6d8e-4fa5-ab81-a4c83281bd8c","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-3","seq":3,"branch_id":"agent1","kind":"command","cmd":"python3 -I -c \"import sys; print(sys.flags); print('isolated:', sys.flags.isolated)\"","path":null,"exit_code":0,"stdout_tail":"sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=1, no_site=0, ignore_environment=1, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=1, dev_mode=False, utf8_mode=0, warn_default_encoding=0, int_max_str_digits=-1)\nisolated: 1\n","stderr_tail":"","stdout_sha256":"a9a0443e7bb279db9537e94db62cfd235f90a0e0d18a398f8d13b39123447277","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-3.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:39.989933Z","duration_s":0.013196,"timed_out":false,"image_before":"4acecf15-6d8e-4fa5-ab81-a4c83281bd8c","image_after":"6caed1a3-49a0-431a-b18e-52c1c13ca55c","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-4","seq":4,"branch_id":"agent1","kind":"command","cmd":"python3 -P -c \"import sys; print(sys.flags); print('isolated:', sys.flags.isolated)\"","path":null,"exit_code":2,"stdout_tail":"","stderr_tail":"Unknown option: -P\nusage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...\nTry `python -h' for more information.\n","stdout_sha256":"2707d2fe7da995965373fa2cc53eaa24821a184e91ad945bb169d258f82892a1","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-4.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:42.578520Z","duration_s":0.003232,"timed_out":false,"image_before":"6caed1a3-49a0-431a-b18e-52c1c13ca55c","image_after":"3d7b8b15-0437-4b6b-9714-dda820f35e9b","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-5","seq":5,"branch_id":"agent1","kind":"command","cmd":"python3 --version","path":null,"exit_code":0,"stdout_tail":"Python 3.10.19\n","stderr_tail":"","stdout_sha256":"e037f6bbc1345bfeb25f7f65af15b4128271112c65eacce430a134e71682a774","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-5.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:44.487125Z","duration_s":0.003241,"timed_out":false,"image_before":"3d7b8b15-0437-4b6b-9714-dda820f35e9b","image_after":"c48b20f9-b80c-4561-bcc2-0e034b9ee05a","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-6","seq":6,"branch_id":"agent1","kind":"command","cmd":"python3 -c \"import sys; print(sys.version_info)\"","path":null,"exit_code":0,"stdout_tail":"sys.version_info(major=3, minor=10, micro=19, releaselevel='final', serial=0)\n","stderr_tail":"","stdout_sha256":"66f34c69e18abe518069ce4491ced0064dccf9d9ece5aae80f352937974f368e","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-6.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:46.488703Z","duration_s":0.013895,"timed_out":false,"image_before":"c48b20f9-b80c-4561-bcc2-0e034b9ee05a","image_after":"0f510046-5c7a-468f-a8b8-3ebbc0e090fa","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-7","seq":7,"branch_id":"agent1","kind":"command","cmd":"python3 -c \"import sys; print('has isolated:', hasattr(sys.flags, 'isolated')); print('has dev_mode:', hasattr(sys.flags, 'dev_mode'))\"","path":null,"exit_code":0,"stdout_tail":"has isolated: True\nhas dev_mode: True\n","stderr_tail":"","stdout_sha256":"a9bd0cbdbebf47fdf9d57292387955ec8bbf46f88aa970236819ac91801d53e1","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-7.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:48.523267Z","duration_s":0.013827,"timed_out":false,"image_before":"0f510046-5c7a-468f-a8b8-3ebbc0e090fa","image_after":"cd9aed71-f2b8-450d-ab0d-9dd80d0187dc","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-8","seq":8,"branch_id":"agent1","kind":"write","cmd":"/opt/receipts-12eb0abb1d594f51961a2ec3a3909a37/bin/busybox sh -c 'mkdir -p /memray/src/memray/commands && cp /opt/receipts-12eb0abb1d594f51961a2ec3a3909a37/incoming/d462afd152dc2b7b152624cc70ea247949aa94db57ecfe190e6076a21fd59364 /memray/src/memray/commands/run.py'","path":"src/memray/commands/run.py","exit_code":0,"stdout_tail":"","stderr_tail":"","stdout_sha256":"d462afd152dc2b7b152624cc70ea247949aa94db57ecfe190e6076a21fd59364","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-8.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:53:57.615715Z","duration_s":0.0048850000000000005,"timed_out":false,"image_before":"cd9aed71-f2b8-450d-ab0d-9dd80d0187dc","image_after":"f2bd298b-ceb5-4aec-9291-aaeb986695b2","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-9","seq":9,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script -xvs -I 2>&1 | head -100","path":null,"exit_code":0,"stdout_tail":"ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: -I\n  inifile: /memray/pyproject.toml\n  rootdir: /memray\n\n","stderr_tail":"","stdout_sha256":"f3d8b6cad91c7099697948c8addb9830f12bbc4e0f08ceb3a2693b9b9aa793ff","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-9.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:00.109432Z","duration_s":0.365429,"timed_out":false,"image_before":"f2bd298b-ceb5-4aec-9291-aaeb986695b2","image_after":"1cf993fc-3465-41c0-a859-ab8c11d42955","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-10","seq":10,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script -xvs 2>&1 | head -100","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python\ncachedir: .pytest_cache\nrootdir: /memray\nconfigfile: pyproject.toml\nplugins: cov-7.0.0, textual-snapshot-1.1.0, syrupy-4.8.0\ncollecting ... collected 1 item\n\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script[-I] PASSED\n\n============================== 1 passed in 0.49s ===============================\n","stderr_tail":"","stdout_sha256":"8853cf9d03915864d153f1088ddabfa948456f741737d67f3b9de9799645417f","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-10.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:03.572465Z","duration_s":0.703807,"timed_out":false,"image_before":"1cf993fc-3465-41c0-a859-ab8c11d42955","image_after":"af81b4ef-e06f-45e0-9da9-7baa7a700390","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-11","seq":11,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script tests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_module tests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_cmd -xvs 2>&1","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python\ncachedir: .pytest_cache\nrootdir: /memray\nconfigfile: pyproject.toml\nplugins: cov-7.0.0, textual-snapshot-1.1.0, syrupy-4.8.0\ncollecting ... collected 3 items\n\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script[-I] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_module[-I] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_cmd[-I] PASSED\n\n============================== 3 passed in 0.89s ===============================\n","stderr_tail":"","stdout_sha256":"3c0666fc5324b5e4b6ddeae27697a5377a356b5bae7591d9dcbacfa875f0d01c","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-11.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:07.258181Z","duration_s":1.042563,"timed_out":false,"image_before":"af81b4ef-e06f-45e0-9da9-7baa7a700390","image_after":"d76a1ec6-663b-48ce-ab2d-f14d159c5675","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-12","seq":12,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_script tests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_module tests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_cmd -xvs 2>&1","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python\ncachedir: .pytest_cache\nrootdir: /memray\nconfigfile: pyproject.toml\nplugins: cov-7.0.0, textual-snapshot-1.1.0, syrupy-4.8.0\ncollecting ... collected 3 items\n\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_script PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_module PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_cmd PASSED\n\n============================== 3 passed in 0.92s ===============================\n","stderr_tail":"","stdout_sha256":"222c142326d85f8c0b6e8e8b23f12f09aafe5a3ea414f034a8114154926c2c2b","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-12.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:12.707907Z","duration_s":1.097468,"timed_out":false,"image_before":"d76a1ec6-663b-48ce-ab2d-f14d159c5675","image_after":"46175cc0-2ea1-4ba1-8567-3d8c57b91ebe","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-13","seq":13,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py::TestRunSubcommand -xvs 2>&1 | tail -50","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python\ncachedir: .pytest_cache\nrootdir: /memray\nconfigfile: pyproject.toml\nplugins: cov-7.0.0, textual-snapshot-1.1.0, syrupy-4.8.0\ncollecting ... collected 18 items\n\ntests/integration/test_main.py::TestRunSubcommand::test_run PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_override_output PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_overwrite_output_file PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_file_with_args PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_script PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_script[-I] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_module PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_module[-I] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_sys_manipulations_when_running_cmd PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_suppressing_sys_manipulations_when_running_cmd[-I] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_file_that_is_not_python[None] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_file_that_is_not_python[--live] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_file_that_is_not_python[--live-remote] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_file_exists PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_run_output_file_directory_does_not_exist PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_quiet[True] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_quiet[False] PASSED\ntests/integration/test_main.py::TestRunSubcommand::test_not_quiet_and_fork PASSED\n\n============================== 18 passed in 3.82s ==============================\n","stderr_tail":"","stdout_sha256":"ec952810acd3953cbdb483768f742f3629198fb8dd97ad4d5c86e11e656d352d","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-13.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:18.116675Z","duration_s":3.388719,"timed_out":false,"image_before":"46175cc0-2ea1-4ba1-8567-3d8c57b91ebe","image_after":"c3f49d48-a51f-4838-b2fc-cde7f79b843c","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-14","seq":14,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m pytest tests/integration/test_main.py -x --tb=short 2>&1 | tail -30","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-8.4.2, pluggy-1.6.0\nrootdir: /memray\nconfigfile: pyproject.toml\nplugins: cov-7.0.0, textual-snapshot-1.1.0, syrupy-4.8.0\ncollected 78 items\n\ntests/integration/test_main.py ......................................... [ 52%]\n.....................................                                    [100%]\n\n============================= 78 passed in 39.19s ==============================\n","stderr_tail":"","stdout_sha256":"0a8f3fab01d88ae0a7639be167e7267d1e0c0f87907e3abd47240e8b30497435","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-14.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:54:27.665974Z","duration_s":28.267214,"timed_out":false,"image_before":"c3f49d48-a51f-4838-b2fc-cde7f79b843c","image_after":"0f96ae08-0b17-44d9-abf2-a134f4ab8200","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-15","seq":15,"branch_id":"agent1","kind":"command","cmd":"cd /tmp && mkdir -p test_isolation && cat > test_isolation/test.py << 'EOF'\nimport json, sys\nprint(json.dumps(sys.path))\nEOF\n","path":null,"exit_code":0,"stdout_tail":"","stderr_tail":"","stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-15.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:18.434230Z","duration_s":0.004294,"timed_out":false,"image_before":"0f96ae08-0b17-44d9-abf2-a134f4ab8200","image_after":"ea84e346-62df-404f-9947-0dfea9f2d407","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-16","seq":16,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m memray run --quiet --output /tmp/test_isolation/result.bin /tmp/test_isolation/test.py some args 2>&1 && echo \"---\" && python -c \"import json; print(json.loads(open('/tmp/test_isolation/result.bin').read()))\" 2>/dev/null || python -m memray run --quiet --output /tmp/test_isolation/result.bin /tmp/test_isolation/test.py some args && cat /tmp/test_isolation/result.bin | python3 -c \"import sys; sys.path.insert(0, '/memray'); from memray import Tracker; t = Tracker(); t.read('/tmp/test_isolation/result.bin'); print([str(x) for x in t.metrics])\" 2>/dev/null || true","path":null,"exit_code":0,"stdout_tail":"[\"/tmp/test_isolation\", \"/usr/local/lib/python310.zip\", \"/usr/local/lib/python3.10\", \"/usr/local/lib/python3.10/lib-dynload\", \"/usr/local/lib/python3.10/site-packages\", \"/memray/src\"]\n---\n","stderr_tail":"Could not create output file /tmp/test_isolation/result.bin: File exists\n","stdout_sha256":"095a8687beb2c51e24def19b0dca05ca3af4246dcc1835e3ddca766bfe6fae04","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-16.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:20.837211Z","duration_s":0.468459,"timed_out":false,"image_before":"ea84e346-62df-404f-9947-0dfea9f2d407","image_after":"29daa1e2-da7b-4053-9836-ae72b28a1520","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-17","seq":17,"branch_id":"agent1","kind":"command","cmd":"cd /memray && rm -f /tmp/test_isolation/result.bin && python -m memray run --quiet --output /tmp/test_isolation/result.bin /tmp/test_isolation/test.py some args && python -c \"import json; print(json.loads(open('/tmp/test_isolation/result.bin').read()))\" 2>&1 || true","path":null,"exit_code":0,"stdout_tail":"[\"/tmp/test_isolation\", \"/usr/local/lib/python310.zip\", \"/usr/local/lib/python3.10\", \"/usr/local/lib/python3.10/lib-dynload\", \"/usr/local/lib/python3.10/site-packages\", \"/memray/src\"]\nTraceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/usr/local/lib/python3.10/codecs.py\", line 322, in decode\n    (result, consumed) = self._buffer_decode(data, self.errors, final)\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 6: invalid start byte\n","stderr_tail":"","stdout_sha256":"c589f2cd48046881beb6d25f42cf89b3cba4ccd96443ba97485aadfe92c6e0ff","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-17.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:24.637768Z","duration_s":0.260358,"timed_out":false,"image_before":"29daa1e2-da7b-4053-9836-ae72b28a1520","image_after":"2e135ec8-1f9c-49a7-8cee-f68e429492b1","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-18","seq":18,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -m memray run --quiet --output /tmp/test_isolation/result.bin /tmp/test_isolation/test.py some args && xxd /tmp/test_isolation/result.bin | head -1","path":null,"exit_code":1,"stdout_tail":"","stderr_tail":"Could not create output file /tmp/test_isolation/result.bin: File exists\n","stdout_sha256":"ae68945507b45ceb33322dcb0b89f0c7afb6be35385f2640de1fc8036cf4ddc2","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-18.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:27.118645Z","duration_s":0.235218,"timed_out":false,"image_before":"2e135ec8-1f9c-49a7-8cee-f68e429492b1","image_after":"b6091644-ce75-4c5e-acbe-07fd93459166","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-19","seq":19,"branch_id":"agent1","kind":"command","cmd":"cd /memray && rm -f /tmp/test_isolation/result.bin && python -m memray run --quiet --output /tmp/test_isolation/result.bin /tmp/test_isolation/test.py some args && python -c \"\nimport json\nwith open('/tmp/test_isolation/result.bin', 'rb') as f:\n    data = f.read()\nprint('File size:', len(data))\nprint('First 100 bytes hex:', data[:100].hex())\n\" 2>&1","path":null,"exit_code":0,"stdout_tail":"[\"/tmp/test_isolation\", \"/usr/local/lib/python310.zip\", \"/usr/local/lib/python3.10\", \"/usr/local/lib/python3.10/lib-dynload\", \"/usr/local/lib/python3.10/site-packages\", \"/memray/src\"]\nFile size: 1572\nFirst 100 bytes hex: 04224d184040c015060000e16d656d726179000b00000000005d060033000039080093b9d1fa03a1010000c00800122f2e00442f7372630b00ff305f5f6d61696e5f5f2e70792072756e202d2d7175696574202d2d6f7574707574202f746d702f746573\n","stderr_tail":"","stdout_sha256":"6e7102f866aa85d7b91b3ff4df56ef23da0e88faddafe69195bb4d66725d922c","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-19.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:30.792937Z","duration_s":0.257338,"timed_out":false,"image_before":"b6091644-ce75-4c5e-acbe-07fd93459166","image_after":"b105e8e3-2fd2-4296-ad26-3e17dc231dcf","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-20","seq":20,"branch_id":"agent1","kind":"command","cmd":"cd /memray && python -c \"\nimport sys\nimport subprocess\nimport json\nimport tempfile\nimport os\n\n# Test 1: Without -I flag\nprint('=== Test 1: Without -I flag ===')\nresult = subprocess.run(\n    [sys.executable, '-m', 'memray', 'run', '--quiet', '--output', '/tmp/test1.bin', '/tmp/test_isolation/test.py', 'arg1'],\n    capture_output=True, text=True\n)\npath = json.loads(result.stdout)\nprint('sys.path:', path)\nprint('os.getcwd() in path:', os.getcwd() in path)\nprint('str(tmpdir) in path:', '/tmp/test_isolation' in path)\nprint()\n\n# Test 2: With -I flag  \nprint('=== Test 2: With -I flag ===')\nresult = subprocess.run(\n    [sys.executable, '-I', '-m', 'memray', 'run', '--quiet', '--output', '/tmp/test2.bin', '/tmp/test_isolation/test.py', 'arg1'],\n    capture_output=True, text=True\n)\npath = json.loads(result.stdout)\nprint('sys.path:', path)\nprint('os.getcwd() in path:', os.getcwd() in path)\nprint('str(tmpdir) in path:', '/tmp/test_isolation' in path)\nprint()\n\n# Test 3: Module mode without -I\nprint('=== Test 3: Module mode without -I ===')\nresult = subprocess.run(\n    [sys.executable, '-c', 'import sys; from memray.commands import main; sys.exit(main())', 'run', '--quiet', '--output', '/tmp/test3.bin', '-m', 'site'],\n    capture_output=True, text=True\n)\npath_eval = eval(' '.join(line for line in result.stdout.splitlines() if line.startswith(' ')))\nprint('sys.path:', path_eval)\nprint('\\\"\\\" in path:', '' in path_eval)\nprint('os.getcwd() in path:', os.getcwd() in path_eval)\nprint()\n\n# Test 4: Module mode with -I\nprint('=== Test 4: Module mode with -I ===')\nresult = subprocess.run(\n    [sys.executable, '-I', '-c', 'import sys; from memray.commands import main; sys.exit(main())', 'run', '--quiet', '--output', '/tmp/test4.bin', '-m', 'site'],\n    capture_output=True, text=True\n)\npath_eval = eval(' '.join(line for line in result.stdout.splitlines() if line.startswith(' ')))\nprint('sys.path:', path_eval)\nprint('\\\"\\\" in path:', '' in path_eval)\nprint('os.getcwd() in path:', os.getcwd() in path_eval)\nprint()\n\n# Test 5: Cmd mode without -I\nprint('=== Test 5: Cmd mode without -I ===')\nresult = subprocess.run(\n    [sys.executable, '-m', 'memray', 'run', '--quiet', '--output', '/tmp/test5.bin', '-c', 'import json, sys; print(json.dumps(sys.path))'],\n    capture_output=True, text=True\n)\npath = json.loads(result.stdout)\nprint('sys.path:', path)\nprint('os.getcwd() in path:', os.getcwd() in path)\nprint('\\\"\\\" in path:', '' in path)\nprint()\n\n# Test 6: Cmd mode with -I\nprint('=== Test 6: Cmd mode with -I ===')\nresult = subprocess.run(\n    [sys.executable, '-I', '-m', 'memray', 'run', '--quiet', '--output', '/tmp/test6.bin', '-c', 'import json, sys; print(json.dumps(sys.path))'],\n    capture_output=True, text=True\n)\npath = json.loads(result.stdout)\nprint('sys.path:', path)\nprint('os.getcwd() in path:', os.getcwd() in path)\nprint('\\\"\\\" in path:', '' in path)\n\" 2>&1","path":null,"exit_code":0,"stdout_tail":"=== Test 1: Without -I flag ===\nsys.path: ['/tmp/test_isolation', '/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src']\nos.getcwd() in path: False\nstr(tmpdir) in path: True\n\n=== Test 2: With -I flag ===\nsys.path: ['/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src']\nos.getcwd() in path: False\nstr(tmpdir) in path: False\n\n=== Test 3: Module mode without -I ===\nsys.path: ('/memray', '/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src')\n\"\" in path: False\nos.getcwd() in path: True\n\n=== Test 4: Module mode with -I ===\nsys.path: ('/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src')\n\"\" in path: False\nos.getcwd() in path: False\n\n=== Test 5: Cmd mode without -I ===\nsys.path: ['', '/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src']\nos.getcwd() in path: False\n\"\" in path: True\n\n=== Test 6: Cmd mode with -I ===\nsys.path: ['/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages', '/memray/src']\nos.getcwd() in path: False\n\"\" in path: False\n","stderr_tail":"","stdout_sha256":"1538c1c4956cca753b7e7606222f15074d1fa166b2ea6e7bb07699bcb411f6b5","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-20.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:35.776054Z","duration_s":1.342793,"timed_out":false,"image_before":"b105e8e3-2fd2-4296-ad26-3e17dc231dcf","image_after":"4daf7584-694b-46d5-86f8-8962cb3081cc","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-21","seq":21,"branch_id":"agent1","kind":"command","cmd":"rm -rf /tmp/test_isolation /tmp/test1.bin /tmp/test2.bin /tmp/test3.bin /tmp/test4.bin /tmp/test5.bin /tmp/test6.bin","path":null,"exit_code":0,"stdout_tail":"","stderr_tail":"","stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","log_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/logs/agent1/agent1-21.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T22:55:41.863097Z","duration_s":0.002451,"timed_out":false,"image_before":"4daf7584-694b-46d5-86f8-8962cb3081cc","image_after":"f4ed460b-b724-437b-9554-e23eb0213840","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-22","seq":22,"branch_id":"agent1","kind":"diff","cmd":"compute patch in executor staging agent1-5a58939ffef54ce18622f9416d3fd99f: /opt/homebrew/Cellar/git/2.53.0/bin/git -c core.hooksPath=/dev/null -c core.attributesFile=/dev/null -c diff.external= -c core.quotePath=false add -A && /opt/homebrew/Cellar/git/2.53.0/bin/git -c core.hooksPath=/dev/null -c core.attributesFile=/dev/null -c diff.external= -c core.quotePath=false diff --cached --binary --no-ext-diff --no-textconv --no-renames ad58d76dff62d86c9ef66c870da11707ddbfe051","path":null,"exit_code":0,"stdout_tail":"diff --git a/src/memray/commands/run.py b/src/memray/commands/run.py\nindex 2808ade..8b750c7 100644\n--- a/src/memray/commands/run.py\n+++ b/src/memray/commands/run.py\n@@ -51,17 +51,26 @@ def _run_tracker(\n     with tracker:\n         pid = os.getpid()\n         try:\n+            # Check if isolation flags are active (e.g., -I or -P).\n+            # When these are used, Python suppresses its own sys.path\n+            # manipulations, so we should avoid overwriting sys.path[0]\n+            # to prevent conflicting with the interpreter's intentions.\n+            isolation_flags_active = sys.flags.isolated\n+\n             if args.run_as_module:\n-                sys.path[0] = os.getcwd()\n+                if not isolation_flags_active:\n+                    sys.path[0] = os.getcwd()\n                 # run_module will replace argv[0] with the script's path\n                 sys.argv = [\"\", *args.script_args]\n                 runpy.run_module(args.script, run_name=\"__main__\", alter_sys=True)\n             elif args.run_as_cmd:\n-                sys.path[0] = \"\"\n+                if not isolation_flags_active:\n+                    sys.path[0] = \"\"\n                 sys.argv = [\"-c\", *args.script_args]\n                 exec(args.script, {\"__name__\": \"__main__\"})\n             else:\n-                sys.path[0] = str(pathlib.Path(args.script).resolve().parent.absolute())\n+                if not isolation_flags_active:\n+                    sys.path[0] = str(pathlib.Path(args.script).resolve().parent.absolute())\n                 sys.argv = [args.script, *args.script_args]\n                 runpy.run_path(args.script, run_name=\"__main__\")\n         finally:\n","stderr_tail":"","stdout_sha256":"80287b479c964f00506b964e2ffebe93756ce24417f7497f51aaf6dfe7bf6e29","log_path":null,"tree_digest":"d24fa44b57e7b2ad948dc17ed38ec7f709d363c01842b74fc028a6b65d53a0a1","tree_download_s":33.44916224991903,"started_at":"2026-10-03T22:57:04.805925Z","duration_s":0.3135019999463111,"timed_out":false,"image_before":"f4ed460b-b724-437b-9554-e23eb0213840","image_after":"f4ed460b-b724-437b-9554-e23eb0213840","junit":null,"diff":{"files":[{"path":"src/memray/commands/run.py","added":12,"deleted":3,"category":"source","status":"modified"}],"patch_sha256":"80287b479c964f00506b964e2ffebe93756ce24417f7497f51aaf6dfe7bf6e29","patch_path":"~/dev/nebius-hackathon/pilot/v2-arm-lightning/bloomberg__memray-552/runs/pilot-bloomberg__memray-552-b3b1a54c14/artifacts/agent1/agent1-22.patch"},"patch_sha256":"80287b479c964f00506b964e2ffebe93756ce24417f7497f51aaf6dfe7bf6e29","dropped_paths":[],"snapshot_sha":"ad58d76dff62d86c9ef66c870da11707ddbfe051"}
