interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

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
7running 8 tests
8test h1_detached_head_commit_is_collected ... FAILED
9test h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved ... FAILED
10test h1_hostile_fifo_loose_object_is_refused_without_blocking ... FAILED
11test h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking ... FAILED
12test h1_hostile_fifo_reference_is_refused_without_blocking ... FAILED
13test h1_hostile_oversized_reference_file_is_refused ... FAILED
14test h1_hostile_reference_linked_outside_the_repository_is_refused ... FAILED
15test h1_hostile_reference_linked_to_dev_zero_is_refused ... FAILED
16
17failures:
18
19---- h1_detached_head_commit_is_collected stdout ----
20
21thread 'h1_detached_head_commit_is_collected' (1645995) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:200:5:
22a commit reachable only from a detached HEAD was dropped
23
24---- h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved stdout ----
25
26thread 'h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved' (1646017) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18:
27delta bomb: read 5 objects instead of refusing
28
29---- h1_hostile_fifo_loose_object_is_refused_without_blocking stdout ----
30
31thread 'h1_hostile_fifo_loose_object_is_refused_without_blocking' (1658200) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13:
32FIFO 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
36thread 'h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking' (1660665) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13:
37packed-refs: full_history blocked on a pipe for more than 10 s
38
39---- h1_hostile_fifo_reference_is_refused_without_blocking stdout ----
40
41thread 'h1_hostile_fifo_reference_is_refused_without_blocking' (1662315) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:101:13:
42FIFO ref: full_history blocked on a pipe for more than 10 s
43
44---- h1_hostile_oversized_reference_file_is_refused stdout ----
45
46thread 'h1_hostile_oversized_reference_file_is_refused' (1664201) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18:
471 MiB ref: read 6 objects instead of refusing
48
49---- h1_hostile_reference_linked_outside_the_repository_is_refused stdout ----
50
51thread 'h1_hostile_reference_linked_outside_the_repository_is_refused' (1664210) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18:
52ref -> file outside: read 6 objects instead of refusing
53
54---- h1_hostile_reference_linked_to_dev_zero_is_refused stdout ----
55
56thread 'h1_hostile_reference_linked_to_dev_zero_is_refused' (1664219) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:79:19:
57assertion `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
62failures:
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
72test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 75.66s
73
74error: test failed, to rerun pass `-p synapse-git --test h1_hostile_repo`
75Command exited with non-zero status 101
76Maximum 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
81running 4 tests
82test h1_lock_files_under_refs_are_skipped ... ok
83test h1_pack_file_and_ref_file_caps_are_enforced ... ok
84test h1_total_object_budget_is_enforced_for_packed_and_loose_objects ... FAILED
85test h1_per_object_cap_is_enforced_for_packed_and_loose_objects ... ok
86
87failures:
88
89---- h1_total_object_budget_is_enforced_for_packed_and_loose_objects stdout ----
90
91thread 'h1_total_object_budget_is_enforced_for_packed_and_loose_objects' (1668568) panicked at crates/synapse-git/tests/h1_read_limits.rs:87:9:
92assertion `left == right` failed: packed=true: one byte short
93 left: None
94 right: Some(QuotaPayloadTooLarge)
95
96
97failures:
98 h1_total_object_budget_is_enforced_for_packed_and_loose_objects
99
100test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s
101
102error: test failed, to rerun pass `-p synapse-git --test h1_read_limits`
103error: 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
109running 8 tests
110test h1_hostile_fifo_reference_is_refused_without_blocking ... ok
111test h1_hostile_reference_linked_to_dev_zero_is_refused ... ok
112test h1_hostile_fifo_loose_object_is_refused_without_blocking ... ok
113test h1_hostile_oversized_reference_file_is_refused ... ok
114test h1_hostile_reference_linked_outside_the_repository_is_refused ... FAILED
115test h1_detached_head_commit_is_collected ... ok
116test h1_hostile_fifo_packed_refs_and_head_are_refused_without_blocking ... ok
117test h1_hostile_delta_bomb_pack_is_refused_before_it_is_resolved ... ok
118
119failures:
120
121---- h1_hostile_reference_linked_outside_the_repository_is_refused stdout ----
122
123thread 'h1_hostile_reference_linked_outside_the_repository_is_refused' (1671877) panicked at crates/synapse-git/tests/h1_hostile_repo.rs:80:18:
124ref -> file outside: read 6 objects instead of refusing
125
126
127failures:
128 h1_hostile_reference_linked_outside_the_repository_is_refused
129
130test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.57s
131
132error: test failed, to rerun pass `-p synapse-git --test h1_hostile_repo`
133error: 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
139running 1 test
140test repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking ... FAILED
141
142failures:
143
144---- repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking stdout ----
145
146thread '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:
147pipe: open blocked for more than 10 s
148
149
150failures:
151 repo::tests::a_file_swapped_for_a_pipe_or_link_after_the_check_is_refused_without_blocking
152
153test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 14 filtered out; finished in 10.00s
154
155error: test failed, to rerun pass `-p synapse-git --lib`
156error: 1 target failed:
157 `-p synapse-git --lib`