ci: exercise only the current Analysis and Observation contracts
ci/woodpecker/push/main Pipeline failed

This commit is contained in:
cflmy committed 2026-11-24 17:37:49 +08:00
1 parent 93fada3d92
commit 09ab131b96
2 files changed
+57 -13

No files matched your search

+25
View File
@@ -202,3 +202,28 @@ fn has_hex_sha(text: &str) -> bool {
}
false
}
/// CI is a consumer of the public protocols: its configuration must exercise
/// only the current contracts. A retired name in a pipeline is a latent
/// failure and implies a compatibility path was kept somewhere.
#[test]
fn ci_configuration_uses_only_current_protocols() {
let root = repo_root();
for relative in [".woodpecker/main.yml", ".github/workflows/ci.yml"] {
let text = read(&root.join(relative));
for retired in [
"--event-stream",
"--trace-file",
"execution-events",
"execution_events",
"analysis_v3_consumer",
"trace_consumer",
"analysis-v3",
] {
assert!(
!text.contains(retired),
"{relative} still references retired `{retired}`"
);
}
}
}