Delete the heartbeat scheduler authority
This commit is contained in:
parent
ca05684412
commit
4d0db2c7b4
36 changed files with 280 additions and 4303 deletions
|
|
@ -290,22 +290,3 @@ fn planning_decision(
|
|||
};
|
||||
Some(value)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod authority_tests {
|
||||
#[test]
|
||||
fn source_has_no_aggregate_or_latest_lane_routing() {
|
||||
let source = include_str!("coordinator_decision.rs");
|
||||
let production = source.split("#[cfg(test)]").next().unwrap_or(source);
|
||||
for forbidden in [
|
||||
"EpiphanyThreadState",
|
||||
"accepted_after",
|
||||
"latest_result",
|
||||
"finding_signals",
|
||||
"state_revision",
|
||||
"coordinator_run_receipt",
|
||||
] {
|
||||
assert!(!production.contains(forbidden));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,19 +220,4 @@ mod tests {
|
|||
assert_eq!(jobs[2].status, EpiphanyJobStatus::Blocked);
|
||||
assert!(jobs.iter().all(|job| job.runtime_job_id.is_none()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn source_contains_no_aggregate_job_or_runtime_link_owner() {
|
||||
let source = include_str!("jobs.rs");
|
||||
let production = source.split("#[cfg(test)]").next().unwrap_or(source);
|
||||
for forbidden in [
|
||||
"EpiphanyThreadState",
|
||||
"EpiphanyJobBinding",
|
||||
"EpiphanyRuntimeLink",
|
||||
"latest_runtime_link",
|
||||
"state_revision",
|
||||
] {
|
||||
assert!(!production.contains(forbidden));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,20 +120,4 @@ mod tests {
|
|||
duplicate.evidence.push(evidence("evidence-a"));
|
||||
assert!(duplicate.validate().is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn role_decision_sources_have_no_generic_patch_authority() {
|
||||
let retired_type = ["Epiphany", "Role", "State", "Patch", "Document"].concat();
|
||||
let retired_field = ["state", "Patch"].concat();
|
||||
for source in [
|
||||
include_str!("../agent_launch.rs"),
|
||||
include_str!("../current_work.rs"),
|
||||
include_str!("../runtime_spine.rs"),
|
||||
include_str!("role_result.rs"),
|
||||
] {
|
||||
let production = source.split("#[cfg(test)]").next().unwrap_or(source);
|
||||
assert!(!production.contains(&retired_type));
|
||||
assert!(!production.contains(&retired_field));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -314,21 +314,3 @@ pub fn render_role_board_note(
|
|||
"Mind {state_status}; {active} role lane(s) carry current work; continuity recommendation {recommendation:?}."
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn source_has_no_generic_lane_or_aggregate_authority() {
|
||||
let source = include_str!("role_board.rs");
|
||||
let production = source.split("#[cfg(test)]").next().unwrap_or(source);
|
||||
for forbidden in [
|
||||
"EpiphanyThreadState",
|
||||
"binding_id",
|
||||
"acceptance_receipt",
|
||||
"state_revision",
|
||||
"epiphany.coordinator.role.launch",
|
||||
] {
|
||||
assert!(!production.contains(forbidden));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue