Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): restore rust format and windows priority test

Louis Beaumontafd63c7cf06c
diff --git a/crates/screenpipe-audio/src/transcription/whisper/batch.rs b/crates/screenpipe-audio/src/transcription/whisper/batch.rs
index 271940f95..ba8bacf16 100644
--- a/crates/screenpipe-audio/src/transcription/whisper/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/whisper/batch.rs
@@ -160,6 +160,7 @@ mod tests {
#[cfg(windows)]
#[test]
fn stt_priority_dip_lowers_and_restores() {
+ use screenpipe_core::thread_priority::BackgroundWorkDip;
use windows::Win32::System::Threading::{
GetCurrentThread, GetThreadPriority, SetThreadPriority, THREAD_PRIORITY_BELOW_NORMAL,
THREAD_PRIORITY_LOWEST, THREAD_PRIORITY_NORMAL,
@@ -170,8 +171,7 @@ mod tests {
assert_eq!(baseline, THREAD_PRIORITY_NORMAL.0);
{
- let dip = SttPriorityDip::new();
- assert!(dip.is_some(), "dip should engage from Normal");
+ let _dip = BackgroundWorkDip::new();
assert_eq!(
GetThreadPriority(GetCurrentThread()),
THREAD_PRIORITY_BELOW_NORMAL.0
@@ -181,7 +181,7 @@ mod tests {
// Already lower than the target → guard must not raise it.
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST).unwrap();
- assert!(SttPriorityDip::new().is_none());
+ let _dip = BackgroundWorkDip::new();
assert_eq!(
GetThreadPriority(GetCurrentThread()),
THREAD_PRIORITY_LOWEST.0
diff --git a/crates/screenpipe-db/src/db/meetings.rs b/crates/screenpipe-db/src/db/meetings.rs
index 97f72eab9..f88d61bda 100644
--- a/crates/screenpipe-db/src/db/meetings.rs
+++ b/crates/screenpipe-db/src/db/meetings.rs
@@ -971,7 +971,10 @@ impl DatabaseManager {
for (idx, seg_ms) in unresolved.drain(..) {
let seg = &mut segments[idx];
- let key = (seg.device_type == "input", seg.transcript.trim().to_string());
+ let key = (
+ seg.device_type == "input",
+ seg.transcript.trim().to_string(),
+ );
let Some(matches) = candidates.get(&key) else {
continue;
};
diff --git a/crates/screenpipe-db/tests/speaker_reassignment_test.rs b/crates/screenpipe-db/tests/speaker_reassignment_test.rs
index ff6ffb2d6..6348cfd39 100644
--- a/crates/screenpipe-db/tests/speaker_reassignment_test.rs
+++ b/crates/screenpipe-db/tests/speaker_reassignment_test.rs
@@ -511,7 +511,15 @@ mod speaker_reassignment_tests {
.await
.unwrap();
let t0 = chrono::Utc::now();
- seed_mirrored_segment(&db, meeting_id, chunk_id, "speaker 1", "first utterance", t0).await;
+ seed_mirrored_segment(
+ &db,
+ meeting_id,
+ chunk_id,
+ "speaker 1",
+ "first utterance",
+ t0,
+ )
+ .await;
seed_mirrored_segment(
&db,
meeting_id,
@@ -550,5 +558,4 @@ mod speaker_reassignment_tests {
);
}
}
-
}