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: fix CI failures — update .search() test args and add openblas workaround

Louis Beaumontc1b57bddcf0b
diff --git a/.github/scripts/install_dependencies.sh b/.github/scripts/install_dependencies.sh
index 7be8c5be7..74f40e258 100755
--- a/.github/scripts/install_dependencies.sh
+++ b/.github/scripts/install_dependencies.sh
@@ -1,3 +1,10 @@
#!/bin/bash
sudo apt-get update
sudo apt-get install -y xvfb x11-xserver-utils ffmpeg libasound2-dev libgtk-3-dev libavformat-dev libavfilter-dev libavdevice-dev x11-utils x11-apps xdotool sqlite3 openbox xterm fonts-liberation tesseract-ocr libtesseract-dev imagemagick fonts-dejavu alsa-utils pulseaudio pulseaudio-utils libxdo-dev libpipewire-0.3-dev libgbm-dev libwayland-dev libegl-dev libopenblas-dev
+
+# antirez-asr-sys build script emits -llibopenblas (double lib prefix).
+# Create a symlink so the linker finds it, and set OPENBLAS_PATH with lib/ subdir.
+sudo mkdir -p /usr/lib/x86_64-linux-gnu/openblas/lib
+sudo ln -sf /usr/lib/x86_64-linux-gnu/libopenblas.so /usr/lib/x86_64-linux-gnu/openblas/lib/liblibopenblas.so
+sudo ln -sf /usr/lib/x86_64-linux-gnu/libopenblas.a /usr/lib/x86_64-linux-gnu/openblas/lib/liblibopenblas.a
+echo "OPENBLAS_PATH=/usr/lib/x86_64-linux-gnu/openblas" >> "$GITHUB_ENV"
diff --git a/Cargo.lock b/Cargo.lock
index 7348569d7..fd45993e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6414,7 +6414,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"anyhow",
"audiopipe",
@@ -6472,7 +6472,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -6484,7 +6484,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"anyhow",
"async-trait",
@@ -6510,7 +6510,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6553,7 +6553,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"anyhow",
"chrono",
@@ -6565,6 +6565,7 @@ dependencies = [
"once_cell",
"rand 0.8.5",
"regex",
+ "screenpipe-core",
"serde",
"serde_json",
"sqlite-vec",
@@ -6577,7 +6578,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"anyhow",
"async-trait",
@@ -6645,7 +6646,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"anyhow",
"chrono",
@@ -6663,7 +6664,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -6703,7 +6704,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.223"
+version = "0.3.225"
dependencies = [
"argon2",
"chacha20poly1305",
diff --git a/crates/screenpipe-db/Cargo.toml b/crates/screenpipe-db/Cargo.toml
index 39c63805d..031a9b65f 100644
--- a/crates/screenpipe-db/Cargo.toml
+++ b/crates/screenpipe-db/Cargo.toml
@@ -35,6 +35,9 @@ tracing-subscriber = { workspace = true }
regex = "1.11"
once_cell = "1.19"
+[dev-dependencies]
+screenpipe-core = { path = "../screenpipe-core" }
+
[[bench]]
name = "db_benchmarks"
harness = false
diff --git a/crates/screenpipe-db/tests/db.rs b/crates/screenpipe-db/tests/db.rs
index a717c046d..9aa863aeb 100644
--- a/crates/screenpipe-db/tests/db.rs
+++ b/crates/screenpipe-db/tests/db.rs
@@ -78,6 +78,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -128,6 +130,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -150,6 +154,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -207,6 +213,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -229,6 +237,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -326,6 +336,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -348,6 +360,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -538,6 +552,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -563,6 +579,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -587,6 +605,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -615,6 +635,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -638,6 +660,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -765,6 +789,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1249,6 +1275,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1277,6 +1305,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1305,6 +1335,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1560,6 +1592,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1656,6 +1690,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1679,6 +1715,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1725,6 +1763,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1764,6 +1804,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1797,6 +1839,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1830,6 +1874,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1868,6 +1914,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -1911,6 +1959,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
diff --git a/crates/screenpipe-db/tests/heavy_read_test.rs b/crates/screenpipe-db/tests/heavy_read_test.rs
index 983746b56..027520558 100644
--- a/crates/screenpipe-db/tests/heavy_read_test.rs
+++ b/crates/screenpipe-db/tests/heavy_read_test.rs
@@ -59,6 +59,8 @@ async fn test_concurrent_ocr_searches_dont_starve_pool() {
None,
None,
None,
+ None,
+ None,
)
.await;
let elapsed = start.elapsed();
@@ -149,6 +151,8 @@ async fn test_search_completes_within_timeout() {
None,
None,
None,
+ None,
+ None,
)
.await;
let elapsed = start.elapsed();
diff --git a/crates/screenpipe-db/tests/search_ocr_snapshot_test.rs b/crates/screenpipe-db/tests/search_ocr_snapshot_test.rs
index 6269c865d..8e4ec278d 100644
--- a/crates/screenpipe-db/tests/search_ocr_snapshot_test.rs
+++ b/crates/screenpipe-db/tests/search_ocr_snapshot_test.rs
@@ -76,6 +76,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -154,6 +156,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -177,6 +181,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -200,6 +206,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -293,6 +301,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -393,6 +403,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();
@@ -423,6 +435,8 @@ mod tests {
None,
None,
None,
+ None,
+ None,
)
.await
.unwrap();