Stream update badges during content index validation

Publish the fingerprinted inventory before the validating save pass so checks start while validation continues, and keep streamed badges through the final save without duplicate scans. Deduplicate running scans by exact inventory, guard retired workers from overwriting successors, and cancel scoped checks on forget/reset. Rename the long phase to Validating content files.
This commit is contained in:
objz committed 2026-10-02 11:58:27 +02:00
1 parent ce0bb34401
commit 65edd0b31b
7 files changed
+555 -53

No files matched your search

@@ -417,6 +417,17 @@ fn provider(versions: Vec<VersionInfo>) -> FakeProvider {
}
}
pub(crate) fn controlled_update_registry(
versions: Vec<VersionInfo>,
started: tokio::sync::mpsc::UnboundedSender<String>,
pauses: HashMap<String, std::sync::Arc<tokio::sync::Semaphore>>,
) -> ProviderRegistry {
let mut provider = provider(versions);
provider.compatible_started = Some(started);
provider.compatible_pause = pauses;
provider.registry()
}
#[test]
fn update_checks_prioritize_list_rows_and_publish_before_the_rest_finish() {
use crate::instance::content::updates::{AvailableUpdate, UpdateSnapshot, scan_with_registry};