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

chore: drop GitHub-hosted WebDriver job, self-hosted only

Louis Beaumont872bd532719e
diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml
index 65b4ea956..fa295e5ca 100644
--- a/.github/workflows/e2e-windows.yml
+++ b/.github/workflows/e2e-windows.yml
@@ -1,38 +1,27 @@
name: Windows E2E Tests
on:
- # Run after app release builds complete (main branch only)
- workflow_run:
- workflows: ["Release App"]
- types: [completed]
+ push:
branches: [main]
- # Manual trigger — only from main branch to prevent arbitrary code execution
+ # Manual trigger
workflow_dispatch:
inputs:
runner:
description: "Runner label (self-hosted runner name)"
required: false
default: "windows-desktop-test"
- skip_build:
- description: "Skip build (self-hosted only, app already installed)"
- type: boolean
- default: false
concurrency:
group: e2e-windows-${{ github.ref }}
- cancel-in-progress: false
+ cancel-in-progress: true
jobs:
- # ── Self-hosted: bb + API tests on real desktop ──────────────────────────────
- # SECURITY: only runs on main branch to prevent code execution from PRs/forks
- e2e-self-hosted:
- name: Windows E2E (self-hosted)
+ e2e-windows:
+ name: Windows E2E
runs-on: [self-hosted, "${{ inputs.runner || 'windows-desktop-test' }}"]
timeout-minutes: 30
- if: >
- github.ref == 'refs/heads/main' &&
- (github.event_name == 'workflow_dispatch' ||
- github.event.workflow_run.conclusion == 'success')
+ # Only run on main to prevent arbitrary code execution on self-hosted runner
+ if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
@@ -92,7 +81,7 @@ jobs:
with:
bun-version: latest
- - name: Run bb + API E2E tests
+ - name: Run E2E tests
id: e2e
shell: pwsh
env:
@@ -104,220 +93,8 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
- name: e2e-windows-self-hosted-${{ github.run_id }}
+ name: e2e-windows-${{ github.run_id }}
path: |
${{ runner.temp }}\e2e-artifacts\
${{ runner.temp }}\e2e-full.log
retention-days: 14
-
- # ── GitHub-hosted: build app + tauri-driver WebdriverIO tests ────────────────
- # Full DOM-level UI testing via tauri-driver (WebView2 WebDriver)
- e2e-webdriver:
- name: Windows E2E (WebDriver)
- runs-on: windows-latest
- timeout-minutes: 60
- if: >
- github.event_name == 'workflow_dispatch' ||
- github.event.workflow_run.conclusion == 'success'
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup Bun
- uses: oven-sh/setup-bun@v2
- with:
- bun-version: latest
-
- - name: Setup Node
- uses: actions/setup-node@v4
- with:
- node-version: 22
-
- - name: Install Chocolatey
- run: |
- [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
-
- - name: Install dependencies
- shell: pwsh
- run: |
- choco install ffmpeg openssl -y
- echo "C:\ProgramData\chocolatey\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
- - name: Install Scream virtual audio
- shell: powershell
- run: |
- Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip
- Expand-Archive -Path Scream4.0.zip -DestinationPath Scream
- openssl req -batch -verbose -x509 -newkey rsa -keyout ScreamCertificate.pvk -out ScreamCertificate.cer -nodes -extensions v3_req
- openssl pkcs12 -export -nodes -in ScreamCertificate.cer -inkey ScreamCertificate.pvk -out ScreamCertificate.pfx -passout pass:
-
- - name: Set up MSVC
- uses: ilammy/msvc-dev-cmd@v1
-
- - name: Sign and Install Scream Driver
- shell: powershell
- run: |
- signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.cat
- Import-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root
- Import-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
- Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream
- timeout-minutes: 5
-
- - name: Start Windows Audio Service
- shell: powershell
- run: |
- $service = Get-Service -Name audiosrv
- if ($service.Status -ne 'Running') {
- net start audiosrv
- }
-
- - name: Install Rust
- run: |
- Invoke-WebRequest https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe
- .\rustup-init.exe -y
-
- - name: Set up Rust
- uses: actions-rust-lang/setup-rust-toolchain@v1
- with:
- toolchain: stable
- override: true
- cache: true
- target: x86_64-pc-windows-msvc
- rustflags: ""
-
- - name: Install vcpkg
- uses: lukka/run-vcpkg@v11
- with:
- vcpkgGitCommitId: "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3"
-
- - name: Install 7zip
- shell: powershell
- run: |
- $7zipUrl = "https://7-zip.org/a/7z2301-x64.exe"
- Invoke-WebRequest -Uri $7zipUrl -OutFile 7z-installer.exe
- Start-Process -FilePath .\7z-installer.exe -Args "/S" -Wait
- Remove-Item 7z-installer.exe
- echo "C:\Program Files\7-Zip" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
- - name: Install LLVM and Clang
- uses: KyleMayes/install-llvm-action@v2
- with:
- version: "10.0"
- directory: "C:\\Program Files\\LLVM"
-
- - name: Install pip
- uses: actions/setup-python@v5
- with:
- python-version: "3.13"
-
- - name: Copy library for MKL
- shell: pwsh
- run: |
- $mkl_dir = "apps/screenpipe-app-tauri/src-tauri/mkl"
- New-Item -ItemType Directory -Force -Path $mkl_dir | Out-Null
- python -m pip install --upgrade pip
- $temp_dir = "temp_omp"
- New-Item -ItemType Directory -Force -Path $temp_dir | Out-Null
- python -m pip install intel-openmp --target $temp_dir
- Get-ChildItem -Path $temp_dir -Recurse -Filter "*.dll" | ForEach-Object {
- Copy-Item $_.FullName -Destination $mkl_dir -Force
- }
- $dll_count = (Get-ChildItem -Path $mkl_dir -Filter "*.dll").Count
- if ($dll_count -eq 0) { throw "No DLLs found!" }
- Remove-Item -Path $temp_dir -Recurse -Force
-
- - name: Copy library for vcredist
- shell: powershell
- run: |
- $vcredist_dir = "apps/screenpipe-app-tauri/src-tauri/vcredist"
- New-Item -ItemType Directory -Force -Path $vcredist_dir | Out-Null
- Copy-Item C:\Windows\System32\vcruntime140.dll -Destination $vcredist_dir -Force
-
- - name: Build CLI
- shell: pwsh
- env:
- CARGO_PROFILE_RELEASE_STRIP: symbols
- CARGO_PROFILE_RELEASE_PANIC: abort
- CARGO_PROFILE_RELEASE_INCREMENTAL: false
- run: cargo build --release -p screenpipe-server --target x86_64-pc-windows-msvc
-
- - name: Install frontend dependencies
- working-directory: ./apps/screenpipe-app-tauri
- run: bun install
-
- - name: Run pre_build.js
- working-directory: ./apps/screenpipe-app-tauri
- run: bun ./scripts/pre_build.js
-
- - name: Build Tauri app
- uses: tauri-apps/[email protected]
- env:
- CI: true
- CARGO_PROFILE_RELEASE_LTO: thin
- CARGO_PROFILE_RELEASE_OPT_LEVEL: 2
- CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 16
- CARGO_INCREMENTAL: true
- CARGO_PROFILE_RELEASE_STRIP: symbols
- CARGO_PROFILE_RELEASE_PANIC: abort
- CARGO_PROFILE_RELEASE_INCREMENTAL: false
- RUSTFLAGS: "-C target-feature=+crt-static -C link-arg=/LTCG"
- VCPKG_STATIC_LINKAGE: "true"
- KNF_STATIC_CRT: "1"
- with:
- args: "--target x86_64-pc-windows-msvc --no-bundle"
- projectPath: "./apps/screenpipe-app-tauri"
- tauriScript: bunx tauri -v
-
- - name: Install tauri-driver
- shell: pwsh
- run: |
- if (-not (Test-Path "$env:USERPROFILE\.cargo\bin\tauri-driver.exe")) {
- cargo install tauri-driver
- }
-
- - name: Remove previous Edge WebDriver
- shell: pwsh
- run: |
- $folderPath = "$($env:SystemDrive)\SeleniumWebDrivers\EdgeDriver"
- if (Test-Path $folderPath) {
- Remove-Item -Path $folderPath -Recurse -Force
- }
-
- - name: Download matching Edge WebDriver
- continue-on-error: true
- shell: pwsh
- run: |
- cd ./apps/screenpipe-app-tauri
- $edgeVersion = (bun tauri info | Select-String 'WebView2').ToString().Split(':')[1].Trim()
- Write-Output "Detected Edge version: $edgeVersion"
- cd ..
- $driverUrl = "https://msedgedriver.azureedge.net/$edgeVersion/edgedriver_win64.zip"
- Invoke-WebRequest -Uri $driverUrl -OutFile edgedriver.zip
- Expand-Archive edgedriver.zip -DestinationPath edgedriver
- echo (Join-Path $PWD 'edgedriver') | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
-
- - name: Run WebDriver E2E Tests
- continue-on-error: true
- shell: pwsh
- working-directory: ./apps/screenpipe-app-tauri
- run: |
- bun run test:e2e 2>&1 | Tee-Object -FilePath e2e_output.log
-
- - name: Upload E2E Test Artifacts
- uses: actions/upload-artifact@v4
- if: always()
- with:
- name: e2e-windows-webdriver-${{ github.run_id }}
- path: |
- ./apps/screenpipe-app-tauri/e2e/videos/*
- ./apps/screenpipe-app-tauri/e2e_output.log
-
- - name: Upload Screenpipe data
- uses: actions/upload-artifact@v4
- if: always()
- with:
- name: e2e-windows-screenpipe-data-${{ github.run_id }}
- include-hidden-files: true
- path: |
- ~/.screenpipe/*