huskies: merge 864
This commit is contained in:
@@ -597,7 +597,12 @@ mod tests {
|
||||
crate::db::ensure_content_store();
|
||||
|
||||
let story_id = "9960_story_gate_injection_881";
|
||||
crate::db::write_item_with_content(story_id, "2_current", "---\nname: Test\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Test\n---\n"),
|
||||
);
|
||||
crate::crdt_state::set_retry_count(story_id, 1);
|
||||
|
||||
let gate_output =
|
||||
@@ -630,7 +635,12 @@ mod tests {
|
||||
crate::db::ensure_content_store();
|
||||
|
||||
let story_id = "9961_story_no_gate_injection_881";
|
||||
crate::db::write_item_with_content(story_id, "2_current", "---\nname: Test\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Test\n---\n"),
|
||||
);
|
||||
// retry_count is 0 (default — never bumped).
|
||||
|
||||
crate::db::write_content(&format!("{story_id}:gate_output"), "some previous output");
|
||||
@@ -690,7 +700,12 @@ mod tests {
|
||||
crate::db::ensure_content_store();
|
||||
|
||||
let story_id = "9962_story_abort_respawn_882";
|
||||
crate::db::write_item_with_content(story_id, "2_current", "---\nname: Test\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Test\n---\n"),
|
||||
);
|
||||
|
||||
let db_key = format!("{story_id}:abort_respawn_count");
|
||||
const CAP: u32 = 5;
|
||||
|
||||
@@ -429,7 +429,12 @@ async fn start_agent_rejects_mergemaster_on_coding_stage_story() {
|
||||
)
|
||||
.unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("310_story_foo", "2_current", "---\nname: Foo\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
"310_story_foo",
|
||||
"2_current",
|
||||
"---\nname: Foo\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Foo\n---\n"),
|
||||
);
|
||||
|
||||
let pool = AgentPool::new_test(3099);
|
||||
let result = pool
|
||||
@@ -463,7 +468,12 @@ async fn start_agent_rejects_coder_on_qa_stage_story() {
|
||||
)
|
||||
.unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("8842_story_qa_guard", "3_qa", "---\nname: QA Guard\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
"8842_story_qa_guard",
|
||||
"3_qa",
|
||||
"---\nname: QA Guard\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: QA Guard\n---\n"),
|
||||
);
|
||||
|
||||
let pool = AgentPool::new_test(3099);
|
||||
let result = pool
|
||||
@@ -497,7 +507,12 @@ async fn start_agent_rejects_qa_on_merge_stage_story() {
|
||||
)
|
||||
.unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("55_story_baz", "4_merge", "---\nname: Baz\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
"55_story_baz",
|
||||
"4_merge",
|
||||
"---\nname: Baz\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Baz\n---\n"),
|
||||
);
|
||||
|
||||
let pool = AgentPool::new_test(3099);
|
||||
let result = pool
|
||||
|
||||
Reference in New Issue
Block a user