Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/services/agent_trace/committed_content/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ fn build_entry_trace(
build_agent_trace_from_evidence, AgentTraceEvidence, AgentTraceMetadataInput,
RepositoryRoot,
};
let empty = crate::services::patch::ParsedPatch { files: Vec::new() };
let empty = crate::services::patch::ParsedPatch::default();
build_agent_trace_from_evidence(
AgentTraceEvidence {
repository_root: &RepositoryRoot::new(Path::new("/workspace/project")),
Expand Down
16 changes: 11 additions & 5 deletions cli/src/services/agent_trace/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn assert_builds_expected_agent_trace(scenario: AgentTraceScenario) {
parse_patch(scenario.post_commit, None).expect("fixture patch should parse");
let golden: Value = serde_json::from_str(scenario.golden).expect("golden json should load");
validate_agent_trace_value(&golden).expect("golden json should validate against schema");
let empty_mutation_patch = ParsedPatch { files: Vec::new() };
let empty_mutation_patch = ParsedPatch::default();
let direct_sources: Vec<_> = direct_patches
.iter()
.map(DirectEvidenceSource::repository_relative)
Expand Down Expand Up @@ -403,7 +403,7 @@ fn assert_builds_expected_agent_trace_from_evidence(scenario: EvidenceScenario)
repository_root: &RepositoryRoot::new(Path::new(TEST_REPOSITORY_ROOT)),
direct_sources: std::slice::from_ref(&direct_source),
mutation_ai_patch: &mutation_ai_patch,
mutation_non_ai_patch: &ParsedPatch { files: Vec::new() },
mutation_non_ai_patch: &ParsedPatch::default(),
},
&post_commit_patch,
AgentTraceMetadataInput {
Expand Down Expand Up @@ -608,7 +608,7 @@ fn build_with_sources(
&committed_patch(),
sources,
mutation_ai_patch,
&ParsedPatch { files: Vec::new() },
&ParsedPatch::default(),
)
}

Expand Down Expand Up @@ -657,7 +657,7 @@ fn build_trace_with_content(
}

fn no_mutation() -> ParsedPatch {
ParsedPatch { files: Vec::new() }
ParsedPatch::default()
}

fn tool_of(trace: &super::AgentTrace) -> Option<(Option<&str>, Option<&str>)> {
Expand Down Expand Up @@ -2532,7 +2532,13 @@ fn partition(
}
})
.collect();
(ParsedPatch { files: patch_files }, decisions)
(
ParsedPatch {
files: patch_files,
attribution: None,
},
decisions,
)
}

type ExpectedKey = (Option<String>, Option<String>, &'static str);
Expand Down
Loading
Loading