{"log": [{"step": "wipe_workspace", "command": "rm -rf /workspace/* /workspace/.[!.]*", "wall_time": 0.11088218100002223, "output": "", "returncode": 0, "exception_info": ""}, {"step": "remove_hashed_files", "command": "find /workspace -type f -exec sha256sum {} + 2>/dev/null | grep -E \"^(7a2abc1f8ab4a8ee7d1a362d4e430783c424ba603fe231fa71557708efae9e68) \" | cut -c67- | xargs -I% rm -fv %", "wall_time": 0.6355684739999958, "output": "", "returncode": 0, "exception_info": ""}, {"step": "clear_stale_executable", "command": "rm -f ./executable", "wall_time": 0.11265694099998314, "output": "", "returncode": 0, "exception_info": ""}, {"step": "seed_git", "command": "if [ ! -d .git ]; then GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' git -c init.defaultBranch=gold init -q && git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; fi", "wall_time": 0.04032693999999992, "output": "", "returncode": 0, "exception_info": ""}, {"step": "compile", "command": "chmod +x ./compile.sh && ./compile.sh", "wall_time": 0.1334641809999937, "output": " Finished `release` profile [optimized] target(s) in 0.07s\n", "returncode": 0, "exception_info": ""}, {"step": "copy_executable", "command": "mv ./executable /opt/programbench-stashed-executable-do-not-modify", "wall_time": 0.04260518399999569, "output": "", "returncode": 0, "exception_info": ""}, {"step": "hash_executable", "command": "sha256sum /opt/programbench-stashed-executable-do-not-modify", "wall_time": 0.06113566000001924, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 /opt/programbench-stashed-executable-do-not-modify\n", "returncode": 0, "exception_info": ""}, {"step": "install_rerunfailures", "command": "pip3 install -q --disable-pip-version-check pytest-rerunfailures", "wall_time": 0.6445657960000233, "output": "WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n", "returncode": 0, "exception_info": ""}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.043517152999982045, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.057363221000002795, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04088708300000121, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.04178019200000449, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 4.03949305499998, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [62 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_comprehensive.py::test_no_args_error \neval/tests/test_comprehensive.py::test_regex_named_capture_groups \neval/tests/test_comprehensive.py::test_directory_recursive_search \neval/tests/test_comprehensive.py::test_version_format \neval/tests/test_comprehensive.py::test_single_file_replacement \n[gw1] [ 1%] PASSED eval/tests/test_comprehensive.py::test_no_args_error \neval/tests/test_comprehensive.py::test_nonexistent_file_error \n[gw4] [ 3%] PASSED eval/tests/test_comprehensive.py::test_directory_recursive_search \neval/tests/test_comprehensive.py::test_successful_replacement_exit_code \n[gw3] [ 4%] PASSED eval/tests/test_comprehensive.py::test_single_file_replacement \n[gw9] [ 6%] PASSED eval/tests/test_comprehensive.py::test_regex_named_capture_groups \neval/tests/test_comprehensive.py::test_binary_file_skipped_by_default \n[gw6] [ 8%] PASSED eval/tests/test_comprehensive.py::test_binary_file_skipped_by_default \n[gw2] [ 9%] PASSED eval/tests/test_comprehensive.py::test_successful_replacement_exit_code \n[gw5] [ 11%] PASSED eval/tests/test_comprehensive.py::test_nonexistent_file_error \n[gw0] [ 12%] PASSED eval/tests/test_comprehensive.py::test_version_format \neval/tests/test_comprehensive.py::test_regex_search_basic \neval/tests/test_comprehensive.py::test_non_interactive_mode \n[gw7] [ 14%] PASSED eval/tests/test_comprehensive.py::test_non_interactive_mode \n[gw8] [ 16%] PASSED eval/tests/test_comprehensive.py::test_regex_search_basic \neval/tests/test_comprehensive.py::test_multiple_file_paths \n[gw3] [ 17%] PASSED eval/tests/test_comprehensive.py::test_multiple_file_paths \neval/tests/test_comprehensive.py::test_empty_file_handling \neval/tests/test_comprehensive.py::test_case_sensitive_matching \neval/tests/test_comprehensive.py::test_help_shows_usage \neval/tests/test_comprehensive.py::test_missing_replacement_arg \neval/tests/test_comprehensive.py::test_no_matches_found_behavior \neval/tests/test_comprehensive.py::test_current_directory_default \n[gw0] [ 19%] PASSED eval/tests/test_comprehensive.py::test_help_shows_usage \n[gw5] [ 20%] PASSED eval/tests/test_comprehensive.py::test_empty_file_handling \n[gw1] [ 22%] PASSED eval/tests/test_comprehensive.py::test_missing_replacement_arg \n[gw2] [ 24%] PASSED eval/tests/test_comprehensive.py::test_no_matches_found_behavior \n[gw9] [ 25%] PASSED eval/tests/test_comprehensive.py::test_case_sensitive_matching \n[gw4] [ 27%] PASSED eval/tests/test_comprehensive.py::test_current_directory_default \neval/tests/test_comprehensive.py::test_literal_search_default \neval/tests/test_comprehensive.py::test_binary_file_with_binary_flag \neval/tests/test_comprehensive.py::test_regex_capture_groups \n[gw6] [ 29%] PASSED eval/tests/test_comprehensive.py::test_binary_file_with_binary_flag \n[gw7] [ 30%] PASSED eval/tests/test_comprehensive.py::test_literal_search_default \n[gw8] [ 32%] PASSED eval/tests/test_comprehensive.py::test_regex_capture_groups \neval/tests/test_comprehensive.py::test_key_from_empty_file_error \n[gw3] [ 33%] PASSED eval/tests/test_comprehensive.py::test_key_from_empty_file_error \neval/tests/test_comprehensive.py::test_rep_from_file \neval/tests/test_comprehensive.py::test_no_color_output \neval/tests/test_comprehensive.py::test_key_from_nonexistent_file_error \neval/tests/test_comprehensive.py::test_verbose_output \neval/tests/test_comprehensive.py::test_file_output_enabled \neval/tests/test_comprehensive.py::test_key_from_file \neval/tests/test_comprehensive.py::test_statistics_output \n[gw9] [ 35%] PASSED eval/tests/test_comprehensive.py::test_key_from_nonexistent_file_error \n[gw4] [ 37%] PASSED eval/tests/test_comprehensive.py::test_rep_from_file \n[gw6] [ 38%] PASSED eval/tests/test_comprehensive.py::test_no_color_output \n[gw0] [ 40%] PASSED eval/tests/test_comprehensive.py::test_verbose_output \n[gw5] [ 41%] PASSED eval/tests/test_comprehensive.py::test_statistics_output \n[gw1] [ 43%] PASSED eval/tests/test_comprehensive.py::test_key_from_file \neval/tests/test_comprehensive.py::test_recursive_directory_default \neval/tests/test_comprehensive.py::test_skipped_output \n[gw7] [ 45%] PASSED eval/tests/test_comprehensive.py::test_skipped_output \n[gw8] [ 46%] PASSED eval/tests/test_comprehensive.py::test_recursive_directory_default \neval/tests/test_comprehensive.py::test_bin_check_bytes_option \neval/tests/test_comprehensive.py::test_no_skip_vcs_processes_vcs_dirs \neval/tests/test_comprehensive.py::test_no_recursive_mode \neval/tests/test_comprehensive.py::test_binary_detection_null_bytes \neval/tests/test_comprehensive.py::test_skip_vcs_directories \n[gw3] [ 48%] PASSED eval/tests/test_comprehensive.py::test_no_recursive_mode \n[gw5] [ 50%] PASSED eval/tests/test_comprehensive.py::test_no_skip_vcs_processes_vcs_dirs \n[gw6] [ 51%] PASSED eval/tests/test_comprehensive.py::test_bin_check_bytes_option \n[gw4] [ 53%] PASSED eval/tests/test_comprehensive.py::test_binary_detection_null_bytes \neval/tests/test_comprehensive.py::test_max_threads_option \neval/tests/test_comprehensive.py::test_symlink_following \neval/tests/test_comprehensive.py::test_gitignore_respected \neval/tests/test_comprehensive.py::test_size_per_thread_option \n[gw7] [ 54%] PASSED eval/tests/test_comprehensive.py::test_max_threads_option \n[gw8] [ 56%] PASSED eval/tests/test_comprehensive.py::test_size_per_thread_option \neval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \neval/tests/test_comprehensive.py::test_permission_error_handling \neval/tests/test_comprehensive.py::test_fixed_order_output \n[gw5] [ 58%] PASSED eval/tests/test_comprehensive.py::test_permission_error_handling \neval/tests/test_comprehensive.py::test_file_modified_in_place \n[gw3] [ 59%] PASSED eval/tests/test_comprehensive.py::test_file_modified_in_place \neval/tests/test_comprehensive.py::test_special_characters_in_keyword \neval/tests/test_comprehensive.py::test_unicode_content \n[gw8] [ 61%] PASSED eval/tests/test_comprehensive.py::test_special_characters_in_keyword \n[gw7] [ 62%] PASSED eval/tests/test_comprehensive.py::test_unicode_content \neval/tests/test_comprehensive.py::test_overlapping_matches \n[gw5] [ 64%] PASSED eval/tests/test_comprehensive.py::test_overlapping_matches \neval/tests/test_comprehensive.py::test_multiline_content \n[gw3] [ 66%] PASSED eval/tests/test_comprehensive.py::test_multiline_content \neval/tests/test_comprehensive.py::test_crlf_line_endings \neval/tests/test_comprehensive.py::test_multiple_matches_in_line \n[gw7] [ 67%] PASSED eval/tests/test_comprehensive.py::test_multiple_matches_in_line \n[gw8] [ 69%] PASSED eval/tests/test_comprehensive.py::test_crlf_line_endings \neval/tests/test_comprehensive.py::test_mixed_line_endings \n[gw5] [ 70%] PASSED eval/tests/test_comprehensive.py::test_mixed_line_endings \neval/tests/test_comprehensive.py::test_large_file_handling \neval/tests/test_comprehensive.py::test_newline_in_replacement_via_escape \neval/tests/test_comprehensive.py::test_whitespace_in_keyword \n[gw8] [ 72%] PASSED eval/tests/test_comprehensive.py::test_whitespace_in_keyword \n[gw7] [ 74%] PASSED eval/tests/test_comprehensive.py::test_newline_in_replacement_via_escape \n[gw3] [ 75%] PASSED eval/tests/test_comprehensive.py::test_large_file_handling \neval/tests/test_comprehensive.py::test_dot_in_literal_mode \n[gw5] [ 77%] PASSED eval/tests/test_comprehensive.py::test_dot_in_literal_mode \neval/tests/test_comprehensive.py::test_asterisk_in_literal_mode \n[gw3] [ 79%] PASSED eval/tests/test_comprehensive.py::test_asterisk_in_literal_mode \neval/tests/test_comprehensive.py::test_plus_in_literal_mode \n[gw7] [ 80%] PASSED eval/tests/test_comprehensive.py::test_plus_in_literal_mode \n[gw2] [ 82%] RERUN eval/tests/test_comprehensive.py::test_file_output_enabled \neval/tests/test_comprehensive.py::test_file_output_enabled \n[gw0] [ 83%] RERUN eval/tests/test_comprehensive.py::test_skip_vcs_directories \neval/tests/test_comprehensive.py::test_skip_vcs_directories \n[gw1] [ 85%] RERUN eval/tests/test_comprehensive.py::test_gitignore_respected \n[gw9] [ 87%] RERUN eval/tests/test_comprehensive.py::test_symlink_following \neval/tests/test_comprehensive.py::test_symlink_following \neval/tests/test_comprehensive.py::test_gitignore_respected \n[gw6] [ 88%] RERUN eval/tests/test_comprehensive.py::test_fixed_order_output \neval/tests/test_comprehensive.py::test_fixed_order_output \n[gw4] [ 90%] RERUN eval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \neval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \n[gw2] [ 90%] RERUN eval/tests/test_comprehensive.py::test_file_output_enabled \neval/tests/test_comprehensive.py::test_file_output_enabled \n[gw2] [ 90%] FAILED eval/tests/test_comprehensive.py::test_file_output_enabled \neval/tests/test_comprehensive.py::test_no_skip_gitignore \n[gw2] [ 91%] PASSED eval/tests/test_comprehensive.py::test_no_skip_gitignore \n[gw0] [ 91%] RERUN eval/tests/test_comprehensive.py::test_skip_vcs_directories \neval/tests/test_comprehensive.py::test_skip_vcs_directories \n[gw9] [ 91%] RERUN eval/tests/test_comprehensive.py::test_symlink_following \neval/tests/test_comprehensive.py::test_symlink_following \n[gw1] [ 91%] RERUN eval/tests/test_comprehensive.py::test_gitignore_respected \neval/tests/test_comprehensive.py::test_gitignore_respected \n[gw0] [ 91%] FAILED eval/tests/test_comprehensive.py::test_skip_vcs_directories \neval/tests/test_comprehensive.py::test_invalid_regex_error \n[gw0] [ 93%] PASSED eval/tests/test_comprehensive.py::test_invalid_regex_error \n[gw1] [ 93%] FAILED eval/tests/test_comprehensive.py::test_gitignore_respected \neval/tests/test_comprehensive.py::test_empty_replacement \n[gw1] [ 95%] PASSED eval/tests/test_comprehensive.py::test_empty_replacement \n[gw9] [ 95%] FAILED eval/tests/test_comprehensive.py::test_symlink_following \neval/tests/test_comprehensive.py::test_preserve_time_flag \n[gw6] [ 95%] RERUN eval/tests/test_comprehensive.py::test_fixed_order_output \neval/tests/test_comprehensive.py::test_fixed_order_output \n[gw6] [ 95%] FAILED eval/tests/test_comprehensive.py::test_fixed_order_output \neval/tests/test_comprehensive.py::test_very_long_line \n[gw6] [ 96%] PASSED eval/tests/test_comprehensive.py::test_very_long_line \n[gw9] [ 98%] PASSED eval/tests/test_comprehensive.py::test_preserve_time_flag \n[gw4] [ 98%] RERUN eval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \neval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \n[gw4] [ 98%] FAILED eval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp \neval/tests/test_comprehensive.py::test_no_newline_at_eof \n[gw4] [100%] PASSED eval/tests/test_comprehensive.py::test_no_newline_at_eof \n\n=================================== FAILURES ===================================\n___________________________ test_file_output_enabled ___________________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_file_output_enabled():\n \"\"\"Test --file shows filename in output\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"match\\n\")\n # Interactive mode with file output\n result = run(\"--no-interactive\", \"--file\", \"match\", \"MATCH\", str(test_file))\n # Since we're replacing, output might be minimal or show filename\n # Just verify it succeeds\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--file', 'match', 'MATCH', '/tmp/tmpadjrrm6d/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--file' which wasn't expected, or isn't valid in this context\\n\\nUSAGE:\\n executable --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:269: AssertionError\n__________________________ test_skip_vcs_directories ___________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_skip_vcs_directories():\n \"\"\"Test --skip-vcs skips .git, .hg, .svn directories\"\"\"\n with TempFiles() as tf:\n normal_file = tf.create(\"file.txt\", \"replace\\n\")\n git_file = tf.create(\".git/config\", \"replace\\n\")\n hg_file = tf.create(\".hg/config\", \"replace\\n\")\n svn_file = tf.create(\".svn/config\", \"replace\\n\")\n result = run(\"--no-interactive\", \"--skip-vcs\", \"replace\", \"REPLACED\", tf.tempdir)\n # Normal file should be changed\n> assert \"REPLACED\" in normal_file.read_text()\nE AssertionError: assert 'REPLACED' in 'replace\\n'\nE + where 'replace\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmpq9yc7xez/file.txt').read_text\n\neval/tests/test_comprehensive.py:339: AssertionError\n___________________________ test_gitignore_respected ___________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_gitignore_respected():\n \"\"\"Test .gitignore patterns are respected\"\"\"\n with TempFiles() as tf:\n gitignore = tf.create(\".gitignore\", \"*.log\\ntemp/\\n\")\n normal_file = tf.create(\"file.txt\", \"change\\n\")\n ignored_file = tf.create(\"debug.log\", \"change\\n\")\n ignored_dir_file = tf.create(\"temp/file.txt\", \"change\\n\")\n result = run(\"--no-interactive\", \"--skip-gitignore\", \"change\", \"CHANGED\", tf.tempdir)\n # Normal file should be changed\n> assert \"CHANGED\" in normal_file.read_text()\nE AssertionError: assert 'CHANGED' in 'change\\n'\nE + where 'change\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp17ha76aa/file.txt').read_text\n\neval/tests/test_comprehensive.py:361: AssertionError\n____________________________ test_symlink_following ____________________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_symlink_following():\n \"\"\"Test symbolic link following with --symlink\"\"\"\n with TempFiles() as tf:\n real_file = tf.create(\"real.txt\", \"target\\n\")\n link_path = Path(tf.tempdir) / \"link.txt\"\n link_path.symlink_to(real_file)\n result = run(\"--no-interactive\", \"--symlink\", \"target\", \"TARGET\", tf.tempdir)\n # File should be changed (via real path, not through link)\n> assert \"TARGET\" in real_file.read_text()\nE AssertionError: assert 'TARGET' in 'target\\n'\nE + where 'target\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp_y7r0c3d/real.txt').read_text\n\neval/tests/test_comprehensive.py:383: AssertionError\n___________________________ test_fixed_order_output ____________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_fixed_order_output():\n \"\"\"Test --fixed-order guarantees output order\"\"\"\n with TempFiles() as tf:\n for i in range(5):\n tf.create(f\"file{i}.txt\", \"match\\n\")\n result = run(\"--no-interactive\", \"--fixed-order\", \"match\", \"MATCH\", tf.tempdir)\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--fixed-order', 'match', 'MATCH', '/tmp/tmpnc8jlvy1'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--fixed-order' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mno-fixed-order\\x1b[0m?\\n\\nUSAGE:\\n executable --no-fixed-order --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:487: AssertionError\n___________________ test_no_preserve_time_updates_timestamp ____________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_no_preserve_time_updates_timestamp():\n \"\"\"Test that timestamps are updated by default\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"old\\n\")\n import time\n time.sleep(0.1)\n mtime_before = test_file.stat().st_mtime\n result = run(\"--no-interactive\", \"--no-preserve-time\", \"old\", \"new\", str(test_file))\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-preserve-time', 'old', 'new', '/tmp/tmpom8ywq31/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--no-preserve-time' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mpreserve-time\\x1b[0m?\\n\\nUSAGE:\\n executable --no-interactive --preserve-time\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:470: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_comprehensive.py::test_file_output_enabled - assert 1 ...\nFAILED eval/tests/test_comprehensive.py::test_skip_vcs_directories - Assertio...\nFAILED eval/tests/test_comprehensive.py::test_gitignore_respected - Assertion...\nFAILED eval/tests/test_comprehensive.py::test_symlink_following - AssertionEr...\nFAILED eval/tests/test_comprehensive.py::test_fixed_order_output - assert 1 == 0\nFAILED eval/tests/test_comprehensive.py::test_no_preserve_time_updates_timestamp\n==================== 6 failed, 56 passed, 12 rerun in 3.09s ====================\n", "returncode": 1, "exception_info": ""}, {"step": "results_read", "command": "docker cp 20f01f92bd4e0531c23d89fbaf98ae72867a838d02438b063b9f19448a241949:/workspace/eval/results.xml /tmp/tmp9ki5c0b4.xml", "wall_time": 0.013283622000017203, "output": "def test_file_output_enabled():\n \"\"\"Test --file shows filename in output\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"match\\n\")\n # Interactive mode with file output\n result = run(\"--no-interactive\", \"--file\", \"match\", \"MATCH\", str(test_file))\n # Since we're replacing, output might be minimal or show filename\n # Just verify it succeeds\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--file', 'match', 'MATCH', '/tmp/tmpadjrrm6d/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--file' which wasn't expected, or isn't valid in this context\\n\\nUSAGE:\\n executable <KEYWORD> <REPLACEMENT> --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:269: AssertionErrordef test_skip_vcs_directories():\n \"\"\"Test --skip-vcs skips .git, .hg, .svn directories\"\"\"\n with TempFiles() as tf:\n normal_file = tf.create(\"file.txt\", \"replace\\n\")\n git_file = tf.create(\".git/config\", \"replace\\n\")\n hg_file = tf.create(\".hg/config\", \"replace\\n\")\n svn_file = tf.create(\".svn/config\", \"replace\\n\")\n result = run(\"--no-interactive\", \"--skip-vcs\", \"replace\", \"REPLACED\", tf.tempdir)\n # Normal file should be changed\n> assert \"REPLACED\" in normal_file.read_text()\nE AssertionError: assert 'REPLACED' in 'replace\\n'\nE + where 'replace\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmpq9yc7xez/file.txt').read_text\n\neval/tests/test_comprehensive.py:339: AssertionErrordef test_gitignore_respected():\n \"\"\"Test .gitignore patterns are respected\"\"\"\n with TempFiles() as tf:\n gitignore = tf.create(\".gitignore\", \"*.log\\ntemp/\\n\")\n normal_file = tf.create(\"file.txt\", \"change\\n\")\n ignored_file = tf.create(\"debug.log\", \"change\\n\")\n ignored_dir_file = tf.create(\"temp/file.txt\", \"change\\n\")\n result = run(\"--no-interactive\", \"--skip-gitignore\", \"change\", \"CHANGED\", tf.tempdir)\n # Normal file should be changed\n> assert \"CHANGED\" in normal_file.read_text()\nE AssertionError: assert 'CHANGED' in 'change\\n'\nE + where 'change\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp17ha76aa/file.txt').read_text\n\neval/tests/test_comprehensive.py:361: AssertionErrordef test_symlink_following():\n \"\"\"Test symbolic link following with --symlink\"\"\"\n with TempFiles() as tf:\n real_file = tf.create(\"real.txt\", \"target\\n\")\n link_path = Path(tf.tempdir) / \"link.txt\"\n link_path.symlink_to(real_file)\n result = run(\"--no-interactive\", \"--symlink\", \"target\", \"TARGET\", tf.tempdir)\n # File should be changed (via real path, not through link)\n> assert \"TARGET\" in real_file.read_text()\nE AssertionError: assert 'TARGET' in 'target\\n'\nE + where 'target\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp_y7r0c3d/real.txt').read_text\n\neval/tests/test_comprehensive.py:383: AssertionErrordef test_fixed_order_output():\n \"\"\"Test --fixed-order guarantees output order\"\"\"\n with TempFiles() as tf:\n for i in range(5):\n tf.create(f\"file{i}.txt\", \"match\\n\")\n result = run(\"--no-interactive\", \"--fixed-order\", \"match\", \"MATCH\", tf.tempdir)\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--fixed-order', 'match', 'MATCH', '/tmp/tmpnc8jlvy1'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--fixed-order' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mno-fixed-order\\x1b[0m?\\n\\nUSAGE:\\n executable <KEYWORD> <REPLACEMENT> --no-fixed-order --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:487: AssertionErrordef test_no_preserve_time_updates_timestamp():\n \"\"\"Test that timestamps are updated by default\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"old\\n\")\n import time\n time.sleep(0.1)\n mtime_before = test_file.stat().st_mtime\n result = run(\"--no-interactive\", \"--no-preserve-time\", \"old\", \"new\", str(test_file))\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-preserve-time', 'old', 'new', '/tmp/tmpom8ywq31/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--no-preserve-time' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mpreserve-time\\x1b[0m?\\n\\nUSAGE:\\n executable <KEYWORD> <REPLACEMENT> --no-interactive --preserve-time\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:470: AssertionError", "returncode": 0, "exception_info": "", "branch": "12565bd8e77e"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04215930399999479, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.05642393099998344, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.039644543000008525, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.041695316999977194, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 41.22571045699999, "output": "Building ambs binary for matcher tests...\n Compiling structopt v0.3.26\n Compiling num_cpus v1.17.0\n Compiling filetime v0.2.27\n Compiling memmap v0.7.0\n Compiling glob v0.3.3\n Compiling rlibc v1.0.0\n Compiling term v1.2.1\n Compiling unicode-width v0.2.2\n Compiling amber v0.6.0 (/workspace)\n Finished `release` profile [optimized] target(s) in 26.20s\n/workspace/eval\nRequirement already satisfied: pytest in /usr/local/lib/python3.10/dist-packages (9.0.3)\nCollecting pytest-timeout\n Downloading pytest_timeout-2.4.0-py3-none-any.whl (14 kB)\nRequirement already satisfied: pytest-xdist in /usr/local/lib/python3.10/dist-packages (3.8.0)\nRequirement already satisfied: pluggy<2,>=1.5 in /usr/local/lib/python3.10/dist-packages (from pytest) (1.6.0)\nRequirement already satisfied: tomli>=1 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.4.1)\nRequirement already satisfied: packaging>=22 in /usr/local/lib/python3.10/dist-packages (from pytest) (26.2)\nRequirement already satisfied: iniconfig>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.3.0)\nRequirement already satisfied: pygments>=2.7.2 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.20.0)\nRequirement already satisfied: exceptiongroup>=1 in /usr/local/lib/python3.10/dist-packages (from pytest) (1.3.1)\nRequirement already satisfied: execnet>=2.1 in /usr/local/lib/python3.10/dist-packages (from pytest-xdist) (2.1.2)\nRequirement already satisfied: typing-extensions>=4.6.0 in /usr/local/lib/python3.10/dist-packages (from exceptiongroup>=1->pytest) (4.15.0)\nInstalling collected packages: pytest-timeout\nSuccessfully installed pytest-timeout-2.4.0\n============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace/eval\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 30.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [434 items]\n\nscheduling tests via LoadScheduling\n\ntests/test_ambr_edge.py::test_key_from_file_empty_file_error \ntests/test_ambr_edge.py::test_statistics_zero_matches \ntests/test_ambr_testability.py::test_regex_replacement_with_captures \ntests/test_error_paths.py::test_very_long_path_error \ntests/test_cli_config.py::test_key_from_file_empty_file \ntests/test_errors.py::test_regex_unclosed_bracket \ntests/test_cli_config.py::test_multiple_path_arguments \ntests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_cli_config.py::test_combined_flags_regex_and_statistics \ntests/test_cli_config.py::test_recursive_default_behavior \n[gw7] [ 0%] PASSED tests/test_error_paths.py::test_very_long_path_error \n[gw2] [ 0%] PASSED tests/test_ambr_testability.py::test_regex_replacement_with_captures \n[gw0] [ 0%] PASSED tests/test_ambr_edge.py::test_key_from_file_empty_file_error \n[gw1] [ 0%] PASSED tests/test_ambr_edge.py::test_statistics_zero_matches \n[gw3] [ 1%] PASSED tests/test_cli_config.py::test_key_from_file_empty_file \n[gw5] [ 1%] PASSED tests/test_cli_config.py::test_multiple_path_arguments \n[gw8] [ 1%] PASSED tests/test_errors.py::test_regex_unclosed_bracket \n[gw6] [ 1%] PASSED tests/test_cli_config.py::test_combined_flags_regex_and_statistics \n[gw4] [ 2%] PASSED tests/test_cli_config.py::test_recursive_default_behavior \ntests/test_ambr_edge.py::test_key_from_file_nonexistent_error \ntests/test_ambr_edge.py::test_statistics_with_regex_flag \ntests/test_errors.py::test_key_from_file_nonexistent_file \ntests/test_ambr_testability.py::test_fails_without_term \n[gw2] [ 2%] PASSED tests/test_ambr_testability.py::test_fails_without_term \ntests/test_cli_config.py::test_no_paths_defaults_to_current_directory \ntests/test_errors.py::test_regex_backreference_to_nonexistent_group \ntests/test_cli_config.py::test_key_from_file_missing_file \ntests/test_cli_config.py::test_skip_vcs_default_behavior \ntests/test_cli_config.py::test_combined_flags_preserve_time_and_binary \n[gw7] [ 2%] PASSED tests/test_errors.py::test_key_from_file_nonexistent_file \n[gw0] [ 2%] PASSED tests/test_ambr_edge.py::test_key_from_file_nonexistent_error \n[gw1] [ 2%] PASSED tests/test_ambr_edge.py::test_statistics_with_regex_flag \n[gw5] [ 3%] PASSED tests/test_cli_config.py::test_no_paths_defaults_to_current_directory \n[gw8] [ 3%] PASSED tests/test_errors.py::test_regex_backreference_to_nonexistent_group \n[gw4] [ 3%] PASSED tests/test_cli_config.py::test_skip_vcs_default_behavior \n[gw3] [ 3%] PASSED tests/test_cli_config.py::test_key_from_file_missing_file \ntests/test_ambr_testability.py::test_multiple_files \ntests/test_ambr_edge.py::test_statistics_output_structure_complete \ntests/test_errors.py::test_rep_from_file_nonexistent_file \n[gw2] [ 4%] PASSED tests/test_ambr_testability.py::test_multiple_files \ntests/test_ambr_edge.py::test_rep_from_file_nonexistent_error \ntests/test_errors.py::test_regex_invalid_repetition \ntests/test_cli_config.py::test_statistics_flag \ntests/test_cli_config.py::test_help_flag \ntests/test_cli_config.py::test_no_skip_vcs_flag \n[gw7] [ 4%] PASSED tests/test_errors.py::test_rep_from_file_nonexistent_file \n[gw0] [ 4%] PASSED tests/test_ambr_edge.py::test_rep_from_file_nonexistent_error \n[gw5] [ 4%] PASSED tests/test_cli_config.py::test_help_flag \n[gw8] [ 5%] PASSED tests/test_errors.py::test_regex_invalid_repetition \n[gw3] [ 5%] PASSED tests/test_cli_config.py::test_statistics_flag \n[gw4] [ 5%] PASSED tests/test_cli_config.py::test_no_skip_vcs_flag \ntests/test_errors.py::test_key_from_file_empty_file \ntests/test_errors.py::test_empty_keyword_literal \ntests/test_ambr_testability.py::test_binary_file_skip \n[gw8] [ 5%] SKIPPED tests/test_errors.py::test_empty_keyword_literal \n[gw2] [ 5%] PASSED tests/test_ambr_testability.py::test_binary_file_skip \ntests/test_ambr_edge.py::test_key_from_file_valid_nonempty \ntests/test_cli_config.py::test_skip_gitignore_default_behavior \ntests/test_cli_config.py::test_max_threads_flag \ntests/test_cli_config.py::test_version_flag \n[gw7] [ 6%] PASSED tests/test_errors.py::test_key_from_file_empty_file \n[gw0] [ 6%] PASSED tests/test_ambr_edge.py::test_key_from_file_valid_nonempty \n[gw5] [ 6%] PASSED tests/test_cli_config.py::test_version_flag \n[gw3] [ 6%] PASSED tests/test_cli_config.py::test_max_threads_flag \n[gw4] [ 7%] PASSED tests/test_cli_config.py::test_skip_gitignore_default_behavior \ntests/test_errors.py::test_empty_keyword_regex \ntests/test_errors.py::test_key_from_file_permission_denied \n[gw7] [ 7%] SKIPPED tests/test_errors.py::test_key_from_file_permission_denied \ntests/test_cli_config.py::test_no_skip_gitignore_flag \ntests/test_cli_config.py::test_regex_flag_basic \ntests/test_cli_config.py::test_size_per_thread_flag \ntests/test_ambr_testability.py::test_no_match_scenario \n[gw2] [ 7%] PASSED tests/test_ambr_testability.py::test_no_match_scenario \ntests/test_ambr_edge.py::test_rep_from_file_valid_content \n[gw8] [ 7%] PASSED tests/test_errors.py::test_empty_keyword_regex \n[gw4] [ 8%] PASSED tests/test_cli_config.py::test_no_skip_gitignore_flag \n[gw3] [ 8%] PASSED tests/test_cli_config.py::test_regex_flag_basic \n[gw5] [ 8%] PASSED tests/test_cli_config.py::test_size_per_thread_flag \n[gw0] [ 8%] PASSED tests/test_ambr_edge.py::test_rep_from_file_valid_content \ntests/test_errors.py::test_very_long_keyword \ntests/test_errors.py::test_rep_from_file_permission_denied \ntests/test_cli_config.py::test_regex_flag_capture_groups \ntests/test_cli_config.py::test_basic_replacement_no_interactive \ntests/test_cli_config.py::test_no_color_flag_suppresses_ansi_codes \ntests/test_cli_config.py::test_preserve_time_flag \n[gw8] [ 8%] PASSED tests/test_errors.py::test_very_long_keyword \ntests/test_ambr_edge.py::test_skipped_vcs_files_info_message \n[gw2] [ 9%] PASSED tests/test_cli_config.py::test_basic_replacement_no_interactive \n[gw3] [ 9%] PASSED tests/test_cli_config.py::test_regex_flag_capture_groups \n[gw5] [ 9%] PASSED tests/test_cli_config.py::test_no_color_flag_suppresses_ansi_codes \n[gw7] [ 9%] PASSED tests/test_errors.py::test_rep_from_file_permission_denied \ntests/test_errors.py::test_very_long_replacement \ntests/test_cli_config.py::test_regex_word_boundaries \ntests/test_errors.py::test_key_from_file_directory_instead_of_file \ntests/test_cli_config.py::test_verbose_flag_shows_additional_info \ntests/test_cli_config.py::test_multiple_files_in_directory \n[gw8] [ 10%] PASSED tests/test_errors.py::test_very_long_replacement \n[gw3] [ 10%] PASSED tests/test_cli_config.py::test_regex_word_boundaries \n[gw7] [ 10%] PASSED tests/test_errors.py::test_key_from_file_directory_instead_of_file \n[gw2] [ 10%] PASSED tests/test_cli_config.py::test_multiple_files_in_directory \ntests/test_errors.py::test_keyword_with_null_byte \ntests/test_errors.py::test_rep_from_file_directory_instead_of_file \ntests/test_cli_config.py::test_binary_flag_skips_binary_by_default \n[gw5] [ 11%] PASSED tests/test_cli_config.py::test_verbose_flag_shows_additional_info \ntests/test_cli_config.py::test_skipped_flag_reports_skipped_files \ntests/test_cli_config.py::test_key_from_file_flag \n[gw8] [ 11%] PASSED tests/test_errors.py::test_keyword_with_null_byte \n[gw7] [ 11%] PASSED tests/test_errors.py::test_rep_from_file_directory_instead_of_file \n[gw3] [ 11%] PASSED tests/test_cli_config.py::test_binary_flag_skips_binary_by_default \n[gw5] [ 11%] PASSED tests/test_cli_config.py::test_skipped_flag_reports_skipped_files \n[gw2] [ 12%] PASSED tests/test_cli_config.py::test_key_from_file_flag \ntests/test_cli_config.py::test_no_parent_ignore_flag \ntests/test_cli_config.py::test_binary_flag_enables_binary_search \ntests/test_cli_config.py::test_rep_from_file_flag \ntests/test_errors.py::test_keyword_with_control_characters \ntests/test_errors.py::test_regex_unclosed_group \n[gw2] [ 12%] PASSED tests/test_cli_config.py::test_rep_from_file_flag \n[gw8] [ 12%] PASSED tests/test_errors.py::test_keyword_with_control_characters \n[gw3] [ 12%] PASSED tests/test_cli_config.py::test_binary_flag_enables_binary_search \n[gw7] [ 13%] PASSED tests/test_errors.py::test_regex_unclosed_group \n[gw5] [ 13%] PASSED tests/test_cli_config.py::test_no_parent_ignore_flag \ntests/test_cli_config.py::test_no_recursive_flag \ntests/test_errors.py::test_regex_invalid_escape_sequence \ntests/test_cli_config.py::test_both_key_and_rep_from_file \ntests/test_errors.py::test_backslash_escape_in_literal_mode \ntests/test_cli_config.py::test_bin_check_bytes_parameter \n[gw3] [ 13%] PASSED tests/test_cli_config.py::test_no_recursive_flag \n[gw7] [ 13%] PASSED tests/test_errors.py::test_regex_invalid_escape_sequence \n[gw2] [ 14%] PASSED tests/test_cli_config.py::test_both_key_and_rep_from_file \ntests/test_gap_filling.py::test_file_starting_with_null_byte \ntests/test_filtering.py::test_gitignore_with_comments_and_blank_lines \n[gw5] [ 14%] PASSED tests/test_cli_config.py::test_bin_check_bytes_parameter \ntests/test_filtering.py::test_gitignore_wildcard_patterns \ntests/test_gap_filling.py::test_nested_directory_structure \n[gw3] [ 14%] PASSED tests/test_gap_filling.py::test_file_starting_with_null_byte \n[gw7] [ 14%] PASSED tests/test_filtering.py::test_gitignore_with_comments_and_blank_lines \n[gw2] [ 14%] PASSED tests/test_filtering.py::test_gitignore_wildcard_patterns \n[gw5] [ 15%] PASSED tests/test_gap_filling.py::test_nested_directory_structure \ntests/test_gap_filling.py::test_file_with_only_low_bytes \ntests/test_filtering.py::test_symlink_to_file_followed_by_default \ntests/test_filtering.py::test_gitignore_directory_patterns \ntests/test_gap_filling.py::test_mixed_files_and_directories \n[gw3] [ 15%] PASSED tests/test_gap_filling.py::test_file_with_only_low_bytes \n[gw2] [ 15%] PASSED tests/test_filtering.py::test_gitignore_directory_patterns \n[gw5] [ 15%] PASSED tests/test_gap_filling.py::test_mixed_files_and_directories \ntests/test_gap_filling.py::test_deeply_nested_gitignore_inheritance \ntests/test_gap_filling.py::test_gitignore_in_subdirectory \ntests/test_filtering.py::test_all_vcs_directories_skipped \n[gw3] [ 16%] PASSED tests/test_gap_filling.py::test_deeply_nested_gitignore_inheritance \n[gw5] [ 16%] PASSED tests/test_gap_filling.py::test_gitignore_in_subdirectory \n[gw2] [ 16%] PASSED tests/test_filtering.py::test_all_vcs_directories_skipped \ntests/test_gap_filling.py::test_permission_denied_on_file_read \n[gw3] [ 16%] PASSED tests/test_gap_filling.py::test_permission_denied_on_file_read \ntests/test_gap_filling.py::test_circular_symlink \ntests/test_filtering.py::test_no_skip_vcs_processes_all_vcs_directories \ntests/test_harvest.py::test_matcher_single_char_multiple_matches \n[gw5] [ 17%] PASSED tests/test_gap_filling.py::test_circular_symlink \n[gw2] [ 17%] PASSED tests/test_filtering.py::test_no_skip_vcs_processes_all_vcs_directories \n[gw3] [ 17%] PASSED tests/test_harvest.py::test_matcher_single_char_multiple_matches \ntests/test_gap_filling.py::test_broken_symlink \ntests/test_filtering.py::test_combined_flags_no_recursive_and_ignore_flags \ntests/test_harvest.py::test_matcher_three_char_pattern \n[gw5] [ 17%] PASSED tests/test_gap_filling.py::test_broken_symlink \n[gw2] [ 17%] PASSED tests/test_filtering.py::test_combined_flags_no_recursive_and_ignore_flags \n[gw3] [ 18%] PASSED tests/test_harvest.py::test_matcher_three_char_pattern \ntests/test_gap_filling.py::test_file_with_exact_8192_bytes_content \ntests/test_filtering.py::test_empty_files_skipped \ntests/test_harvest.py::test_matcher_non_overlapping_pattern \n[gw5] [ 18%] PASSED tests/test_gap_filling.py::test_file_with_exact_8192_bytes_content \n[gw2] [ 18%] PASSED tests/test_filtering.py::test_empty_files_skipped \n[gw3] [ 18%] PASSED tests/test_harvest.py::test_matcher_non_overlapping_pattern \ntests/test_harvest.py::test_matcher_full_string_match \ntests/test_filtering.py::test_parent_gitignore_respected_by_default \ntests/test_gap_filling.py::test_vcs_directory_skip \n[gw3] [ 19%] PASSED tests/test_harvest.py::test_matcher_full_string_match \n[gw5] [ 19%] PASSED tests/test_gap_filling.py::test_vcs_directory_skip \n[gw2] [ 19%] PASSED tests/test_filtering.py::test_parent_gitignore_respected_by_default \ntests/test_harvest.py::test_ignore_git_directory_patterns \ntests/test_filtering.py::test_no_parent_ignore_disables_parent_gitignore \ntests/test_gap_filling.py::test_multiple_levels_of_gitignore \n[gw3] [ 19%] PASSED tests/test_harvest.py::test_ignore_git_directory_patterns \n[gw5] [ 20%] PASSED tests/test_gap_filling.py::test_multiple_levels_of_gitignore \n[gw2] [ 20%] PASSED tests/test_filtering.py::test_no_parent_ignore_disables_parent_gitignore \ntests/test_harvest.py::test_regex_matcher \ntests/test_interactive.py::test_no_file_flag_minimal_header \n[gw3] [ 20%] PASSED tests/test_harvest.py::test_regex_matcher \ntests/test_filtering.py::test_deeply_nested_gitignore_files \ntests/test_harvest.py::test_tbm_matcher \n[gw2] [ 20%] PASSED tests/test_filtering.py::test_deeply_nested_gitignore_files \n[gw3] [ 20%] PASSED tests/test_harvest.py::test_tbm_matcher \ntests/test_matcher_edge.py::test_tbm_single_character_pattern \n[gw9] [ 21%] RERUN tests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_interactive.py::test_column_flag_shows_line_numbers \n[gw2] [ 21%] PASSED tests/test_matcher_edge.py::test_tbm_single_character_pattern \n[gw6] [ 21%] PASSED tests/test_cli_config.py::test_combined_flags_preserve_time_and_binary \ntests/test_cli_config.py::test_empty_replacement_string \n[gw6] [ 21%] PASSED tests/test_cli_config.py::test_empty_replacement_string \ntests/test_matcher_edge.py::test_tbm_tiny_file_smaller_than_thread_size \ntests/test_cli_config.py::test_no_matching_files \n[gw2] [ 22%] PASSED tests/test_matcher_edge.py::test_tbm_tiny_file_smaller_than_thread_size \n[gw1] [ 22%] RERUN tests/test_ambr_edge.py::test_statistics_output_structure_complete \ntests/test_ambr_edge.py::test_statistics_output_structure_complete \n[gw6] [ 22%] PASSED tests/test_cli_config.py::test_no_matching_files \ntests/test_matcher_edge.py::test_tbm_pattern_at_file_boundaries \ntests/test_error_paths.py::test_permission_denied_error \n[gw6] [ 22%] SKIPPED tests/test_error_paths.py::test_permission_denied_error \n[gw2] [ 23%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_at_file_boundaries \ntests/test_matcher_edge.py::test_tbm_pattern_not_found_early_break \ntests/test_error_paths.py::test_permission_denied_from_file \n[gw6] [ 23%] SKIPPED tests/test_error_paths.py::test_permission_denied_from_file \n[gw2] [ 23%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_not_found_early_break \n[gw5] [ 23%] PASSED tests/test_interactive.py::test_no_file_flag_minimal_header \ntests/test_interactive.py::test_interactive_state_transition_n_then_y \ntests/test_matcher_edge.py::test_tbm_multithread_search_correctness \n[gw4] [ 23%] PASSED tests/test_cli_config.py::test_preserve_time_flag \ntests/test_cli_config.py::test_preserve_time_default_updates_timestamp \ntests/test_error_paths.py::test_not_found_error_from_keyword_file \n[gw2] [ 24%] PASSED tests/test_matcher_edge.py::test_tbm_multithread_search_correctness \n[gw6] [ 24%] PASSED tests/test_error_paths.py::test_not_found_error_from_keyword_file \n[gw0] [ 24%] RERUN tests/test_ambr_edge.py::test_skipped_vcs_files_info_message \ntests/test_ambr_edge.py::test_skipped_vcs_files_info_message \ntests/test_matcher_edge.py::test_tbm_single_thread_forced_path \n[gw3] [ 24%] PASSED tests/test_interactive.py::test_column_flag_shows_line_numbers \ntests/test_interactive.py::test_row_flag_shows_byte_offsets \n[gw2] [ 25%] PASSED tests/test_matcher_edge.py::test_tbm_single_thread_forced_path \ntests/test_error_paths.py::test_directory_as_target_file \n[gw6] [ 25%] PASSED tests/test_error_paths.py::test_directory_as_target_file \ntests/test_matcher_edge.py::test_tbm_repeating_character_pattern_md2_calculation \ntests/test_error_paths.py::test_read_from_special_device_file \n[gw6] [ 25%] PASSED tests/test_error_paths.py::test_read_from_special_device_file \n[gw2] [ 25%] PASSED tests/test_matcher_edge.py::test_tbm_repeating_character_pattern_md2_calculation \ntests/test_matcher_edge.py::test_tbm_long_pattern_near_limit \n[gw2] [ 26%] PASSED tests/test_matcher_edge.py::test_tbm_long_pattern_near_limit \ntests/test_error_paths.py::test_empty_keyword_file \n[gw6] [ 26%] PASSED tests/test_error_paths.py::test_empty_keyword_file \ntests/test_matcher_edge.py::test_tbm_empty_file \n[gw8] [ 26%] RERUN tests/test_errors.py::test_backslash_escape_in_literal_mode \ntests/test_errors.py::test_backslash_escape_in_literal_mode \n[gw2] [ 26%] PASSED tests/test_matcher_edge.py::test_tbm_empty_file \n[gw5] [ 26%] PASSED tests/test_interactive.py::test_interactive_state_transition_n_then_y \ntests/test_interactive.py::test_interactive_multiple_prompts_same_file \ntests/test_matcher_edge.py::test_tbm_pattern_all_same_character \ntests/test_matcher_edge.py::test_tbm_pattern_longer_than_file \n[gw6] [ 27%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_all_same_character \n[gw2] [ 27%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_longer_than_file \ntests/test_matcher_edge.py::test_tbm_pattern_ending_with_rare_character \n[gw7] [ 27%] RERUN tests/test_filtering.py::test_symlink_to_file_followed_by_default \ntests/test_filtering.py::test_symlink_to_file_followed_by_default \n[gw3] [ 27%] PASSED tests/test_interactive.py::test_row_flag_shows_byte_offsets \ntests/test_interactive.py::test_column_and_row_combined \ntests/test_matcher_edge.py::test_tbm_overlapping_matches_non_greedy \n[gw6] [ 28%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_ending_with_rare_character \ntests/test_matcher_edge.py::test_tbm_very_short_lines_single_char \n[gw2] [ 28%] PASSED tests/test_matcher_edge.py::test_tbm_overlapping_matches_non_greedy \n[gw6] [ 28%] PASSED tests/test_matcher_edge.py::test_tbm_very_short_lines_single_char \ntests/test_matcher_edge.py::test_tbm_file_exactly_size_per_thread \ntests/test_matcher_edge.py::test_quicksearch_utf8_matches_tbm \n[gw2] [ 28%] PASSED tests/test_matcher_edge.py::test_tbm_file_exactly_size_per_thread \n[gw6] [ 29%] PASSED tests/test_matcher_edge.py::test_quicksearch_utf8_matches_tbm \ntests/test_matcher_edge.py::test_tbm_binary_file_with_all_byte_values \ntests/test_matcher_edge.py::test_tbm_pattern_at_exact_file_start_position_zero \n[gw2] [ 29%] PASSED tests/test_matcher_edge.py::test_tbm_binary_file_with_all_byte_values \n[gw6] [ 29%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_at_exact_file_start_position_zero \ntests/test_matcher_edge.py::test_tbm_thread_end_boundary_break_condition \ntests/test_matcher_edge.py::test_tbm_many_matches_in_small_file \n[gw5] [ 29%] PASSED tests/test_interactive.py::test_interactive_multiple_prompts_same_file \ntests/test_interactive.py::test_interactive_quit_stops_immediately \n[gw2] [ 29%] PASSED tests/test_matcher_edge.py::test_tbm_many_matches_in_small_file \n[gw6] [ 30%] PASSED tests/test_matcher_edge.py::test_tbm_thread_end_boundary_break_condition \ntests/test_matcher_edge.py::test_tbm_memcmp_mismatch_early_exit \ntests/test_matcher_edge.py::test_quicksearch_empty_file_handling \n[gw2] [ 30%] PASSED tests/test_matcher_edge.py::test_quicksearch_empty_file_handling \n[gw6] [ 30%] PASSED tests/test_matcher_edge.py::test_tbm_memcmp_mismatch_early_exit \n[gw3] [ 30%] PASSED tests/test_interactive.py::test_column_and_row_combined \ntests/test_interactive.py::test_column_with_match_at_line_start \ntests/test_matchers.py::test_quicksearch_default_matcher_simple_pattern \ntests/test_matchers.py::test_binary_flag_includes_binary_files \n[gw6] [ 31%] PASSED tests/test_matchers.py::test_binary_flag_includes_binary_files \n[gw2] [ 31%] PASSED tests/test_matchers.py::test_quicksearch_default_matcher_simple_pattern \ntests/test_matchers.py::test_tbm_matcher_produces_identical_output \ntests/test_matchers.py::test_skipped_flag_shows_binary_skip_message \n[gw2] [ 31%] PASSED tests/test_matchers.py::test_tbm_matcher_produces_identical_output \n[gw6] [ 31%] PASSED tests/test_matchers.py::test_skipped_flag_shows_binary_skip_message \ntests/test_matchers.py::test_sse_matcher_produces_identical_output \n[gw2] [ 32%] PASSED tests/test_matchers.py::test_sse_matcher_produces_identical_output \ntests/test_matchers.py::test_bin_check_bytes_threshold \n[gw6] [ 32%] PASSED tests/test_matchers.py::test_bin_check_bytes_threshold \ntests/test_matchers.py::test_regex_matcher_with_regex_flag \n[gw5] [ 32%] PASSED tests/test_interactive.py::test_interactive_quit_stops_immediately \n[gw2] [ 32%] PASSED tests/test_matchers.py::test_regex_matcher_with_regex_flag \ntests/test_interactive.py::test_interactive_all_replaces_remaining_without_prompts \n[gw9] [ 32%] RERUN tests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_matchers.py::test_large_file_search_correctness \ntests/test_matchers.py::test_unicode_pattern_matching_all_matchers \n[gw9] [ 32%] FAILED tests/test_errors.py::test_literal_backslash_in_keyword \ntests/test_errors.py::test_concurrent_file_access \n[gw6] [ 32%] PASSED tests/test_matchers.py::test_large_file_search_correctness \n[gw9] [ 33%] PASSED tests/test_errors.py::test_concurrent_file_access \ntests/test_matchers.py::test_mmap_bytes_threshold_produces_identical_results \n[gw2] [ 33%] PASSED tests/test_matchers.py::test_unicode_pattern_matching_all_matchers \ntests/test_matchers.py::test_binary_file_detection_skips_null_bytes \n[gw2] [ 33%] PASSED tests/test_matchers.py::test_binary_file_detection_skips_null_bytes \n[gw1] [ 33%] RERUN tests/test_ambr_edge.py::test_statistics_output_structure_complete \ntests/test_ambr_edge.py::test_statistics_output_structure_complete \n[gw3] [ 33%] PASSED tests/test_interactive.py::test_column_with_match_at_line_start \ntests/test_interactive.py::test_very_long_line_with_match \ntests/test_errors.py::test_max_threads_zero \n[gw9] [ 34%] SKIPPED tests/test_errors.py::test_max_threads_zero \n[gw1] [ 34%] FAILED tests/test_ambr_edge.py::test_statistics_output_structure_complete \ntests/test_ambr_edge.py::test_config_file_loading_valid_toml \n[gw6] [ 34%] PASSED tests/test_matchers.py::test_mmap_bytes_threshold_produces_identical_results \ntests/test_matchers.py::test_repeated_pattern_all_occurrences \ntests/test_matchers.py::test_regex_anchor_start_of_line \ntests/test_errors.py::test_max_threads_very_large \n[gw6] [ 34%] PASSED tests/test_matchers.py::test_repeated_pattern_all_occurrences \n[gw2] [ 34%] PASSED tests/test_matchers.py::test_regex_anchor_start_of_line \n[gw9] [ 35%] PASSED tests/test_errors.py::test_max_threads_very_large \ntests/test_matchers.py::test_overlapping_pattern_matching \ntests/test_matchers.py::test_regex_anchor_end_of_line \ntests/test_errors.py::test_invalid_numeric_argument_size_per_thread \n[gw6] [ 35%] PASSED tests/test_matchers.py::test_overlapping_pattern_matching \n[gw2] [ 35%] PASSED tests/test_matchers.py::test_regex_anchor_end_of_line \n[gw9] [ 35%] PASSED tests/test_errors.py::test_invalid_numeric_argument_size_per_thread \n[gw4] [ 35%] PASSED tests/test_cli_config.py::test_preserve_time_default_updates_timestamp \ntests/test_matchers.py::test_case_sensitive_matching_default \ntests/test_cli_config.py::test_symlink_default_follows \ntests/test_matchers.py::test_regex_character_class_digits \ntests/test_errors.py::test_negative_numeric_argument \n[gw6] [ 36%] PASSED tests/test_matchers.py::test_case_sensitive_matching_default \n[gw2] [ 36%] PASSED tests/test_matchers.py::test_regex_character_class_digits \n[gw9] [ 36%] PASSED tests/test_errors.py::test_negative_numeric_argument \n[gw0] [ 36%] RERUN tests/test_ambr_edge.py::test_skipped_vcs_files_info_message \ntests/test_ambr_edge.py::test_skipped_vcs_files_info_message \n[gw5] [ 36%] PASSED tests/test_interactive.py::test_interactive_all_replaces_remaining_without_prompts \ntests/test_interactive.py::test_interactive_with_column_row_complex_positions \ntests/test_matchers.py::test_regex_case_insensitive_flag \ntests/test_matchers.py::test_regex_complex_email_pattern \ntests/test_filtering.py::test_no_recursive_only_immediate_directory \n[gw6] [ 37%] PASSED tests/test_matchers.py::test_regex_case_insensitive_flag \n[gw0] [ 37%] FAILED tests/test_ambr_edge.py::test_skipped_vcs_files_info_message \ntests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \n[gw9] [ 37%] PASSED tests/test_filtering.py::test_no_recursive_only_immediate_directory \ntests/test_matchers.py::test_literal_dollar_sign_matching \ntests/test_filtering.py::test_no_symlink_skips_symlinked_directories \n[gw6] [ 37%] PASSED tests/test_matchers.py::test_literal_dollar_sign_matching \n[gw3] [ 37%] PASSED tests/test_interactive.py::test_very_long_line_with_match \ntests/test_matcher_edge.py::test_tbm_utf8_char_boundary_detection_cafe \n[gw3] [ 38%] PASSED tests/test_matcher_edge.py::test_tbm_utf8_char_boundary_detection_cafe \ntests/test_matchers.py::test_regex_escaped_dollar_sign \n[gw9] [ 38%] PASSED tests/test_filtering.py::test_no_symlink_skips_symlinked_directories \ntests/test_filtering.py::test_nested_gitignore_patterns_override_parent \ntests/test_matcher_edge.py::test_tbm_utf8_japanese_multi_byte \n[gw9] [ 38%] PASSED tests/test_filtering.py::test_nested_gitignore_patterns_override_parent \n[gw3] [ 38%] PASSED tests/test_matcher_edge.py::test_tbm_utf8_japanese_multi_byte \ntests/test_filtering.py::test_no_skip_gitignore_processes_all_files \ntests/test_matcher_edge.py::test_tbm_utf8_emoji_four_byte \n[gw8] [ 38%] RERUN tests/test_errors.py::test_backslash_escape_in_literal_mode \ntests/test_errors.py::test_backslash_escape_in_literal_mode \n[gw9] [ 38%] PASSED tests/test_filtering.py::test_no_skip_gitignore_processes_all_files \n[gw3] [ 39%] PASSED tests/test_matcher_edge.py::test_tbm_utf8_emoji_four_byte \n[gw8] [ 39%] FAILED tests/test_errors.py::test_backslash_escape_in_literal_mode \ntests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \ntests/test_matcher_edge.py::test_tbm_thread_boundary_patterns_found \ntests/test_multibyte_boundaries.py::test_multibyte_replacement \n[gw9] [ 39%] PASSED tests/test_multibyte_boundaries.py::test_multibyte_replacement \n[gw3] [ 39%] PASSED tests/test_matcher_edge.py::test_tbm_thread_boundary_patterns_found \n[gw5] [ 39%] PASSED tests/test_interactive.py::test_interactive_with_column_row_complex_positions \ntests/test_interactive.py::test_interactive_enter_key_defaults_to_yes \ntests/test_multibyte_boundaries.py::test_long_multibyte_sequence \ntests/test_matcher_edge.py::test_tbm_pattern_does_not_cross_lines \n[gw7] [ 39%] RERUN tests/test_filtering.py::test_symlink_to_file_followed_by_default \ntests/test_filtering.py::test_symlink_to_file_followed_by_default \n[gw3] [ 40%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_does_not_cross_lines \n[gw9] [ 40%] PASSED tests/test_multibyte_boundaries.py::test_long_multibyte_sequence \n[gw7] [ 40%] FAILED tests/test_filtering.py::test_symlink_to_file_followed_by_default \ntests/test_filtering.py::test_broken_symlink_skipped_gracefully \ntests/test_matcher_edge.py::test_tbm_pattern_at_file_end_no_trailing_newline \ntests/test_output.py::test_column_flag_shows_line_numbers \n[gw7] [ 40%] PASSED tests/test_filtering.py::test_broken_symlink_skipped_gracefully \n[gw3] [ 40%] PASSED tests/test_matcher_edge.py::test_tbm_pattern_at_file_end_no_trailing_newline \ntests/test_filtering.py::test_mixed_vcs_and_gitignore_flags \ntests/test_matcher_edge.py::test_quicksearch_single_thread_vs_multithread \n[gw3] [ 41%] PASSED tests/test_matcher_edge.py::test_quicksearch_single_thread_vs_multithread \ntests/test_output.py::test_row_with_utf8_characters \n[gw7] [ 41%] PASSED tests/test_filtering.py::test_mixed_vcs_and_gitignore_flags \ntests/test_filtering.py::test_gitignore_pattern_with_trailing_slash \n[gw7] [ 41%] PASSED tests/test_filtering.py::test_gitignore_pattern_with_trailing_slash \ntests/test_filtering.py::test_multiple_patterns_same_file \n[gw7] [ 41%] PASSED tests/test_filtering.py::test_multiple_patterns_same_file \n[gw5] [ 41%] PASSED tests/test_interactive.py::test_interactive_enter_key_defaults_to_yes \ntests/test_interactive.py::test_interactive_space_key_defaults_to_yes \ntests/test_filtering.py::test_deep_directory_hierarchy \n[gw7] [ 42%] PASSED tests/test_filtering.py::test_deep_directory_hierarchy \n[gw9] [ 42%] PASSED tests/test_output.py::test_column_flag_shows_line_numbers \ntests/test_output.py::test_row_flag_shows_character_positions \ntests/test_filtering.py::test_many_files_in_single_directory \n[gw7] [ 42%] PASSED tests/test_filtering.py::test_many_files_in_single_directory \ntests/test_filtering.py::test_vcs_directory_nested_in_regular_directory \n[gw7] [ 42%] PASSED tests/test_filtering.py::test_vcs_directory_nested_in_regular_directory \n[gw3] [ 43%] PASSED tests/test_output.py::test_row_with_utf8_characters \ntests/test_output.py::test_combined_column_row_no_file \ntests/test_pipeline_printer.py::test_row_only_without_column \n[gw5] [ 43%] PASSED tests/test_interactive.py::test_interactive_space_key_defaults_to_yes \ntests/test_pipeline_printer.py::test_no_file_with_row_only \n[gw1] [ 43%] RERUN tests/test_ambr_edge.py::test_config_file_loading_valid_toml \ntests/test_ambr_edge.py::test_config_file_loading_valid_toml \n[gw9] [ 43%] PASSED tests/test_output.py::test_row_flag_shows_character_positions \ntests/test_output.py::test_column_and_row_combined \n[gw3] [ 44%] PASSED tests/test_output.py::test_combined_column_row_no_file \ntests/test_output.py::test_verbose_with_gitignored_files \n[gw7] [ 44%] PASSED tests/test_pipeline_printer.py::test_row_only_without_column \ntests/test_pipeline_printer.py::test_no_file_with_column_and_row \n[gw4] [ 44%] RERUN tests/test_cli_config.py::test_symlink_default_follows \ntests/test_cli_config.py::test_symlink_default_follows \n[gw0] [ 44%] RERUN tests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \ntests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \n[gw2] [ 44%] RERUN tests/test_matchers.py::test_regex_complex_email_pattern \ntests/test_matchers.py::test_regex_complex_email_pattern \n[gw5] [ 45%] PASSED tests/test_pipeline_printer.py::test_no_file_with_row_only \ntests/test_pipeline_printer.py::test_match_at_file_start \n[gw6] [ 45%] RERUN tests/test_matchers.py::test_regex_escaped_dollar_sign \ntests/test_matchers.py::test_regex_escaped_dollar_sign \n[gw9] [ 45%] PASSED tests/test_output.py::test_column_and_row_combined \ntests/test_output.py::test_no_file_flag_omits_filenames \n[gw8] [ 45%] RERUN tests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \ntests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \n[gw3] [ 46%] PASSED tests/test_output.py::test_verbose_with_gitignored_files \ntests/test_pipeline_printer.py::test_column_row_multiple_lines_different_positions \n[gw7] [ 46%] PASSED tests/test_pipeline_printer.py::test_no_file_with_column_and_row \ntests/test_pipeline_printer.py::test_column_with_multiline_file_varying_newlines \n[gw5] [ 46%] PASSED tests/test_pipeline_printer.py::test_match_at_file_start \ntests/test_pipeline_printer.py::test_match_at_file_end \n[gw9] [ 46%] PASSED tests/test_output.py::test_no_file_flag_omits_filenames \ntests/test_pipeline_replacer.py::test_interactive_all_response_replaces_remaining \n[gw9] [ 47%] PASSED tests/test_pipeline_replacer.py::test_interactive_all_response_replaces_remaining \ntests/test_pipeline_replacer.py::test_interactive_invalid_key_continues_prompting \n[gw9] [ 47%] PASSED tests/test_pipeline_replacer.py::test_interactive_invalid_key_continues_prompting \ntests/test_pipeline_replacer.py::test_short_filename_header_padding \n[gw3] [ 47%] PASSED tests/test_pipeline_printer.py::test_column_row_multiple_lines_different_positions \ntests/test_pipeline_printer.py::test_file_open_error_handling \n[gw7] [ 47%] PASSED tests/test_pipeline_printer.py::test_column_with_multiline_file_varying_newlines \ntests/test_pipeline_printer.py::test_row_with_varying_match_positions \n[gw9] [ 47%] PASSED tests/test_pipeline_replacer.py::test_short_filename_header_padding \ntests/test_pipeline_replacer.py::test_preserve_time_flag_maintains_timestamps \n[gw9] [ 48%] PASSED tests/test_pipeline_replacer.py::test_preserve_time_flag_maintains_timestamps \ntests/test_pipeline_replacer.py::test_without_preserve_time_updates_timestamps \n[gw5] [ 48%] PASSED tests/test_pipeline_printer.py::test_match_at_file_end \ntests/test_pipeline_replacer.py::test_broken_symlink_canonicalize_failure \n[gw5] [ 48%] PASSED tests/test_pipeline_replacer.py::test_broken_symlink_canonicalize_failure \ntests/test_pipeline_replacer.py::test_symlink_deduplication_prevents_double_replacement \n[gw5] [ 48%] PASSED tests/test_pipeline_replacer.py::test_symlink_deduplication_prevents_double_replacement \ntests/test_pipeline_replacer.py::test_interactive_n_response_skips_replacement \n[gw5] [ 49%] PASSED tests/test_pipeline_replacer.py::test_interactive_n_response_skips_replacement \n[gw9] [ 49%] PASSED tests/test_pipeline_replacer.py::test_without_preserve_time_updates_timestamps \ntests/test_pipeline_replacer.py::test_interactive_capital_y_accepts_replacement \n[gw9] [ 49%] PASSED tests/test_pipeline_replacer.py::test_interactive_capital_y_accepts_replacement \ntests/test_pipeline_replacer.py::test_interactive_space_key_accepts_replacement \ntests/test_pipeline_replacer.py::test_interactive_capital_n_skips_replacement \n[gw5] [ 49%] PASSED tests/test_pipeline_replacer.py::test_interactive_space_key_accepts_replacement \n[gw7] [ 50%] PASSED tests/test_pipeline_printer.py::test_row_with_varying_match_positions \ntests/test_pipeline_printer.py::test_multiple_matches_same_line_different_positions \n[gw9] [ 50%] PASSED tests/test_pipeline_replacer.py::test_interactive_capital_n_skips_replacement \ntests/test_pipeline_replacer.py::test_interactive_column_and_row_combined \ntests/test_pipeline_replacer.py::test_interactive_capital_a_replaces_all \n[gw5] [ 50%] PASSED tests/test_pipeline_replacer.py::test_interactive_column_and_row_combined \n[gw9] [ 50%] PASSED tests/test_pipeline_replacer.py::test_interactive_capital_a_replaces_all \ntests/test_pipeline_replacer.py::test_interactive_quit_response_exits \n[gw1] [ 50%] RERUN tests/test_ambr_edge.py::test_config_file_loading_valid_toml \ntests/test_pipeline_replacer.py::test_interactive_carriage_return_accepts_replacement \ntests/test_ambr_edge.py::test_config_file_loading_valid_toml \n[gw1] [ 50%] FAILED tests/test_ambr_edge.py::test_config_file_loading_valid_toml \ntests/test_ambr_edge.py::test_config_file_invalid_toml \n[gw1] [ 50%] PASSED tests/test_ambr_edge.py::test_config_file_invalid_toml \ntests/test_ambr_edge.py::test_config_file_missing \n[gw1] [ 51%] PASSED tests/test_ambr_edge.py::test_config_file_missing \n[gw4] [ 51%] RERUN tests/test_cli_config.py::test_symlink_default_follows \ntests/test_cli_config.py::test_symlink_default_follows \ntests/test_ambr_edge.py::test_no_paths_defaults_to_current_directory \n[gw1] [ 51%] PASSED tests/test_ambr_edge.py::test_no_paths_defaults_to_current_directory \n[gw4] [ 51%] FAILED tests/test_cli_config.py::test_symlink_default_follows \ntests/test_cli_config.py::test_no_symlink_flag \n[gw0] [ 51%] RERUN tests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \ntests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \n[gw7] [ 51%] PASSED tests/test_pipeline_printer.py::test_multiple_matches_same_line_different_positions \ntests/test_pipeline_printer.py::test_no_file_with_column_only \ntests/test_ambr_edge.py::test_large_file_triggers_mmap_path \n[gw2] [ 51%] RERUN tests/test_matchers.py::test_regex_complex_email_pattern \ntests/test_matchers.py::test_regex_complex_email_pattern \n[gw4] [ 51%] PASSED tests/test_cli_config.py::test_no_symlink_flag \n[gw0] [ 51%] FAILED tests/test_ambr_edge.py::test_skipped_gitignore_files_info_message \ntests/test_ambr_edge.py::test_statistics_with_verbose_flag \n[gw2] [ 51%] FAILED tests/test_matchers.py::test_regex_complex_email_pattern \ntests/test_cli_config.py::test_single_file_path_argument \ntests/test_matchers.py::test_empty_file_no_matches \n[gw1] [ 52%] PASSED tests/test_ambr_edge.py::test_large_file_triggers_mmap_path \n[gw0] [ 52%] PASSED tests/test_ambr_edge.py::test_statistics_with_verbose_flag \ntests/test_ambr_edge.py::test_multiple_threads_with_large_workload \n[gw2] [ 52%] PASSED tests/test_matchers.py::test_empty_file_no_matches \n[gw4] [ 52%] PASSED tests/test_cli_config.py::test_single_file_path_argument \n[gw5] [ 52%] PASSED tests/test_pipeline_replacer.py::test_interactive_quit_response_exits \ntests/test_pipeline_replacer.py::test_interactive_capital_q_exits \ntests/test_ambr_edge.py::test_statistics_with_single_thread \n[gw1] [ 53%] PASSED tests/test_ambr_edge.py::test_multiple_threads_with_large_workload \ntests/test_harvest.py::test_matcher_no_match_ascii \n[gw9] [ 53%] PASSED tests/test_pipeline_replacer.py::test_interactive_carriage_return_accepts_replacement \ntests/test_pipeline_replacer.py::test_interactive_newline_accepts_replacement \n[gw5] [ 53%] PASSED tests/test_pipeline_replacer.py::test_interactive_capital_q_exits \ntests/test_matchers.py::test_file_without_trailing_newline \n[gw6] [ 53%] RERUN tests/test_matchers.py::test_regex_escaped_dollar_sign \ntests/test_matchers.py::test_regex_escaped_dollar_sign \n[gw0] [ 53%] PASSED tests/test_ambr_edge.py::test_statistics_with_single_thread \ntests/test_ambr_testability.py::test_basic_replacement \n[gw1] [ 54%] PASSED tests/test_ambr_testability.py::test_basic_replacement \n[gw4] [ 54%] PASSED tests/test_harvest.py::test_matcher_no_match_ascii \n[gw2] [ 54%] PASSED tests/test_matchers.py::test_file_without_trailing_newline \n[gw6] [ 54%] FAILED tests/test_matchers.py::test_regex_escaped_dollar_sign \ntests/test_matchers.py::test_long_line_matching \ntests/test_pipeline_replacer.py::test_regex_replacement_with_capture_groups \ntests/test_ambr_edge.py::test_statistics_with_high_thread_count \ntests/test_harvest.py::test_matcher_utf8_multibyte \n[gw6] [ 54%] PASSED tests/test_matchers.py::test_long_line_matching \n[gw5] [ 55%] PASSED tests/test_pipeline_replacer.py::test_regex_replacement_with_capture_groups \n[gw0] [ 55%] PASSED tests/test_ambr_edge.py::test_statistics_with_high_thread_count \ntests/test_regex.py::test_regex_whitespace_class \ntests/test_multibyte_boundaries.py::test_utf8_3byte_boundary \n[gw4] [ 55%] PASSED tests/test_harvest.py::test_matcher_utf8_multibyte \ntests/test_multibyte_boundaries.py::test_utf8_2byte_boundary \n[gw1] [ 55%] PASSED tests/test_regex.py::test_regex_whitespace_class \n[gw2] [ 55%] PASSED tests/test_multibyte_boundaries.py::test_utf8_3byte_boundary \ntests/test_pipeline_replacer.py::test_large_file_multiline_replacement \ntests/test_gap_filling.py::test_empty_file_zero_bytes \ntests/test_harvest.py::test_pipeline_finder_default_skips_vcs \n[gw6] [ 56%] PASSED tests/test_multibyte_boundaries.py::test_utf8_2byte_boundary \n[gw8] [ 56%] RERUN tests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \ntests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \n[gw0] [ 56%] PASSED tests/test_gap_filling.py::test_empty_file_zero_bytes \n[gw5] [ 56%] PASSED tests/test_pipeline_replacer.py::test_large_file_multiline_replacement \n[gw4] [ 56%] PASSED tests/test_harvest.py::test_pipeline_finder_default_skips_vcs \ntests/test_multibyte_boundaries.py::test_utf8_4byte_boundary \ntests/test_regex.py::test_regex_character_class_range \ntests/test_output.py::test_default_includes_filename \n[gw8] [ 56%] FAILED tests/test_filtering.py::test_no_recursive_with_symlink_to_subdir \ntests/test_harvest.py::test_pipeline_finder_no_skip_vcs \ntests/test_regex.py::test_regex_word_boundary \ntests/test_filtering.py::test_gitignore_root_vs_anywhere_patterns \ntests/test_gap_filling.py::test_file_with_binary_content_skip \n[gw1] [ 57%] PASSED tests/test_regex.py::test_regex_character_class_range \n[gw2] [ 57%] PASSED tests/test_multibyte_boundaries.py::test_utf8_4byte_boundary \n[gw5] [ 57%] PASSED tests/test_regex.py::test_regex_word_boundary \n[gw4] [ 57%] PASSED tests/test_harvest.py::test_pipeline_finder_no_skip_vcs \n[gw8] [ 58%] PASSED tests/test_filtering.py::test_gitignore_root_vs_anywhere_patterns \n[gw0] [ 58%] PASSED tests/test_gap_filling.py::test_file_with_binary_content_skip \n[gw7] [ 58%] PASSED tests/test_pipeline_printer.py::test_no_file_with_column_only \ntests/test_multibyte_boundaries.py::test_mixed_multibyte_patterns \ntests/test_pipeline_replacer.py::test_empty_file_skipped_no_error \ntests/test_regex.py::test_regex_negated_character_class \ntests/test_regex.py::test_regex_plus_quantifier \ntests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \ntests/test_harvest.py::test_pipeline_matcher_finds_matches \ntests/test_filtering.py::test_combined_no_recursive_no_symlink \n[gw2] [ 58%] PASSED tests/test_multibyte_boundaries.py::test_mixed_multibyte_patterns \n[gw1] [ 58%] PASSED tests/test_regex.py::test_regex_negated_character_class \n[gw7] [ 59%] PASSED tests/test_pipeline_replacer.py::test_empty_file_skipped_no_error \n[gw5] [ 59%] PASSED tests/test_regex.py::test_regex_plus_quantifier \n[gw4] [ 59%] PASSED tests/test_harvest.py::test_pipeline_matcher_finds_matches \n[gw8] [ 59%] PASSED tests/test_filtering.py::test_combined_no_recursive_no_symlink \ntests/test_multibyte_boundaries.py::test_multibyte_at_match_boundary \ntests/test_regex.py::test_regex_line_start_anchor \ntests/test_pipeline_replacer.py::test_no_file_flag_suppresses_filename \ntests/test_regex.py::test_regex_star_quantifier \ntests/test_harvest.py::test_pipeline_matcher_no_match_file \n[gw2] [ 60%] PASSED tests/test_multibyte_boundaries.py::test_multibyte_at_match_boundary \n[gw1] [ 60%] PASSED tests/test_regex.py::test_regex_line_start_anchor \n[gw7] [ 60%] PASSED tests/test_pipeline_replacer.py::test_no_file_flag_suppresses_filename \ntests/test_filtering.py::test_whitespace_in_gitignore_patterns \n[gw5] [ 60%] PASSED tests/test_regex.py::test_regex_star_quantifier \n[gw4] [ 61%] PASSED tests/test_harvest.py::test_pipeline_matcher_no_match_file \n[gw9] [ 61%] PASSED tests/test_pipeline_replacer.py::test_interactive_newline_accepts_replacement \ntests/test_pipeline_replacer.py::test_interactive_column_flag_shows_line_numbers \ntests/test_multibyte_boundaries.py::test_partial_multibyte_no_match \n[gw8] [ 61%] PASSED tests/test_filtering.py::test_whitespace_in_gitignore_patterns \ntests/test_regex.py::test_regex_question_quantifier \ntests/test_pipeline_replacer.py::test_multiple_symlinks_to_same_file_processed_once \ntests/test_regex.py::test_regex_line_end_anchor \n[gw9] [ 61%] PASSED tests/test_pipeline_replacer.py::test_interactive_column_flag_shows_line_numbers \ntests/test_harvest.py::test_pipeline_sorter_output_order \n[gw2] [ 61%] PASSED tests/test_multibyte_boundaries.py::test_partial_multibyte_no_match \n[gw5] [ 62%] PASSED tests/test_regex.py::test_regex_question_quantifier \n[gw1] [ 62%] PASSED tests/test_regex.py::test_regex_line_end_anchor \n[gw7] [ 62%] PASSED tests/test_pipeline_replacer.py::test_multiple_symlinks_to_same_file_processed_once \ntests/test_filtering.py::test_hidden_files_and_directories \ntests/test_pipeline_replacer.py::test_interactive_row_flag_shows_byte_offsets \n[gw4] [ 62%] PASSED tests/test_harvest.py::test_pipeline_sorter_output_order \ntests/test_multibyte_boundaries.py::test_ascii_within_multibyte_text \ntests/test_regex.py::test_regex_single_capture_braces_notation \ntests/test_pipeline_replacer.py::test_interactive_mixed_responses_sequence \n[gw8] [ 63%] PASSED tests/test_filtering.py::test_hidden_files_and_directories \n[gw9] [ 63%] PASSED tests/test_pipeline_replacer.py::test_interactive_row_flag_shows_byte_offsets \ntests/test_regex.py::test_regex_exact_count_quantifier \n[gw2] [ 63%] PASSED tests/test_multibyte_boundaries.py::test_ascii_within_multibyte_text \ntests/test_harvest.py::test_ignore_git_patterns \n[gw5] [ 63%] PASSED tests/test_regex.py::test_regex_single_capture_braces_notation \n[gw7] [ 64%] PASSED tests/test_pipeline_replacer.py::test_interactive_mixed_responses_sequence \n[gw1] [ 64%] PASSED tests/test_regex.py::test_regex_exact_count_quantifier \ntests/test_gap_filling.py::test_permission_denied_error_exit_code \ntests/test_regex.py::test_regex_multiple_lines_multiline_mode \n[gw8] [ 64%] PASSED tests/test_gap_filling.py::test_permission_denied_error_exit_code \n[gw4] [ 64%] PASSED tests/test_harvest.py::test_ignore_git_patterns \ntests/test_regex.py::test_regex_multiple_captures \ntests/test_regex.py::test_regex_named_capture_braces_notation \ntests/test_regex.py::test_regex_digit_class \n[gw6] [ 64%] PASSED tests/test_output.py::test_default_includes_filename \n[gw9] [ 65%] PASSED tests/test_regex.py::test_regex_multiple_lines_multiline_mode \ntests/test_output.py::test_no_color_flag_strips_ansi_codes \ntests/test_regex.py::test_regex_range_quantifier \ntests/test_regex.py::test_regex_empty_capture_group \n[gw2] [ 65%] PASSED tests/test_regex.py::test_regex_named_capture_braces_notation \n[gw5] [ 65%] PASSED tests/test_regex.py::test_regex_multiple_captures \n[gw7] [ 65%] PASSED tests/test_regex.py::test_regex_digit_class \n[gw1] [ 66%] PASSED tests/test_regex.py::test_regex_range_quantifier \n[gw4] [ 66%] PASSED tests/test_regex.py::test_regex_empty_capture_group \ntests/test_regex.py::test_regex_nested_capture_groups \ntests/test_regex.py::test_regex_unicode_characters \ntests/test_gap_filling.py::test_file_not_found_error_exit_code \ntests/test_regex.py::test_regex_mixed_named_and_numbered_captures \ntests/test_regex.py::test_regex_word_class \n[gw8] [ 66%] PASSED tests/test_gap_filling.py::test_file_not_found_error_exit_code \ntests/test_regex.py::test_regex_capture_with_text_prefix_suffix \n[gw5] [ 66%] PASSED tests/test_regex.py::test_regex_nested_capture_groups \n[gw2] [ 67%] PASSED tests/test_regex.py::test_regex_mixed_named_and_numbered_captures \n[gw9] [ 67%] PASSED tests/test_regex.py::test_regex_unicode_characters \n[gw7] [ 67%] PASSED tests/test_regex.py::test_regex_word_class \ntests/test_regex.py::test_regex_alternation \n[gw4] [ 67%] PASSED tests/test_regex.py::test_regex_capture_with_text_prefix_suffix \ntests/test_regex.py::test_regex_greedy_vs_lazy_quantifier \ntests/test_regex.py::test_regex_non_capturing_group \ntests/test_regex.py::test_regex_named_capture_dollar_notation \ntests/test_regex.py::test_regex_substitution_with_literal_dollar \ntests/test_gap_filling.py::test_empty_key_file_error_exit_code \n[gw1] [ 67%] PASSED tests/test_regex.py::test_regex_alternation \n[gw8] [ 68%] PASSED tests/test_gap_filling.py::test_empty_key_file_error_exit_code \ntests/test_regex.py::test_regex_dot_metacharacter \n[gw5] [ 68%] PASSED tests/test_regex.py::test_regex_named_capture_dollar_notation \n[gw9] [ 68%] PASSED tests/test_regex.py::test_regex_greedy_vs_lazy_quantifier \n[gw2] [ 68%] PASSED tests/test_regex.py::test_regex_substitution_with_literal_dollar \n[gw7] [ 69%] PASSED tests/test_regex.py::test_regex_non_capturing_group \ntests/test_regex.py::test_regex_single_capture_dollar_notation \n[gw4] [ 69%] PASSED tests/test_regex.py::test_regex_dot_metacharacter \ntests/test_regex.py::test_regex_substitution_preserves_non_matching_text \ntests/test_regex.py::test_regex_case_sensitive_by_default \ntests/test_regex.py::test_regex_multiline_pattern_with_anchors \ntests/test_regex.py::test_regex_overlapping_matches \ntests/test_gap_filling.py::test_very_small_file_single_byte \n[gw1] [ 69%] PASSED tests/test_regex.py::test_regex_single_capture_dollar_notation \ntests/test_regex.py::test_regex_escaped_metacharacter \n[gw2] [ 69%] PASSED tests/test_regex.py::test_regex_substitution_preserves_non_matching_text \n[gw5] [ 70%] PASSED tests/test_regex.py::test_regex_multiline_pattern_with_anchors \n[gw9] [ 70%] PASSED tests/test_regex.py::test_regex_case_sensitive_by_default \n[gw7] [ 70%] PASSED tests/test_regex.py::test_regex_overlapping_matches \n[gw8] [ 70%] PASSED tests/test_gap_filling.py::test_very_small_file_single_byte \n[gw4] [ 70%] PASSED tests/test_regex.py::test_regex_escaped_metacharacter \ntests/test_regex.py::test_regex_empty_pattern_matches_between_chars \ntests/test_regex.py::test_regex_special_chars_in_replacement \ntests/test_replace_core.py::test_files_without_matches_unchanged \ntests/test_replace_core.py::test_basic_fixed_string_single_file_single_match \ntests/test_regex.py::test_regex_carriage_return_handling \ntests/test_regex.py::test_regex_backreference_in_pattern_limitation \n[gw1] [ 71%] PASSED tests/test_regex.py::test_regex_empty_pattern_matches_between_chars \n[gw2] [ 71%] PASSED tests/test_replace_core.py::test_files_without_matches_unchanged \n[gw9] [ 71%] PASSED tests/test_replace_core.py::test_basic_fixed_string_single_file_single_match \ntests/test_replace_core.py::test_binary_file_processed_with_flag \n[gw8] [ 71%] PASSED tests/test_regex.py::test_regex_carriage_return_handling \n[gw4] [ 72%] PASSED tests/test_replace_core.py::test_binary_file_processed_with_flag \n[gw7] [ 72%] PASSED tests/test_regex.py::test_regex_backreference_in_pattern_limitation \ntests/test_regex.py::test_regex_pattern_with_pipe_in_character_class \ntests/test_replace_core.py::test_multiple_matches_same_file \ntests/test_replace_core.py::test_preserve_time_flag \ntests/test_regex.py::test_regex_tab_character \ntests/test_regex.py::test_regex_lookahead_limitation \n[gw1] [ 72%] PASSED tests/test_regex.py::test_regex_pattern_with_pipe_in_character_class \n[gw2] [ 72%] PASSED tests/test_replace_core.py::test_preserve_time_flag \n[gw9] [ 73%] PASSED tests/test_replace_core.py::test_multiple_matches_same_file \n[gw6] [ 73%] PASSED tests/test_output.py::test_no_color_flag_strips_ansi_codes \ntests/test_output.py::test_default_includes_color_codes \ntests/test_replace_core.py::test_case_sensitive_matching \n[gw8] [ 73%] PASSED tests/test_regex.py::test_regex_tab_character \n[gw4] [ 73%] PASSED tests/test_replace_core.py::test_case_sensitive_matching \n[gw7] [ 73%] PASSED tests/test_regex.py::test_regex_lookahead_limitation \ntests/test_regex.py::test_regex_large_capture_group_number \ntests/test_regex.py::test_regex_very_long_match \ntests/test_replace_core.py::test_multiple_files_replaced \ntests/test_replace_core.py::test_recursive_directory_traversal \ntests/test_replace_core.py::test_binary_file_skipped_by_default \n[gw1] [ 74%] PASSED tests/test_regex.py::test_regex_large_capture_group_number \n[gw8] [ 74%] PASSED tests/test_regex.py::test_regex_very_long_match \n[gw2] [ 74%] PASSED tests/test_replace_core.py::test_binary_file_skipped_by_default \n[gw9] [ 74%] PASSED tests/test_replace_core.py::test_multiple_files_replaced \n[gw7] [ 75%] PASSED tests/test_replace_core.py::test_recursive_directory_traversal \ntests/test_replace_core.py::test_empty_file_skipped \n[gw4] [ 75%] PASSED tests/test_replace_core.py::test_empty_file_skipped \ntests/test_replace_core.py::test_interactive_mode_no_response \ntests/test_regex.py::test_regex_alternation_with_empty_alternative \ntests/test_replace_core.py::test_special_characters_in_replacement \ntests/test_regex.py::test_regex_newline_in_pattern \ntests/test_replace_core.py::test_no_recursive_flag \n[gw1] [ 75%] PASSED tests/test_regex.py::test_regex_newline_in_pattern \n[gw8] [ 75%] PASSED tests/test_regex.py::test_regex_alternation_with_empty_alternative \n[gw9] [ 76%] PASSED tests/test_replace_core.py::test_special_characters_in_replacement \n[gw7] [ 76%] PASSED tests/test_replace_core.py::test_no_recursive_flag \ntests/test_replace_core.py::test_unicode_content_preserved \ntests/test_replace_core.py::test_adjacent_matches \ntests/test_replace_core.py::test_match_at_file_end \ntests/test_replace_core.py::test_newline_in_content_preserved \n[gw4] [ 76%] PASSED tests/test_replace_core.py::test_unicode_content_preserved \ntests/test_replace_core.py::test_interactive_mode_yes_response \n[gw8] [ 76%] PASSED tests/test_replace_core.py::test_adjacent_matches \n[gw1] [ 76%] PASSED tests/test_replace_core.py::test_match_at_file_end \n[gw9] [ 77%] PASSED tests/test_replace_core.py::test_newline_in_content_preserved \ntests/test_replace_core.py::test_large_file_handling \ntests/test_replace_core.py::test_replacement_longer_than_keyword \ntests/test_replace_core.py::test_no_trailing_newline_preserved \ntests/test_replace_core.py::test_partial_word_match \n[gw8] [ 77%] PASSED tests/test_replace_core.py::test_replacement_longer_than_keyword \n[gw1] [ 77%] PASSED tests/test_replace_core.py::test_no_trailing_newline_preserved \n[gw9] [ 77%] PASSED tests/test_replace_core.py::test_partial_word_match \n[gw4] [ 78%] PASSED tests/test_replace_core.py::test_large_file_handling \ntests/test_replace_core.py::test_match_at_file_start \ntests/test_replace_core.py::test_vcs_directories_skipped_by_default \ntests/test_replace_core.py::test_gitignore_respected \ntests/test_replace_core.py::test_symlink_followed_by_default \n[gw4] [ 78%] PASSED tests/test_replace_core.py::test_match_at_file_start \n[gw8] [ 78%] PASSED tests/test_replace_core.py::test_vcs_directories_skipped_by_default \n[gw1] [ 78%] PASSED tests/test_replace_core.py::test_gitignore_respected \n[gw6] [ 79%] PASSED tests/test_output.py::test_default_includes_color_codes \ntests/test_output.py::test_verbose_flag_shows_skipped_files \ntests/test_replace_core.py::test_multiple_path_arguments \ntests/test_replace_core.py::test_vcs_directories_processed_with_flag \ntests/test_replace_core.py::test_gitignore_disabled_with_flag \n[gw4] [ 79%] PASSED tests/test_replace_core.py::test_multiple_path_arguments \n[gw8] [ 79%] PASSED tests/test_replace_core.py::test_vcs_directories_processed_with_flag \n[gw1] [ 79%] PASSED tests/test_replace_core.py::test_gitignore_disabled_with_flag \ntests/test_replace_core.py::test_single_character_keyword \ntests/test_replace_core.py::test_empty_replacement_string \ntests/test_replace_core.py::test_keyword_is_replacement \n[gw1] [ 79%] PASSED tests/test_replace_core.py::test_single_character_keyword \n[gw2] [ 80%] PASSED tests/test_replace_core.py::test_interactive_mode_no_response \ntests/test_replace_core.py::test_interactive_mode_all_response \n[gw4] [ 80%] PASSED tests/test_replace_core.py::test_empty_replacement_string \n[gw8] [ 80%] PASSED tests/test_replace_core.py::test_keyword_is_replacement \ntests/test_replace_core.py::test_single_character_replacement \ntests/test_replace_core.py::test_whitespace_in_keyword_and_replacement \ntests/test_replace_core.py::test_very_long_keyword \n[gw1] [ 80%] PASSED tests/test_replace_core.py::test_single_character_replacement \n[gw8] [ 81%] PASSED tests/test_replace_core.py::test_whitespace_in_keyword_and_replacement \n[gw7] [ 81%] PASSED tests/test_replace_core.py::test_interactive_mode_yes_response \ntests/test_replace_core.py::test_replacement_shorter_than_keyword \n[gw4] [ 81%] PASSED tests/test_replace_core.py::test_very_long_keyword \ntests/test_replace_core.py::test_file_with_only_keyword \n[gw7] [ 81%] PASSED tests/test_replace_core.py::test_replacement_shorter_than_keyword \ntests/test_replace_core.py::test_many_small_files \ntests/test_replace_core.py::test_very_long_replacement \n[gw1] [ 82%] PASSED tests/test_replace_core.py::test_file_with_only_keyword \ntests/test_replace_core.py::test_replacement_with_keyword_string \n[gw8] [ 82%] PASSED tests/test_replace_core.py::test_many_small_files \n[gw4] [ 82%] PASSED tests/test_replace_core.py::test_very_long_replacement \n[gw7] [ 82%] PASSED tests/test_replace_core.py::test_replacement_with_keyword_string \ntests/test_replace_core.py::test_deeply_nested_directories \ntests/test_seed.py::test_ambr_version \n[gw8] [ 82%] PASSED tests/test_seed.py::test_ambr_version \ntests/test_seed.py::test_ambr_help \n[gw4] [ 83%] PASSED tests/test_seed.py::test_ambr_help \n[gw1] [ 83%] PASSED tests/test_replace_core.py::test_deeply_nested_directories \ntests/test_seed.py::test_ambr_missing_args \n[gw7] [ 83%] PASSED tests/test_seed.py::test_ambr_missing_args \n[gw0] [ 83%] RERUN tests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \ntests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \n[gw6] [ 84%] PASSED tests/test_output.py::test_verbose_flag_shows_skipped_files \ntests/test_output.py::test_statistics_with_multiple_files \ntests/test_sse_matcher.py::test_sse_matcher_simple_pattern \ntests/test_sse_matcher.py::test_sse_matches_default_matcher \ntests/test_sse_matcher.py::test_sse_matches_tbm_matcher \n[gw6] [ 84%] PASSED tests/test_output.py::test_statistics_with_multiple_files \n[gw1] [ 84%] PASSED tests/test_sse_matcher.py::test_sse_matcher_simple_pattern \ntests/test_output.py::test_column_with_multiple_matches_per_line \ntests/test_sse_matcher.py::test_sse_single_byte_pattern \n[gw8] [ 84%] PASSED tests/test_sse_matcher.py::test_sse_matches_default_matcher \n[gw4] [ 85%] PASSED tests/test_sse_matcher.py::test_sse_matches_tbm_matcher \ntests/test_sse_matcher.py::test_sse_utf8_matches_default \ntests/test_sse_matcher.py::test_sse_utf8_pattern \ntests/test_sse_matcher.py::test_sse_single_byte_matches_default \n[gw7] [ 85%] PASSED tests/test_sse_matcher.py::test_sse_single_byte_pattern \n[gw4] [ 85%] PASSED tests/test_sse_matcher.py::test_sse_utf8_pattern \n[gw2] [ 85%] PASSED tests/test_replace_core.py::test_interactive_mode_all_response \ntests/test_replace_core.py::test_interactive_mode_quit_response \ntests/test_sse_matcher.py::test_sse_large_file_threading \n[gw7] [ 85%] PASSED tests/test_sse_matcher.py::test_sse_large_file_threading \n[gw1] [ 86%] PASSED tests/test_sse_matcher.py::test_sse_utf8_matches_default \n[gw8] [ 86%] PASSED tests/test_sse_matcher.py::test_sse_single_byte_matches_default \ntests/test_sse_matcher.py::test_sse_long_pattern \ntests/test_sse_matcher.py::test_sse_long_pattern_matches_default \ntests/test_sse_matcher.py::test_sse_repeated_characters \n[gw1] [ 86%] PASSED tests/test_sse_matcher.py::test_sse_long_pattern \n[gw8] [ 86%] PASSED tests/test_sse_matcher.py::test_sse_long_pattern_matches_default \n[gw4] [ 87%] PASSED tests/test_sse_matcher.py::test_sse_repeated_characters \n[gw3] [ 87%] PASSED tests/test_pipeline_printer.py::test_file_open_error_handling \ntests/test_pipeline_printer.py::test_column_only_without_row \ntests/test_sse_matcher.py::test_sse_repeated_characters_matches_default \ntests/test_sse_matcher.py::test_sse_multiple_per_line_matches_default \ntests/test_sse_matcher.py::test_sse_special_character_dollar \n[gw8] [ 87%] PASSED tests/test_sse_matcher.py::test_sse_special_character_dollar \ntests/test_sse_matcher.py::test_sse_pattern_at_thread_boundary \n[gw4] [ 87%] PASSED tests/test_sse_matcher.py::test_sse_pattern_at_thread_boundary \n[gw7] [ 88%] PASSED tests/test_sse_matcher.py::test_sse_repeated_characters_matches_default \ntests/test_sse_matcher.py::test_sse_multiple_matches_per_line \n[gw1] [ 88%] PASSED tests/test_sse_matcher.py::test_sse_multiple_per_line_matches_default \ntests/test_sse_matcher.py::test_sse_special_character_matches_default \ntests/test_sse_matcher.py::test_tbm_single_byte_pattern \n[gw7] [ 88%] PASSED tests/test_sse_matcher.py::test_sse_multiple_matches_per_line \n[gw1] [ 88%] PASSED tests/test_sse_matcher.py::test_sse_special_character_matches_default \n[gw8] [ 88%] PASSED tests/test_sse_matcher.py::test_tbm_single_byte_pattern \ntests/test_sse_matcher.py::test_tbm_single_byte_matches_default \n[gw4] [ 89%] PASSED tests/test_sse_matcher.py::test_tbm_single_byte_matches_default \ntests/test_sse_matcher.py::test_sse_case_sensitive_matches_default \ntests/test_sse_matcher.py::test_tbm_utf8_matches_default \n[gw8] [ 89%] PASSED tests/test_sse_matcher.py::test_tbm_utf8_matches_default \ntests/test_sse_matcher.py::test_sse_single_thread_mode \ntests/test_sse_matcher.py::test_sse_case_sensitive_matching \n[gw1] [ 89%] PASSED tests/test_sse_matcher.py::test_sse_single_thread_mode \n[gw7] [ 89%] PASSED tests/test_sse_matcher.py::test_sse_case_sensitive_matches_default \n[gw4] [ 90%] PASSED tests/test_sse_matcher.py::test_sse_case_sensitive_matching \ntests/test_sse_matcher.py::test_sse_single_thread_matches_multi_thread \n[gw7] [ 90%] PASSED tests/test_sse_matcher.py::test_sse_single_thread_matches_multi_thread \ntests/test_util.py::test_escape_tab_in_replacement \n[gw6] [ 90%] PASSED tests/test_output.py::test_column_with_multiple_matches_per_line \ntests/test_sse_matcher.py::test_sse_large_file_matches_default \n[gw6] [ 90%] PASSED tests/test_sse_matcher.py::test_sse_large_file_matches_default \ntests/test_util.py::test_escape_newline_in_replacement \ntests/test_util.py::test_escape_carriage_return_in_replacement \n[gw2] [ 91%] PASSED tests/test_replace_core.py::test_interactive_mode_quit_response \ntests/test_util.py::test_escaped_backslash_before_n \ntests/test_util.py::test_rep_from_file_not_found_error \ntests/test_sse_matcher.py::test_sse_boundary_matches_default \n[gw2] [ 91%] PASSED tests/test_sse_matcher.py::test_sse_boundary_matches_default \n[gw6] [ 91%] PASSED tests/test_util.py::test_rep_from_file_not_found_error \n[gw5] [ 91%] RERUN tests/test_regex.py::test_regex_special_chars_in_replacement \ntests/test_regex.py::test_regex_special_chars_in_replacement \ntests/test_util.py::test_long_replacement_with_many_escapes \ntests/test_util.py::test_escape_sequences_with_regular_text \n[gw3] [ 91%] PASSED tests/test_pipeline_printer.py::test_column_only_without_row \ntests/test_sse_matcher.py::test_tbm_utf8_pattern \n[gw3] [ 92%] PASSED tests/test_sse_matcher.py::test_tbm_utf8_pattern \ntests/test_util.py::test_multiple_backslashes_in_sequence \n[gw9] [ 92%] RERUN tests/test_replace_core.py::test_symlink_followed_by_default \ntests/test_replace_core.py::test_symlink_followed_by_default \n[gw0] [ 92%] RERUN tests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \ntests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \n[gw0] [ 92%] FAILED tests/test_gap_filling.py::test_file_with_low_bytes_binary_detection \ntests/test_gap_filling.py::test_file_not_binary_with_byte_above_threshold \n[gw0] [ 92%] PASSED tests/test_gap_filling.py::test_file_not_binary_with_byte_above_threshold \ntests/test_gap_filling.py::test_file_size_at_mmap_boundary_8192_bytes \n[gw0] [ 92%] PASSED tests/test_gap_filling.py::test_file_size_at_mmap_boundary_8192_bytes \ntests/test_gap_filling.py::test_file_just_above_mmap_boundary \n[gw0] [ 93%] PASSED tests/test_gap_filling.py::test_file_just_above_mmap_boundary \ntests/test_gap_filling.py::test_binary_check_bytes_boundary \n[gw0] [ 93%] PASSED tests/test_gap_filling.py::test_binary_check_bytes_boundary \ntests/test_gap_filling.py::test_symlink_to_file \n[gw0] [ 93%] PASSED tests/test_gap_filling.py::test_symlink_to_file \ntests/test_gap_filling.py::test_symlink_to_directory \n[gw8] [ 93%] RERUN tests/test_util.py::test_escape_tab_in_replacement \ntests/test_util.py::test_escape_tab_in_replacement \n[gw4] [ 94%] RERUN tests/test_util.py::test_escape_carriage_return_in_replacement \ntests/test_util.py::test_escape_carriage_return_in_replacement \n[gw1] [ 94%] RERUN tests/test_util.py::test_escape_newline_in_replacement \ntests/test_util.py::test_escape_newline_in_replacement \n[gw7] [ 94%] RERUN tests/test_util.py::test_escaped_backslash_before_n \ntests/test_util.py::test_escaped_backslash_before_n \n[gw5] [ 94%] RERUN tests/test_regex.py::test_regex_special_chars_in_replacement \ntests/test_regex.py::test_regex_special_chars_in_replacement \n[gw6] [ 94%] RERUN tests/test_util.py::test_long_replacement_with_many_escapes \ntests/test_util.py::test_long_replacement_with_many_escapes \n[gw2] [ 94%] RERUN tests/test_util.py::test_escape_sequences_with_regular_text \ntests/test_util.py::test_escape_sequences_with_regular_text \n[gw5] [ 94%] FAILED tests/test_regex.py::test_regex_special_chars_in_replacement \ntests/test_regex.py::test_regex_capturing_entire_match \n[gw5] [ 95%] PASSED tests/test_regex.py::test_regex_capturing_entire_match \n[gw3] [ 95%] RERUN tests/test_util.py::test_multiple_backslashes_in_sequence \ntests/test_util.py::test_multiple_backslashes_in_sequence \ntests/test_regex.py::test_regex_multiple_files \n[gw5] [ 95%] PASSED tests/test_regex.py::test_regex_multiple_files \ntests/test_util.py::test_rep_from_file_with_newline_content \n[gw5] [ 95%] PASSED tests/test_util.py::test_rep_from_file_with_newline_content \ntests/test_util.py::test_key_from_file_with_special_chars \n[gw5] [ 96%] PASSED tests/test_util.py::test_key_from_file_with_special_chars \ntests/test_util.py::test_escape_sequences_in_multiline_replacement \n[gw9] [ 96%] RERUN tests/test_replace_core.py::test_symlink_followed_by_default \ntests/test_replace_core.py::test_symlink_followed_by_default \n[gw9] [ 96%] FAILED tests/test_replace_core.py::test_symlink_followed_by_default \ntests/test_replace_core.py::test_direct_file_path_argument \n[gw9] [ 96%] PASSED tests/test_replace_core.py::test_direct_file_path_argument \ntests/test_util.py::test_empty_replacement_string \n[gw9] [ 96%] PASSED tests/test_util.py::test_empty_replacement_string \ntests/test_util.py::test_interactive_mode_terminal_state_quit \n[gw0] [ 96%] RERUN tests/test_gap_filling.py::test_symlink_to_directory \ntests/test_gap_filling.py::test_symlink_to_directory \n[gw8] [ 96%] RERUN tests/test_util.py::test_escape_tab_in_replacement \ntests/test_util.py::test_escape_tab_in_replacement \n[gw4] [ 96%] RERUN tests/test_util.py::test_escape_carriage_return_in_replacement \ntests/test_util.py::test_escape_carriage_return_in_replacement \n[gw1] [ 96%] RERUN tests/test_util.py::test_escape_newline_in_replacement \ntests/test_util.py::test_escape_newline_in_replacement \n[gw8] [ 96%] FAILED tests/test_util.py::test_escape_tab_in_replacement \ntests/test_util.py::test_escape_backslash_in_replacement \n[gw4] [ 96%] FAILED tests/test_util.py::test_escape_carriage_return_in_replacement \ntests/test_util.py::test_key_from_file_not_found_error \n[gw7] [ 96%] RERUN tests/test_util.py::test_escaped_backslash_before_n \ntests/test_util.py::test_escaped_backslash_before_n \n[gw1] [ 96%] FAILED tests/test_util.py::test_escape_newline_in_replacement \ntests/test_util.py::test_multiple_escape_sequences_combined \n[gw4] [ 97%] PASSED tests/test_util.py::test_key_from_file_not_found_error \n[gw7] [ 97%] FAILED tests/test_util.py::test_escaped_backslash_before_n \ntests/test_util.py::test_key_from_file_empty_file_error \ntests/test_util.py::test_interactive_mode_terminal_state_all \n[gw2] [ 97%] RERUN tests/test_util.py::test_escape_sequences_with_regular_text \ntests/test_util.py::test_escape_sequences_with_regular_text \n[gw7] [ 97%] PASSED tests/test_util.py::test_key_from_file_empty_file_error \n[gw6] [ 97%] RERUN tests/test_util.py::test_long_replacement_with_many_escapes \ntests/test_util.py::test_long_replacement_with_many_escapes \n[gw2] [ 97%] FAILED tests/test_util.py::test_escape_sequences_with_regular_text \ntests/test_util.py::test_carriage_return_newline_combination \n[gw6] [ 97%] FAILED tests/test_util.py::test_long_replacement_with_many_escapes \ntests/test_util.py::test_newline_carriage_return_combination \n[gw3] [ 97%] RERUN tests/test_util.py::test_multiple_backslashes_in_sequence \ntests/test_util.py::test_multiple_backslashes_in_sequence \n[gw3] [ 97%] FAILED tests/test_util.py::test_multiple_backslashes_in_sequence \ntests/test_util.py::test_key_from_file_with_actual_content \n[gw3] [ 97%] PASSED tests/test_util.py::test_key_from_file_with_actual_content \n[gw5] [ 97%] RERUN tests/test_util.py::test_escape_sequences_in_multiline_replacement \ntests/test_util.py::test_escape_sequences_in_multiline_replacement \n[gw0] [ 97%] RERUN tests/test_gap_filling.py::test_symlink_to_directory \ntests/test_gap_filling.py::test_symlink_to_directory \n[gw0] [ 97%] FAILED tests/test_gap_filling.py::test_symlink_to_directory \ntests/test_util.py::test_rep_from_file_with_actual_content \n[gw0] [ 97%] PASSED tests/test_util.py::test_rep_from_file_with_actual_content \n[gw8] [ 98%] RERUN tests/test_util.py::test_escape_backslash_in_replacement \ntests/test_util.py::test_escape_backslash_in_replacement \n[gw1] [ 98%] RERUN tests/test_util.py::test_multiple_escape_sequences_combined \ntests/test_util.py::test_multiple_escape_sequences_combined \n[gw2] [ 98%] RERUN tests/test_util.py::test_carriage_return_newline_combination \ntests/test_util.py::test_carriage_return_newline_combination \n[gw6] [ 98%] RERUN tests/test_util.py::test_newline_carriage_return_combination \ntests/test_util.py::test_newline_carriage_return_combination \n[gw5] [ 98%] RERUN tests/test_util.py::test_escape_sequences_in_multiline_replacement \ntests/test_util.py::test_escape_sequences_in_multiline_replacement \n[gw5] [ 98%] FAILED tests/test_util.py::test_escape_sequences_in_multiline_replacement \ntests/test_util.py::test_backslash_at_end_of_replacement \n[gw4] [ 99%] PASSED tests/test_util.py::test_interactive_mode_terminal_state_all \n[gw9] [ 99%] PASSED tests/test_util.py::test_interactive_mode_terminal_state_quit \ntests/test_util.py::test_interactive_mode_terminal_state_no \n[gw8] [ 99%] RERUN tests/test_util.py::test_escape_backslash_in_replacement \ntests/test_util.py::test_escape_backslash_in_replacement \n[gw1] [ 99%] RERUN tests/test_util.py::test_multiple_escape_sequences_combined \ntests/test_util.py::test_multiple_escape_sequences_combined \n[gw8] [ 99%] FAILED tests/test_util.py::test_escape_backslash_in_replacement \ntests/test_util.py::test_interactive_mode_terminal_state_yes \n[gw1] [ 99%] FAILED tests/test_util.py::test_multiple_escape_sequences_combined \n[gw2] [ 99%] RERUN tests/test_util.py::test_carriage_return_newline_combination \ntests/test_util.py::test_carriage_return_newline_combination \n[gw6] [ 99%] RERUN tests/test_util.py::test_newline_carriage_return_combination \ntests/test_util.py::test_newline_carriage_return_combination \n[gw2] [ 99%] FAILED tests/test_util.py::test_carriage_return_newline_combination \n[gw6] [ 99%] FAILED tests/test_util.py::test_newline_carriage_return_combination \n[gw5] [ 99%] RERUN tests/test_util.py::test_backslash_at_end_of_replacement \ntests/test_util.py::test_backslash_at_end_of_replacement \n[gw5] [ 99%] RERUN tests/test_util.py::test_backslash_at_end_of_replacement \ntests/test_util.py::test_backslash_at_end_of_replacement \n[gw5] [ 99%] FAILED tests/test_util.py::test_backslash_at_end_of_replacement \n[gw8] [ 99%] PASSED tests/test_util.py::test_interactive_mode_terminal_state_yes \n[gw9] [100%] PASSED tests/test_util.py::test_interactive_mode_terminal_state_no \n\n=================================== FAILURES ===================================\n______________________ test_literal_backslash_in_keyword _______________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_errors.py:464: in test_literal_backslash_in_keyword\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'path\\\\\\\\file\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + path\\\\file\n__________________ test_statistics_output_structure_complete ___________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_ambr_edge.py:477: in test_statistics_output_structure_complete\n assert len(match_line_indices) == expected_thread_count, \\\nE AssertionError: Must have exactly 10 Match lines (one per thread), got 8\nE assert 8 == 10\nE + where 8 = len([6, 7, 8, 9, 10, 11, ...])\n_____________________ test_skipped_vcs_files_info_message ______________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_ambr_edge.py:257: in test_skipped_vcs_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (vcs file) : \"./.git\"'\nE Got:\nE \"error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-vcs?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-vcs --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (vcs file) : \"./.git\"'\nE \nE - Skip (vcs file) : \"./.git\"\nE + error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-vcs?\nE + \nE + USAGE:\nE + executable --no-interactive --no-skip-vcs --skipped\nE + \nE + For more information try --help\n____________________ test_backslash_escape_in_literal_mode _____________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_errors.py:451: in test_backslash_escape_in_literal_mode\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'line1\\nline2\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + line1\nE + line2\n___________________ test_symlink_to_file_followed_by_default ___________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_filtering.py:497: in test_symlink_to_file_followed_by_default\n assert (tmp_path / \"real.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +\n_____________________ test_config_file_loading_valid_toml ______________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_ambr_edge.py:541: in test_config_file_loading_valid_toml\n assert test_file.read_text() == \"replacement here\\n\"\nE AssertionError: assert 'keyword here\\n' == 'replacement here\\n'\nE \nE - replacement here\nE + keyword here\n_________________________ test_symlink_default_follows _________________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_cli_config.py:529: in test_symlink_default_follows\n assert real_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'REPLACEDD\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + REPLACEDD\nE ? +\n__________________ test_skipped_gitignore_files_info_message ___________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_ambr_edge.py:289: in test_skipped_gitignore_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (.gitignore): \"./ignored_file.txt\"'\nE Got:\nE \"error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-gitignore?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-gitignore --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (.gitig...red_file.txt\"'\nE \nE - Skip (.gitignore): \"./ignored_file.txt\"\nE + error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-gitignore?\nE + \nE + USAGE:\nE + executable --no-interactive --no-skip-gitignore --skipped\nE + \nE + For more information try --help\n_______________________ test_regex_complex_email_pattern _______________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_matchers.py:500: in test_regex_complex_email_pattern\n assert \"test@example.com\" not in actual, \"Email should be replaced\"\nE AssertionError: Email should be replaced\nE assert 'test@example.com' not in 'Version 1.2...: 555-1234\\n'\nE \nE 'test@example.com' is contained here:\nE Version 1.2.3 released\nE Error code: 404\nE Port 8080 is open\nE Year 2024\nE Email: test@example.com...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to show\n________________________ test_regex_escaped_dollar_sign ________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_matchers.py:595: in test_regex_escaped_dollar_sign\n assert \"$100.50\" not in actual, \"Price pattern should be replaced\"\nE AssertionError: Price pattern should be replaced\nE assert '$100.50' not in 'Price: $100...sers\\\\test\\n'\nE \nE '$100.50' is contained here:\nE Price: $100.50\nE Regex chars: . * + ? [ ] ( ) { } ^ $ | \\\nE Path: C:\\Users\\test\n___________________ test_no_recursive_with_symlink_to_subdir ___________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_filtering.py:698: in test_no_recursive_with_symlink_to_subdir\n assert (external / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +\n__________________ test_file_with_low_bytes_binary_detection ___________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_gap_filling.py:178: in test_file_with_low_bytes_binary_detection\n assert low_byte_file.read_bytes() == b\"\\x08test\", \\\nE AssertionError: Low byte file was modified: b'\\x08replaced'\nE assert b'\\x08replaced' == b'\\x08test'\nE \nE At index 1 diff: b'r' != b't'\nE \nE Full diff:\nE - (b'\\x08test')\nE + (b'\\x08replaced')\n___________________ test_regex_special_chars_in_replacement ____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_regex.py:663: in test_regex_special_chars_in_replacement\n assert content == \"\\n\\t bar baz\"\nE AssertionError: assert '\\\\n\\\\t bar baz' == '\\n\\t bar baz'\nE \nE - \nE - \t bar baz\nE ? ^\nE + \\n\\t bar baz\nE ? ^^^^\n_______________________ test_symlink_followed_by_default _______________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_replace_core.py:439: in test_symlink_followed_by_default\n assert (tmp_path / \"real_dir\" / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +\n________________________ test_escape_tab_in_replacement ________________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:49: in test_escape_tab_in_replacement\n assert content == b\"foo \\t baz\"\nE AssertionError: assert b'foo \\\\t baz' == b'foo \\t baz'\nE \nE At index 4 diff: b'\\\\' != b'\\t'\nE \nE Full diff:\nE - (b'foo \\t baz')\nE + (b'foo \\\\t baz')\nE ? +\n__________________ test_escape_carriage_return_in_replacement __________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:61: in test_escape_carriage_return_in_replacement\n assert content == b\"foo \\r baz\"\nE AssertionError: assert b'foo \\\\r baz' == b'foo \\r baz'\nE \nE At index 4 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - (b'foo \\r baz')\nE + (b'foo \\\\r baz')\nE ? +\n______________________ test_escape_newline_in_replacement ______________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:37: in test_escape_newline_in_replacement\n assert content == b\"foo \\n baz\"\nE AssertionError: assert b'foo \\\\n baz' == b'foo \\n baz'\nE \nE At index 4 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'foo \\n baz')\nE + (b'foo \\\\n baz')\nE ? +\n_______________________ test_escaped_backslash_before_n ________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:101: in test_escaped_backslash_before_n\n assert content == b\"\\\\\\n\"\nE AssertionError: assert b'\\\\\\\\n' == b'\\\\\\n'\nE \nE At index 1 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\\\\\n'\nE + b'\\\\\\\\n'\nE ? +\n___________________ test_escape_sequences_with_regular_text ____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:168: in test_escape_sequences_with_regular_text\n assert content == b\"line1\\nline2\\tindented\"\nE AssertionError: assert b'line1\\\\nline2\\\\tindented' == b'line1\\nline2\\tindented'\nE \nE At index 5 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'line1\\nline2\\tindented')\nE + (b'line1\\\\nline2\\\\tindented')\nE ? + +\n___________________ test_long_replacement_with_many_escapes ____________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:156: in test_long_replacement_with_many_escapes\n assert content == b\"\\n\\t\\r\\n\\t\\r\\n\\t\\r\"\nE AssertionError: assert b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r' == b'\\n\\t\\r\\n\\t\\r\\n\\t\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'\\n\\t\\r\\n\\t\\r\\n\\t\\r')\nE + (b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r')\nE ? + + + + + + + + +\n____________________ test_multiple_backslashes_in_sequence _____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:205: in test_multiple_backslashes_in_sequence\n assert content == b\"\\\\\\\\\"\nE AssertionError: assert b'\\\\\\\\\\\\\\\\' == b'\\\\\\\\'\nE \nE Full diff:\nE - b'\\\\\\\\'\nE + b'\\\\\\\\\\\\\\\\'\nE ? ++++\n__________________________ test_symlink_to_directory ___________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_gap_filling.py:286: in test_symlink_to_directory\n assert (target_dir / \"file.txt\").read_text() == \"/tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\"\nE AssertionError: assert '/tmp/pytest-...ace/test.txtd' == '/tmp/pytest-...ace/test.txtd'\nE \nE - /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\nE + /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\n________________ test_escape_sequences_in_multiline_replacement ________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:278: in test_escape_sequences_in_multiline_replacement\n assert content == \"line1\\nline2\\nline3\"\nE AssertionError: assert 'line1\\\\nline2\\\\nline3' == 'line1\\nline2\\nline3'\nE \nE + line1\\nline2\\nline3\nE - line1\nE - line2\nE - line3\n_____________________ test_escape_backslash_in_replacement _____________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:73: in test_escape_backslash_in_replacement\n assert content == b\"foo \\\\ baz\"\nE AssertionError: assert b'foo \\\\\\\\ baz' == b'foo \\\\ baz'\nE \nE At index 5 diff: b'\\\\' != b' '\nE \nE Full diff:\nE - (b'foo \\\\ baz')\nE + (b'foo \\\\\\\\ baz')\nE ? ++\n___________________ test_multiple_escape_sequences_combined ____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:85: in test_multiple_escape_sequences_combined\n assert content == b\"\\n\\t\"\nE AssertionError: assert b'\\\\n\\\\t' == b'\\n\\t'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\t'\nE + b'\\\\n\\\\t'\nE ? + +\n___________________ test_carriage_return_newline_combination ___________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:180: in test_carriage_return_newline_combination\n assert content == b\"\\r\\n\"\nE AssertionError: assert b'\\\\r\\\\n' == b'\\r\\n'\nE \nE At index 0 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - b'\\r\\n'\nE + b'\\\\r\\\\n'\nE ? + +\n___________________ test_newline_carriage_return_combination ___________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:192: in test_newline_carriage_return_combination\n assert content == b\"\\n\\r\"\nE AssertionError: assert b'\\\\n\\\\r' == b'\\n\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\r'\nE + b'\\\\n\\\\r'\nE ? + +\n_____________________ test_backslash_at_end_of_replacement _____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\ntests/test_util.py:290: in test_backslash_at_end_of_replacement\n assert content == b\"\\\\\"\nE AssertionError: assert b'\\\\\\\\' == b'\\\\'\nE \nE Full diff:\nE - b'\\\\'\nE + b'\\\\\\\\'\nE ? ++\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED tests/test_errors.py::test_literal_backslash_in_keyword - AssertionErr...\nFAILED tests/test_ambr_edge.py::test_statistics_output_structure_complete - A...\nFAILED tests/test_ambr_edge.py::test_skipped_vcs_files_info_message - Asserti...\nFAILED tests/test_errors.py::test_backslash_escape_in_literal_mode - Assertio...\nFAILED tests/test_filtering.py::test_symlink_to_file_followed_by_default - As...\nFAILED tests/test_ambr_edge.py::test_config_file_loading_valid_toml - Asserti...\nFAILED tests/test_cli_config.py::test_symlink_default_follows - AssertionErro...\nFAILED tests/test_ambr_edge.py::test_skipped_gitignore_files_info_message - A...\nFAILED tests/test_matchers.py::test_regex_complex_email_pattern - AssertionEr...\nFAILED tests/test_matchers.py::test_regex_escaped_dollar_sign - AssertionErro...\nFAILED tests/test_filtering.py::test_no_recursive_with_symlink_to_subdir - As...\nFAILED tests/test_gap_filling.py::test_file_with_low_bytes_binary_detection\nFAILED tests/test_regex.py::test_regex_special_chars_in_replacement - Asserti...\nFAILED tests/test_replace_core.py::test_symlink_followed_by_default - Asserti...\nFAILED tests/test_util.py::test_escape_tab_in_replacement - AssertionError: a...\nFAILED tests/test_util.py::test_escape_carriage_return_in_replacement - Asser...\nFAILED tests/test_util.py::test_escape_newline_in_replacement - AssertionErro...\nFAILED tests/test_util.py::test_escaped_backslash_before_n - AssertionError: ...\nFAILED tests/test_util.py::test_escape_sequences_with_regular_text - Assertio...\nFAILED tests/test_util.py::test_long_replacement_with_many_escapes - Assertio...\nFAILED tests/test_util.py::test_multiple_backslashes_in_sequence - AssertionE...\nFAILED tests/test_gap_filling.py::test_symlink_to_directory - AssertionError:...\nFAILED tests/test_util.py::test_escape_sequences_in_multiline_replacement - A...\nFAILED tests/test_util.py::test_escape_backslash_in_replacement - AssertionEr...\nFAILED tests/test_util.py::test_multiple_escape_sequences_combined - Assertio...\nFAILED tests/test_util.py::test_carriage_return_newline_combination - Asserti...\nFAILED tests/test_util.py::test_newline_carriage_return_combination - Asserti...\nFAILED tests/test_util.py::test_backslash_at_end_of_replacement - AssertionEr...\n============= 28 failed, 401 passed, 5 skipped, 56 rerun in 14.00s =============\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 74f77de7be3bffa01c64b2c68eb83ee06c2bf41767dfc90aa4cc9a2961ea518f:/workspace/eval/results.xml /tmp/tmp_375qyh_.xml", "wall_time": 0.011831590000014103, "output": "/workspace/eval/tests/test_errors.py:317: Binary hangs with empty keyword in literal mode/workspace/eval/tests/test_errors.py:134: Times out due to binary behavior - needs investigation/workspace/eval/tests/test_error_paths.py:23: Permission tests don't work as root/workspace/eval/tests/test_error_paths.py:56: Permission tests don't work as roottests/test_errors.py:464: in test_literal_backslash_in_keyword\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'path\\\\\\\\file\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + path\\\\file/workspace/eval/tests/test_errors.py:491: Binary panics on --max-threads 0 (index out of bounds) - not fixabletests/test_ambr_edge.py:477: in test_statistics_output_structure_complete\n assert len(match_line_indices) == expected_thread_count, \\\nE AssertionError: Must have exactly 10 Match lines (one per thread), got 8\nE assert 8 == 10\nE + where 8 = len([6, 7, 8, 9, 10, 11, ...])tests/test_ambr_edge.py:257: in test_skipped_vcs_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (vcs file) : \"./.git\"'\nE Got:\nE \"error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-vcs?\\n\\nUSAGE:\\n executable <KEYWORD> <REPLACEMENT> --no-interactive --no-skip-vcs --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (vcs file) : \"./.git\"'\nE \nE - Skip (vcs file) : \"./.git\"\nE + error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-vcs?\nE + \nE + USAGE:\nE + executable <KEYWORD> <REPLACEMENT> --no-interactive --no-skip-vcs --skipped\nE + \nE + For more information try --helptests/test_errors.py:451: in test_backslash_escape_in_literal_mode\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'line1\\nline2\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + line1\nE + line2tests/test_filtering.py:497: in test_symlink_to_file_followed_by_default\n assert (tmp_path / \"real.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +tests/test_ambr_edge.py:541: in test_config_file_loading_valid_toml\n assert test_file.read_text() == \"replacement here\\n\"\nE AssertionError: assert 'keyword here\\n' == 'replacement here\\n'\nE \nE - replacement here\nE + keyword heretests/test_cli_config.py:529: in test_symlink_default_follows\n assert real_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'REPLACEDD\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + REPLACEDD\nE ? +tests/test_ambr_edge.py:289: in test_skipped_gitignore_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (.gitignore): \"./ignored_file.txt\"'\nE Got:\nE \"error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-gitignore?\\n\\nUSAGE:\\n executable <KEYWORD> <REPLACEMENT> --no-interactive --no-skip-gitignore --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (.gitig...red_file.txt\"'\nE \nE - Skip (.gitignore): \"./ignored_file.txt\"\nE + error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-gitignore?\nE + \nE + USAGE:\nE + executable <KEYWORD> <REPLACEMENT> --no-interactive --no-skip-gitignore --skipped\nE + \nE + For more information try --helptests/test_matchers.py:500: in test_regex_complex_email_pattern\n assert \"test@example.com\" not in actual, \"Email should be replaced\"\nE AssertionError: Email should be replaced\nE assert 'test@example.com' not in 'Version 1.2...: 555-1234\\n'\nE \nE 'test@example.com' is contained here:\nE Version 1.2.3 released\nE Error code: 404\nE Port 8080 is open\nE Year 2024\nE Email: test@example.com...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to showtests/test_matchers.py:595: in test_regex_escaped_dollar_sign\n assert \"$100.50\" not in actual, \"Price pattern should be replaced\"\nE AssertionError: Price pattern should be replaced\nE assert '$100.50' not in 'Price: $100...sers\\\\test\\n'\nE \nE '$100.50' is contained here:\nE Price: $100.50\nE Regex chars: . * + ? [ ] ( ) { } ^ $ | \\\nE Path: C:\\Users\\testtests/test_filtering.py:698: in test_no_recursive_with_symlink_to_subdir\n assert (external / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +tests/test_gap_filling.py:178: in test_file_with_low_bytes_binary_detection\n assert low_byte_file.read_bytes() == b\"\\x08test\", \\\nE AssertionError: Low byte file was modified: b'\\x08replaced'\nE assert b'\\x08replaced' == b'\\x08test'\nE \nE At index 1 diff: b'r' != b't'\nE \nE Full diff:\nE - (b'\\x08test')\nE + (b'\\x08replaced')tests/test_regex.py:663: in test_regex_special_chars_in_replacement\n assert content == \"\\n\\t bar baz\"\nE AssertionError: assert '\\\\n\\\\t bar baz' == '\\n\\t bar baz'\nE \nE - \nE - \t bar baz\nE ? ^\nE + \\n\\t bar baz\nE ? ^^^^tests/test_replace_core.py:439: in test_symlink_followed_by_default\n assert (tmp_path / \"real_dir\" / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +tests/test_util.py:49: in test_escape_tab_in_replacement\n assert content == b\"foo \\t baz\"\nE AssertionError: assert b'foo \\\\t baz' == b'foo \\t baz'\nE \nE At index 4 diff: b'\\\\' != b'\\t'\nE \nE Full diff:\nE - (b'foo \\t baz')\nE + (b'foo \\\\t baz')\nE ? +tests/test_util.py:61: in test_escape_carriage_return_in_replacement\n assert content == b\"foo \\r baz\"\nE AssertionError: assert b'foo \\\\r baz' == b'foo \\r baz'\nE \nE At index 4 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - (b'foo \\r baz')\nE + (b'foo \\\\r baz')\nE ? +tests/test_util.py:37: in test_escape_newline_in_replacement\n assert content == b\"foo \\n baz\"\nE AssertionError: assert b'foo \\\\n baz' == b'foo \\n baz'\nE \nE At index 4 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'foo \\n baz')\nE + (b'foo \\\\n baz')\nE ? +tests/test_util.py:101: in test_escaped_backslash_before_n\n assert content == b\"\\\\\\n\"\nE AssertionError: assert b'\\\\\\\\n' == b'\\\\\\n'\nE \nE At index 1 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\\\\\n'\nE + b'\\\\\\\\n'\nE ? +tests/test_util.py:168: in test_escape_sequences_with_regular_text\n assert content == b\"line1\\nline2\\tindented\"\nE AssertionError: assert b'line1\\\\nline2\\\\tindented' == b'line1\\nline2\\tindented'\nE \nE At index 5 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'line1\\nline2\\tindented')\nE + (b'line1\\\\nline2\\\\tindented')\nE ? + +tests/test_util.py:156: in test_long_replacement_with_many_escapes\n assert content == b\"\\n\\t\\r\\n\\t\\r\\n\\t\\r\"\nE AssertionError: assert b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r' == b'\\n\\t\\r\\n\\t\\r\\n\\t\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'\\n\\t\\r\\n\\t\\r\\n\\t\\r')\nE + (b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r')\nE ? + + + + + + + + +tests/test_util.py:205: in test_multiple_backslashes_in_sequence\n assert content == b\"\\\\\\\\\"\nE AssertionError: assert b'\\\\\\\\\\\\\\\\' == b'\\\\\\\\'\nE \nE Full diff:\nE - b'\\\\\\\\'\nE + b'\\\\\\\\\\\\\\\\'\nE ? ++++tests/test_gap_filling.py:286: in test_symlink_to_directory\n assert (target_dir / \"file.txt\").read_text() == \"/tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\"\nE AssertionError: assert '/tmp/pytest-...ace/test.txtd' == '/tmp/pytest-...ace/test.txtd'\nE \nE - /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\nE + /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtdtests/test_util.py:278: in test_escape_sequences_in_multiline_replacement\n assert content == \"line1\\nline2\\nline3\"\nE AssertionError: assert 'line1\\\\nline2\\\\nline3' == 'line1\\nline2\\nline3'\nE \nE + line1\\nline2\\nline3\nE - line1\nE - line2\nE - line3tests/test_util.py:73: in test_escape_backslash_in_replacement\n assert content == b\"foo \\\\ baz\"\nE AssertionError: assert b'foo \\\\\\\\ baz' == b'foo \\\\ baz'\nE \nE At index 5 diff: b'\\\\' != b' '\nE \nE Full diff:\nE - (b'foo \\\\ baz')\nE + (b'foo \\\\\\\\ baz')\nE ? ++tests/test_util.py:85: in test_multiple_escape_sequences_combined\n assert content == b\"\\n\\t\"\nE AssertionError: assert b'\\\\n\\\\t' == b'\\n\\t'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\t'\nE + b'\\\\n\\\\t'\nE ? + +tests/test_util.py:180: in test_carriage_return_newline_combination\n assert content == b\"\\r\\n\"\nE AssertionError: assert b'\\\\r\\\\n' == b'\\r\\n'\nE \nE At index 0 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - b'\\r\\n'\nE + b'\\\\r\\\\n'\nE ? + +tests/test_util.py:192: in test_newline_carriage_return_combination\n assert content == b\"\\n\\r\"\nE AssertionError: assert b'\\\\n\\\\r' == b'\\n\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\r'\nE + b'\\\\n\\\\r'\nE ? + +tests/test_util.py:290: in test_backslash_at_end_of_replacement\n assert content == b\"\\\\\"\nE AssertionError: assert b'\\\\\\\\' == b'\\\\'\nE \nE Full diff:\nE - b'\\\\'\nE + b'\\\\\\\\'\nE ? ++", "returncode": 0, "exception_info": "", "branch": "72a39496391b"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04246426099999212, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.057350304999999935, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04367055999998115, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.04414522499999407, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 4.071890612000004, "output": "Installing test dependencies...\nRunning tests...\n============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [116 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_argument_parsing.py::TestFlagFormats::test_boolean_flag_no_prefix \neval/tests/test_argument_parsing.py::TestFlagFormats::test_verbose_flag \neval/tests/test_argument_parsing.py::TestUnknownFlags::test_unknown_short_flag \neval/tests/test_argument_parsing.py::TestRequiredArguments::test_keyword_and_replacement \neval/tests/test_argument_parsing.py::TestOptionValues::test_size_per_thread_with_value \neval/tests/test_argument_parsing.py::TestFlagFormats::test_short_flag_r \n[gw5] [ 0%] PASSED eval/tests/test_argument_parsing.py::TestFlagFormats::test_boolean_flag_no_prefix \neval/tests/test_argument_parsing.py::TestRequiredArguments::test_no_arguments \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_invalid_value \n[gw7] [ 1%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_invalid_value \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_equals_format \n[gw6] [ 2%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_equals_format \n[gw3] [ 3%] PASSED eval/tests/test_argument_parsing.py::TestFlagFormats::test_short_flag_r \n[gw0] [ 4%] PASSED eval/tests/test_argument_parsing.py::TestRequiredArguments::test_no_arguments \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_zero \n[gw4] [ 5%] PASSED eval/tests/test_argument_parsing.py::TestFlagFormats::test_verbose_flag \n[gw9] [ 6%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_size_per_thread_with_value \n[gw8] [ 6%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_zero \n[gw1] [ 7%] PASSED eval/tests/test_argument_parsing.py::TestRequiredArguments::test_keyword_and_replacement \n[gw2] [ 8%] PASSED eval/tests/test_argument_parsing.py::TestUnknownFlags::test_unknown_short_flag \neval/tests/test_argument_parsing.py::TestFlagFormats::test_long_flag_regex \neval/tests/test_argument_parsing.py::TestOptionValues::test_size_per_thread_invalid_value \neval/tests/test_argument_parsing.py::TestRequiredArguments::test_only_keyword \neval/tests/test_argument_parsing.py::TestUnknownFlags::test_misspelled_flag \neval/tests/test_argument_parsing.py::TestFlagFormats::test_combined_short_flags_not_supported \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_negative_value \n[gw9] [ 9%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_size_per_thread_invalid_value \n[gw0] [ 10%] PASSED eval/tests/test_argument_parsing.py::TestRequiredArguments::test_only_keyword \n[gw3] [ 11%] PASSED eval/tests/test_argument_parsing.py::TestFlagFormats::test_long_flag_regex \n[gw4] [ 12%] PASSED eval/tests/test_argument_parsing.py::TestFlagFormats::test_combined_short_flags_not_supported \n[gw2] [ 12%] PASSED eval/tests/test_argument_parsing.py::TestUnknownFlags::test_misspelled_flag \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_missing_value \n[gw6] [ 13%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_missing_value \n[gw7] [ 14%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_negative_value \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_with_value \neval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_overflow \neval/tests/test_argument_parsing.py::TestUnknownFlags::test_unknown_flag \n[gw5] [ 15%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_with_value \n[gw8] [ 16%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_max_threads_overflow \n[gw1] [ 17%] PASSED eval/tests/test_argument_parsing.py::TestUnknownFlags::test_unknown_flag \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_with_spaces \neval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_with_path_after \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_replacement_and_multiple_paths \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--row] \neval/tests/test_argument_parsing.py::TestOptionValues::test_mmap_bytes_invalid_value \neval/tests/test_argument_parsing.py::TestFlagOrdering::test_option_with_value_before_positional \n[gw3] [ 18%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_with_spaces \n[gw6] [ 18%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_replacement_and_multiple_paths \n[gw9] [ 19%] PASSED eval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_with_path_after \n[gw7] [ 20%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_mmap_bytes_invalid_value \n[gw4] [ 21%] PASSED eval/tests/test_argument_parsing.py::TestFlagOrdering::test_option_with_value_before_positional \n[gw2] [ 22%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--row] \neval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_after_positional \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--regex] \n[gw0] [ 23%] PASSED eval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_after_positional \n[gw1] [ 24%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--regex] \neval/tests/test_argument_parsing.py::TestOptionValues::test_bin_check_bytes_with_value \neval/tests/test_argument_parsing.py::TestVersionFlag::test_version_short_flag \n[gw5] [ 25%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_bin_check_bytes_with_value \n[gw8] [ 25%] PASSED eval/tests/test_argument_parsing.py::TestVersionFlag::test_version_short_flag \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--binary] \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_with_special_chars \neval/tests/test_argument_parsing.py::TestVersionFlag::test_version_long_flag \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_empty_string_keyword \neval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_after_args \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_and_replacement_only \n[gw4] [ 26%] PASSED eval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_after_args \n[gw3] [ 27%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_with_special_chars \n[gw6] [ 28%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_empty_string_keyword \n[gw2] [ 29%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--binary] \n[gw7] [ 30%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_and_replacement_only \n[gw9] [ 31%] PASSED eval/tests/test_argument_parsing.py::TestVersionFlag::test_version_long_flag \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--column] \n[gw1] [ 31%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--column] \neval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_mixed_with_positional \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--verbose] \neval/tests/test_argument_parsing.py::TestOptionValues::test_bin_check_bytes_invalid_value \n[gw5] [ 32%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_bin_check_bytes_invalid_value \n[gw8] [ 33%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--verbose] \n[gw0] [ 34%] PASSED eval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_mixed_with_positional \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_replacement_and_path \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--preserve-time] \neval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_before_positional \neval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_before_args \neval/tests/test_argument_parsing.py::TestPositionalArguments::test_empty_string_replacement \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--statistics] \n[gw4] [ 35%] PASSED eval/tests/test_argument_parsing.py::TestDoubleDashSeparator::test_double_dash_before_args \n[gw2] [ 36%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--preserve-time] \n[gw9] [ 37%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--statistics] \n[gw3] [ 37%] PASSED eval/tests/test_argument_parsing.py::TestFlagOrdering::test_flags_before_positional \n[gw6] [ 38%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_empty_string_replacement \n[gw7] [ 39%] PASSED eval/tests/test_argument_parsing.py::TestPositionalArguments::test_keyword_replacement_and_path \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--sse] \n[gw1] [ 40%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--sse] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--rep-from-file] \n[gw8] [ 41%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--rep-from-file] \neval/tests/test_argument_parsing.py::TestFlagOrdering::test_multiple_flags_before_positional \neval/tests/test_argument_parsing.py::TestOptionValues::test_mmap_bytes_with_value \n[gw5] [ 42%] PASSED eval/tests/test_argument_parsing.py::TestOptionValues::test_mmap_bytes_with_value \n[gw0] [ 43%] PASSED eval/tests/test_argument_parsing.py::TestFlagOrdering::test_multiple_flags_before_positional \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-skip-gitignore] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-color] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-skip-vcs] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-recursive] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--skipped] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--tbm] \n[gw7] [ 43%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-skip-gitignore] \n[gw3] [ 44%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-color] \n[gw9] [ 45%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--skipped] \n[gw2] [ 46%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--tbm] \n[gw4] [ 47%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-recursive] \n[gw6] [ 48%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-skip-vcs] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--key-from-file] \n[gw1] [ 49%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_positive_boolean_flags[--key-from-file] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-interactive] \n[gw8] [ 50%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-interactive] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-parent-ignore] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-fixed-order] \n[gw5] [ 50%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-fixed-order] \n[gw0] [ 51%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-parent-ignore] \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-file] \neval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_verbose_flag_twice \neval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_regex_flag_multiple_times \neval/tests/test_argument_parsing.py::TestEdgeCases::test_keyword_starting_with_dash \neval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-symlink] \n[gw3] [ 52%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-file] \n[gw7] [ 53%] PASSED eval/tests/test_argument_parsing.py::TestEdgeCases::test_keyword_starting_with_dash \n[gw2] [ 54%] PASSED eval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_verbose_flag_twice \n[gw4] [ 55%] PASSED eval/tests/test_argument_parsing.py::TestBooleanFlags::test_negative_boolean_flags[--no-symlink] \n[gw6] [ 56%] PASSED eval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_regex_flag_multiple_times \neval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_max_threads_twice \neval/tests/test_argument_parsing.py::TestEdgeCases::test_path_with_spaces \n[gw9] [ 56%] PASSED eval/tests/test_argument_parsing.py::TestMultipleFlagOccurrences::test_max_threads_twice \n[gw1] [ 57%] PASSED eval/tests/test_argument_parsing.py::TestEdgeCases::test_path_with_spaces \neval/tests/test_argument_parsing.py::TestEdgeCases::test_unicode_keyword \n[gw8] [ 58%] PASSED eval/tests/test_argument_parsing.py::TestEdgeCases::test_unicode_keyword \neval/tests/test_argument_parsing.py::TestFileFromFlags::test_rep_from_file_flag \neval/tests/test_argument_parsing.py::TestShortFlagEquivalence::test_r_equals_regex \neval/tests/test_argument_parsing.py::TestExperimentalFlags::test_sse_flag \neval/tests/test_argument_parsing.py::TestFileFromFlags::test_key_from_file_flag \neval/tests/test_argument_parsing.py::TestEdgeCases::test_very_long_keyword \neval/tests/test_argument_parsing.py::TestEdgeCases::test_only_flags_no_positional \n[gw0] [ 59%] PASSED eval/tests/test_argument_parsing.py::TestEdgeCases::test_only_flags_no_positional \n[gw3] [ 60%] PASSED eval/tests/test_argument_parsing.py::TestFileFromFlags::test_rep_from_file_flag \n[gw7] [ 61%] PASSED eval/tests/test_argument_parsing.py::TestFileFromFlags::test_key_from_file_flag \n[gw2] [ 62%] PASSED eval/tests/test_argument_parsing.py::TestShortFlagEquivalence::test_r_equals_regex \n[gw6] [ 62%] PASSED eval/tests/test_argument_parsing.py::TestExperimentalFlags::test_sse_flag \n[gw5] [ 63%] PASSED eval/tests/test_argument_parsing.py::TestEdgeCases::test_very_long_keyword \neval/tests/test_argument_parsing.py::TestExperimentalFlags::test_tbm_flag \n[gw4] [ 64%] PASSED eval/tests/test_argument_parsing.py::TestExperimentalFlags::test_tbm_flag \neval/tests/test_argument_parsing.py::TestFileFromFlags::test_both_from_file_flags \neval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_space_separated_value \n[gw9] [ 65%] PASSED eval/tests/test_argument_parsing.py::TestFileFromFlags::test_both_from_file_flags \n[gw1] [ 66%] PASSED eval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_space_separated_value \neval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_equals_separated_value \n[gw8] [ 67%] PASSED eval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_equals_separated_value \neval/tests/test_argument_parsing.py::TestFlagValueFormats::test_multiple_options_mixed_formats \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--max-threads-not_a_number] \neval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_equals_no_space \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--bin-check-bytes-xyz123] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--max-threads] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--size-per-thread-invalid] \n[gw0] [ 68%] PASSED eval/tests/test_argument_parsing.py::TestFlagValueFormats::test_multiple_options_mixed_formats \n[gw5] [ 68%] PASSED eval/tests/test_argument_parsing.py::TestFlagValueFormats::test_option_equals_no_space \n[gw3] [ 69%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--max-threads-not_a_number] \n[gw2] [ 70%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--bin-check-bytes-xyz123] \n[gw6] [ 71%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--max-threads] \n[gw7] [ 72%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--size-per-thread-invalid] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--mmap-bytes-abc] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--bin-check-bytes] \n[gw4] [ 73%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_non_numeric_values[--mmap-bytes-abc] \n[gw1] [ 74%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--bin-check-bytes] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--size-per-thread] \n[gw9] [ 75%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--size-per-thread] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--mmap-bytes] \n[gw8] [ 75%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_empty_string_values[--mmap-bytes] \neval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_very_large_numeric_value \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_multiple_empty_paths \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_replacement_with_special_chars \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_absolute_paths \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_paths_with_dashes \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_keyword_with_equals_sign \n[gw7] [ 76%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_replacement_with_special_chars \n[gw6] [ 77%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_multiple_empty_paths \n[gw2] [ 78%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_paths_with_dashes \n[gw0] [ 79%] PASSED eval/tests/test_argument_parsing.py::TestInvalidOptionValues::test_very_large_numeric_value \n[gw5] [ 80%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_absolute_paths \n[gw3] [ 81%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_keyword_with_equals_sign \neval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_relative_paths \neval/tests/test_argument_parsing.py::TestConflictingFlags::test_interactive_and_no_interactive \n[gw4] [ 81%] PASSED eval/tests/test_argument_parsing.py::TestPositionalEdgeCases::test_relative_paths \n[gw1] [ 82%] PASSED eval/tests/test_argument_parsing.py::TestConflictingFlags::test_interactive_and_no_interactive \neval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \neval/tests/test_argument_parsing.py::TestConflictingFlags::test_color_and_no_color \n[gw8] [ 83%] PASSED eval/tests/test_argument_parsing.py::TestConflictingFlags::test_color_and_no_color \neval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_many_boolean_flags \neval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_newlines_escaped \neval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_many_no_flags \neval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_quotes \neval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_all_options_with_values \neval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_backslashes \n[gw2] [ 84%] PASSED eval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_newlines_escaped \n[gw3] [ 85%] PASSED eval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_all_options_with_values \n[gw0] [ 86%] PASSED eval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_many_boolean_flags \n[gw5] [ 87%] PASSED eval/tests/test_argument_parsing.py::TestAllFlagsCombined::test_many_no_flags \n[gw6] [ 87%] PASSED eval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_quotes \n[gw7] [ 88%] PASSED eval/tests/test_argument_parsing.py::TestSpecialCharacters::test_keyword_with_backslashes \neval/tests/test_argument_parsing.py::TestSpecialCharacters::test_path_with_special_chars \neval/tests/test_argument_parsing.py::TestSpecialCharacters::test_all_args_with_unicode \n[gw4] [ 89%] PASSED eval/tests/test_argument_parsing.py::TestSpecialCharacters::test_path_with_special_chars \n[gw1] [ 90%] PASSED eval/tests/test_argument_parsing.py::TestSpecialCharacters::test_all_args_with_unicode \neval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_max_threads_very_large \n[gw8] [ 91%] PASSED eval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_max_threads_very_large \neval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_size_per_thread_one \neval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_mmap_bytes_zero \neval/tests/test_argument_parsing.py::TestFlagCase::test_uppercase_flag \neval/tests/test_argument_parsing.py::TestDashVariants::test_single_dash_long_flag \neval/tests/test_argument_parsing.py::TestFlagCase::test_mixed_case_flag \neval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_bin_check_bytes_one \n[gw7] [ 92%] PASSED eval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_size_per_thread_one \n[gw2] [ 93%] PASSED eval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_mmap_bytes_zero \n[gw0] [ 93%] PASSED eval/tests/test_argument_parsing.py::TestFlagCase::test_uppercase_flag \n[gw6] [ 94%] PASSED eval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_bin_check_bytes_one \n[gw3] [ 95%] PASSED eval/tests/test_argument_parsing.py::TestDashVariants::test_single_dash_long_flag \n[gw5] [ 96%] PASSED eval/tests/test_argument_parsing.py::TestFlagCase::test_mixed_case_flag \neval/tests/test_argument_parsing.py::TestDashVariants::test_flag_without_dash \neval/tests/test_argument_parsing.py::TestDashVariants::test_triple_dash_flag \n[gw1] [ 97%] PASSED eval/tests/test_argument_parsing.py::TestDashVariants::test_flag_without_dash \n[gw4] [ 98%] PASSED eval/tests/test_argument_parsing.py::TestDashVariants::test_triple_dash_flag \n[gw9] [ 99%] RERUN eval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \neval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \n[gw9] [ 99%] RERUN eval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \neval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \n[gw9] [ 99%] FAILED eval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex \neval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_max_threads_one \n[gw9] [100%] PASSED eval/tests/test_argument_parsing.py::TestNumericEdgeCases::test_max_threads_one \n\n=================================== FAILURES ===================================\n_________________ TestConflictingFlags.test_regex_and_no_regex _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_regex_and_no_regex(self):\n \"\"\"Test --regex and --no-regex together (last one should win).\"\"\"\n result = run_executable([\"--regex\", \"--no-regex\", \"keyword\", \"replacement\"])\n # Should not produce argument parsing error\n assert \"required arguments\" not in result.stderr.lower()\n> assert \"wasn't expected\" not in result.stderr\nE assert \"wasn't expected\" not in 'error: Foun...try --help\\n'\nE \nE \"wasn't expected\" is contained here:\nE error: Found argument '--no-regex' which wasn't expected, or isn't valid in this context\nE ? +++++++++++++++\nE \tDid you mean \u001b[32m--\u001b[0m\u001b[32mregex\u001b[0m?\nE \nE USAGE:...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to show\n\neval/tests/test_argument_parsing.py:574: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_argument_parsing.py::TestConflictingFlags::test_regex_and_no_regex\n==================== 1 failed, 115 passed, 2 rerun in 3.06s ====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp efcbe1847323afe3ee63b530547fd40cfb7192c3d1b29ced35640ba4c0cd9c76:/workspace/eval/results.xml /tmp/tmpy_mq_a11.xml", "wall_time": 0.013762735999989673, "output": "self = <tests.test_argument_parsing.TestConflictingFlags object at 0x7f51c9117fa0>\n\n def test_regex_and_no_regex(self):\n \"\"\"Test --regex and --no-regex together (last one should win).\"\"\"\n result = run_executable([\"--regex\", \"--no-regex\", \"keyword\", \"replacement\"])\n # Should not produce argument parsing error\n assert \"required arguments\" not in result.stderr.lower()\n> assert \"wasn't expected\" not in result.stderr\nE assert \"wasn't expected\" not in 'error: Foun...try --help\\n'\nE \nE \"wasn't expected\" is contained here:\nE error: Found argument '--no-regex' which wasn't expected, or isn't valid in this context\nE ? +++++++++++++++\nE \tDid you mean #x1B[32m--#x1B[0m#x1B[32mregex#x1B[0m?\nE \nE USAGE:...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to show\n\neval/tests/test_argument_parsing.py:574: AssertionError", "returncode": 0, "exception_info": "", "branch": "637103d0c48c"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04439045600000213, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.05959783299999799, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.039740489999985584, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.044146205999993526, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 2.7043368829999963, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [15 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_argparse_validation.py::test_unknown_flag_errors \neval/tests/test_argparse_validation.py::test_numeric_option_rejects_too_large \neval/tests/test_argparse_validation.py::test_missing_required_positionals[args0-expected_substrings0] \neval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--mmap-bytes] \neval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--max-threads] \neval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--size-per-thread] \n[gw9] [ 6%] PASSED eval/tests/test_argparse_validation.py::test_numeric_option_rejects_too_large \neval/tests/test_argparse_validation.py::test_numeric_option_rejects_negative_when_ambiguous \n[gw0] [ 13%] PASSED eval/tests/test_argparse_validation.py::test_unknown_flag_errors \n[gw1] [ 20%] PASSED eval/tests/test_argparse_validation.py::test_missing_required_positionals[args0-expected_substrings0] \n[gw4] [ 26%] PASSED eval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--max-threads] \neval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--bin-check-bytes] \n[gw6] [ 33%] PASSED eval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--bin-check-bytes] \neval/tests/test_argparse_validation.py::test_missing_required_positionals[args1-expected_substrings1] \n[gw2] [ 40%] PASSED eval/tests/test_argparse_validation.py::test_missing_required_positionals[args1-expected_substrings1] \n[gw5] [ 46%] PASSED eval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--size-per-thread] \n[gw8] [ 53%] PASSED eval/tests/test_argparse_validation.py::test_numeric_option_rejects_negative_when_ambiguous \neval/tests/test_argparse_validation.py::test_option_missing_value \n[gw7] [ 60%] PASSED eval/tests/test_argparse_validation.py::test_numeric_options_reject_non_integer[--mmap-bytes] \n[gw3] [ 66%] PASSED eval/tests/test_argparse_validation.py::test_option_missing_value \neval/tests/test_argparse_validation.py::test_double_dash_stops_option_parsing \neval/tests/test_argparse_validation.py::test_rejects_duplicate_non_repeatable_option \n[gw2] [ 73%] PASSED eval/tests/test_argparse_validation.py::test_rejects_duplicate_non_repeatable_option \n[gw4] [ 80%] PASSED eval/tests/test_argparse_validation.py::test_double_dash_stops_option_parsing \neval/tests/test_argparse_validation.py::test_numeric_option_accepts_space_and_equals_forms[args0] \neval/tests/test_argparse_validation.py::test_numeric_option_accepts_space_and_equals_forms[args1] \n[gw0] [ 86%] PASSED eval/tests/test_argparse_validation.py::test_numeric_option_accepts_space_and_equals_forms[args0] \n[gw1] [ 93%] PASSED eval/tests/test_argparse_validation.py::test_numeric_option_accepts_space_and_equals_forms[args1] \neval/tests/test_argparse_validation.py::test_rejects_duplicate_flag_aliases \n[gw3] [100%] PASSED eval/tests/test_argparse_validation.py::test_rejects_duplicate_flag_aliases \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 15 passed in 0.58s ==============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp ae390c288d29185541764a1ed951f5fa9809193c5c0b5419d061bb6eb0a2a27d:/workspace/eval/results.xml /tmp/tmpvtneh3tl.xml", "wall_time": 0.013943622999988747, "output": "", "returncode": 0, "exception_info": "", "branch": "a9b17933254a"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.046047369000007166, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.05976213400001029, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.043760479000013675, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.04186442499999998, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 2.820255231999994, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [5 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_config_handling.py::test_cli_no_color_overrides_config_color_true \neval/tests/test_config_handling.py::test_invalid_config_is_ignored_and_defaults_apply \neval/tests/test_config_handling.py::test_ambr_falls_back_to_home_config_dir_when_no_dotfile \neval/tests/test_config_handling.py::test_ambr_prefers_dotfile_over_home_config_dir \neval/tests/test_config_handling.py::test_ambr_projectdirs_preferred_over_home_config_dir \n[gw4] [ 20%] PASSED eval/tests/test_config_handling.py::test_cli_no_color_overrides_config_color_true \n[gw1] [ 40%] PASSED eval/tests/test_config_handling.py::test_ambr_falls_back_to_home_config_dir_when_no_dotfile \n[gw2] [ 60%] PASSED eval/tests/test_config_handling.py::test_ambr_projectdirs_preferred_over_home_config_dir \n[gw0] [ 80%] PASSED eval/tests/test_config_handling.py::test_ambr_prefers_dotfile_over_home_config_dir \n[gw3] [100%] PASSED eval/tests/test_config_handling.py::test_invalid_config_is_ignored_and_defaults_apply \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 5 passed in 0.53s ===============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp e69d7639005f4ffb9b76159ceeccd92c3f2cd1fa9a22382c3c4f176369f213ae:/workspace/eval/results.xml /tmp/tmp1lfhq03t.xml", "wall_time": 0.013522588999990148, "output": "", "returncode": 0, "exception_info": "", "branch": "1c21fab78b73"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.045237410999988015, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.057496792999984336, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.0414033669999867, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.04210619599999177, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 2.9858575639999856, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [41 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_help_usage.py::test_flags_documented[--no-symlink] \neval/tests/test_help_usage.py::test_flags_documented[--no-interactive] \neval/tests/test_help_usage.py::test_usage_line_exact \neval/tests/test_help_usage.py::test_flags_documented[--key-from-file] \neval/tests/test_help_usage.py::test_flags_documented[--verbose] \neval/tests/test_help_usage.py::test_help_exit_code_zero \neval/tests/test_help_usage.py::test_help_trailing_newline \neval/tests/test_help_usage.py::test_flags_documented[--binary] \neval/tests/test_help_usage.py::test_flags_documented[--column] \n[gw2] [ 2%] PASSED eval/tests/test_help_usage.py::test_usage_line_exact \neval/tests/test_help_usage.py::test_flags_documented[--skipped] \n[gw4] [ 4%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--verbose] \n[gw9] [ 7%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-symlink] \n[gw8] [ 9%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-interactive] \n[gw3] [ 12%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--key-from-file] \n[gw6] [ 14%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--binary] \n[gw1] [ 17%] PASSED eval/tests/test_help_usage.py::test_help_trailing_newline \n[gw7] [ 19%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--skipped] \n[gw5] [ 21%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--column] \n[gw0] [ 24%] PASSED eval/tests/test_help_usage.py::test_help_exit_code_zero \neval/tests/test_help_usage.py::test_flags_documented[--preserve-time] \neval/tests/test_help_usage.py::test_flags_documented[--statistics] \n[gw6] [ 26%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--statistics] \n[gw7] [ 29%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--preserve-time] \neval/tests/test_help_usage.py::test_flags_documented[-r, --regex] \n[gw4] [ 31%] PASSED eval/tests/test_help_usage.py::test_flags_documented[-r, --regex] \neval/tests/test_help_usage.py::test_flags_documented[--no-recursive] \neval/tests/test_help_usage.py::test_flags_documented[--no-color] \neval/tests/test_help_usage.py::test_help_has_headers \neval/tests/test_help_usage.py::test_help_goes_to_stdout \n[gw8] [ 34%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-recursive] \n[gw0] [ 36%] PASSED eval/tests/test_help_usage.py::test_help_goes_to_stdout \n[gw1] [ 39%] PASSED eval/tests/test_help_usage.py::test_help_has_headers \n[gw9] [ 41%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-color] \neval/tests/test_help_usage.py::test_flags_documented[--rep-from-file] \neval/tests/test_help_usage.py::test_flags_documented[--row] \neval/tests/test_help_usage.py::test_help_has_program_name_and_version_line \n[gw3] [ 43%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--rep-from-file] \n[gw5] [ 46%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--row] \n[gw2] [ 48%] PASSED eval/tests/test_help_usage.py::test_help_has_program_name_and_version_line \neval/tests/test_help_usage.py::test_options_documented[--max-threads ] \neval/tests/test_help_usage.py::test_flags_documented[--sse] \neval/tests/test_help_usage.py::test_flags_documented[-h, --help] \neval/tests/test_help_usage.py::test_flags_documented[--no-fixed-order] \n[gw0] [ 51%] PASSED eval/tests/test_help_usage.py::test_options_documented[--max-threads ] \n[gw1] [ 53%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--sse] \n[gw8] [ 56%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-fixed-order] \n[gw7] [ 58%] PASSED eval/tests/test_help_usage.py::test_flags_documented[-h, --help] \neval/tests/test_help_usage.py::test_flags_documented[--tbm] \neval/tests/test_help_usage.py::test_flags_documented[--no-skip-vcs] \neval/tests/test_help_usage.py::test_flags_documented[--no-skip-gitignore] \n[gw6] [ 60%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--tbm] \n[gw4] [ 63%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-skip-vcs] \n[gw9] [ 65%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-skip-gitignore] \neval/tests/test_help_usage.py::test_flags_documented[--no-file] \n[gw2] [ 68%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-file] \neval/tests/test_help_usage.py::test_flags_documented[--no-parent-ignore] \neval/tests/test_help_usage.py::test_flags_documented[-V, --version] \n[gw3] [ 70%] PASSED eval/tests/test_help_usage.py::test_flags_documented[--no-parent-ignore] \n[gw5] [ 73%] PASSED eval/tests/test_help_usage.py::test_flags_documented[-V, --version] \neval/tests/test_help_usage.py::test_options_documented[--bin-check-bytes ] \neval/tests/test_help_usage.py::test_args_documented[ Keyword for search] \neval/tests/test_help_usage.py::test_args_documented[ Keyword for replace] \neval/tests/test_help_usage.py::test_args_documented[ ... Search paths] \n[gw7] [ 75%] PASSED eval/tests/test_help_usage.py::test_options_documented[--bin-check-bytes ] \n[gw0] [ 78%] PASSED eval/tests/test_help_usage.py::test_args_documented[ Keyword for replace] \n[gw1] [ 80%] PASSED eval/tests/test_help_usage.py::test_args_documented[ ... Search paths] \n[gw8] [ 82%] PASSED eval/tests/test_help_usage.py::test_args_documented[ Keyword for search] \neval/tests/test_help_usage.py::test_short_help_matches_long_help_exact \neval/tests/test_help_usage.py::test_help_contains_no_ansi_escape_sequences \n[gw2] [ 85%] PASSED eval/tests/test_help_usage.py::test_help_contains_no_ansi_escape_sequences \n[gw9] [ 87%] PASSED eval/tests/test_help_usage.py::test_short_help_matches_long_help_exact \neval/tests/test_help_usage.py::test_options_documented[--mmap-bytes ] \neval/tests/test_help_usage.py::test_options_documented[--size-per-thread ] \neval/tests/test_help_usage.py::test_help_takes_precedence_with_other_flag \n[gw4] [ 90%] PASSED eval/tests/test_help_usage.py::test_options_documented[--mmap-bytes ] \n[gw6] [ 92%] PASSED eval/tests/test_help_usage.py::test_options_documented[--size-per-thread ] \n[gw3] [ 95%] PASSED eval/tests/test_help_usage.py::test_help_takes_precedence_with_other_flag \neval/tests/test_help_usage.py::test_help_after_double_dash_still_shows_help \n[gw5] [ 97%] PASSED eval/tests/test_help_usage.py::test_help_after_double_dash_still_shows_help \neval/tests/test_help_usage.py::test_version_flag_output_format \n[gw0] [100%] PASSED eval/tests/test_help_usage.py::test_version_flag_output_format \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 41 passed in 0.72s ==============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 469760fe2251dbfe57e1993182c0a66854f724178aa183f6945d5af5b47836f9:/workspace/eval/results.xml /tmp/tmp1ws89vq8.xml", "wall_time": 0.012010973000002423, "output": "", "returncode": 0, "exception_info": "", "branch": "75e236706598"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04562224099998957, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.061913187999977026, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04172383100001298, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.042649629000010236, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 1.6465731539999808, "output": "==========================================\nSubcommand Dispatch and Routing Tests\n==========================================\n\nRunning tests...\n\n============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace/eval\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [18 items]\n\nscheduling tests via LoadScheduling\n\ntests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_unknown_argument_not_treated_as_subcommand \ntests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_no_subcommand_help_command \ntests/test_subcommand_dispatch.py::TestFlagParsing::test_flag_before_positional_args \ntests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_executable_is_not_subcommand_based \ntests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_version_flag_shows_single_command \ntests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_two_arguments_accepted_as_keyword_replacement \ntests/test_subcommand_dispatch.py::TestFlagParsing::test_help_flag_shows_global_flags \n[gw1] [ 5%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_no_subcommand_help_command \ntests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_requires_keyword_and_replacement_arguments \n[gw2] [ 11%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_unknown_argument_not_treated_as_subcommand \ntests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_keyword_only_requires_replacement \n[gw0] [ 16%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_executable_is_not_subcommand_based \n[gw3] [ 22%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandArchitecture::test_version_flag_shows_single_command \n[gw8] [ 27%] PASSED tests/test_subcommand_dispatch.py::TestFlagParsing::test_flag_before_positional_args \n[gw6] [ 33%] PASSED tests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_two_arguments_accepted_as_keyword_replacement \n[gw5] [ 38%] PASSED tests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_keyword_only_requires_replacement \n[gw7] [ 44%] PASSED tests/test_subcommand_dispatch.py::TestFlagParsing::test_help_flag_shows_global_flags \n[gw4] [ 50%] PASSED tests/test_subcommand_dispatch.py::TestPositionalArgumentParsing::test_requires_keyword_and_replacement_arguments \ntests/test_subcommand_dispatch.py::TestFlagParsing::test_flag_after_positional_args \n[gw9] [ 55%] PASSED tests/test_subcommand_dispatch.py::TestFlagParsing::test_flag_after_positional_args \ntests/test_subcommand_dispatch.py::test_summary_subcommands_not_applicable \ntests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_remove_subcommand \ntests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_list_subcommand \ntests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_tool_description_indicates_single_purpose \ntests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_usage_shows_keyword_replacement_pattern \n[gw3] [ 61%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_list_subcommand \n[gw5] [ 66%] PASSED tests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_usage_shows_keyword_replacement_pattern \n[gw2] [ 72%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_remove_subcommand \n[gw6] [ 77%] PASSED tests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_tool_description_indicates_single_purpose \n[gw7] [ 83%] PASSED tests/test_subcommand_dispatch.py::test_summary_subcommands_not_applicable \ntests/test_subcommand_dispatch.py::TestFlagParsing::test_unknown_flag_shows_error \ntests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_executable_is_ambr_replace_tool \ntests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_add_subcommand \n[gw0] [ 88%] PASSED tests/test_subcommand_dispatch.py::TestFlagParsing::test_unknown_flag_shows_error \n[gw4] [ 94%] PASSED tests/test_subcommand_dispatch.py::TestArchitectureDocumentation::test_executable_is_ambr_replace_tool \n[gw1] [100%] PASSED tests/test_subcommand_dispatch.py::TestNoSubcommandAliases::test_no_add_subcommand \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 18 passed in 0.56s ==============================\n\n==========================================\nTest execution complete\nResults saved to eval/results.xml\n==========================================\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 1665cb7b69aef1a7c8440579ce1cabe723bafa1e0487df81ab9016bd21867450:/workspace/eval/results.xml /tmp/tmpaf9jtpqa.xml", "wall_time": 0.013356009000005997, "output": "", "returncode": 0, "exception_info": "", "branch": "c210af0c2517"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04273791500000357, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.059518107000002374, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.040627120000010564, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.04202776000002473, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 14.574197044000016, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncollecting ... collected 6 items\n\neval/tests/test_externalized.py::test_ext_pipeline_finder_default_skips_vcs RERUN [ 16%]\neval/tests/test_externalized.py::test_ext_pipeline_finder_default_skips_vcs RERUN [ 16%]\neval/tests/test_externalized.py::test_ext_pipeline_finder_default_skips_vcs FAILED [ 16%]\neval/tests/test_externalized.py::test_ext_pipeline_finder_not_skip_vcs_includes_git_config PASSED [ 33%]\neval/tests/test_externalized.py::test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions RERUN [ 50%]\neval/tests/test_externalized.py::test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions RERUN [ 50%]\neval/tests/test_externalized.py::test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions FAILED [ 50%]\neval/tests/test_externalized.py::test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others RERUN [ 66%]\neval/tests/test_externalized.py::test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others RERUN [ 66%]\neval/tests/test_externalized.py::test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others FAILED [ 66%]\neval/tests/test_externalized.py::test_ext_matcher_counts_multiple_occurrences_and_unicode_via_prompts PASSED [ 83%]\neval/tests/test_externalized.py::test_ext_pipeline_sorter_fixed_order_guarantee_by_paths_order PASSED [100%]\n\n=================================== FAILURES ===================================\n__________________ test_ext_pipeline_finder_default_skips_vcs __________________\n\n def test_ext_pipeline_finder_default_skips_vcs():\n \"\"\"Externalized from: src/pipeline_finder.rs::tests::pipeline_finder_default\n \n Upward trace: CLI main(ambr) -> pipeline build -> PipelineFinder::new(skip_vcs=true) over PATHS.\n Downward trace: matched files are shown in interactive output as \": \".\n \"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./\", keys=[\"q\", \"Enter\"])\n> assert \"src/\" in out\nE assert 'src/' in './Cargo.lock: name = \"amber\"\\n -> name = \"AMBER\"\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:80: AssertionError\n________ test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions ________\n\n def test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions():\n \"\"\"Externalized from: src/ignore.rs::tests::ignore_git\"\"\"\n with TempDir() as td:\n gitignore_src = Path(\"test/.gitignore\")\n td.write(\".gitignore\", gitignore_src.read_text())\n \n paths = [\n \"ao\",\n \"a.o\",\n \"abc.o\",\n \"a.s\",\n \"abc.s\",\n \"d0.t\",\n \"d00.t\",\n \"file\",\n \"dir0/file\",\n \"dir1/file\",\n \"x/file\",\n \"x/dir0/file\",\n \"x/dir1/file\",\n ]\n for p in paths:\n td.write(p, \"amber\\n\")\n \n out = _tmux_run_ambr_capture(\n f\"./executable --no-skip-gitignore amber AMBER {td.path}\", keys=[\"q\", \"Enter\"]\n )\n \n> assert \"dir0/file\" in out\nE AssertionError: assert 'dir0/file' in '/tmp/tmp8v8at0us/ao: amber\\n -> AMBER\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:128: AssertionError\n_____ test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others _____\n\n def test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others():\n \"\"\"Externalized from: src/pipeline_matcher.rs::tests::pipeline_matcher\"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./src\", keys=[\"q\", \"Enter\"])\n> assert \"src/ambs.rs\" in out\nE AssertionError: assert 'src/ambs.rs' in './src/config.rs: //! Configuration file handling (~/.ambr.toml, /amber/ambr.toml, /etc/amber/ambr.toml).\\n -> //! Configuration file handling (~/.ambr.toml, /AMBER/ambr.toml, /etc/amber/ambr.toml).\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:139: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_externalized.py::test_ext_pipeline_finder_default_skips_vcs\nFAILED eval/tests/test_externalized.py::test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions\nFAILED eval/tests/test_externalized.py::test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others\n==================== 3 failed, 3 passed, 6 rerun in 12.29s =====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp e6f08505755ad7bbe5cfa03976ac8f771a1252b177ceed5635c5cd81ebcc6185:/workspace/eval/results.xml /tmp/tmpof_g962u.xml", "wall_time": 0.01157713500001023, "output": "def test_ext_pipeline_finder_default_skips_vcs():\n \"\"\"Externalized from: src/pipeline_finder.rs::tests::pipeline_finder_default\n \n Upward trace: CLI main(ambr) -> pipeline build -> PipelineFinder::new(skip_vcs=true) over PATHS.\n Downward trace: matched files are shown in interactive output as \"<file>: <line>\".\n \"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./\", keys=[\"q\", \"Enter\"])\n> assert \"src/\" in out\nE assert 'src/' in './Cargo.lock: name = \"amber\"\\n -> name = \"AMBER\"\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:80: AssertionErrordef test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions():\n \"\"\"Externalized from: src/ignore.rs::tests::ignore_git\"\"\"\n with TempDir() as td:\n gitignore_src = Path(\"test/.gitignore\")\n td.write(\".gitignore\", gitignore_src.read_text())\n \n paths = [\n \"ao\",\n \"a.o\",\n \"abc.o\",\n \"a.s\",\n \"abc.s\",\n \"d0.t\",\n \"d00.t\",\n \"file\",\n \"dir0/file\",\n \"dir1/file\",\n \"x/file\",\n \"x/dir0/file\",\n \"x/dir1/file\",\n ]\n for p in paths:\n td.write(p, \"amber\\n\")\n \n out = _tmux_run_ambr_capture(\n f\"./executable --no-skip-gitignore amber AMBER {td.path}\", keys=[\"q\", \"Enter\"]\n )\n \n> assert \"dir0/file\" in out\nE AssertionError: assert 'dir0/file' in '/tmp/tmp8v8at0us/ao: amber\\n -> AMBER\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:128: AssertionErrordef test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others():\n \"\"\"Externalized from: src/pipeline_matcher.rs::tests::pipeline_matcher\"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./src\", keys=[\"q\", \"Enter\"])\n> assert \"src/ambs.rs\" in out\nE AssertionError: assert 'src/ambs.rs' in './src/config.rs: //! Configuration file handling (~/.ambr.toml, <config dir>/amber/ambr.toml, /etc/amber/ambr.toml).\\n -> //! Configuration file handling (~/.ambr.toml, <config dir>/AMBER/ambr.toml, /etc/amber/ambr.toml).\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:139: AssertionError", "returncode": 0, "exception_info": "", "branch": "c2324775415c"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04438903400000527, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.060828833999977405, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04161416299999132, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.041506096999995634, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 7.8646883259999925, "output": "Requirement already satisfied: pytest in /usr/local/lib/python3.10/dist-packages (9.0.3)\nCollecting pytest-timeout\n Downloading pytest_timeout-2.4.0-py3-none-any.whl (14 kB)\nRequirement already satisfied: pytest-dependency in /usr/local/lib/python3.10/dist-packages (0.6.1)\nRequirement already satisfied: libtmux in /usr/local/lib/python3.10/dist-packages (0.58.0)\nRequirement already satisfied: pytest-xdist in /usr/local/lib/python3.10/dist-packages (3.8.0)\nRequirement already satisfied: exceptiongroup>=1 in /usr/local/lib/python3.10/dist-packages (from pytest) (1.3.1)\nRequirement already satisfied: packaging>=22 in /usr/local/lib/python3.10/dist-packages (from pytest) (26.2)\nRequirement already satisfied: tomli>=1 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.4.1)\nRequirement already satisfied: pygments>=2.7.2 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.20.0)\nRequirement already satisfied: pluggy<2,>=1.5 in /usr/local/lib/python3.10/dist-packages (from pytest) (1.6.0)\nRequirement already satisfied: iniconfig>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from pytest) (2.3.0)\nRequirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from pytest-dependency) (82.0.1)\nRequirement already satisfied: execnet>=2.1 in /usr/local/lib/python3.10/dist-packages (from pytest-xdist) (2.1.2)\nRequirement already satisfied: typing-extensions>=4.6.0 in /usr/local/lib/python3.10/dist-packages (from exceptiongroup>=1->pytest) (4.15.0)\nInstalling collected packages: pytest-timeout\nSuccessfully installed pytest-timeout-2.4.0\n============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [31 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_basic.py::test_help \neval/tests/test_flags.py::test_no_symlink \neval/tests/test_edge_cases.py::test_binary_file_skip \neval/tests/test_edge_cases.py::test_vcs_skip \neval/tests/test_edge_cases.py::test_empty_directory \neval/tests/test_flags.py::test_skipped_flag \neval/tests/test_flags.py::test_statistics \neval/tests/test_edge_cases.py::test_no_skip_gitignore \n[gw0] [ 3%] PASSED eval/tests/test_basic.py::test_help \neval/tests/test_flags.py::test_no_recursive \neval/tests/test_edge_cases.py::test_invalid_regex \n[gw4] [ 6%] PASSED eval/tests/test_edge_cases.py::test_invalid_regex \neval/tests/test_edge_cases.py::test_non_existent_path \neval/tests/test_basic.py::test_version \n[gw4] [ 9%] PASSED eval/tests/test_edge_cases.py::test_non_existent_path \n[gw0] [ 12%] PASSED eval/tests/test_basic.py::test_version \neval/tests/test_performance.py::test_large_file \neval/tests/test_interactive.py::test_interactive_replace_no \n[gw0] [ 16%] PASSED eval/tests/test_interactive.py::test_interactive_replace_no \neval/tests/test_replace.py::test_basic_replace \n[gw1] [ 19%] RERUN eval/tests/test_edge_cases.py::test_binary_file_skip \neval/tests/test_edge_cases.py::test_binary_file_skip \n[gw9] [ 22%] RERUN eval/tests/test_flags.py::test_skipped_flag \neval/tests/test_flags.py::test_skipped_flag \n[gw8] [ 25%] RERUN eval/tests/test_flags.py::test_no_symlink \neval/tests/test_flags.py::test_no_symlink \n[gw5] [ 29%] RERUN eval/tests/test_edge_cases.py::test_empty_directory \n[gw2] [ 32%] RERUN eval/tests/test_edge_cases.py::test_vcs_skip \neval/tests/test_edge_cases.py::test_empty_directory \neval/tests/test_edge_cases.py::test_vcs_skip \n[gw6] [ 35%] RERUN eval/tests/test_flags.py::test_statistics \neval/tests/test_flags.py::test_statistics \n[gw3] [ 38%] RERUN eval/tests/test_edge_cases.py::test_no_skip_gitignore \neval/tests/test_edge_cases.py::test_no_skip_gitignore \n[gw7] [ 41%] RERUN eval/tests/test_flags.py::test_no_recursive \neval/tests/test_flags.py::test_no_recursive \n[gw4] [ 45%] RERUN eval/tests/test_performance.py::test_large_file \neval/tests/test_performance.py::test_large_file \n[gw0] [ 48%] RERUN eval/tests/test_replace.py::test_basic_replace \neval/tests/test_replace.py::test_basic_replace \n[gw1] [ 48%] RERUN eval/tests/test_edge_cases.py::test_binary_file_skip \neval/tests/test_edge_cases.py::test_binary_file_skip \n[gw9] [ 48%] RERUN eval/tests/test_flags.py::test_skipped_flag \neval/tests/test_flags.py::test_skipped_flag \n[gw8] [ 48%] RERUN eval/tests/test_flags.py::test_no_symlink \neval/tests/test_flags.py::test_no_symlink \n[gw5] [ 48%] RERUN eval/tests/test_edge_cases.py::test_empty_directory \neval/tests/test_edge_cases.py::test_empty_directory \n[gw2] [ 48%] RERUN eval/tests/test_edge_cases.py::test_vcs_skip \neval/tests/test_edge_cases.py::test_vcs_skip \n[gw1] [ 48%] FAILED eval/tests/test_edge_cases.py::test_binary_file_skip \n[gw6] [ 48%] RERUN eval/tests/test_flags.py::test_statistics \neval/tests/test_flags.py::test_statistics \n[gw9] [ 48%] FAILED eval/tests/test_flags.py::test_skipped_flag \neval/tests/test_edge_cases.py::test_binary_file_include \n[gw8] [ 48%] FAILED eval/tests/test_flags.py::test_no_symlink \neval/tests/test_interactive.py::test_interactive_replace_yes \n[gw3] [ 48%] RERUN eval/tests/test_edge_cases.py::test_no_skip_gitignore \neval/tests/test_edge_cases.py::test_no_skip_gitignore \n[gw2] [ 48%] FAILED eval/tests/test_edge_cases.py::test_vcs_skip \n[gw7] [ 48%] RERUN eval/tests/test_flags.py::test_no_recursive \neval/tests/test_flags.py::test_no_recursive \n[gw5] [ 48%] FAILED eval/tests/test_edge_cases.py::test_empty_directory \n[gw6] [ 48%] FAILED eval/tests/test_flags.py::test_statistics \neval/tests/test_flags.py::test_no_symlink_real \neval/tests/test_edge_cases.py::test_gitignore_skip \neval/tests/test_flags.py::test_column_row_output \neval/tests/test_flags.py::test_preserve_time \n[gw7] [ 48%] FAILED eval/tests/test_flags.py::test_no_recursive \n[gw3] [ 48%] FAILED eval/tests/test_edge_cases.py::test_no_skip_gitignore \neval/tests/test_flags.py::test_no_file \neval/tests/test_edge_cases.py::test_empty_keyword \n[gw3] [ 51%] PASSED eval/tests/test_edge_cases.py::test_empty_keyword \n[gw4] [ 51%] RERUN eval/tests/test_performance.py::test_large_file \neval/tests/test_performance.py::test_large_file \n[gw4] [ 51%] FAILED eval/tests/test_performance.py::test_large_file \neval/tests/test_performance.py::test_many_files \n[gw0] [ 51%] RERUN eval/tests/test_replace.py::test_basic_replace \neval/tests/test_replace.py::test_basic_replace \n[gw0] [ 51%] FAILED eval/tests/test_replace.py::test_basic_replace \neval/tests/test_replace.py::test_recursive_replace \n[gw1] [ 54%] RERUN eval/tests/test_edge_cases.py::test_binary_file_include \neval/tests/test_edge_cases.py::test_binary_file_include \n[gw9] [ 58%] RERUN eval/tests/test_interactive.py::test_interactive_replace_yes \neval/tests/test_interactive.py::test_interactive_replace_yes \n[gw8] [ 61%] RERUN eval/tests/test_flags.py::test_no_symlink_real \neval/tests/test_flags.py::test_no_symlink_real \n[gw2] [ 64%] RERUN eval/tests/test_edge_cases.py::test_gitignore_skip \neval/tests/test_edge_cases.py::test_gitignore_skip \n[gw5] [ 67%] RERUN eval/tests/test_flags.py::test_column_row_output \neval/tests/test_flags.py::test_column_row_output \n[gw7] [ 70%] RERUN eval/tests/test_flags.py::test_no_file \neval/tests/test_flags.py::test_no_file \n[gw6] [ 74%] RERUN eval/tests/test_flags.py::test_preserve_time \neval/tests/test_flags.py::test_preserve_time \n[gw4] [ 77%] RERUN eval/tests/test_performance.py::test_many_files \neval/tests/test_performance.py::test_many_files \n[gw0] [ 80%] RERUN eval/tests/test_replace.py::test_recursive_replace \neval/tests/test_replace.py::test_recursive_replace \n[gw9] [ 80%] RERUN eval/tests/test_interactive.py::test_interactive_replace_yes \neval/tests/test_interactive.py::test_interactive_replace_yes \n[gw1] [ 80%] RERUN eval/tests/test_edge_cases.py::test_binary_file_include \neval/tests/test_edge_cases.py::test_binary_file_include \n[gw9] [ 80%] FAILED eval/tests/test_interactive.py::test_interactive_replace_yes \n[gw1] [ 80%] FAILED eval/tests/test_edge_cases.py::test_binary_file_include \n[gw8] [ 80%] RERUN eval/tests/test_flags.py::test_no_symlink_real \neval/tests/test_flags.py::test_no_symlink_real \neval/tests/test_replace.py::test_regex_capture_replace \neval/tests/test_replace.py::test_regex_replace \n[gw8] [ 80%] FAILED eval/tests/test_flags.py::test_no_symlink_real \n[gw5] [ 80%] RERUN eval/tests/test_flags.py::test_column_row_output \neval/tests/test_flags.py::test_column_row_output \n[gw2] [ 80%] RERUN eval/tests/test_edge_cases.py::test_gitignore_skip \neval/tests/test_edge_cases.py::test_gitignore_skip \neval/tests/test_replace.py::test_key_from_file \n[gw7] [ 80%] RERUN eval/tests/test_flags.py::test_no_file \neval/tests/test_flags.py::test_no_file \n[gw5] [ 80%] FAILED eval/tests/test_flags.py::test_column_row_output \neval/tests/test_replace.py::test_unicode_replace \n[gw7] [ 80%] FAILED eval/tests/test_flags.py::test_no_file \n[gw2] [ 80%] FAILED eval/tests/test_edge_cases.py::test_gitignore_skip \neval/tests/test_replace.py::test_rep_from_file \n[gw4] [ 80%] RERUN eval/tests/test_performance.py::test_many_files \neval/tests/test_performance.py::test_many_files \n[gw4] [ 80%] FAILED eval/tests/test_performance.py::test_many_files \n[gw0] [ 80%] RERUN eval/tests/test_replace.py::test_recursive_replace \neval/tests/test_replace.py::test_recursive_replace \n[gw0] [ 80%] FAILED eval/tests/test_replace.py::test_recursive_replace \n[gw6] [ 80%] RERUN eval/tests/test_flags.py::test_preserve_time \neval/tests/test_flags.py::test_preserve_time \n[gw6] [ 80%] FAILED eval/tests/test_flags.py::test_preserve_time \neval/tests/test_replace.py::test_special_chars_replace \n[gw9] [ 83%] RERUN eval/tests/test_replace.py::test_regex_capture_replace \neval/tests/test_replace.py::test_regex_capture_replace \n[gw1] [ 87%] RERUN eval/tests/test_replace.py::test_regex_replace \neval/tests/test_replace.py::test_regex_replace \n[gw8] [ 90%] RERUN eval/tests/test_replace.py::test_key_from_file \neval/tests/test_replace.py::test_key_from_file \n[gw5] [ 93%] RERUN eval/tests/test_replace.py::test_unicode_replace \neval/tests/test_replace.py::test_unicode_replace \n[gw2] [ 96%] RERUN eval/tests/test_replace.py::test_rep_from_file \neval/tests/test_replace.py::test_rep_from_file \n[gw6] [100%] RERUN eval/tests/test_replace.py::test_special_chars_replace \neval/tests/test_replace.py::test_special_chars_replace \n[gw9] [100%] RERUN eval/tests/test_replace.py::test_regex_capture_replace \neval/tests/test_replace.py::test_regex_capture_replace \n[gw1] [100%] RERUN eval/tests/test_replace.py::test_regex_replace \neval/tests/test_replace.py::test_regex_replace \n[gw9] [100%] FAILED eval/tests/test_replace.py::test_regex_capture_replace \n[gw1] [100%] FAILED eval/tests/test_replace.py::test_regex_replace \n[gw8] [100%] RERUN eval/tests/test_replace.py::test_key_from_file \neval/tests/test_replace.py::test_key_from_file \n[gw8] [100%] FAILED eval/tests/test_replace.py::test_key_from_file \n[gw5] [100%] RERUN eval/tests/test_replace.py::test_unicode_replace \neval/tests/test_replace.py::test_unicode_replace \n[gw2] [100%] RERUN eval/tests/test_replace.py::test_rep_from_file \neval/tests/test_replace.py::test_rep_from_file \n[gw5] [100%] FAILED eval/tests/test_replace.py::test_unicode_replace \n[gw2] [100%] FAILED eval/tests/test_replace.py::test_rep_from_file \n[gw6] [100%] RERUN eval/tests/test_replace.py::test_special_chars_replace \neval/tests/test_replace.py::test_special_chars_replace \n[gw6] [100%] FAILED eval/tests/test_replace.py::test_special_chars_replace \n\n=================================== FAILURES ===================================\n____________________________ test_binary_file_skip _____________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir')\n\n def test_binary_file_skip(temp_dir):\n # Create a binary file\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # By default, binary files should be skipped\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:20: AssertionError\n______________________________ test_skipped_flag _______________________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir')\n\n def test_skipped_flag(temp_dir):\n # To test --skipped, we need some files to be skipped, like a binary file.\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--skipped\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--skipped', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:116: AssertionError\n_______________________________ test_no_symlink ________________________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir')\n\n def test_no_symlink(temp_dir):\n target = temp_dir / \"target.txt\"\n target.write_text(\"match\")\n link = temp_dir / \"link.txt\"\n os.symlink(target, link)\n \n # By default it should follow symlinks\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:78: AssertionError\n________________________________ test_vcs_skip _________________________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir')\n\n def test_vcs_skip(temp_dir):\n git_dir = temp_dir / \".git\"\n git_dir.mkdir()\n file_in_git = git_dir / \"ignored.txt\"\n file_in_git.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:39: AssertionError\n_____________________________ test_empty_directory _____________________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir')\n\n def test_empty_directory(temp_dir):\n # Already created an empty directory via temp_dir fixture if no files added\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"keyword\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0 # Should succeed but do nothing\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'keyword', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:93: AssertionError\n_______________________________ test_statistics ________________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir')\n\n def test_statistics(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--statistics\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--statistics', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:31: AssertionError\n______________________________ test_no_recursive _______________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir')\n\n def test_no_recursive(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"match\")\n file2.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-recursive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-recursive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:58: AssertionError\n____________________________ test_no_skip_gitignore ____________________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir')\n\n def test_no_skip_gitignore(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-skip-gitignore\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-skip-gitignore', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:67: AssertionError\n_______________________________ test_large_file ________________________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2')\n\n def test_large_file(tmp_path):\n file1 = tmp_path / \"large.txt\"\n # Create a 5MB file\n content = \"a\" * 1024 * 1024 * 5 + \"match\" + \"a\" * 1024\n file1.write_text(content)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:14: AssertionError\n______________________________ test_basic_replace ______________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir')\n\n def test_basic_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"hello\", \"hi\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'hello', 'hi', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:18: AssertionError\n_________________________ test_interactive_replace_yes _________________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_interactive_replace_yes2')\n\n def test_interactive_replace_yes(tmp_path):\n file1 = tmp_path / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n # Send 'y' to ambr\n process = subprocess.Popen([EXECUTABLE, \"hello\", \"hi\", str(tmp_path)],\n stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\n \n try:\n stdout, stderr = process.communicate(input=\"y\\n\", timeout=2)\n> assert file1.read_text() == \"hi world\"\nE AssertionError: assert 'hello world' == 'hi world'\nE \nE - hi world\nE + hello world\n\neval/tests/test_interactive.py:17: AssertionError\n___________________________ test_binary_file_include ___________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir')\n\n def test_binary_file_include(temp_dir):\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # Use --binary to include binary files\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--binary\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--binary', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:29: AssertionError\n_____________________________ test_no_symlink_real _____________________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink_real2')\n\n def test_no_symlink_real(tmp_path):\n target = tmp_path / \"outside_target.txt\"\n target.write_text(\"match\")\n \n test_dir = tmp_path / \"test_dir\"\n test_dir.mkdir()\n link = test_dir / \"link.txt\"\n os.symlink(target, link)\n \n # Default: follows symlink\n subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(test_dir)], capture_output=True, text=True)\n> assert target.read_text() == \"replace\"\nE AssertionError: assert 'match' == 'replace'\nE \nE - replace\nE + match\n\neval/tests/test_flags.py:102: AssertionError\n____________________________ test_column_row_output ____________________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir')\n\n def test_column_row_output(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"line1\\nline2\\nmatch here\")\n \n # We use --no-interactive to actually perform the replace, but here we just want to see the output format.\n # Actually ambr prints what it's doing.\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--column\", \"--row\", \"match\", \"found\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--column', '--row', 'match', 'found', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:21: AssertionError\n_________________________________ test_no_file _________________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir')\n\n def test_no_file(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-file\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-file', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:67: AssertionError\n_____________________________ test_gitignore_skip ______________________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir')\n\n def test_gitignore_skip(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n # We need to be in a git repo for .gitignore to work? ambr uses 'ignore' crate which usually handles this.\n # Actually, ambr has --no-skip-gitignore flag.\n \n # Initialize a git repo to make sure .gitignore is respected\n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:55: AssertionError\n_______________________________ test_many_files ________________________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2')\n\n def test_many_files(tmp_path):\n # Create 100 small files\n for i in range(100):\n f = tmp_path / f\"file_{i}.txt\"\n f.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:25: AssertionError\n____________________________ test_recursive_replace ____________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir')\n\n def test_recursive_replace(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"apple pie\")\n file2.write_text(\"apple juice\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"apple\", \"orange\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'apple', 'orange', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:30: AssertionError\n______________________________ test_preserve_time ______________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir')\n\n def test_preserve_time(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"content\")\n old_time = os.path.getmtime(file1)\n \n # Wait a bit to ensure time would change\n time.sleep(0.1)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--preserve-time\", \"content\", \"new\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--preserve-time', 'content', 'new', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:45: AssertionError\n__________________________ test_regex_capture_replace __________________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir')\n\n def test_regex_capture_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"aaa bbb\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"(aaa) (bbb)\", r\"$2 $1\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '(aaa) (bbb)', '$2 $1', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:47: AssertionError\n______________________________ test_regex_replace ______________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir')\n\n def test_regex_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"abc 123 def\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"\\d+\", \"num\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '\\\\d+', 'num', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:39: AssertionError\n______________________________ test_key_from_file ______________________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir')\n\n def test_key_from_file(temp_dir):\n key_file = temp_dir / \"key.txt\"\n key_file.write_text(\"pattern\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--key-from-file\", str(key_file), \"replacement\", str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--key-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/key.txt', 'replacement', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:57: AssertionError\n_____________________________ test_unicode_replace _____________________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir')\n\n def test_unicode_replace(temp_dir):\n file1 = temp_dir / \"unicode.txt\"\n file1.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\", encoding=\"utf-8\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"\u3053\u3093\u306b\u3061\u306f\", \"\u3053\u3093\u3070\u3093\u306f\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '\u3053\u3093\u306b\u3061\u306f', '\u3053\u3093\u3070\u3093\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:75: AssertionError\n______________________________ test_rep_from_file ______________________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir')\n\n def test_rep_from_file(temp_dir):\n rep_file = temp_dir / \"rep.txt\"\n rep_file.write_text(\"replacement\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--rep-from-file\", \"pattern\", str(rep_file), str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--rep-from-file', 'pattern', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:67: AssertionError\n__________________________ test_special_chars_replace __________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\ntemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir')\n\n def test_special_chars_replace(temp_dir):\n file1 = temp_dir / \"special.txt\"\n file1.write_text(\"a[b]c*d+e?f\", encoding=\"utf-8\")\n \n # Without --regex, special chars should be treated literally\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"a[b]c*d+e?f\", \"replaced\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'a[b]c*d+e?f', 'replaced', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:84: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_edge_cases.py::test_binary_file_skip - AssertionError:...\nFAILED eval/tests/test_flags.py::test_skipped_flag - AssertionError: assert 1...\nFAILED eval/tests/test_flags.py::test_no_symlink - AssertionError: assert 1 == 0\nFAILED eval/tests/test_edge_cases.py::test_vcs_skip - AssertionError: assert ...\nFAILED eval/tests/test_edge_cases.py::test_empty_directory - AssertionError: ...\nFAILED eval/tests/test_flags.py::test_statistics - AssertionError: assert 1 == 0\nFAILED eval/tests/test_flags.py::test_no_recursive - AssertionError: assert 1...\nFAILED eval/tests/test_edge_cases.py::test_no_skip_gitignore - AssertionError...\nFAILED eval/tests/test_performance.py::test_large_file - AssertionError: asse...\nFAILED eval/tests/test_replace.py::test_basic_replace - AssertionError: asser...\nFAILED eval/tests/test_interactive.py::test_interactive_replace_yes - Asserti...\nFAILED eval/tests/test_edge_cases.py::test_binary_file_include - AssertionErr...\nFAILED eval/tests/test_flags.py::test_no_symlink_real - AssertionError: asser...\nFAILED eval/tests/test_flags.py::test_column_row_output - AssertionError: ass...\nFAILED eval/tests/test_flags.py::test_no_file - AssertionError: assert 1 == 0\nFAILED eval/tests/test_edge_cases.py::test_gitignore_skip - AssertionError: a...\nFAILED eval/tests/test_performance.py::test_many_files - AssertionError: asse...\nFAILED eval/tests/test_replace.py::test_recursive_replace - AssertionError: a...\nFAILED eval/tests/test_flags.py::test_preserve_time - AssertionError: assert ...\nFAILED eval/tests/test_replace.py::test_regex_capture_replace - AssertionErro...\nFAILED eval/tests/test_replace.py::test_regex_replace - AssertionError: asser...\nFAILED eval/tests/test_replace.py::test_key_from_file - AssertionError: asser...\nFAILED eval/tests/test_replace.py::test_unicode_replace - AssertionError: ass...\nFAILED eval/tests/test_replace.py::test_rep_from_file - AssertionError: asser...\nFAILED eval/tests/test_replace.py::test_special_chars_replace - AssertionErro...\n==================== 25 failed, 6 passed, 50 rerun in 6.90s ====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp a0afe23c2c16cb13e26349be582aa8e2b80efe6fcbf805489c1e8430a402d601:/workspace/eval/results.xml /tmp/tmplooh5e9z.xml", "wall_time": 0.01157953800000655, "output": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir')\n\n def test_binary_file_skip(temp_dir):\n # Create a binary file\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # By default, binary files should be skipped\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:20: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir')\n\n def test_skipped_flag(temp_dir):\n # To test --skipped, we need some files to be skipped, like a binary file.\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--skipped\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--skipped', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:116: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir')\n\n def test_no_symlink(temp_dir):\n target = temp_dir / \"target.txt\"\n target.write_text(\"match\")\n link = temp_dir / \"link.txt\"\n os.symlink(target, link)\n \n # By default it should follow symlinks\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:78: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir')\n\n def test_empty_directory(temp_dir):\n # Already created an empty directory via temp_dir fixture if no files added\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"keyword\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0 # Should succeed but do nothing\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'keyword', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:93: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir')\n\n def test_vcs_skip(temp_dir):\n git_dir = temp_dir / \".git\"\n git_dir.mkdir()\n file_in_git = git_dir / \"ignored.txt\"\n file_in_git.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:39: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir')\n\n def test_statistics(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--statistics\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--statistics', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:31: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir')\n\n def test_no_recursive(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"match\")\n file2.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-recursive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-recursive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:58: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir')\n\n def test_no_skip_gitignore(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-skip-gitignore\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-skip-gitignore', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:67: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2')\n\n def test_large_file(tmp_path):\n file1 = tmp_path / \"large.txt\"\n # Create a 5MB file\n content = \"a\" * 1024 * 1024 * 5 + \"match\" + \"a\" * 1024\n file1.write_text(content)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:14: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir')\n\n def test_basic_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"hello\", \"hi\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'hello', 'hi', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:18: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_interactive_replace_yes2')\n\n def test_interactive_replace_yes(tmp_path):\n file1 = tmp_path / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n # Send 'y' to ambr\n process = subprocess.Popen([EXECUTABLE, \"hello\", \"hi\", str(tmp_path)],\n stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\n \n try:\n stdout, stderr = process.communicate(input=\"y\\n\", timeout=2)\n> assert file1.read_text() == \"hi world\"\nE AssertionError: assert 'hello world' == 'hi world'\nE \nE - hi world\nE + hello world\n\neval/tests/test_interactive.py:17: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir')\n\n def test_binary_file_include(temp_dir):\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # Use --binary to include binary files\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--binary\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--binary', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:29: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink_real2')\n\n def test_no_symlink_real(tmp_path):\n target = tmp_path / \"outside_target.txt\"\n target.write_text(\"match\")\n \n test_dir = tmp_path / \"test_dir\"\n test_dir.mkdir()\n link = test_dir / \"link.txt\"\n os.symlink(target, link)\n \n # Default: follows symlink\n subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(test_dir)], capture_output=True, text=True)\n> assert target.read_text() == \"replace\"\nE AssertionError: assert 'match' == 'replace'\nE \nE - replace\nE + match\n\neval/tests/test_flags.py:102: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir')\n\n def test_column_row_output(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"line1\\nline2\\nmatch here\")\n \n # We use --no-interactive to actually perform the replace, but here we just want to see the output format.\n # Actually ambr prints what it's doing.\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--column\", \"--row\", \"match\", \"found\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--column', '--row', 'match', 'found', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:21: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir')\n\n def test_no_file(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-file\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-file', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:67: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir')\n\n def test_gitignore_skip(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n # We need to be in a git repo for .gitignore to work? ambr uses 'ignore' crate which usually handles this.\n # Actually, ambr has --no-skip-gitignore flag.\n \n # Initialize a git repo to make sure .gitignore is respected\n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:55: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2')\n\n def test_many_files(tmp_path):\n # Create 100 small files\n for i in range(100):\n f = tmp_path / f\"file_{i}.txt\"\n f.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:25: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir')\n\n def test_recursive_replace(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"apple pie\")\n file2.write_text(\"apple juice\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"apple\", \"orange\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'apple', 'orange', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:30: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir')\n\n def test_preserve_time(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"content\")\n old_time = os.path.getmtime(file1)\n \n # Wait a bit to ensure time would change\n time.sleep(0.1)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--preserve-time\", \"content\", \"new\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--preserve-time', 'content', 'new', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:45: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir')\n\n def test_regex_capture_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"aaa bbb\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"(aaa) (bbb)\", r\"$2 $1\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '(aaa) (bbb)', '$2 $1', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:47: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir')\n\n def test_regex_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"abc 123 def\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"\\d+\", \"num\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '\\\\d+', 'num', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:39: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir')\n\n def test_key_from_file(temp_dir):\n key_file = temp_dir / \"key.txt\"\n key_file.write_text(\"pattern\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--key-from-file\", str(key_file), \"replacement\", str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--key-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/key.txt', 'replacement', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:57: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir')\n\n def test_unicode_replace(temp_dir):\n file1 = temp_dir / \"unicode.txt\"\n file1.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\", encoding=\"utf-8\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"\u3053\u3093\u306b\u3061\u306f\", \"\u3053\u3093\u3070\u3093\u306f\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '\u3053\u3093\u306b\u3061\u306f', '\u3053\u3093\u3070\u3093\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:75: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir')\n\n def test_rep_from_file(temp_dir):\n rep_file = temp_dir / \"rep.txt\"\n rep_file.write_text(\"replacement\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--rep-from-file\", \"pattern\", str(rep_file), str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--rep-from-file', 'pattern', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:67: AssertionErrortemp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir')\n\n def test_special_chars_replace(temp_dir):\n file1 = temp_dir / \"special.txt\"\n file1.write_text(\"a[b]c*d+e?f\", encoding=\"utf-8\")\n \n # Without --regex, special chars should be treated literally\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"a[b]c*d+e?f\", \"replaced\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'a[b]c*d+e?f', 'replaced', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:84: AssertionError", "returncode": 0, "exception_info": "", "branch": "1081f3f7c1d4"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04361104000000182, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.060577440999992405, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04096925299998588, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.03906592499998851, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 4.8816231769999945, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [6 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_ambr_cli.py::test_unknown_flag_nonzero \neval/tests/test_ambr_cli.py::test_help_matches_golden \neval/tests/test_ambr_cli.py::test_replace_command_exits_1_and_produces_no_output \neval/tests/test_ambr_cli.py::test_version_matches_golden \neval/tests/test_ambr_cli.py::test_missing_args_nonzero[args0] \neval/tests/test_ambr_cli.py::test_missing_args_nonzero[args1] \n[gw4] [ 16%] PASSED eval/tests/test_ambr_cli.py::test_unknown_flag_nonzero \n[gw1] [ 33%] PASSED eval/tests/test_ambr_cli.py::test_version_matches_golden \n[gw5] [ 50%] PASSED eval/tests/test_ambr_cli.py::test_replace_command_exits_1_and_produces_no_output \n[gw3] [ 66%] PASSED eval/tests/test_ambr_cli.py::test_missing_args_nonzero[args1] \n[gw2] [ 83%] PASSED eval/tests/test_ambr_cli.py::test_missing_args_nonzero[args0] \n[gw0] [100%] RERUN eval/tests/test_ambr_cli.py::test_help_matches_golden \neval/tests/test_ambr_cli.py::test_help_matches_golden \n[gw0] [100%] RERUN eval/tests/test_ambr_cli.py::test_help_matches_golden \neval/tests/test_ambr_cli.py::test_help_matches_golden \n[gw0] [100%] FAILED eval/tests/test_ambr_cli.py::test_help_matches_golden \n\n=================================== FAILURES ===================================\n___________________________ test_help_matches_golden ___________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_help_matches_golden():\n golden = (GOLDEN / \"help.txt\").read_text()\n p = run([str(EXE), \"--help\"])\n assert p.returncode == 0\n> assert p.stdout == golden\nE AssertionError: assert 'ambr 0.6.0\\n...earch paths\\n' == 'ambr 0.6.0\\n...earch paths\\n'\nE \nE ambr 0.6.0\nE \nE USAGE:\nE executable [FLAGS] [OPTIONS] [PATHS]...\nE \nE FLAGS:...\nE \nE ...Full output truncated (37 lines hidden), use '-vv' to show\n\neval/tests/test_ambr_cli.py:26: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_ambr_cli.py::test_help_matches_golden - AssertionError...\n===================== 1 failed, 5 passed, 2 rerun in 2.55s =====================\npytest exit code: 1\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 6d10213a35d0e0e8e21dbba12b6aa81cd165f671608eb4f6cafc307f171b7b98:/workspace/eval/results.xml /tmp/tmphwl7r4p1.xml", "wall_time": 0.013819089999998369, "output": "def test_help_matches_golden():\n golden = (GOLDEN / \"help.txt\").read_text()\n p = run([str(EXE), \"--help\"])\n assert p.returncode == 0\n> assert p.stdout == golden\nE AssertionError: assert 'ambr 0.6.0\\n...earch paths\\n' == 'ambr 0.6.0\\n...earch paths\\n'\nE \nE ambr 0.6.0\nE \nE USAGE:\nE executable [FLAGS] [OPTIONS] <KEYWORD> <REPLACEMENT> [PATHS]...\nE \nE FLAGS:...\nE \nE ...Full output truncated (37 lines hidden), use '-vv' to show\n\neval/tests/test_ambr_cli.py:26: AssertionError", "returncode": 0, "exception_info": "", "branch": "42cc3d87770f"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04396700500001316, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.05841830200000686, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.04103211800000395, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.039184738000017205, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 5.211142430999985, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [10 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_ambr.py::test_regex_replace_with_captures \neval/tests/test_ambr.py::test_help_contains_usage \neval/tests/test_ambr.py::test_non_interactive_replace \neval/tests/test_ambr.py::test_preserve_time_flag \neval/tests/test_ambr.py::test_key_and_rep_from_file \neval/tests/test_ambr.py::test_invalid_regex_causes_error \neval/tests/test_ambr.py::test_binary_skipped_by_default \neval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \neval/tests/test_ambr.py::test_unicode_replacement \n[gw0] [ 10%] PASSED eval/tests/test_ambr.py::test_help_contains_usage \n[gw8] [ 20%] PASSED eval/tests/test_ambr.py::test_invalid_regex_causes_error \neval/tests/test_ambr.py::test_missing_args_errors \n[gw1] [ 30%] PASSED eval/tests/test_ambr.py::test_missing_args_errors \n[gw4] [ 40%] RERUN eval/tests/test_ambr.py::test_regex_replace_with_captures \neval/tests/test_ambr.py::test_regex_replace_with_captures \n[gw2] [ 50%] RERUN eval/tests/test_ambr.py::test_non_interactive_replace \neval/tests/test_ambr.py::test_non_interactive_replace \n[gw9] [ 60%] RERUN eval/tests/test_ambr.py::test_unicode_replacement \neval/tests/test_ambr.py::test_unicode_replacement \n[gw5] [ 70%] RERUN eval/tests/test_ambr.py::test_key_and_rep_from_file \neval/tests/test_ambr.py::test_key_and_rep_from_file \n[gw3] [ 80%] RERUN eval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \neval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \n[gw6] [ 90%] RERUN eval/tests/test_ambr.py::test_binary_skipped_by_default \neval/tests/test_ambr.py::test_binary_skipped_by_default \n[gw7] [100%] RERUN eval/tests/test_ambr.py::test_preserve_time_flag \neval/tests/test_ambr.py::test_preserve_time_flag \n[gw9] [100%] RERUN eval/tests/test_ambr.py::test_unicode_replacement \neval/tests/test_ambr.py::test_unicode_replacement \n[gw4] [100%] RERUN eval/tests/test_ambr.py::test_regex_replace_with_captures \neval/tests/test_ambr.py::test_regex_replace_with_captures \n[gw2] [100%] RERUN eval/tests/test_ambr.py::test_non_interactive_replace \neval/tests/test_ambr.py::test_non_interactive_replace \n[gw5] [100%] RERUN eval/tests/test_ambr.py::test_key_and_rep_from_file \neval/tests/test_ambr.py::test_key_and_rep_from_file \n[gw3] [100%] RERUN eval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \neval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \n[gw6] [100%] RERUN eval/tests/test_ambr.py::test_binary_skipped_by_default \neval/tests/test_ambr.py::test_binary_skipped_by_default \n[gw9] [100%] FAILED eval/tests/test_ambr.py::test_unicode_replacement \n[gw4] [100%] FAILED eval/tests/test_ambr.py::test_regex_replace_with_captures \n[gw2] [100%] FAILED eval/tests/test_ambr.py::test_non_interactive_replace \n[gw5] [100%] FAILED eval/tests/test_ambr.py::test_key_and_rep_from_file \n[gw3] [100%] FAILED eval/tests/test_ambr.py::test_interactive_replace_all_via_stdin \n[gw6] [100%] FAILED eval/tests/test_ambr.py::test_binary_skipped_by_default \n[gw7] [100%] RERUN eval/tests/test_ambr.py::test_preserve_time_flag \neval/tests/test_ambr.py::test_preserve_time_flag \n[gw7] [100%] FAILED eval/tests/test_ambr.py::test_preserve_time_flag \n\n=================================== FAILURES ===================================\n___________________________ test_unicode_replacement ___________________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2')\n\n @pytest.mark.timeout(5)\n def test_unicode_replacement(tmp_path):\n f = tmp_path / \"u.txt\"\n f.write_text(\"caf\u00e9 foo\\n\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"\u0431\", str(f)], {str(f): \"caf\u00e9 \u0431\\n\"})\n\neval/tests/test_ambr.py:169: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', '\u0431', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt': 'caf\u00e9 \u0431\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt content mismatch: got='caf\u00e9 foo\\n' expected='caf\u00e9 \u0431\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n_______________________ test_regex_replace_with_captures _______________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2')\n\n @pytest.mark.timeout(5)\n def test_regex_replace_with_captures(tmp_path):\n f = tmp_path / \"r.txt\"\n f.write_text(\"aaa bbb\\n\")\n> _run_and_expect([\"--no-interactive\", \"--regex\", \"(aaa) (?Pbbb)\", \"$1 $pat ${1} ${pat}\", str(f)], {str(f): \"aaa bbb aaa bbb\\n\"})\n\neval/tests/test_ambr.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--regex', '(aaa) (?Pbbb)', '$1 $pat ${1} ${pat}', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt': 'aaa bbb aaa bbb\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt content mismatch: got='aaa bbb\\n' expected='aaa bbb aaa bbb\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n_________________________ test_non_interactive_replace _________________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nsample_repo = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo')\n\n @pytest.mark.timeout(5)\n def test_non_interactive_replace(sample_repo):\n f = sample_repo / \"file.txt\"\n> _run_and_expect([\"--no-interactive\", \"foo\", \"baz\", str(f)], {str(f): \"baz bar baz\\n\"})\n\neval/tests/test_ambr.py:65: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'baz', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt': 'baz bar baz\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt content mismatch: got='foo bar foo\\n' expected='baz bar baz\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n__________________________ test_key_and_rep_from_file __________________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2')\n\n @pytest.mark.timeout(5)\n def test_key_and_rep_from_file(tmp_path):\n d = tmp_path / \"kr\"\n d.mkdir()\n target = d / \"t.txt\"\n target.write_text(\"hello world hello\\n\")\n keyf = d / \"key.txt\"\n keyf.write_text(\"hello\")\n repf = d / \"rep.txt\"\n repf.write_text(\"hi\")\n> _run_and_expect([\"--no-interactive\", \"--key-from-file\", \"--rep-from-file\", str(keyf), str(repf), str(target)], {str(target): \"hi world hi\\n\"})\n\neval/tests/test_ambr.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--key-from-file', '--rep-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_fr...test_key_and_rep_from_file2/kr/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt': 'hi world hi\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt content mismatch: got='hello world hello\\n' expected='hi world hi\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n____________________ test_interactive_replace_all_via_stdin ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_interactive_replace_all_v2')\n\n @pytest.mark.timeout(5)\n def test_interactive_replace_all_via_stdin(tmp_path):\n d = tmp_path / \"i\"\n d.mkdir()\n f = d / \"a.txt\"\n f.write_text(\"alpha beta alpha\\n\")\n # run interactively using a pty and send 'a' to choose All\n import select\n \n args = [EXEC, \"--verbose\", \"alpha\", \"ALPHA\", str(f)]\n master, slave = os.openpty()\n pid = os.fork()\n if pid == 0:\n # child\n os.setsid()\n os.dup2(slave, 0)\n os.dup2(slave, 1)\n os.dup2(slave, 2)\n os.execvp(args[0], args)\n else:\n os.close(slave)\n out = b\"\"\n deadline = time.time() + 3\n sent = False\n while time.time() < deadline:\n r, _, _ = select.select([master], [], [], 0.1)\n if master in r:\n> chunk = os.read(master, 1024)\nE OSError: [Errno 5] Input/output error\n\neval/tests/test_ambr.py:94: OSError\n________________________ test_binary_skipped_by_default ________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2')\n\n @pytest.mark.timeout(5)\n def test_binary_skipped_by_default(tmp_path):\n d = tmp_path / \"b\"\n d.mkdir()\n t = d / \"t.txt\"\n t.write_text(\"foo\\n\")\n b = d / \"bin\"\n b.write_bytes(b\"\\x00\\x01foo\\x02\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"bar\", str(t)], {str(t): \"bar\\n\"})\n\neval/tests/test_ambr.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt': 'bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt content mismatch: got='foo\\n' expected='bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n___________________________ test_preserve_time_flag ____________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2')\n\n @pytest.mark.timeout(5)\n def test_preserve_time_flag(tmp_path):\n d = tmp_path / \"p\"\n d.mkdir()\n f = d / \"t.txt\"\n f.write_text(\"keepme foo\\n\")\n m0 = f.stat().st_mtime\n time.sleep(0.1)\n> _run_and_expect([\"--no-interactive\", \"--preserve-time\", \"foo\", \"bar\", str(f)], {str(f): \"keepme bar\\n\"})\n\neval/tests/test_ambr.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--preserve-time', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt': 'keepme bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt content mismatch: got='keepme foo\\n' expected='keepme bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_ambr.py::test_unicode_replacement - AssertionError: Fi...\nFAILED eval/tests/test_ambr.py::test_regex_replace_with_captures - AssertionE...\nFAILED eval/tests/test_ambr.py::test_non_interactive_replace - AssertionError...\nFAILED eval/tests/test_ambr.py::test_key_and_rep_from_file - AssertionError: ...\nFAILED eval/tests/test_ambr.py::test_interactive_replace_all_via_stdin - OSEr...\nFAILED eval/tests/test_ambr.py::test_binary_skipped_by_default - AssertionErr...\nFAILED eval/tests/test_ambr.py::test_preserve_time_flag - AssertionError: Fil...\n==================== 7 failed, 3 passed, 14 rerun in 2.89s =====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 695c92397843d143ed573035041c90aaffbaa59cc8dbc3db44e1d6411292f50d:/workspace/eval/results.xml /tmp/tmpeayrvbmj.xml", "wall_time": 0.012724071999997477, "output": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2')\n\n @pytest.mark.timeout(5)\n def test_unicode_replacement(tmp_path):\n f = tmp_path / \"u.txt\"\n f.write_text(\"caf\u00e9 foo\\n\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"\u0431\", str(f)], {str(f): \"caf\u00e9 \u0431\\n\"})\n\neval/tests/test_ambr.py:169: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', '\u0431', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt': 'caf\u00e9 \u0431\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt content mismatch: got='caf\u00e9 foo\\n' expected='caf\u00e9 \u0431\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2')\n\n @pytest.mark.timeout(5)\n def test_regex_replace_with_captures(tmp_path):\n f = tmp_path / \"r.txt\"\n f.write_text(\"aaa bbb\\n\")\n> _run_and_expect([\"--no-interactive\", \"--regex\", \"(aaa) (?P<pat>bbb)\", \"$1 $pat ${1} ${pat}\", str(f)], {str(f): \"aaa bbb aaa bbb\\n\"})\n\neval/tests/test_ambr.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--regex', '(aaa) (?P<pat>bbb)', '$1 $pat ${1} ${pat}', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt': 'aaa bbb aaa bbb\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt content mismatch: got='aaa bbb\\n' expected='aaa bbb aaa bbb\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2')\n\n @pytest.mark.timeout(5)\n def test_key_and_rep_from_file(tmp_path):\n d = tmp_path / \"kr\"\n d.mkdir()\n target = d / \"t.txt\"\n target.write_text(\"hello world hello\\n\")\n keyf = d / \"key.txt\"\n keyf.write_text(\"hello\")\n repf = d / \"rep.txt\"\n repf.write_text(\"hi\")\n> _run_and_expect([\"--no-interactive\", \"--key-from-file\", \"--rep-from-file\", str(keyf), str(repf), str(target)], {str(target): \"hi world hi\\n\"})\n\neval/tests/test_ambr.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--key-from-file', '--rep-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_fr...test_key_and_rep_from_file2/kr/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt': 'hi world hi\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt content mismatch: got='hello world hello\\n' expected='hi world hi\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionErrorsample_repo = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo')\n\n @pytest.mark.timeout(5)\n def test_non_interactive_replace(sample_repo):\n f = sample_repo / \"file.txt\"\n> _run_and_expect([\"--no-interactive\", \"foo\", \"baz\", str(f)], {str(f): \"baz bar baz\\n\"})\n\neval/tests/test_ambr.py:65: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'baz', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt': 'baz bar baz\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt content mismatch: got='foo bar foo\\n' expected='baz bar baz\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_interactive_replace_all_v2')\n\n @pytest.mark.timeout(5)\n def test_interactive_replace_all_via_stdin(tmp_path):\n d = tmp_path / \"i\"\n d.mkdir()\n f = d / \"a.txt\"\n f.write_text(\"alpha beta alpha\\n\")\n # run interactively using a pty and send 'a' to choose All\n import select\n \n args = [EXEC, \"--verbose\", \"alpha\", \"ALPHA\", str(f)]\n master, slave = os.openpty()\n pid = os.fork()\n if pid == 0:\n # child\n os.setsid()\n os.dup2(slave, 0)\n os.dup2(slave, 1)\n os.dup2(slave, 2)\n os.execvp(args[0], args)\n else:\n os.close(slave)\n out = b\"\"\n deadline = time.time() + 3\n sent = False\n while time.time() < deadline:\n r, _, _ = select.select([master], [], [], 0.1)\n if master in r:\n> chunk = os.read(master, 1024)\nE OSError: [Errno 5] Input/output error\n\neval/tests/test_ambr.py:94: OSErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2')\n\n @pytest.mark.timeout(5)\n def test_binary_skipped_by_default(tmp_path):\n d = tmp_path / \"b\"\n d.mkdir()\n t = d / \"t.txt\"\n t.write_text(\"foo\\n\")\n b = d / \"bin\"\n b.write_bytes(b\"\\x00\\x01foo\\x02\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"bar\", str(t)], {str(t): \"bar\\n\"})\n\neval/tests/test_ambr.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt': 'bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt content mismatch: got='foo\\n' expected='bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionErrortmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2')\n\n @pytest.mark.timeout(5)\n def test_preserve_time_flag(tmp_path):\n d = tmp_path / \"p\"\n d.mkdir()\n f = d / \"t.txt\"\n f.write_text(\"keepme foo\\n\")\n m0 = f.stat().st_mtime\n time.sleep(0.1)\n> _run_and_expect([\"--no-interactive\", \"--preserve-time\", \"foo\", \"bar\", str(f)], {str(f): \"keepme bar\\n\"})\n\neval/tests/test_ambr.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--preserve-time', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt': 'keepme bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt content mismatch: got='keepme foo\\n' expected='keepme bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError", "returncode": 0, "exception_info": "", "branch": "256e7bf0179a"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.04362173399999847, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.05761466499998846, "output": "28ec151e6a7be3e9788dd35b6523d934e0df38dcdcac61f1c6021680c4ca2364 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.03911302700001329, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.03974991699999464, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PYTEST_ADDOPTS=\"$PYTEST_ADDOPTS --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 7.954761037999987, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.7, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [41 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_amber.py::TestAmbrHelp::test_help_output \neval/tests/test_replace.py::TestAmbrFlags::test_no_interactive_flag \neval/tests/test_replace.py::TestAmbrBasic::test_ambr_help \neval/tests/test_amber.py::TestAmbsHelp::test_help_output \neval/tests/test_replace.py::TestAmbrBasic::test_ambr_missing_args \neval/tests/test_replace.py::TestAmbrEdgeCases::test_unicode_content \neval/tests/test_replace.py::TestAmbrFlags::test_column_flag \neval/tests/test_replace.py::TestAmbrFlags::test_statistics_flag \n[gw0] [ 2%] PASSED eval/tests/test_amber.py::TestAmbrHelp::test_help_output \n[gw3] [ 4%] PASSED eval/tests/test_replace.py::TestAmbrBasic::test_ambr_missing_args \n[gw6] [ 7%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_statistics_flag \neval/tests/test_replace.py::TestAmbrFlags::test_no_recursive_flag \n[gw7] [ 9%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_no_recursive_flag \n[gw2] [ 12%] PASSED eval/tests/test_replace.py::TestAmbrBasic::test_ambr_help \n[gw5] [ 14%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_column_flag \neval/tests/test_replace.py::TestAmbrFlags::test_preserve_time_flag \n[gw4] [ 17%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_no_interactive_flag \n[gw9] [ 19%] PASSED eval/tests/test_replace.py::TestAmbrEdgeCases::test_unicode_content \n[gw8] [ 21%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_preserve_time_flag \neval/tests/test_replace.py::TestAmbrFlags::test_row_flag \neval/tests/test_amber.py::TestAmbrHelp::test_version_output \neval/tests/test_replace.py::TestAmbrBasic::test_ambr_keyword_only \neval/tests/test_replace.py::TestAmbrFlags::test_verbose_flag \neval/tests/test_replace.py::TestAmbrFlags::test_regex_flag \neval/tests/test_replace.py::TestAmbrEdgeCases::test_no_match \neval/tests/test_replace.py::TestAmbrBasic::test_ambr_version \n[gw5] [ 24%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_row_flag \n[gw0] [ 26%] PASSED eval/tests/test_amber.py::TestAmbrHelp::test_version_output \n[gw6] [ 29%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_verbose_flag \n[gw2] [ 31%] PASSED eval/tests/test_replace.py::TestAmbrBasic::test_ambr_version \neval/tests/test_replace.py::TestAmbrFlags::test_no_color_flag \n[gw9] [ 34%] PASSED eval/tests/test_replace.py::TestAmbrEdgeCases::test_no_match \n[gw7] [ 36%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_no_color_flag \n[gw4] [ 39%] PASSED eval/tests/test_replace.py::TestAmbrFlags::test_regex_flag \n[gw3] [ 41%] PASSED eval/tests/test_replace.py::TestAmbrBasic::test_ambr_keyword_only \neval/tests/test_replace.py::TestAmbrEdgeCases::test_empty_file \n[gw8] [ 43%] PASSED eval/tests/test_replace.py::TestAmbrEdgeCases::test_empty_file \neval/tests/test_replace.py::TestAmbrEdgeCases::test_key_from_file_flag \neval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \neval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \neval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \neval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \neval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \n[gw0] [ 46%] PASSED eval/tests/test_replace.py::TestAmbrEdgeCases::test_key_from_file_flag \neval/tests/test_replace.py::TestAmbrEdgeCases::test_rep_from_file_flag \n[gw3] [ 48%] PASSED eval/tests/test_replace.py::TestAmbrEdgeCases::test_rep_from_file_flag \neval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \n[gw1] [ 51%] RERUN eval/tests/test_amber.py::TestAmbsHelp::test_help_output \neval/tests/test_amber.py::TestAmbsHelp::test_help_output \n[gw4] [ 53%] RERUN eval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \n[gw5] [ 56%] RERUN eval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \n[gw2] [ 58%] RERUN eval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \neval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \n[gw6] [ 60%] RERUN eval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \neval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \n[gw7] [ 63%] RERUN eval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \neval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \n[gw9] [ 65%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \n[gw8] [ 68%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \n[gw3] [ 70%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \n[gw0] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \n[gw1] [ 73%] RERUN eval/tests/test_amber.py::TestAmbsHelp::test_help_output \neval/tests/test_amber.py::TestAmbsHelp::test_help_output \n[gw1] [ 73%] FAILED eval/tests/test_amber.py::TestAmbsHelp::test_help_output \neval/tests/test_amber.py::TestAmbsHelp::test_version_output \n[gw4] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \n[gw2] [ 73%] RERUN eval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \neval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \n[gw5] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \n[gw9] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \n[gw7] [ 73%] RERUN eval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \neval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \n[gw6] [ 73%] RERUN eval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \neval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \n[gw8] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \n[gw5] [ 73%] FAILED eval/tests/test_search.py::TestSearchFlags::test_column_flag_runs \n[gw2] [ 73%] FAILED eval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches \n[gw4] [ 73%] FAILED eval/tests/test_search.py::TestSearchFlags::test_row_flag_runs \n[gw6] [ 73%] FAILED eval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error \n[gw7] [ 73%] FAILED eval/tests/test_search.py::TestSearchBasic::test_search_multiple_files \n[gw9] [ 73%] FAILED eval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \neval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \n[gw8] [ 73%] FAILED eval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs \n[gw0] [ 73%] RERUN eval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \n[gw3] [ 73%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \n[gw3] [ 73%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs \n[gw0] [ 73%] FAILED eval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \n[gw1] [ 75%] RERUN eval/tests/test_amber.py::TestAmbsHelp::test_version_output \neval/tests/test_amber.py::TestAmbsHelp::test_version_output \n[gw2] [ 78%] RERUN eval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \n[gw5] [ 80%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \n[gw4] [ 82%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \n[gw6] [ 85%] RERUN eval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \n[gw7] [ 87%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \n[gw9] [ 90%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \n[gw8] [ 92%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \n[gw3] [ 95%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \n[gw0] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \n[gw1] [ 97%] RERUN eval/tests/test_amber.py::TestAmbsHelp::test_version_output \neval/tests/test_amber.py::TestAmbsHelp::test_version_output \n[gw1] [ 97%] FAILED eval/tests/test_amber.py::TestAmbsHelp::test_version_output \neval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \n[gw5] [ 97%] RERUN eval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \neval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \n[gw2] [ 97%] RERUN eval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \n[gw9] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \n[gw4] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \n[gw7] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \n[gw6] [ 97%] RERUN eval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \neval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \n[gw8] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \n[gw2] [ 97%] FAILED eval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs \n[gw5] [ 97%] FAILED eval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs \n[gw4] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs \n[gw6] [ 97%] FAILED eval/tests/test_search.py::TestSearchRegex::test_regex_search_runs \n[gw7] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs \n[gw9] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs \n[gw8] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs \n[gw3] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \n[gw0] [ 97%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \n[gw3] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs \n[gw0] [ 97%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs \n[gw1] [100%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \n[gw1] [100%] RERUN eval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \neval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \n[gw1] [100%] FAILED eval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs \n\n=================================== FAILURES ===================================\n________________________ TestAmbsHelp.test_help_output _________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_help_output(self):\n \"\"\"Test --help shows expected output.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--help\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:42: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./target/release/ambs', '--help']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestSearchFlags.test_column_flag_runs _____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2')\n\n def test_column_flag_runs(self, tmp_path):\n \"\"\"Test --column flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--column\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:64: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--column', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestSearchBasic.test_search_no_crash_on_no_matches ______________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2')\n\n def test_search_no_crash_on_no_matches(self, tmp_path):\n \"\"\"Test search doesn't crash when there are no matches.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"foo bar\\nbaz qux\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________________ TestSearchFlags.test_row_flag_runs ______________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2')\n\n def test_row_flag_runs(self, tmp_path):\n \"\"\"Test --row flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--row\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:77: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--row', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________ TestSearchBasic.test_simple_search_runs_without_error _____________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2')\n\n def test_simple_search_runs_without_error(self, tmp_path):\n \"\"\"Test that simple keyword search runs without crashing.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\ngoodbye world\\n\")\n \n # Use raw execution (no TTY) - this will exit with 1 but that's OK\n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:17: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________________ TestSearchBasic.test_search_multiple_files __________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2')\n\n def test_search_multiple_files(self, tmp_path):\n \"\"\"Test search across multiple files in a directory.\"\"\"\n file1 = tmp_path / \"file1.txt\"\n file2 = tmp_path / \"file2.txt\"\n file1.write_text(\"hello world\\n\")\n file2.write_text(\"hello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:32: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestSearchFlags.test_no_recursive_flag_runs __________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2')\n\n def test_no_recursive_flag_runs(self, tmp_path):\n \"\"\"Test --no-recursive flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-recursive\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:90: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-recursive', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestSearchFlags.test_no_color_flag_runs ____________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2')\n\n def test_no_color_flag_runs(self, tmp_path):\n \"\"\"Test --no-color flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-color\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:103: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-color', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestSearchEdgeCases.test_line_by_match_flag_runs _______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2')\n\n def test_line_by_match_flag_runs(self, tmp_path):\n \"\"\"Test --line-by-match flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world hello\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--line-by-match\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--line-by-match', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestSearchFlags.test_binary_flag_runs _____________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2')\n\n def test_binary_flag_runs(self, tmp_path):\n \"\"\"Test --binary flag runs without error.\"\"\"\n test_file = tmp_path / \"test.bin\"\n test_file.write_bytes(b\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--binary\", \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--binary', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________________ TestAmbsHelp.test_version_output _______________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_version_output(self):\n \"\"\"Test --version shows version info.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--version\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./target/release/ambs', '--version']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestSearchRegex.test_regex_no_match_runs ___________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2')\n\n def test_regex_no_match_runs(self, tmp_path):\n \"\"\"Test regex with no matches runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"xyz[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:159: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--regex', 'xyz[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestSearchFlags.test_no_file_flag_runs ____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2')\n\n def test_no_file_flag_runs(self, tmp_path):\n \"\"\"Test --no-file flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-file\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:116: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-file', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________ TestSearchEdgeCases.test_special_characters_literal_runs ___________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2')\n\n def test_special_characters_literal_runs(self, tmp_path):\n \"\"\"Test search with special regex characters runs without error.\"\"\"\n test_file = tmp_path / \"special.txt\"\n test_file.write_text(\"hello.world\\nhello*world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello.world\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:203: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello.world', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2/special.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestSearchRegex.test_regex_search_runs ____________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2')\n\n def test_regex_search_runs(self, tmp_path):\n \"\"\"Test regex pattern search runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello123 world\\nhello456 world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"hello[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:146: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--regex', 'hello[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestSearchEdgeCases.test_unicode_content_runs _________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2')\n\n def test_unicode_content_runs(self, tmp_path):\n \"\"\"Test search with unicode content runs without error.\"\"\"\n test_file = tmp_path / \"unicode.txt\"\n test_file.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\\nhello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"\u3053\u3093\u306b\u3061\u306f\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '\u3053\u3093\u306b\u3061\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2/unicode.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestSearchEdgeCases.test_empty_file_runs ___________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2')\n\n def test_empty_file_runs(self, tmp_path):\n \"\"\"Test search on empty file runs without error.\"\"\"\n test_file = tmp_path / \"empty.txt\"\n test_file.write_text(\"\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:176: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2/empty.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestSearchEdgeCases.test_statistics_flag_runs _________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2')\n\n def test_statistics_flag_runs(self, tmp_path):\n \"\"\"Test --statistics flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--statistics\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:229: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--statistics', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestSearchEdgeCases.test_max_threads_option_runs _______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2')\n\n def test_max_threads_option_runs(self, tmp_path):\n \"\"\"Test --max-threads option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--max-threads\", \"4\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--max-threads', '4', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________________ TestSearchEdgeCases.test_skipped_flag_runs __________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2')\n\n def test_skipped_flag_runs(self, tmp_path):\n \"\"\"Test --skipped flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--skipped\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:242: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--skipped', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestSearchEdgeCases.test_size_per_thread_option_runs _____________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2')\n\n def test_size_per_thread_option_runs(self, tmp_path):\n \"\"\"Test --size-per-thread option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--size-per-thread\", \"524288\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--size-per-thread', '524288', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_amber.py::TestAmbsHelp::test_help_output - FileNotFoun...\nFAILED eval/tests/test_search.py::TestSearchFlags::test_column_flag_runs - Fi...\nFAILED eval/tests/test_search.py::TestSearchBasic::test_search_no_crash_on_no_matches\nFAILED eval/tests/test_search.py::TestSearchFlags::test_row_flag_runs - FileN...\nFAILED eval/tests/test_search.py::TestSearchBasic::test_simple_search_runs_without_error\nFAILED eval/tests/test_search.py::TestSearchBasic::test_search_multiple_files\nFAILED eval/tests/test_search.py::TestSearchFlags::test_no_recursive_flag_runs\nFAILED eval/tests/test_search.py::TestSearchFlags::test_no_color_flag_runs - ...\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_line_by_match_flag_runs\nFAILED eval/tests/test_search.py::TestSearchFlags::test_binary_flag_runs - Fi...\nFAILED eval/tests/test_amber.py::TestAmbsHelp::test_version_output - FileNotF...\nFAILED eval/tests/test_search.py::TestSearchRegex::test_regex_no_match_runs\nFAILED eval/tests/test_search.py::TestSearchFlags::test_no_file_flag_runs - F...\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_special_characters_literal_runs\nFAILED eval/tests/test_search.py::TestSearchRegex::test_regex_search_runs - F...\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_unicode_content_runs\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_empty_file_runs\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_statistics_flag_runs\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_max_threads_option_runs\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_skipped_flag_runs\nFAILED eval/tests/test_search.py::TestSearchEdgeCases::test_size_per_thread_option_runs\n=================== 21 failed, 20 passed, 42 rerun in 6.97s ====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n", "returncode": 1, "exception_info": ""}, {"step": "results_read", "command": "docker cp 99856cb5dee1a0a64d7030ffc1449f140200237c8c5a77c8b62bd03b4bdbe242:/workspace/eval/results.xml /tmp/tmp45a0wybq.xml", "wall_time": 0.012943138999958137, "output": "self = <tests.test_amber.TestAmbsHelp object at 0x7fe16d8f3be0>\n\n def test_help_output(self):\n \"\"\"Test --help shows expected output.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--help\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:42: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./target/release/ambs', '--help']>\nargs = ['./target/release/ambs', '--help']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7feb6c9f0190>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2')\n\n def test_column_flag_runs(self, tmp_path):\n \"\"\"Test --column flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--column\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:64: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--column',...>\nargs = ['/workspace/target/release/ambs', '--column', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7f64ac6e9330>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2')\n\n def test_row_flag_runs(self, tmp_path):\n \"\"\"Test --row flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--row\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:77: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--row', 'h...>\nargs = ['/workspace/target/release/ambs', '--row', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchBasic object at 0x7f9dec989f00>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2')\n\n def test_search_no_crash_on_no_matches(self, tmp_path):\n \"\"\"Test search doesn't crash when there are no matches.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"foo bar\\nbaz qux\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', 'hello', '/...>\nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchBasic object at 0x7f3bd3591f00>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2')\n\n def test_simple_search_runs_without_error(self, tmp_path):\n \"\"\"Test that simple keyword search runs without crashing.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\ngoodbye world\\n\")\n \n # Use raw execution (no TTY) - this will exit with 1 but that's OK\n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:17: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', 'hello', '/...>\nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7f369e019f00>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2')\n\n def test_no_recursive_flag_runs(self, tmp_path):\n \"\"\"Test --no-recursive flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-recursive\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:90: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--no-recur...>\nargs = ['/workspace/target/release/ambs', '--no-recursive', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchBasic object at 0x7fa5e4999390>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2')\n\n def test_search_multiple_files(self, tmp_path):\n \"\"\"Test search across multiple files in a directory.\"\"\"\n file1 = tmp_path / \"file1.txt\"\n file2 = tmp_path / \"file2.txt\"\n file1.write_text(\"hello world\\n\")\n file2.write_text(\"hello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:32: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', 'hello', '/...>\nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7f50bb4a1f00>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2')\n\n def test_no_color_flag_runs(self, tmp_path):\n \"\"\"Test --no-color flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-color\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:103: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--no-color...>\nargs = ['/workspace/target/release/ambs', '--no-color', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7f3a5e43bd30>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2')\n\n def test_line_by_match_flag_runs(self, tmp_path):\n \"\"\"Test --line-by-match flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world hello\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--line-by-match\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--line-by-...>\nargs = ['/workspace/target/release/ambs', '--line-by-match', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7fd293ec87c0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2')\n\n def test_binary_flag_runs(self, tmp_path):\n \"\"\"Test --binary flag runs without error.\"\"\"\n test_file = tmp_path / \"test.bin\"\n test_file.write_bytes(b\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--binary\", \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--binary',...>\nargs = ['/workspace/target/release/ambs', '--binary', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_amber.TestAmbsHelp object at 0x7fe16da01c00>\n\n def test_version_output(self):\n \"\"\"Test --version shows version info.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--version\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./target/release/ambs', '--version']>\nargs = ['./target/release/ambs', '--version']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchRegex object at 0x7f9dec74fa60>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2')\n\n def test_regex_no_match_runs(self, tmp_path):\n \"\"\"Test regex with no matches runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"xyz[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:159: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--regex', ...>\nargs = ['/workspace/target/release/ambs', '--regex', 'xyz[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchFlags object at 0x7feb6c7b7cd0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2')\n\n def test_no_file_flag_runs(self, tmp_path):\n \"\"\"Test --no-file flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-file\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:116: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--no-file'...>\nargs = ['/workspace/target/release/ambs', '--no-file', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7f64ac4aded0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2')\n\n def test_special_characters_literal_runs(self, tmp_path):\n \"\"\"Test search with special regex characters runs without error.\"\"\"\n test_file = tmp_path / \"special.txt\"\n test_file.write_text(\"hello.world\\nhello*world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello.world\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:203: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', 'hello.worl...>\nargs = ['/workspace/target/release/ambs', 'hello.world', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2/special.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchRegex object at 0x7f3bd3384310>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2')\n\n def test_regex_search_runs(self, tmp_path):\n \"\"\"Test regex pattern search runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello123 world\\nhello456 world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"hello[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:146: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--regex', ...>\nargs = ['/workspace/target/release/ambs', '--regex', 'hello[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7fa5e475fb20>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2')\n\n def test_unicode_content_runs(self, tmp_path):\n \"\"\"Test search with unicode content runs without error.\"\"\"\n test_file = tmp_path / \"unicode.txt\"\n test_file.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\\nhello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"\u3053\u3093\u306b\u3061\u306f\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '\u3053\u3093\u306b\u3061\u306f', '/...>\nargs = ['/workspace/target/release/ambs', '\u3053\u3093\u306b\u3061\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2/unicode.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7f369ddddea0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2')\n\n def test_empty_file_runs(self, tmp_path):\n \"\"\"Test search on empty file runs without error.\"\"\"\n test_file = tmp_path / \"empty.txt\"\n test_file.write_text(\"\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:176: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', 'hello', '/...>\nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2/empty.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7f50bb267ca0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2')\n\n def test_statistics_flag_runs(self, tmp_path):\n \"\"\"Test --statistics flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--statistics\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:229: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--statisti...>\nargs = ['/workspace/target/release/ambs', '--statistics', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7f3a5e3fd7e0>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2')\n\n def test_max_threads_option_runs(self, tmp_path):\n \"\"\"Test --max-threads option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--max-threads\", \"4\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--max-thre...>\nargs = ['/workspace/target/release/ambs', '--max-threads', '4', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7fd293b3a920>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2')\n\n def test_skipped_flag_runs(self, tmp_path):\n \"\"\"Test --skipped flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--skipped\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:242: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--skipped'...>\nargs = ['/workspace/target/release/ambs', '--skipped', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <tests.test_search.TestSearchEdgeCases object at 0x7fe16d8f3940>\ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2')\n\n def test_size_per_thread_option_runs(self, tmp_path):\n \"\"\"Test --size-per-thread option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--size-per-thread\", \"524288\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['/workspace/target/release/ambs', '--size-per...>\nargs = ['/workspace/target/release/ambs', '--size-per-thread', '524288', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError", "returncode": 0, "exception_info": "", "branch": "a8301849ac1b"}], "failures": {"12565bd8e77e/eval.tests.test_comprehensive.test_file_output_enabled": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--file', 'match', 'MATCH', '/tmp/tmpadjrrm6d/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--file' which wasn't expected, or isn't valid in this context\\n\\nUSAGE:\\n executable --no-interactive\\n\\nFor more information try --help\\n\").returncode", "text": "def test_file_output_enabled():\n \"\"\"Test --file shows filename in output\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"match\\n\")\n # Interactive mode with file output\n result = run(\"--no-interactive\", \"--file\", \"match\", \"MATCH\", str(test_file))\n # Since we're replacing, output might be minimal or show filename\n # Just verify it succeeds\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--file', 'match', 'MATCH', '/tmp/tmpadjrrm6d/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--file' which wasn't expected, or isn't valid in this context\\n\\nUSAGE:\\n executable --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:269: AssertionError"}, "12565bd8e77e/eval.tests.test_comprehensive.test_skip_vcs_directories": {"message": "AssertionError: assert 'REPLACED' in 'replace\\n'\n + where 'replace\\n' = read_text()\n + where read_text = PosixPath('/tmp/tmpq9yc7xez/file.txt').read_text", "text": "def test_skip_vcs_directories():\n \"\"\"Test --skip-vcs skips .git, .hg, .svn directories\"\"\"\n with TempFiles() as tf:\n normal_file = tf.create(\"file.txt\", \"replace\\n\")\n git_file = tf.create(\".git/config\", \"replace\\n\")\n hg_file = tf.create(\".hg/config\", \"replace\\n\")\n svn_file = tf.create(\".svn/config\", \"replace\\n\")\n result = run(\"--no-interactive\", \"--skip-vcs\", \"replace\", \"REPLACED\", tf.tempdir)\n # Normal file should be changed\n> assert \"REPLACED\" in normal_file.read_text()\nE AssertionError: assert 'REPLACED' in 'replace\\n'\nE + where 'replace\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmpq9yc7xez/file.txt').read_text\n\neval/tests/test_comprehensive.py:339: AssertionError"}, "12565bd8e77e/eval.tests.test_comprehensive.test_gitignore_respected": {"message": "AssertionError: assert 'CHANGED' in 'change\\n'\n + where 'change\\n' = read_text()\n + where read_text = PosixPath('/tmp/tmp17ha76aa/file.txt').read_text", "text": "def test_gitignore_respected():\n \"\"\"Test .gitignore patterns are respected\"\"\"\n with TempFiles() as tf:\n gitignore = tf.create(\".gitignore\", \"*.log\\ntemp/\\n\")\n normal_file = tf.create(\"file.txt\", \"change\\n\")\n ignored_file = tf.create(\"debug.log\", \"change\\n\")\n ignored_dir_file = tf.create(\"temp/file.txt\", \"change\\n\")\n result = run(\"--no-interactive\", \"--skip-gitignore\", \"change\", \"CHANGED\", tf.tempdir)\n # Normal file should be changed\n> assert \"CHANGED\" in normal_file.read_text()\nE AssertionError: assert 'CHANGED' in 'change\\n'\nE + where 'change\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp17ha76aa/file.txt').read_text\n\neval/tests/test_comprehensive.py:361: AssertionError"}, "12565bd8e77e/eval.tests.test_comprehensive.test_symlink_following": {"message": "AssertionError: assert 'TARGET' in 'target\\n'\n + where 'target\\n' = read_text()\n + where read_text = PosixPath('/tmp/tmp_y7r0c3d/real.txt').read_text", "text": "def test_symlink_following():\n \"\"\"Test symbolic link following with --symlink\"\"\"\n with TempFiles() as tf:\n real_file = tf.create(\"real.txt\", \"target\\n\")\n link_path = Path(tf.tempdir) / \"link.txt\"\n link_path.symlink_to(real_file)\n result = run(\"--no-interactive\", \"--symlink\", \"target\", \"TARGET\", tf.tempdir)\n # File should be changed (via real path, not through link)\n> assert \"TARGET\" in real_file.read_text()\nE AssertionError: assert 'TARGET' in 'target\\n'\nE + where 'target\\n' = read_text()\nE + where read_text = PosixPath('/tmp/tmp_y7r0c3d/real.txt').read_text\n\neval/tests/test_comprehensive.py:383: AssertionError"}, "12565bd8e77e/eval.tests.test_comprehensive.test_fixed_order_output": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--fixed-order', 'match', 'MATCH', '/tmp/tmpnc8jlvy1'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--fixed-order' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mno-fixed-order\\x1b[0m?\\n\\nUSAGE:\\n executable --no-fixed-order --no-interactive\\n\\nFor more information try --help\\n\").returncode", "text": "def test_fixed_order_output():\n \"\"\"Test --fixed-order guarantees output order\"\"\"\n with TempFiles() as tf:\n for i in range(5):\n tf.create(f\"file{i}.txt\", \"match\\n\")\n result = run(\"--no-interactive\", \"--fixed-order\", \"match\", \"MATCH\", tf.tempdir)\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--fixed-order', 'match', 'MATCH', '/tmp/tmpnc8jlvy1'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--fixed-order' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mno-fixed-order\\x1b[0m?\\n\\nUSAGE:\\n executable --no-fixed-order --no-interactive\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:487: AssertionError"}, "12565bd8e77e/eval.tests.test_comprehensive.test_no_preserve_time_updates_timestamp": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-preserve-time', 'old', 'new', '/tmp/tmpom8ywq31/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--no-preserve-time' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mpreserve-time\\x1b[0m?\\n\\nUSAGE:\\n executable --no-interactive --preserve-time\\n\\nFor more information try --help\\n\").returncode", "text": "def test_no_preserve_time_updates_timestamp():\n \"\"\"Test that timestamps are updated by default\"\"\"\n with TempFiles() as tf:\n test_file = tf.create(\"test.txt\", \"old\\n\")\n import time\n time.sleep(0.1)\n mtime_before = test_file.stat().st_mtime\n result = run(\"--no-interactive\", \"--no-preserve-time\", \"old\", \"new\", str(test_file))\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-preserve-time', 'old', 'new', '/tmp/tmpom8ywq31/test.txt'], returncode=1, stdout=b'', stderr=b\"error: Found argument '--no-preserve-time' which wasn't expected, or isn't valid in this context\\n\\tDid you mean \\x1b[32m--\\x1b[0m\\x1b[32mpreserve-time\\x1b[0m?\\n\\nUSAGE:\\n executable --no-interactive --preserve-time\\n\\nFor more information try --help\\n\").returncode\n\neval/tests/test_comprehensive.py:470: AssertionError"}, "72a39496391b/tests.test_errors.test_empty_keyword_literal": {"message": "Binary hangs with empty keyword in literal mode", "text": "/workspace/eval/tests/test_errors.py:317: Binary hangs with empty keyword in literal mode"}, "72a39496391b/tests.test_errors.test_key_from_file_permission_denied": {"message": "Times out due to binary behavior - needs investigation", "text": "/workspace/eval/tests/test_errors.py:134: Times out due to binary behavior - needs investigation"}, "72a39496391b/tests.test_error_paths.test_permission_denied_error": {"message": "Permission tests don't work as root", "text": "/workspace/eval/tests/test_error_paths.py:23: Permission tests don't work as root"}, "72a39496391b/tests.test_error_paths.test_permission_denied_from_file": {"message": "Permission tests don't work as root", "text": "/workspace/eval/tests/test_error_paths.py:56: Permission tests don't work as root"}, "72a39496391b/tests.test_errors.test_literal_backslash_in_keyword": {"message": "AssertionError: assert 'path\\\\\\\\file\\n' == 'REPLACED\\n'\n \n - REPLACED\n + path\\\\file", "text": "tests/test_errors.py:464: in test_literal_backslash_in_keyword\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'path\\\\\\\\file\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + path\\\\file"}, "72a39496391b/tests.test_errors.test_max_threads_zero": {"message": "Binary panics on --max-threads 0 (index out of bounds) - not fixable", "text": "/workspace/eval/tests/test_errors.py:491: Binary panics on --max-threads 0 (index out of bounds) - not fixable"}, "72a39496391b/tests.test_ambr_edge.test_statistics_output_structure_complete": {"message": "AssertionError: Must have exactly 10 Match lines (one per thread), got 8\nassert 8 == 10\n + where 8 = len([6, 7, 8, 9, 10, 11, ...])", "text": "tests/test_ambr_edge.py:477: in test_statistics_output_structure_complete\n assert len(match_line_indices) == expected_thread_count, \\\nE AssertionError: Must have exactly 10 Match lines (one per thread), got 8\nE assert 8 == 10\nE + where 8 = len([6, 7, 8, 9, 10, 11, ...])"}, "72a39496391b/tests.test_ambr_edge.test_skipped_vcs_files_info_message": {"message": "AssertionError: Expected:\n 'Skip (vcs file) : \"./.git\"'\n Got:\n \"error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-vcs?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-vcs --skipped\\n\\nFor more information try --help\"\nassert 'error: Found...on try --help' == 'Skip (vcs file) : \"./.git\"'\n \n - Skip (vcs file) : \"./.git\"\n + error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\n + \tDid you mean --no-skip-vcs?\n + \n + USAGE:\n + executable --no-interactive --no-skip-vcs --skipped\n + \n + For more information try --help", "text": "tests/test_ambr_edge.py:257: in test_skipped_vcs_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (vcs file) : \"./.git\"'\nE Got:\nE \"error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-vcs?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-vcs --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (vcs file) : \"./.git\"'\nE \nE - Skip (vcs file) : \"./.git\"\nE + error: Found argument '--skip-vcs' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-vcs?\nE + \nE + USAGE:\nE + executable --no-interactive --no-skip-vcs --skipped\nE + \nE + For more information try --help"}, "72a39496391b/tests.test_errors.test_backslash_escape_in_literal_mode": {"message": "AssertionError: assert 'line1\\nline2\\n' == 'REPLACED\\n'\n \n - REPLACED\n + line1\n + line2", "text": "tests/test_errors.py:451: in test_backslash_escape_in_literal_mode\n assert test_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'line1\\nline2\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + line1\nE + line2"}, "72a39496391b/tests.test_filtering.test_symlink_to_file_followed_by_default": {"message": "AssertionError: assert 'orangee\\n' == 'orange\\n'\n \n - orange\n + orangee\n ? +", "text": "tests/test_filtering.py:497: in test_symlink_to_file_followed_by_default\n assert (tmp_path / \"real.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +"}, "72a39496391b/tests.test_ambr_edge.test_config_file_loading_valid_toml": {"message": "AssertionError: assert 'keyword here\\n' == 'replacement here\\n'\n \n - replacement here\n + keyword here", "text": "tests/test_ambr_edge.py:541: in test_config_file_loading_valid_toml\n assert test_file.read_text() == \"replacement here\\n\"\nE AssertionError: assert 'keyword here\\n' == 'replacement here\\n'\nE \nE - replacement here\nE + keyword here"}, "72a39496391b/tests.test_cli_config.test_symlink_default_follows": {"message": "AssertionError: assert 'REPLACEDD\\n' == 'REPLACED\\n'\n \n - REPLACED\n + REPLACEDD\n ? +", "text": "tests/test_cli_config.py:529: in test_symlink_default_follows\n assert real_file.read_text() == \"REPLACED\\n\"\nE AssertionError: assert 'REPLACEDD\\n' == 'REPLACED\\n'\nE \nE - REPLACED\nE + REPLACEDD\nE ? +"}, "72a39496391b/tests.test_ambr_edge.test_skipped_gitignore_files_info_message": {"message": "AssertionError: Expected:\n 'Skip (.gitignore): \"./ignored_file.txt\"'\n Got:\n \"error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-gitignore?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-gitignore --skipped\\n\\nFor more information try --help\"\nassert 'error: Found...on try --help' == 'Skip (.gitig...red_file.txt\"'\n \n - Skip (.gitignore): \"./ignored_file.txt\"\n + error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\n + \tDid you mean --no-skip-gitignore?\n + \n + USAGE:\n + executable --no-interactive --no-skip-gitignore --skipped\n + \n + For more information try --help", "text": "tests/test_ambr_edge.py:289: in test_skipped_gitignore_files_info_message\n assert output == expected, f\"Expected:\\n{expected!r}\\nGot:\\n{output!r}\"\nE AssertionError: Expected:\nE 'Skip (.gitignore): \"./ignored_file.txt\"'\nE Got:\nE \"error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\\n\\tDid you mean --no-skip-gitignore?\\n\\nUSAGE:\\n executable --no-interactive --no-skip-gitignore --skipped\\n\\nFor more information try --help\"\nE assert 'error: Found...on try --help' == 'Skip (.gitig...red_file.txt\"'\nE \nE - Skip (.gitignore): \"./ignored_file.txt\"\nE + error: Found argument '--skip-gitignore' which wasn't expected, or isn't valid in this context\nE + \tDid you mean --no-skip-gitignore?\nE + \nE + USAGE:\nE + executable --no-interactive --no-skip-gitignore --skipped\nE + \nE + For more information try --help"}, "72a39496391b/tests.test_matchers.test_regex_complex_email_pattern": {"message": "AssertionError: Email should be replaced\nassert 'test@example.com' not in 'Version 1.2...: 555-1234\\n'\n \n 'test@example.com' is contained here:\n Version 1.2.3 released\n Error code: 404\n Port 8080 is open\n Year 2024\n Email: test@example.com...\n \n ...Full output truncated (3 lines hidden), use '-vv' to show", "text": "tests/test_matchers.py:500: in test_regex_complex_email_pattern\n assert \"test@example.com\" not in actual, \"Email should be replaced\"\nE AssertionError: Email should be replaced\nE assert 'test@example.com' not in 'Version 1.2...: 555-1234\\n'\nE \nE 'test@example.com' is contained here:\nE Version 1.2.3 released\nE Error code: 404\nE Port 8080 is open\nE Year 2024\nE Email: test@example.com...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to show"}, "72a39496391b/tests.test_matchers.test_regex_escaped_dollar_sign": {"message": "AssertionError: Price pattern should be replaced\nassert '$100.50' not in 'Price: $100...sers\\\\test\\n'\n \n '$100.50' is contained here:\n Price: $100.50\n Regex chars: . * + ? [ ] ( ) { } ^ $ | \\\n Path: C:\\Users\\test", "text": "tests/test_matchers.py:595: in test_regex_escaped_dollar_sign\n assert \"$100.50\" not in actual, \"Price pattern should be replaced\"\nE AssertionError: Price pattern should be replaced\nE assert '$100.50' not in 'Price: $100...sers\\\\test\\n'\nE \nE '$100.50' is contained here:\nE Price: $100.50\nE Regex chars: . * + ? [ ] ( ) { } ^ $ | \\\nE Path: C:\\Users\\test"}, "72a39496391b/tests.test_filtering.test_no_recursive_with_symlink_to_subdir": {"message": "AssertionError: assert 'orangee\\n' == 'orange\\n'\n \n - orange\n + orangee\n ? +", "text": "tests/test_filtering.py:698: in test_no_recursive_with_symlink_to_subdir\n assert (external / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +"}, "72a39496391b/tests.test_gap_filling.test_file_with_low_bytes_binary_detection": {"message": "AssertionError: Low byte file was modified: b'\\x08replaced'\nassert b'\\x08replaced' == b'\\x08test'\n \n At index 1 diff: b'r' != b't'\n \n Full diff:\n - (b'\\x08test')\n + (b'\\x08replaced')", "text": "tests/test_gap_filling.py:178: in test_file_with_low_bytes_binary_detection\n assert low_byte_file.read_bytes() == b\"\\x08test\", \\\nE AssertionError: Low byte file was modified: b'\\x08replaced'\nE assert b'\\x08replaced' == b'\\x08test'\nE \nE At index 1 diff: b'r' != b't'\nE \nE Full diff:\nE - (b'\\x08test')\nE + (b'\\x08replaced')"}, "72a39496391b/tests.test_regex.test_regex_special_chars_in_replacement": {"message": "AssertionError: assert '\\\\n\\\\t bar baz' == '\\n\\t bar baz'\n \n - \n - \t bar baz\n ? ^\n + \\n\\t bar baz\n ? ^^^^", "text": "tests/test_regex.py:663: in test_regex_special_chars_in_replacement\n assert content == \"\\n\\t bar baz\"\nE AssertionError: assert '\\\\n\\\\t bar baz' == '\\n\\t bar baz'\nE \nE - \nE - \t bar baz\nE ? ^\nE + \\n\\t bar baz\nE ? ^^^^"}, "72a39496391b/tests.test_replace_core.test_symlink_followed_by_default": {"message": "AssertionError: assert 'orangee\\n' == 'orange\\n'\n \n - orange\n + orangee\n ? +", "text": "tests/test_replace_core.py:439: in test_symlink_followed_by_default\n assert (tmp_path / \"real_dir\" / \"file.txt\").read_text() == \"orange\\n\"\nE AssertionError: assert 'orangee\\n' == 'orange\\n'\nE \nE - orange\nE + orangee\nE ? +"}, "72a39496391b/tests.test_util.test_escape_tab_in_replacement": {"message": "AssertionError: assert b'foo \\\\t baz' == b'foo \\t baz'\n \n At index 4 diff: b'\\\\' != b'\\t'\n \n Full diff:\n - (b'foo \\t baz')\n + (b'foo \\\\t baz')\n ? +", "text": "tests/test_util.py:49: in test_escape_tab_in_replacement\n assert content == b\"foo \\t baz\"\nE AssertionError: assert b'foo \\\\t baz' == b'foo \\t baz'\nE \nE At index 4 diff: b'\\\\' != b'\\t'\nE \nE Full diff:\nE - (b'foo \\t baz')\nE + (b'foo \\\\t baz')\nE ? +"}, "72a39496391b/tests.test_util.test_escape_carriage_return_in_replacement": {"message": "AssertionError: assert b'foo \\\\r baz' == b'foo \\r baz'\n \n At index 4 diff: b'\\\\' != b'\\r'\n \n Full diff:\n - (b'foo \\r baz')\n + (b'foo \\\\r baz')\n ? +", "text": "tests/test_util.py:61: in test_escape_carriage_return_in_replacement\n assert content == b\"foo \\r baz\"\nE AssertionError: assert b'foo \\\\r baz' == b'foo \\r baz'\nE \nE At index 4 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - (b'foo \\r baz')\nE + (b'foo \\\\r baz')\nE ? +"}, "72a39496391b/tests.test_util.test_escape_newline_in_replacement": {"message": "AssertionError: assert b'foo \\\\n baz' == b'foo \\n baz'\n \n At index 4 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - (b'foo \\n baz')\n + (b'foo \\\\n baz')\n ? +", "text": "tests/test_util.py:37: in test_escape_newline_in_replacement\n assert content == b\"foo \\n baz\"\nE AssertionError: assert b'foo \\\\n baz' == b'foo \\n baz'\nE \nE At index 4 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'foo \\n baz')\nE + (b'foo \\\\n baz')\nE ? +"}, "72a39496391b/tests.test_util.test_escaped_backslash_before_n": {"message": "AssertionError: assert b'\\\\\\\\n' == b'\\\\\\n'\n \n At index 1 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - b'\\\\\\n'\n + b'\\\\\\\\n'\n ? +", "text": "tests/test_util.py:101: in test_escaped_backslash_before_n\n assert content == b\"\\\\\\n\"\nE AssertionError: assert b'\\\\\\\\n' == b'\\\\\\n'\nE \nE At index 1 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\\\\\n'\nE + b'\\\\\\\\n'\nE ? +"}, "72a39496391b/tests.test_util.test_escape_sequences_with_regular_text": {"message": "AssertionError: assert b'line1\\\\nline2\\\\tindented' == b'line1\\nline2\\tindented'\n \n At index 5 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - (b'line1\\nline2\\tindented')\n + (b'line1\\\\nline2\\\\tindented')\n ? + +", "text": "tests/test_util.py:168: in test_escape_sequences_with_regular_text\n assert content == b\"line1\\nline2\\tindented\"\nE AssertionError: assert b'line1\\\\nline2\\\\tindented' == b'line1\\nline2\\tindented'\nE \nE At index 5 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'line1\\nline2\\tindented')\nE + (b'line1\\\\nline2\\\\tindented')\nE ? + +"}, "72a39496391b/tests.test_util.test_long_replacement_with_many_escapes": {"message": "AssertionError: assert b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r' == b'\\n\\t\\r\\n\\t\\r\\n\\t\\r'\n \n At index 0 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - (b'\\n\\t\\r\\n\\t\\r\\n\\t\\r')\n + (b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r')\n ? + + + + + + + + +", "text": "tests/test_util.py:156: in test_long_replacement_with_many_escapes\n assert content == b\"\\n\\t\\r\\n\\t\\r\\n\\t\\r\"\nE AssertionError: assert b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r' == b'\\n\\t\\r\\n\\t\\r\\n\\t\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - (b'\\n\\t\\r\\n\\t\\r\\n\\t\\r')\nE + (b'\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r\\\\n\\\\t\\\\r')\nE ? + + + + + + + + +"}, "72a39496391b/tests.test_util.test_multiple_backslashes_in_sequence": {"message": "AssertionError: assert b'\\\\\\\\\\\\\\\\' == b'\\\\\\\\'\n \n Full diff:\n - b'\\\\\\\\'\n + b'\\\\\\\\\\\\\\\\'\n ? ++++", "text": "tests/test_util.py:205: in test_multiple_backslashes_in_sequence\n assert content == b\"\\\\\\\\\"\nE AssertionError: assert b'\\\\\\\\\\\\\\\\' == b'\\\\\\\\'\nE \nE Full diff:\nE - b'\\\\\\\\'\nE + b'\\\\\\\\\\\\\\\\'\nE ? ++++"}, "72a39496391b/tests.test_gap_filling.test_symlink_to_directory": {"message": "AssertionError: assert '/tmp/pytest-...ace/test.txtd' == '/tmp/pytest-...ace/test.txtd'\n \n - /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\n + /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd", "text": "tests/test_gap_filling.py:286: in test_symlink_to_directory\n assert (target_dir / \"file.txt\").read_text() == \"/tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\"\nE AssertionError: assert '/tmp/pytest-...ace/test.txtd' == '/tmp/pytest-...ace/test.txtd'\nE \nE - /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd\nE + /tmp/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd/pytest-of-root/pytest-3/popen-gw12/test_empty_keyword_literal0/workspace/test.txtd"}, "72a39496391b/tests.test_util.test_escape_sequences_in_multiline_replacement": {"message": "AssertionError: assert 'line1\\\\nline2\\\\nline3' == 'line1\\nline2\\nline3'\n \n + line1\\nline2\\nline3\n - line1\n - line2\n - line3", "text": "tests/test_util.py:278: in test_escape_sequences_in_multiline_replacement\n assert content == \"line1\\nline2\\nline3\"\nE AssertionError: assert 'line1\\\\nline2\\\\nline3' == 'line1\\nline2\\nline3'\nE \nE + line1\\nline2\\nline3\nE - line1\nE - line2\nE - line3"}, "72a39496391b/tests.test_util.test_escape_backslash_in_replacement": {"message": "AssertionError: assert b'foo \\\\\\\\ baz' == b'foo \\\\ baz'\n \n At index 5 diff: b'\\\\' != b' '\n \n Full diff:\n - (b'foo \\\\ baz')\n + (b'foo \\\\\\\\ baz')\n ? ++", "text": "tests/test_util.py:73: in test_escape_backslash_in_replacement\n assert content == b\"foo \\\\ baz\"\nE AssertionError: assert b'foo \\\\\\\\ baz' == b'foo \\\\ baz'\nE \nE At index 5 diff: b'\\\\' != b' '\nE \nE Full diff:\nE - (b'foo \\\\ baz')\nE + (b'foo \\\\\\\\ baz')\nE ? ++"}, "72a39496391b/tests.test_util.test_multiple_escape_sequences_combined": {"message": "AssertionError: assert b'\\\\n\\\\t' == b'\\n\\t'\n \n At index 0 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - b'\\n\\t'\n + b'\\\\n\\\\t'\n ? + +", "text": "tests/test_util.py:85: in test_multiple_escape_sequences_combined\n assert content == b\"\\n\\t\"\nE AssertionError: assert b'\\\\n\\\\t' == b'\\n\\t'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\t'\nE + b'\\\\n\\\\t'\nE ? + +"}, "72a39496391b/tests.test_util.test_carriage_return_newline_combination": {"message": "AssertionError: assert b'\\\\r\\\\n' == b'\\r\\n'\n \n At index 0 diff: b'\\\\' != b'\\r'\n \n Full diff:\n - b'\\r\\n'\n + b'\\\\r\\\\n'\n ? + +", "text": "tests/test_util.py:180: in test_carriage_return_newline_combination\n assert content == b\"\\r\\n\"\nE AssertionError: assert b'\\\\r\\\\n' == b'\\r\\n'\nE \nE At index 0 diff: b'\\\\' != b'\\r'\nE \nE Full diff:\nE - b'\\r\\n'\nE + b'\\\\r\\\\n'\nE ? + +"}, "72a39496391b/tests.test_util.test_newline_carriage_return_combination": {"message": "AssertionError: assert b'\\\\n\\\\r' == b'\\n\\r'\n \n At index 0 diff: b'\\\\' != b'\\n'\n \n Full diff:\n - b'\\n\\r'\n + b'\\\\n\\\\r'\n ? + +", "text": "tests/test_util.py:192: in test_newline_carriage_return_combination\n assert content == b\"\\n\\r\"\nE AssertionError: assert b'\\\\n\\\\r' == b'\\n\\r'\nE \nE At index 0 diff: b'\\\\' != b'\\n'\nE \nE Full diff:\nE - b'\\n\\r'\nE + b'\\\\n\\\\r'\nE ? + +"}, "72a39496391b/tests.test_util.test_backslash_at_end_of_replacement": {"message": "AssertionError: assert b'\\\\\\\\' == b'\\\\'\n \n Full diff:\n - b'\\\\'\n + b'\\\\\\\\'\n ? ++", "text": "tests/test_util.py:290: in test_backslash_at_end_of_replacement\n assert content == b\"\\\\\"\nE AssertionError: assert b'\\\\\\\\' == b'\\\\'\nE \nE Full diff:\nE - b'\\\\'\nE + b'\\\\\\\\'\nE ? ++"}, "637103d0c48c/eval.tests.test_argument_parsing.TestConflictingFlags.test_regex_and_no_regex": {"message": "assert \"wasn't expected\" not in 'error: Foun...try --help\\n'\n \n \"wasn't expected\" is contained here:\n error: Found argument '--no-regex' which wasn't expected, or isn't valid in this context\n ? +++++++++++++++\n \tDid you mean #x1B[32m--#x1B[0m#x1B[32mregex#x1B[0m?\n \n USAGE:...\n \n ...Full output truncated (3 lines hidden), use '-vv' to show", "text": "self = \n\n def test_regex_and_no_regex(self):\n \"\"\"Test --regex and --no-regex together (last one should win).\"\"\"\n result = run_executable([\"--regex\", \"--no-regex\", \"keyword\", \"replacement\"])\n # Should not produce argument parsing error\n assert \"required arguments\" not in result.stderr.lower()\n> assert \"wasn't expected\" not in result.stderr\nE assert \"wasn't expected\" not in 'error: Foun...try --help\\n'\nE \nE \"wasn't expected\" is contained here:\nE error: Found argument '--no-regex' which wasn't expected, or isn't valid in this context\nE ? +++++++++++++++\nE \tDid you mean #x1B[32m--#x1B[0m#x1B[32mregex#x1B[0m?\nE \nE USAGE:...\nE \nE ...Full output truncated (3 lines hidden), use '-vv' to show\n\neval/tests/test_argument_parsing.py:574: AssertionError"}, "c2324775415c/eval.tests.test_externalized.test_ext_pipeline_finder_default_skips_vcs": {"message": "assert 'src/' in './Cargo.lock: name = \"amber\"\\n -> name = \"AMBER\"\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'", "text": "def test_ext_pipeline_finder_default_skips_vcs():\n \"\"\"Externalized from: src/pipeline_finder.rs::tests::pipeline_finder_default\n \n Upward trace: CLI main(ambr) -> pipeline build -> PipelineFinder::new(skip_vcs=true) over PATHS.\n Downward trace: matched files are shown in interactive output as \": \".\n \"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./\", keys=[\"q\", \"Enter\"])\n> assert \"src/\" in out\nE assert 'src/' in './Cargo.lock: name = \"amber\"\\n -> name = \"AMBER\"\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:80: AssertionError"}, "c2324775415c/eval.tests.test_externalized.test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions": {"message": "AssertionError: assert 'dir0/file' in '/tmp/tmp8v8at0us/ao: amber\\n -> AMBER\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'", "text": "def test_ext_ignore_gitignore_skips_patterns_and_allows_exceptions():\n \"\"\"Externalized from: src/ignore.rs::tests::ignore_git\"\"\"\n with TempDir() as td:\n gitignore_src = Path(\"test/.gitignore\")\n td.write(\".gitignore\", gitignore_src.read_text())\n \n paths = [\n \"ao\",\n \"a.o\",\n \"abc.o\",\n \"a.s\",\n \"abc.s\",\n \"d0.t\",\n \"d00.t\",\n \"file\",\n \"dir0/file\",\n \"dir1/file\",\n \"x/file\",\n \"x/dir0/file\",\n \"x/dir1/file\",\n ]\n for p in paths:\n td.write(p, \"amber\\n\")\n \n out = _tmux_run_ambr_capture(\n f\"./executable --no-skip-gitignore amber AMBER {td.path}\", keys=[\"q\", \"Enter\"]\n )\n \n> assert \"dir0/file\" in out\nE AssertionError: assert 'dir0/file' in '/tmp/tmp8v8at0us/ao: amber\\n -> AMBER\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:128: AssertionError"}, "c2324775415c/eval.tests.test_externalized.test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others": {"message": "AssertionError: assert 'src/ambs.rs' in './src/config.rs: //! Configuration file handling (~/.ambr.toml, /amber/ambr.toml, /etc/amber/ambr.toml).\\n -> //! Configuration file handling (~/.ambr.toml, /AMBER/ambr.toml, /etc/amber/ambr.toml).\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'", "text": "def test_ext_pipeline_matcher_finds_keyword_in_some_files_and_not_others():\n \"\"\"Externalized from: src/pipeline_matcher.rs::tests::pipeline_matcher\"\"\"\n out = _tmux_run_ambr_capture(\"./executable amber AMBER ./src\", keys=[\"q\", \"Enter\"])\n> assert \"src/ambs.rs\" in out\nE AssertionError: assert 'src/ambs.rs' in './src/config.rs: //! Configuration file handling (~/.ambr.toml, /amber/ambr.toml, /etc/amber/ambr.toml).\\n -> //! Configuration file handling (~/.ambr.toml, /AMBER/ambr.toml, /etc/amber/ambr.toml).\\nReplace keyword? [Y]es/[n]o/[a]ll/[q]uit: q\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'\n\neval/tests/test_externalized.py:139: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_binary_file_skip": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir')\n\n def test_binary_file_skip(temp_dir):\n # Create a binary file\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # By default, binary files should be skipped\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:20: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_skipped_flag": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--skipped', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir')\n\n def test_skipped_flag(temp_dir):\n # To test --skipped, we need some files to be skipped, like a binary file.\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--skipped\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--skipped', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_skipped_flag2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:116: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_no_symlink": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir')\n\n def test_no_symlink(temp_dir):\n target = temp_dir / \"target.txt\"\n target.write_text(\"match\")\n link = temp_dir / \"link.txt\"\n os.symlink(target, link)\n \n # By default it should follow symlinks\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:78: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_empty_directory": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'keyword', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir')\n\n def test_empty_directory(temp_dir):\n # Already created an empty directory via temp_dir fixture if no files added\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"keyword\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0 # Should succeed but do nothing\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'keyword', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_empty_directory2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:93: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_vcs_skip": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir')\n\n def test_vcs_skip(temp_dir):\n git_dir = temp_dir / \".git\"\n git_dir.mkdir()\n file_in_git = git_dir / \"ignored.txt\"\n file_in_git.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_vcs_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:39: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_statistics": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--statistics', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir')\n\n def test_statistics(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--statistics\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--statistics', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_statistics2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:31: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_no_recursive": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-recursive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir')\n\n def test_no_recursive(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"match\")\n file2.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-recursive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-recursive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_recursive2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:58: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_no_skip_gitignore": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-skip-gitignore', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir')\n\n def test_no_skip_gitignore(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-skip-gitignore\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-skip-gitignore', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_no_skip_gitignore2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:67: AssertionError"}, "1081f3f7c1d4/eval.tests.test_performance.test_large_file": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2'], returncode=1, stdout='', stderr='').returncode", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2')\n\n def test_large_file(tmp_path):\n file1 = tmp_path / \"large.txt\"\n # Create a 5MB file\n content = \"a\" * 1024 * 1024 * 5 + \"match\" + \"a\" * 1024\n file1.write_text(content)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_large_file2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:14: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_basic_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'hello', 'hi', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir')\n\n def test_basic_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"hello\", \"hi\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'hello', 'hi', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_basic_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:18: AssertionError"}, "1081f3f7c1d4/eval.tests.test_interactive.test_interactive_replace_yes": {"message": "AssertionError: assert 'hello world' == 'hi world'\n \n - hi world\n + hello world", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_interactive_replace_yes2')\n\n def test_interactive_replace_yes(tmp_path):\n file1 = tmp_path / \"file1.txt\"\n file1.write_text(\"hello world\")\n \n # Send 'y' to ambr\n process = subprocess.Popen([EXECUTABLE, \"hello\", \"hi\", str(tmp_path)],\n stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\n \n try:\n stdout, stderr = process.communicate(input=\"y\\n\", timeout=2)\n> assert file1.read_text() == \"hi world\"\nE AssertionError: assert 'hello world' == 'hi world'\nE \nE - hi world\nE + hello world\n\neval/tests/test_interactive.py:17: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_binary_file_include": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--binary', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir')\n\n def test_binary_file_include(temp_dir):\n bin_file = temp_dir / \"binary.bin\"\n bin_file.write_bytes(b\"\\x00\\xFF\\x6d\\x61\\x74\\x63\\x68\\x00\") # contains \"match\"\n \n # Use --binary to include binary files\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--binary\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--binary', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_binary_file_include2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:29: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_no_symlink_real": {"message": "AssertionError: assert 'match' == 'replace'\n \n - replace\n + match", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_symlink_real2')\n\n def test_no_symlink_real(tmp_path):\n target = tmp_path / \"outside_target.txt\"\n target.write_text(\"match\")\n \n test_dir = tmp_path / \"test_dir\"\n test_dir.mkdir()\n link = test_dir / \"link.txt\"\n os.symlink(target, link)\n \n # Default: follows symlink\n subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(test_dir)], capture_output=True, text=True)\n> assert target.read_text() == \"replace\"\nE AssertionError: assert 'match' == 'replace'\nE \nE - replace\nE + match\n\neval/tests/test_flags.py:102: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_column_row_output": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--column', '--row', 'match', 'found', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir')\n\n def test_column_row_output(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"line1\\nline2\\nmatch here\")\n \n # We use --no-interactive to actually perform the replace, but here we just want to see the output format.\n # Actually ambr prints what it's doing.\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--column\", \"--row\", \"match\", \"found\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--column', '--row', 'match', 'found', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_row_output2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:21: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_no_file": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-file', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir')\n\n def test_no_file(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--no-file\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--no-file', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_no_file2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:67: AssertionError"}, "1081f3f7c1d4/eval.tests.test_edge_cases.test_gitignore_skip": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir')\n\n def test_gitignore_skip(temp_dir):\n gitignore = temp_dir / \".gitignore\"\n gitignore.write_text(\"ignored.txt\")\n ignored_file = temp_dir / \"ignored.txt\"\n ignored_file.write_text(\"match\")\n \n # We need to be in a git repo for .gitignore to work? ambr uses 'ignore' crate which usually handles this.\n # Actually, ambr has --no-skip-gitignore flag.\n \n # Initialize a git repo to make sure .gitignore is respected\n subprocess.run([\"git\", \"init\"], cwd=str(temp_dir), capture_output=True)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_gitignore_skip2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_edge_cases.py:55: AssertionError"}, "1081f3f7c1d4/eval.tests.test_performance.test_many_files": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2'], returncode=1, stdout='', stderr='').returncode", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2')\n\n def test_many_files(tmp_path):\n # Create 100 small files\n for i in range(100):\n f = tmp_path / f\"file_{i}.txt\"\n f.write_text(\"match\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"match\", \"replace\", str(tmp_path)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'match', 'replace', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_many_files2'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_performance.py:25: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_recursive_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'apple', 'orange', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir')\n\n def test_recursive_replace(temp_dir):\n subdir = temp_dir / \"subdir\"\n subdir.mkdir()\n file1 = temp_dir / \"file1.txt\"\n file2 = subdir / \"file2.txt\"\n file1.write_text(\"apple pie\")\n file2.write_text(\"apple juice\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"apple\", \"orange\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'apple', 'orange', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_recursive_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:30: AssertionError"}, "1081f3f7c1d4/eval.tests.test_flags.test_preserve_time": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--preserve-time', 'content', 'new', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir')\n\n def test_preserve_time(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"content\")\n old_time = os.path.getmtime(file1)\n \n # Wait a bit to ensure time would change\n time.sleep(0.1)\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--preserve-time\", \"content\", \"new\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--preserve-time', 'content', 'new', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_preserve_time2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_flags.py:45: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_regex_capture_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '(aaa) (bbb)', '$2 $1', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir')\n\n def test_regex_capture_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"aaa bbb\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"(aaa) (bbb)\", r\"$2 $1\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '(aaa) (bbb)', '$2 $1', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_regex_capture_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:47: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_regex_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '\\\\d+', 'num', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir')\n\n def test_regex_replace(temp_dir):\n file1 = temp_dir / \"file1.txt\"\n file1.write_text(\"abc 123 def\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--regex\", r\"\\d+\", \"num\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--regex', '\\\\d+', 'num', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_regex_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:39: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_key_from_file": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--key-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/key.txt', 'replacement', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir')\n\n def test_key_from_file(temp_dir):\n key_file = temp_dir / \"key.txt\"\n key_file.write_text(\"pattern\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--key-from-file\", str(key_file), \"replacement\", str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--key-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/key.txt', 'replacement', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_key_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:57: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_unicode_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '\u3053\u3093\u306b\u3061\u306f', '\u3053\u3093\u3070\u3093\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir')\n\n def test_unicode_replace(temp_dir):\n file1 = temp_dir / \"unicode.txt\"\n file1.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\", encoding=\"utf-8\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"\u3053\u3093\u306b\u3061\u306f\", \"\u3053\u3093\u3070\u3093\u306f\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '\u3053\u3093\u306b\u3061\u306f', '\u3053\u3093\u3070\u3093\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_unicode_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:75: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_rep_from_file": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--rep-from-file', 'pattern', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir')\n\n def test_rep_from_file(temp_dir):\n rep_file = temp_dir / \"rep.txt\"\n rep_file.write_text(\"replacement\")\n target_file = temp_dir / \"target.txt\"\n target_file.write_text(\"this is a pattern\")\n \n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"--rep-from-file\", \"pattern\", str(rep_file), str(target_file)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', '--rep-from-file', 'pattern', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_rep_from_file2/test_dir/target.txt'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:67: AssertionError"}, "1081f3f7c1d4/eval.tests.test_replace.test_special_chars_replace": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'a[b]c*d+e?f', 'replaced', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode", "text": "temp_dir = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir')\n\n def test_special_chars_replace(temp_dir):\n file1 = temp_dir / \"special.txt\"\n file1.write_text(\"a[b]c*d+e?f\", encoding=\"utf-8\")\n \n # Without --regex, special chars should be treated literally\n result = subprocess.run([EXECUTABLE, \"--no-interactive\", \"a[b]c*d+e?f\", \"replaced\", str(temp_dir)], capture_output=True, text=True)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', '--no-interactive', 'a[b]c*d+e?f', 'replaced', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_special_chars_replace2/test_dir'], returncode=1, stdout='', stderr='').returncode\n\neval/tests/test_replace.py:84: AssertionError"}, "42cc3d87770f/eval.tests.test_ambr_cli.test_help_matches_golden": {"message": "AssertionError: assert 'ambr 0.6.0\\n...earch paths\\n' == 'ambr 0.6.0\\n...earch paths\\n'\n \n ambr 0.6.0\n \n USAGE:\n executable [FLAGS] [OPTIONS] [PATHS]...\n \n FLAGS:...\n \n ...Full output truncated (37 lines hidden), use '-vv' to show", "text": "def test_help_matches_golden():\n golden = (GOLDEN / \"help.txt\").read_text()\n p = run([str(EXE), \"--help\"])\n assert p.returncode == 0\n> assert p.stdout == golden\nE AssertionError: assert 'ambr 0.6.0\\n...earch paths\\n' == 'ambr 0.6.0\\n...earch paths\\n'\nE \nE ambr 0.6.0\nE \nE USAGE:\nE executable [FLAGS] [OPTIONS] [PATHS]...\nE \nE FLAGS:...\nE \nE ...Full output truncated (37 lines hidden), use '-vv' to show\n\neval/tests/test_ambr_cli.py:26: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_unicode_replacement": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt content mismatch: got='caf\u00e9 foo\\n' expected='caf\u00e9 \u0431\\n'\nstdout=''\nstderr=''\nrc=1", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2')\n\n @pytest.mark.timeout(5)\n def test_unicode_replacement(tmp_path):\n f = tmp_path / \"u.txt\"\n f.write_text(\"caf\u00e9 foo\\n\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"\u0431\", str(f)], {str(f): \"caf\u00e9 \u0431\\n\"})\n\neval/tests/test_ambr.py:169: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', '\u0431', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt': 'caf\u00e9 \u0431\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw9/test_unicode_replacement2/u.txt content mismatch: got='caf\u00e9 foo\\n' expected='caf\u00e9 \u0431\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_regex_replace_with_captures": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt content mismatch: got='aaa bbb\\n' expected='aaa bbb aaa bbb\\n'\nstdout=''\nstderr=''\nrc=1", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2')\n\n @pytest.mark.timeout(5)\n def test_regex_replace_with_captures(tmp_path):\n f = tmp_path / \"r.txt\"\n f.write_text(\"aaa bbb\\n\")\n> _run_and_expect([\"--no-interactive\", \"--regex\", \"(aaa) (?Pbbb)\", \"$1 $pat ${1} ${pat}\", str(f)], {str(f): \"aaa bbb aaa bbb\\n\"})\n\neval/tests/test_ambr.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--regex', '(aaa) (?Pbbb)', '$1 $pat ${1} ${pat}', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt': 'aaa bbb aaa bbb\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw4/test_regex_replace_with_captur2/r.txt content mismatch: got='aaa bbb\\n' expected='aaa bbb aaa bbb\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_key_and_rep_from_file": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt content mismatch: got='hello world hello\\n' expected='hi world hi\\n'\nstdout=''\nstderr=''\nrc=1", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2')\n\n @pytest.mark.timeout(5)\n def test_key_and_rep_from_file(tmp_path):\n d = tmp_path / \"kr\"\n d.mkdir()\n target = d / \"t.txt\"\n target.write_text(\"hello world hello\\n\")\n keyf = d / \"key.txt\"\n keyf.write_text(\"hello\")\n repf = d / \"rep.txt\"\n repf.write_text(\"hi\")\n> _run_and_expect([\"--no-interactive\", \"--key-from-file\", \"--rep-from-file\", str(keyf), str(repf), str(target)], {str(target): \"hi world hi\\n\"})\n\neval/tests/test_ambr.py:131: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--key-from-file', '--rep-from-file', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_fr...test_key_and_rep_from_file2/kr/rep.txt', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt': 'hi world hi\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw5/test_key_and_rep_from_file2/kr/t.txt content mismatch: got='hello world hello\\n' expected='hi world hi\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_non_interactive_replace": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt content mismatch: got='foo bar foo\\n' expected='baz bar baz\\n'\nstdout=''\nstderr=''\nrc=1", "text": "sample_repo = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo')\n\n @pytest.mark.timeout(5)\n def test_non_interactive_replace(sample_repo):\n f = sample_repo / \"file.txt\"\n> _run_and_expect([\"--no-interactive\", \"foo\", \"baz\", str(f)], {str(f): \"baz bar baz\\n\"})\n\neval/tests/test_ambr.py:65: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'baz', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt': 'baz bar baz\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw2/test_non_interactive_replace2/repo/file.txt content mismatch: got='foo bar foo\\n' expected='baz bar baz\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_interactive_replace_all_via_stdin": {"message": "OSError: [Errno 5] Input/output error", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_interactive_replace_all_v2')\n\n @pytest.mark.timeout(5)\n def test_interactive_replace_all_via_stdin(tmp_path):\n d = tmp_path / \"i\"\n d.mkdir()\n f = d / \"a.txt\"\n f.write_text(\"alpha beta alpha\\n\")\n # run interactively using a pty and send 'a' to choose All\n import select\n \n args = [EXEC, \"--verbose\", \"alpha\", \"ALPHA\", str(f)]\n master, slave = os.openpty()\n pid = os.fork()\n if pid == 0:\n # child\n os.setsid()\n os.dup2(slave, 0)\n os.dup2(slave, 1)\n os.dup2(slave, 2)\n os.execvp(args[0], args)\n else:\n os.close(slave)\n out = b\"\"\n deadline = time.time() + 3\n sent = False\n while time.time() < deadline:\n r, _, _ = select.select([master], [], [], 0.1)\n if master in r:\n> chunk = os.read(master, 1024)\nE OSError: [Errno 5] Input/output error\n\neval/tests/test_ambr.py:94: OSError"}, "256e7bf0179a/eval.tests.test_ambr.test_binary_skipped_by_default": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt content mismatch: got='foo\\n' expected='bar\\n'\nstdout=''\nstderr=''\nrc=1", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2')\n\n @pytest.mark.timeout(5)\n def test_binary_skipped_by_default(tmp_path):\n d = tmp_path / \"b\"\n d.mkdir()\n t = d / \"t.txt\"\n t.write_text(\"foo\\n\")\n b = d / \"bin\"\n b.write_bytes(b\"\\x00\\x01foo\\x02\")\n> _run_and_expect([\"--no-interactive\", \"foo\", \"bar\", str(t)], {str(t): \"bar\\n\"})\n\neval/tests/test_ambr.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt': 'bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw6/test_binary_skipped_by_default2/b/t.txt content mismatch: got='foo\\n' expected='bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "256e7bf0179a/eval.tests.test_ambr.test_preserve_time_flag": {"message": "AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt content mismatch: got='keepme foo\\n' expected='keepme bar\\n'\nstdout=''\nstderr=''\nrc=1", "text": "tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2')\n\n @pytest.mark.timeout(5)\n def test_preserve_time_flag(tmp_path):\n d = tmp_path / \"p\"\n d.mkdir()\n f = d / \"t.txt\"\n f.write_text(\"keepme foo\\n\")\n m0 = f.stat().st_mtime\n time.sleep(0.1)\n> _run_and_expect([\"--no-interactive\", \"--preserve-time\", \"foo\", \"bar\", str(f)], {str(f): \"keepme bar\\n\"})\n\neval/tests/test_ambr.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nargs = ['--no-interactive', '--preserve-time', 'foo', 'bar', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt']\nexpected_files = {'/tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt': 'keepme bar\\n'}\n\n def _run_and_expect(args, expected_files):\n \"\"\"Run command and assert expected_files dict of path->expected content.\n Returns CompletedProcess for further inspection.\n \"\"\"\n p = _run_cmd(args)\n # verify contents\n from pathlib import Path\n for path, expected in expected_files.items():\n got = Path(path).read_text()\n if got != expected:\n> raise AssertionError(\n f\"File {path} content mismatch: got={got!r} expected={expected!r}\\n\"\n f\"stdout={p.stdout!r}\\nstderr={p.stderr!r}\\nrc={p.returncode}\"\n )\nE AssertionError: File /tmp/pytest-of-root/pytest-0/popen-gw7/test_preserve_time_flag2/p/t.txt content mismatch: got='keepme foo\\n' expected='keepme bar\\n'\nE stdout=''\nE stderr=''\nE rc=1\n\neval/tests/test_ambr.py:27: AssertionError"}, "a8301849ac1b/eval.tests.test_amber.TestAmbsHelp.test_help_output": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'", "text": "self = \n\n def test_help_output(self):\n \"\"\"Test --help shows expected output.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--help\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:42: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./target/release/ambs', '--help']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_column_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2')\n\n def test_column_flag_runs(self, tmp_path):\n \"\"\"Test --column flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--column\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:64: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--column', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_column_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_row_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2')\n\n def test_row_flag_runs(self, tmp_path):\n \"\"\"Test --row flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--row\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:77: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--row', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_row_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchBasic.test_search_no_crash_on_no_matches": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2')\n\n def test_search_no_crash_on_no_matches(self, tmp_path):\n \"\"\"Test search doesn't crash when there are no matches.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"foo bar\\nbaz qux\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_search_no_crash_on_no_mat2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchBasic.test_simple_search_runs_without_error": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2')\n\n def test_simple_search_runs_without_error(self, tmp_path):\n \"\"\"Test that simple keyword search runs without crashing.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\ngoodbye world\\n\")\n \n # Use raw execution (no TTY) - this will exit with 1 but that's OK\n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:17: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_simple_search_runs_withou2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_no_recursive_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2')\n\n def test_no_recursive_flag_runs(self, tmp_path):\n \"\"\"Test --no-recursive flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-recursive\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:90: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-recursive', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_no_recursive_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchBasic.test_search_multiple_files": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2')\n\n def test_search_multiple_files(self, tmp_path):\n \"\"\"Test search across multiple files in a directory.\"\"\"\n file1 = tmp_path / \"file1.txt\"\n file2 = tmp_path / \"file2.txt\"\n file1.write_text(\"hello world\\n\")\n file2.write_text(\"hello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:32: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_search_multiple_files2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_no_color_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2')\n\n def test_no_color_flag_runs(self, tmp_path):\n \"\"\"Test --no-color flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-color\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:103: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-color', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_no_color_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_line_by_match_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2')\n\n def test_line_by_match_flag_runs(self, tmp_path):\n \"\"\"Test --line-by-match flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world hello\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--line-by-match\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--line-by-match', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_line_by_match_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_binary_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2')\n\n def test_binary_flag_runs(self, tmp_path):\n \"\"\"Test --binary flag runs without error.\"\"\"\n test_file = tmp_path / \"test.bin\"\n test_file.write_bytes(b\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--binary\", \"hello\", str(tmp_path)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--binary', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_binary_flag_runs2']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_amber.TestAmbsHelp.test_version_output": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'", "text": "self = \n\n def test_version_output(self):\n \"\"\"Test --version shows version info.\"\"\"\n> result = subprocess.run(\n [\"./target/release/ambs\", \"--version\"],\n capture_output=True,\n text=True\n )\n\neval/tests/test_amber.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./target/release/ambs', '--version']\nexecutable = b'./target/release/ambs', preexec_fn = None, close_fds = True\npass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0\nshell = False, p2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15\nerrread = 16, errwrite = 17, restore_signals = True, gid = None, gids = None\nuid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchRegex.test_regex_no_match_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2')\n\n def test_regex_no_match_runs(self, tmp_path):\n \"\"\"Test regex with no matches runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"xyz[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:159: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--regex', 'xyz[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw2/test_regex_no_match_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchFlags.test_no_file_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2')\n\n def test_no_file_flag_runs(self, tmp_path):\n \"\"\"Test --no-file flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--no-file\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:116: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--no-file', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw5/test_no_file_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_special_characters_literal_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2')\n\n def test_special_characters_literal_runs(self, tmp_path):\n \"\"\"Test search with special regex characters runs without error.\"\"\"\n test_file = tmp_path / \"special.txt\"\n test_file.write_text(\"hello.world\\nhello*world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello.world\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:203: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello.world', '/tmp/pytest-of-root/pytest-0/popen-gw4/test_special_characters_litera2/special.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchRegex.test_regex_search_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2')\n\n def test_regex_search_runs(self, tmp_path):\n \"\"\"Test regex pattern search runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello123 world\\nhello456 world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--regex\", \"hello[0-9]+\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:146: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--regex', 'hello[0-9]+', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_regex_search_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_unicode_content_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2')\n\n def test_unicode_content_runs(self, tmp_path):\n \"\"\"Test search with unicode content runs without error.\"\"\"\n test_file = tmp_path / \"unicode.txt\"\n test_file.write_text(\"\u3053\u3093\u306b\u3061\u306f\u4e16\u754c\\nhello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"\u3053\u3093\u306b\u3061\u306f\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '\u3053\u3093\u306b\u3061\u306f', '/tmp/pytest-of-root/pytest-0/popen-gw7/test_unicode_content_runs2/unicode.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_empty_file_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2')\n\n def test_empty_file_runs(self, tmp_path):\n \"\"\"Test search on empty file runs without error.\"\"\"\n test_file = tmp_path / \"empty.txt\"\n test_file.write_text(\"\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:176: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_empty_file_runs2/empty.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_statistics_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2')\n\n def test_statistics_flag_runs(self, tmp_path):\n \"\"\"Test --statistics flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\nhello amber\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--statistics\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:229: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--statistics', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw8/test_statistics_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_max_threads_option_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2')\n\n def test_max_threads_option_runs(self, tmp_path):\n \"\"\"Test --max-threads option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--max-threads\", \"4\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--max-threads', '4', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw3/test_max_threads_option_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_skipped_flag_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2')\n\n def test_skipped_flag_runs(self, tmp_path):\n \"\"\"Test --skipped flag runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--skipped\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:242: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--skipped', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw0/test_skipped_flag_runs2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "a8301849ac1b/eval.tests.test_search.TestSearchEdgeCases.test_size_per_thread_option_runs": {"message": "FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'", "text": "self = \ntmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2')\n\n def test_size_per_thread_option_runs(self, tmp_path):\n \"\"\"Test --size-per-thread option runs without error.\"\"\"\n test_file = tmp_path / \"test.txt\"\n test_file.write_text(\"hello world\\n\")\n \n> result = subprocess.run(\n [AMBS_EXEC, \"--size-per-thread\", \"524288\", \"hello\", str(test_file)],\n capture_output=True,\n text=True\n )\n\neval/tests/test_search.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['/workspace/target/release/ambs', '--size-per-thread', '524288', 'hello', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_size_per_thread_option_ru2/test.txt']\nexecutable = b'/workspace/target/release/ambs', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None\ncreationflags = 0, shell = False, p2cread = -1, p2cwrite = -1, c2pread = 14\nc2pwrite = 15, errread = 16, errwrite = 17, restore_signals = True, gid = None\ngids = None, uid = None, umask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: '/workspace/target/release/ambs'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}}}