20260914 完善OSS日志与daemon部署
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Top-level CLI execution pipeline.
|
||||
|
||||
pub(crate) fn run_config(args: RunConfig) -> Result<(), String> {
|
||||
crate::logging::observer::phase("state_store_open");
|
||||
let mut policy = read_policy(args.policy_path.as_deref())?;
|
||||
if let Some(strict_policy) = args.strict_policy {
|
||||
policy.strict = strict_policy;
|
||||
@@ -109,6 +110,7 @@ pub(crate) fn run_config(args: RunConfig) -> Result<(), String> {
|
||||
store.as_ref(),
|
||||
);
|
||||
let validation_started = std::time::Instant::now();
|
||||
crate::logging::observer::phase("runtime_setup");
|
||||
let collect_current_repo_objects = false;
|
||||
let out = if let Some(dir) = args.rsync_local_dir.as_ref() {
|
||||
let http = BlockingHttpFetcher::new(HttpFetcherConfig {
|
||||
@@ -166,6 +168,7 @@ pub(crate) fn run_config(args: RunConfig) -> Result<(), String> {
|
||||
|| serde_json::json!({"elapsed_ms": validation_ms}),
|
||||
);
|
||||
let shared = PostValidationShared::from_run_output(out);
|
||||
crate::logging::observer::phase("result_output");
|
||||
record_memory_checkpoint(
|
||||
&mut memory_checkpoints,
|
||||
"after_validation",
|
||||
@@ -366,8 +369,7 @@ pub(crate) fn run_config(args: RunConfig) -> Result<(), String> {
|
||||
shared.publication_points.len() as u64,
|
||||
);
|
||||
let timing_json_path = out_dir.join("timing.json");
|
||||
t.write_json(&timing_json_path, 20)?;
|
||||
crate::logging::info!("analysis: wrote {}", timing_json_path.display());
|
||||
crate::logging::artifact::write("timing", &timing_json_path, || t.write_json(&timing_json_path, 20))?;
|
||||
}
|
||||
|
||||
// Write the compatibility summary after analysis timing has been flushed.
|
||||
@@ -376,13 +378,13 @@ pub(crate) fn run_config(args: RunConfig) -> Result<(), String> {
|
||||
// point audit, so the final summary can use those authoritative counts.
|
||||
if let Some(path) = args.summary_out_path.as_deref() {
|
||||
let analysis_counts = timing.as_ref().map(|(_, handle)| handle.counts_snapshot());
|
||||
write_summary(
|
||||
crate::logging::artifact::write("summary", path, || write_summary(
|
||||
path,
|
||||
&shared,
|
||||
&args,
|
||||
validation_ms,
|
||||
analysis_counts.as_ref(),
|
||||
)?;
|
||||
))?;
|
||||
}
|
||||
|
||||
print_summary_from_shared(validation_time, &shared);
|
||||
|
||||
Reference in New Issue
Block a user