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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ci): unstick 3 of 4 broken workflows on main
Louis Beaumontc63fdaf08ca7
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 798190794..37fe53607 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -214,9 +214,24 @@ jobs:# pattern across both layouts, and force a fresh install if nothing# is on disk at all.find_openblas_so() {+ # Prefer the versioned SONAME (e.g. libopenblas.so.0 — the+ # actual library file) over the unversioned libopenblas.so+ # (typically managed by update-alternatives, points at the+ # versioned file). If we pick the unversioned form as REAL_SO,+ # the SONAME-based `ln -sf $REAL_SO /usr/.../$SONAME` below+ # becomes `ln -sf X X` which removes X and creates a dangling+ # symlink-to-self — `test -e` then fails the sanity check.+ local versioned+ versioned="$(find /usr/lib /usr/local/lib /lib 2>/dev/null \+ -name 'libopenblas.so.*' -print 2>/dev/null | head -1)"+ if [ -n "$versioned" ]; then+ printf '%s\n' "$versioned"+ return+ fi+ # Fallback: unversioned name. Rare on standard Ubuntu images+ # but defended against self-symlinks below.find /usr/lib /usr/local/lib /lib 2>/dev/null \- \( -name 'libopenblas.so' -o -name 'libopenblas.so.*' \) \- -print 2>/dev/null | head -1+ -name 'libopenblas.so' -print 2>/dev/null | head -1}REAL_SO="$(find_openblas_so)"@@ -254,8 +269,20 @@ jobs:# "error while loading shared libraries: libopenblas.so.0". Symlink the# SONAME and the unsuffixed name into the default path.SONAME="$(basename "$REAL_SO")" # e.g. libopenblas.so.0- sudo ln -sf "$REAL_SO" "/usr/lib/x86_64-linux-gnu/${SONAME}"- sudo ln -sf "$REAL_SO" /usr/lib/x86_64-linux-gnu/libopenblas.so+ # Defensive: only create the SONAME / unversioned symlinks if+ # the destination differs from REAL_SO. ln -sf to self removes+ # the file before creating the link, leaving a dangling symlink+ # — silent breakage that surfaces 100ms later as `test -e`+ # exits 1. Belt-and-suspenders with the find_openblas_so fix+ # above which already prefers the versioned file.+ SONAME_DEST="/usr/lib/x86_64-linux-gnu/${SONAME}"+ if [ "$REAL_SO" != "$SONAME_DEST" ]; then+ sudo ln -sf "$REAL_SO" "$SONAME_DEST"+ fi+ UNVER_DEST="/usr/lib/x86_64-linux-gnu/libopenblas.so"+ if [ "$REAL_SO" != "$UNVER_DEST" ]; then+ sudo ln -sf "$REAL_SO" "$UNVER_DEST"+ fisudo ldconfig# Sanity check: the symlinks must be non-dangling (-e follows links).diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.ymlindex 4805f46bd..f8e77e6ea 100644--- a/.github/workflows/gitleaks.yml+++ b/.github/workflows/gitleaks.yml@@ -1,4 +1,10 @@-name: Secret Scan (gitleaks)+name: Secret Scan (trufflehog)++# Renamed from `gitleaks` (the action now requires a paid org license+# per https://github.com/gitleaks/gitleaks-action#-announcement —+# "[screenpipe] is an organization. License key is required.").+# TruffleHog gives us the same intent (find leaked credentials in+# commits) at zero cost and ships its own GitHub Action.on:pull_request:@@ -7,12 +13,12 @@ on:branches: [main]concurrency:- group: gitleaks-${{ github.ref }}+ group: secret-scan-${{ github.ref }}cancel-in-progress: truejobs:- gitleaks:- name: gitleaks+ trufflehog:+ name: trufflehogruns-on: ubuntu-latestpermissions:contents: read@@ -21,13 +27,18 @@ jobs:- name: Checkoutuses: actions/checkout@v4with:+ # Need full history so TruffleHog can scan the diff between+ # base and head (PRs) or the whole repo (push).fetch-depth: 0- - name: gitleaks- uses: gitleaks/gitleaks-action@v2- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # Exit non-zero on any finding so the PR check fails loud.- GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "true"- GITLEAKS_ENABLE_COMMENTS: "true"- GITLEAKS_ENABLE_SUMMARY: "true"+ - name: TruffleHog+ uses: trufflesecurity/trufflehog@main+ with:+ # On push to main: scan the just-pushed commits (HEAD~1..HEAD).+ # On PR: scan the PR diff (base..head). The action infers+ # both automatically from the GITHUB_EVENT_NAME — no extra+ # config needed.+ path: ./+ # Exit non-zero on findings so the check fails loud, matching+ # the prior gitleaks behavior.+ extra_args: --only-verified --faildiff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rsindex c60002049..4e85c70d9 100644--- a/crates/screenpipe-db/src/db.rs+++ b/crates/screenpipe-db/src/db.rs@@ -6872,7 +6872,10 @@ LIMIT ? OFFSET ?}let display = if all_text.len() > 5000 {- format!("{}… (truncated)", all_text.chars().take(5000).collect::<String>())+ format!(+ "{}… (truncated)",+ all_text.chars().take(5000).collect::<String>()+ )} else {all_text};