interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / a0-host-bounds / red-green / red.txt

208 lines · 13485 bytes Raw Blame History
1warning: unused imports: `COUNTER_WRAP_UJ` and `MAX_SAMPLE_GAP`
2 --> crates/synapse-bench/src/bounds.rs:23:27
3 |
423 | use crate::energy::{Spbm, COUNTER_WRAP_UJ, MAX_SAMPLE_GAP, SAMPLE_PERIOD, SENSOR_PERIOD_S};
5 | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
8
9warning: unused import: `crate::floor::FloorReport`
10 --> crates/synapse-bench/src/bounds.rs:24:5
11 |
1224 | use crate::floor::FloorReport;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^
14
15warning: unused import: `Verifier`
16 --> crates/synapse-bench/src/bounds.rs:27:52
17 |
1827 | use ed25519_dalek::{Signature, Signer, SigningKey, Verifier, VerifyingKey};
19 | ^^^^^^^^
20
21warning: unused import: `std::hint::black_box`
22 --> crates/synapse-bench/src/bounds.rs:32:5
23 |
2432 | use std::hint::black_box;
25 | ^^^^^^^^^^^^^^^^^^^^
26
27warning: unused import: `FileExt`
28 --> crates/synapse-bench/src/bounds.rs:34:25
29 |
3034 | use std::os::unix::fs::{FileExt, OpenOptionsExt};
31 | ^^^^^^^
32
33warning: fields `file`, `buf`, `offset`, and `chunks` are never read
34 --> crates/synapse-bench/src/bounds.rs:480:5
35 |
36479 | pub struct DeviceState {
37 | ----------- fields in this struct
38480 | file: File,
39 | ^^^^
40481 | buf: AlignedBytes,
41 | ^^^
42482 | offset: u64,
43 | ^^^^^^
44483 | chunks: u64,
45 | ^^^^^^
46 |
47 = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
48
49warning: `synapse-bench` (lib test) generated 6 warnings (run `cargo fix --lib -p synapse-bench --tests` to apply 5 suggestions)
50 Finished `test` profile [unoptimized + debuginfo] target(s) in 5.53s
51 Running unittests src/lib.rs (target/debug/deps/synapse_bench-a5aabe17679cd948)
52
53running 20 tests
54test bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks ... FAILED
55test bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight ... FAILED
56test bounds::tests::memory_read_touches_every_word_of_every_pass ... FAILED
57test bounds::tests::energy_figures_come_from_counter_differences ... FAILED
58test bounds::tests::advancing_counter_passes_preflight ... ok
59test bounds::tests::arm_sha256_matches_the_sha2_crate ... FAILED
60test bounds::tests::memory_copy_copies_and_counts_both_directions ... FAILED
61test bounds::tests::energy_figures_refuse_broken_windows ... FAILED
62test bounds::tests::sha2_crate_probe_counts_hashed_bytes ... FAILED
63test bounds::tests::w1_source_with_a_different_digest_is_refused ... FAILED
64test rng::tests::below_stays_in_bounds_and_shuffle_is_permutation ... ok
65test bounds::tests::device_probes_write_then_read_back_the_pattern ... FAILED
66test bounds::tests::ed25519_probe_verifies_and_refuses_a_bad_signature ... FAILED
67test bounds::tests::report_figures_are_recomputed_from_integers ... FAILED
68test bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions ... FAILED
69test bounds::tests::verify_refuses_a_protocol_changed_after_the_run ... FAILED
70test bounds::tests::verify_refuses_a_changed_raw_sample ... FAILED
71test bounds::tests::verify_accepts_sealed_evidence_as_written ... FAILED
72test bounds::tests::verify_refuses_a_changed_report_figure ... FAILED
73test bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing ... FAILED
74
75failures:
76
77---- bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks stdout ----
78
79thread 'bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks' (3458097) panicked at crates/synapse-bench/src/bounds/tests.rs:97:5:
802 repetitions cannot give a range
81
82---- bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight stdout ----
83
84thread 'bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight' (3458093) panicked at crates/synapse-bench/src/bounds/tests.rs:152:5:
85a counter that never advances is not a meter: None
86
87---- bounds::tests::memory_read_touches_every_word_of_every_pass stdout ----
88
89thread 'bounds::tests::memory_read_touches_every_word_of_every_pass' (3458096) panicked at crates/synapse-bench/src/bounds/tests.rs:486:5:
90assertion `left == right` failed
91 left: 0
92 right: 24576
93
94---- bounds::tests::energy_figures_come_from_counter_differences stdout ----
95
96thread 'bounds::tests::energy_figures_come_from_counter_differences' (3458091) panicked at crates/synapse-bench/src/bounds/tests.rs:230:5:
97assertion `left == right` failed
98 left: None
99 right: Some(20.0)
100
101---- bounds::tests::arm_sha256_matches_the_sha2_crate stdout ----
102
103thread 'bounds::tests::arm_sha256_matches_the_sha2_crate' (3458088) panicked at crates/synapse-bench/src/bounds/tests.rs:535:9:
104assertion `left == right` failed: length 0
105 left: Some([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
106 right: Some([227, 176, 196, 66, 152, 252, 28, 20, 154, 251, 244, 200, 153, 111, 185, 36, 39, 174, 65, 228, 100, 155, 147, 76, 164, 149, 153, 27, 120, 82, 184, 85])
107
108---- bounds::tests::memory_copy_copies_and_counts_both_directions stdout ----
109
110thread 'bounds::tests::memory_copy_copies_and_counts_both_directions' (3458095) panicked at crates/synapse-bench/src/bounds/tests.rs:497:5:
111assertion `left == right` failed
112 left: 0
113 right: 32768
114note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
115
116---- bounds::tests::energy_figures_refuse_broken_windows stdout ----
117
118thread 'bounds::tests::energy_figures_refuse_broken_windows' (3458092) panicked at crates/synapse-bench/src/bounds/tests.rs:260:9:
119decreasing counter accepted
120
121---- bounds::tests::sha2_crate_probe_counts_hashed_bytes stdout ----
122
123thread 'bounds::tests::sha2_crate_probe_counts_hashed_bytes' (3458099) panicked at crates/synapse-bench/src/bounds/tests.rs:550:5:
124assertion `left == right` failed
125 left: 0
126 right: 1200
127
128---- bounds::tests::w1_source_with_a_different_digest_is_refused stdout ----
129
130thread 'bounds::tests::w1_source_with_a_different_digest_is_refused' (3458108) panicked at crates/synapse-bench/src/bounds/tests.rs:468:5:
131assertion failed: matches!(load_w1_flush(&repo_root(), &src),
132 Err(BoundsRefusal::W1SourceMismatch(_)))
133
134---- bounds::tests::device_probes_write_then_read_back_the_pattern stdout ----
135
136thread 'bounds::tests::device_probes_write_then_read_back_the_pattern' (3458089) panicked at crates/synapse-bench/src/bounds/tests.rs:514:5:
137assertion `left == right` failed
138 left: 0
139 right: 32768
140
141---- bounds::tests::ed25519_probe_verifies_and_refuses_a_bad_signature stdout ----
142
143thread 'bounds::tests::ed25519_probe_verifies_and_refuses_a_bad_signature' (3458090) panicked at crates/synapse-bench/src/bounds/tests.rs:561:5:
144assertion `left == right` failed
145 left: 0
146 right: 10
147
148---- bounds::tests::report_figures_are_recomputed_from_integers stdout ----
149
150thread 'bounds::tests::report_figures_are_recomputed_from_integers' (3458098) panicked at crates/synapse-bench/src/bounds/tests.rs:324:10:
151called `Option::unwrap()` on a `None` value
152
153---- bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions stdout ----
154
155thread 'bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions' (3458106) panicked at crates/synapse-bench/src/bounds/tests.rs:431:5:
156a dropped repetition (cherry-picking) must not verify: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef", probes: [] }, bound_inputs: [], probes: [] })
157
158---- bounds::tests::verify_refuses_a_protocol_changed_after_the_run stdout ----
159
160thread 'bounds::tests::verify_refuses_a_protocol_changed_after_the_run' (3458104) panicked at crates/synapse-bench/src/bounds/tests.rs:415:5:
161Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0", raw_sha256: "", source_rev: "synthetic", repetitions: 4, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef", probes: [] }, bound_inputs: [], probes: [] })
162
163---- bounds::tests::verify_refuses_a_changed_raw_sample stdout ----
164
165thread 'bounds::tests::verify_refuses_a_changed_raw_sample' (3458101) panicked at crates/synapse-bench/src/bounds/tests.rs:376:5:
166one nanosecond changed in raw.json must break the report: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef", probes: [] }, bound_inputs: [], probes: [] })
167
168---- bounds::tests::verify_accepts_sealed_evidence_as_written stdout ----
169
170thread 'bounds::tests::verify_accepts_sealed_evidence_as_written' (3458100) panicked at crates/synapse-bench/src/bounds/tests.rs:369:5:
171assertion `left == right` failed
172 left: 0
173 right: 8
174
175---- bounds::tests::verify_refuses_a_changed_report_figure stdout ----
176
177thread 'bounds::tests::verify_refuses_a_changed_report_figure' (3458102) panicked at crates/synapse-bench/src/bounds/tests.rs:395:5:
178an edited figure must not verify: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef", probes: [] }, bound_inputs: [], probes: [] })
179
180---- bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing stdout ----
181
182thread 'bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing' (3458094) panicked at crates/synapse-bench/src/bounds/tests.rs:136:28:
183hidden meter must refuse, got a report: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0", raw_sha256: "", source_rev: "test", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "CLOCK_MONOTONIC (std::time::Instant)", clock_resolution_ns: 1, energy_sensor: "aien_spbm hwmon, SoC package only (GB10 SPBM firmware counters; pkg, cpu_e, cpu_p; no published accuracy; not compared with an external meter; NVMe drive energy outside it, UNMEASURED)", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef", probes: [] }, bound_inputs: [], probes: [] })
184
185
186failures:
187 bounds::tests::arm_sha256_matches_the_sha2_crate
188 bounds::tests::device_probes_write_then_read_back_the_pattern
189 bounds::tests::ed25519_probe_verifies_and_refuses_a_bad_signature
190 bounds::tests::energy_figures_come_from_counter_differences
191 bounds::tests::energy_figures_refuse_broken_windows
192 bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight
193 bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing
194 bounds::tests::memory_copy_copies_and_counts_both_directions
195 bounds::tests::memory_read_touches_every_word_of_every_pass
196 bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks
197 bounds::tests::report_figures_are_recomputed_from_integers
198 bounds::tests::sha2_crate_probe_counts_hashed_bytes
199 bounds::tests::verify_accepts_sealed_evidence_as_written
200 bounds::tests::verify_refuses_a_changed_raw_sample
201 bounds::tests::verify_refuses_a_changed_report_figure
202 bounds::tests::verify_refuses_a_protocol_changed_after_the_run
203 bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions
204 bounds::tests::w1_source_with_a_different_digest_is_refused
205
206test result: FAILED. 2 passed; 18 failed; 0 ignored; 0 measured; 19 filtered out; finished in 0.23s
207
208error: test failed, to rerun pass `-p synapse-bench --lib`