fn cleanup_incremental_artifact_outputs( artifact_root: &Path, source_root: &Path, preserved_dir: Option<&Path>, previous_outputs: &BTreeMap<PathBuf, Value>, ) -> Result<(), i32>