Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/h1-git-bridge/red-green/hostile-red.txt # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / evidence / h1-git-bridge / red-green / hostile-red.txt` 157 lines ยท 7447 bytes Raw Blame History 1 # Red (2026-10-17, review of PR #90 findings B1 and B2) 2 # Run 1: tests/h1_hostile_repo.rs copied unchanged into a detached worktree of the reviewed head `b4fe463`. 3 # Command: (ulimit -v `4000000`; cargo test --locked -p synapse-git --test h1_hostile_repo -- --test-threads=1) 4 # The ulimit guards the /dev/zero case; pipe cases end at the test's own 10 s deadline. 5 # 6 7 running 8 tests 8 test h1_detached_head_commit_is_collected ... FAILED 9 test h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved ... FAILED 10 test h1_hostile_fifo_loose_object_is_refused_without_blocking ... FAILED 11 test h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking ... FAILED 12 test h1_hostile_fifo_reference_is_refused_without_blocking ... FAILED 13 test h1_hostile_oversized_reference_file_is_refused ... FAILED 14 test h1_hostile_reference_linked_outside_the_repository_is_refused ... FAILED 15 test h1_hostile_reference_linked_to_dev_zero_is_refused ... FAILED 16 17 failures: 18 19 ---- h1_detached_head_commit_is_collected stdout ---- 20 21 thread 'h1_detached_head_commit_is_collected' (`1645995`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:200:5: 22 a commit reachable only from a detached HEAD was dropped 23 24 ---- h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved stdout ---- 25 26 thread 'h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved' (`1646017`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18: 27 delta bomb: read 5 objects instead of refusing 28 29 ---- h1_hostile_fifo_loose_object_is_refused_without_blocking stdout ---- 30 31 thread 'h1_hostile_fifo_loose_object_is_refused_without_blocking' (`1658200`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13: 32 FIFO loose object: full_history blocked on a pipe for more than 10 s 33 34 ---- h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking stdout ---- 35 36 thread 'h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking' (`1660665`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13: 37 packed-refs: full_history blocked on a pipe for more than 10 s 38 39 ---- h1_hostile_fifo_reference_is_refused_without_blocking stdout ---- 40 41 thread 'h1_hostile_fifo_reference_is_refused_without_blocking' (`1662315`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13: 42 FIFO ref: full_history blocked on a pipe for more than 10 s 43 44 ---- h1_hostile_oversized_reference_file_is_refused stdout ---- 45 46 thread 'h1_hostile_oversized_reference_file_is_refused' (`1664201`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18: 47 1 MiB ref: read 6 objects instead of refusing 48 49 ---- h1_hostile_reference_linked_outside_the_repository_is_refused stdout ---- 50 51 thread 'h1_hostile_reference_linked_outside_the_repository_is_refused' (`1664210`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18: 52 ref -> file outside: read 6 objects instead of refusing 53 54 ---- h1_hostile_reference_linked_to_dev_zero_is_refused stdout ---- 55 56 thread 'h1_hostile_reference_linked_to_dev_zero_is_refused' (`1664219`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:79:19: 57 assertion `left == right` failed: ref -> /dev/zero: refused with the wrong code: IoFailure: /tmp/synapse-h1-hostile-dev-zero-`1645989`-`1792203297294672641`/work/.git/refs/heads/zero: out of memory 58 left: IoFailure 59 right: PathInvalid 60 61 62 failures: 63 h1_detached_head_commit_is_collected 64 h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved 65 h1_hostile_fifo_loose_object_is_refused_without_blocking 66 h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking 67 h1_hostile_fifo_reference_is_refused_without_blocking 68 h1_hostile_oversized_reference_file_is_refused 69 h1_hostile_reference_linked_outside_the_repository_is_refused 70 h1_hostile_reference_linked_to_dev_zero_is_refused 71 72 test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 75.66s 73 74 error: test failed, to rerun pass `-p synapse-git --test h1_hostile_repo` 75 Command exited with non-zero status 101 76 Maximum resident set size (kbytes): `2100860` 77 78 # Run 2, stub A on the fixed code: the total object budget check removed (open_with_limits and loose reads). 79 # Command: cargo test --locked --no-fail-fast -p synapse-git --test h1_read_limits 80 81 running 4 tests 82 test h1_lock_files_under_refs_are_skipped ... ok 83 test h1_pack_file_and_ref_file_caps_are_enforced ... ok 84 test h1_total_object_budget_is_enforced_for_packed_and_loose_objects ... FAILED 85 test h1_per_object_cap_is_enforced_for_packed_and_loose_objects ... ok 86 87 failures: 88 89 ---- h1_total_object_budget_is_enforced_for_packed_and_loose_objects stdout ---- 90 91 thread 'h1_total_object_budget_is_enforced_for_packed_and_loose_objects' (`1668568`) panicked at crates/synapse-git/tests/h1_read_limits.rs:87:9: 92 assertion `left == right` failed: packed=true: one byte short 93 left: None 94 right: Some(QuotaPayloadTooLarge) 95 96 97 failures: 98 h1_total_object_budget_is_enforced_for_packed_and_loose_objects 99 100 test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s 101 102 error: test failed, to rerun pass `-p synapse-git --test h1_read_limits` 103 error: 1 target failed: 104 `-p synapse-git --test h1_read_limits` 105 106 # Run 3, stub B on the fixed code: links followed (fs::metadata in read_regular, real_dir and the refs/ walk). 107 # Command: cargo test --locked --no-fail-fast -p synapse-git --test h1_hostile_repo 108 109 running 8 tests 110 test h1_hostile_fifo_reference_is_refused_without_blocking ... ok 111 test h1_hostile_reference_linked_to_dev_zero_is_refused ... ok 112 test h1_hostile_fifo_loose_object_is_refused_without_blocking ... ok 113 test h1_hostile_oversized_reference_file_is_refused ... ok 114 test h1_hostile_reference_linked_outside_the_repository_is_refused ... FAILED 115 test h1_detached_head_commit_is_collected ... ok 116 test h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking ... ok 117 test h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved ... ok 118 119 failures: 120 121 ---- h1_hostile_reference_linked_outside_the_repository_is_refused stdout ---- 122 123 thread 'h1_hostile_reference_linked_outside_the_repository_is_refused' (`1671877`) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18: 124 ref -> file outside: read 6 objects instead of refusing 125 126 127 failures: 128 h1_hostile_reference_linked_outside_the_repository_is_refused 129 130 test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.57s 131 132 error: test failed, to rerun pass `-p synapse-git --test h1_hostile_repo` 133 error: 1 target failed: 134 `-p synapse-git --test h1_hostile_repo` 135 136 # Run 4, stub C on the fixed code: repository files opened without O_NOFOLLOW | O_NONBLOCK (custom_flags(0)). 137 # Command: cargo test --locked --no-fail-fast -p synapse-git --lib -- a_file_swapped 138 139 running 1 test 140 test repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking ... FAILED 141 142 failures: 143 144 ---- repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking stdout ---- 145 146 thread 'repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking' (`1921050`) panicked at crates/synapse-git/src/repo.rs:620:21: 147 pipe: open blocked for more than 10 s 148 149 150 failures: 151 repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking 152 153 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 14 filtered out; finished in 10.00s 154 155 error: test failed, to rerun pass `-p synapse-git --lib` 156 error: 1 target failed: 157 `-p synapse-git --lib`