huskies: merge 1009
This commit is contained in:
@@ -38,6 +38,7 @@ impl AgentPool {
|
||||
let merge_stage = Stage::Merge {
|
||||
feature_branch: BranchName(String::new()),
|
||||
commits_ahead: NonZeroU32::new(1).expect("1 is non-zero"),
|
||||
claim: None,
|
||||
};
|
||||
let merge_items = scan_stage_items(&merge_stage);
|
||||
for story_id in &merge_items {
|
||||
|
||||
@@ -160,6 +160,7 @@ mod tests {
|
||||
before: crate::pipeline_state::Stage::Merge {
|
||||
feature_branch: BranchName("feature/test".to_string()),
|
||||
commits_ahead: NonZeroU32::new(1).unwrap(),
|
||||
claim: None,
|
||||
},
|
||||
after: crate::pipeline_state::Stage::MergeFailure {
|
||||
kind: kind.clone(),
|
||||
|
||||
@@ -27,7 +27,7 @@ impl AgentPool {
|
||||
/// here as well.
|
||||
pub(super) async fn assign_pipeline_stages(&self, project_root: &Path, config: &ProjectConfig) {
|
||||
let stages: [(Stage, PipelineStage); 2] = [
|
||||
(Stage::Coding, PipelineStage::Coder),
|
||||
(Stage::Coding { claim: None }, PipelineStage::Coder),
|
||||
(Stage::Qa, PipelineStage::Qa),
|
||||
];
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ impl AgentPool {
|
||||
stage.dir_name()
|
||||
);
|
||||
|
||||
if matches!(stage, Stage::Coding) {
|
||||
if matches!(stage, Stage::Coding { .. }) {
|
||||
// Coder stage — determine qa mode to decide next step.
|
||||
let qa_mode = {
|
||||
let item_type = crate::agents::lifecycle::item_type_from_id(story_id);
|
||||
|
||||
@@ -220,7 +220,7 @@ mod tests {
|
||||
crate::db::ItemMeta::named("baz"),
|
||||
);
|
||||
|
||||
let items = scan_stage_items(&Stage::Coding);
|
||||
let items = scan_stage_items(&Stage::Coding { claim: None });
|
||||
// The global CRDT may contain items from other tests, so check
|
||||
// that our three items are present and appear in sorted order.
|
||||
assert!(
|
||||
|
||||
@@ -97,8 +97,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
assert!(has_review_hold("890_spike_held"));
|
||||
}
|
||||
@@ -115,8 +113,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
assert!(!has_review_hold("890_spike_active_qa"));
|
||||
}
|
||||
@@ -193,8 +189,6 @@ mod tests {
|
||||
None,
|
||||
Some("[999]"),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
assert!(has_unmet_dependencies("10_story_blocked"));
|
||||
}
|
||||
@@ -210,8 +204,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
crate::crdt_state::write_item_str(
|
||||
"10_story_ok",
|
||||
@@ -221,8 +213,6 @@ mod tests {
|
||||
None,
|
||||
Some("[999]"),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
assert!(!has_unmet_dependencies("10_story_ok"));
|
||||
}
|
||||
@@ -238,8 +228,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
assert!(!has_unmet_dependencies("5_story_free"));
|
||||
}
|
||||
@@ -258,8 +246,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
crate::crdt_state::write_item_str(
|
||||
"503_story_dependent",
|
||||
@@ -269,8 +255,6 @@ mod tests {
|
||||
None,
|
||||
Some("[500]"),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
let archived_deps = check_archived_dependencies("503_story_dependent");
|
||||
assert_eq!(archived_deps, vec![500]);
|
||||
@@ -288,8 +272,6 @@ mod tests {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
crate::crdt_state::write_item_str(
|
||||
"503_story_waiting",
|
||||
@@ -299,8 +281,6 @@ mod tests {
|
||||
None,
|
||||
Some("[490]"),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
let archived_deps = check_archived_dependencies("503_story_waiting");
|
||||
assert!(archived_deps.is_empty());
|
||||
|
||||
@@ -251,8 +251,6 @@ max_turns = 10
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
// 12 turns in a single session exceeds the configured max of 10.
|
||||
@@ -381,8 +379,6 @@ max_turns = 10
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
// Prior session with 5 turns (under limit alone).
|
||||
@@ -460,8 +456,6 @@ max_turns = 10
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
// Session 1: exceeds limit → retry_count=1 in CRDT, NOT blocked.
|
||||
|
||||
Reference in New Issue
Block a user