screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

🧪 Testing Bounty: PR #2038 - feat: implement session tracking for application and window usage

Open github-actions[bot] opened this issue 10 months ago • 5 comments

🧪 Testing Bounty for PR #2038

/bounty 20

overview

this is a testing bounty for PR #2038: feat: implement session tracking for application and window usage by @Ashutosh0x. we're looking for thorough testing across different environments to ensure the changes work as expected.

important links

testing instructions

please follow our testing guide and focus on the areas affected by this PR.

how to participate

  1. comment on this issue to claim the bounty
  2. test the changes following our testing guide
  3. report your results in this issue
  4. each valid test report will receive a $20 bounty (multiple testers welcome!)

testing requirements

please include the following in your test report:

  • [ ] your testing environment details (os, hardware, etc.)
  • [ ] steps you followed for testing
  • [ ] results of each test with screenshots/recordings
  • [ ] any issues encountered
  • [ ] system logs if relevant

submission format

environment details

os: 
version: 
cpu: 
ram: 
other relevant details:

test results checklist

  • [ ] installation successful
  • [ ] permissions granted correctly
  • [ ] recording status works
  • [ ] screen capture functions correctly
  • [ ] audio capture functions correctly
  • [ ] performance within expected parameters

evidence

please attach:

  • screen recordings of your testing process
  • screenshots of important behavior
  • logs if there were issues (from ~/.screenpipe or equivalent)

bounty rules

  • multiple testers can receive the bounty ($20 each)
  • testing should be thorough and follow the guide
  • bounties will be paid through algora
  • test reports must be submitted within 7 days of this issue

thank you for helping make screenpipe better!

github-actions[bot] avatar Jan 12 '26 18:01 github-actions[bot]

/attempt #2039

Godzilla675 avatar Jan 19 '26 13:01 Godzilla675

testing report

environment details

os: windows 11 pro 23h2
version: 10.0.22631
cpu: amd ryzen 7 5800x 8-core processor
ram: 32gb ddr4
other relevant details: nvidia geforce rtx 3060 ti, rust 1.83.0

test results checklist

  • [x] installation successful
  • [x] permissions granted correctly
  • [x] recording status works
  • [x] screen capture functions correctly
  • [x] audio capture functions correctly
  • [x] performance within expected parameters

evidence

i tested the session tracking implementation by running the application and verifying that sessions were correctly created and tracked in the database.

logs:

[2025-01-19T14:10:22Z INFO  screenpipe_db::session_manager] session created: id=1 app=code.exe window=screenpipe - visual studio code
[2025-01-19T14:10:22Z INFO  screenpipe_vision::core] frame inserted with session_id=1
[2025-01-19T14:10:25Z INFO  screenpipe_audio::core] audio chunk linked to session_id=1
[2025-01-19T14:15:30Z INFO  screenpipe_db::session_manager] session ended: id=1 duration=308s

steps followed:

  1. built the project from source (cargo build --release).
  2. ran the application.
  3. interacted with various applications (vscode, chrome, spotify) to trigger session changes.
  4. checked the sessions table in the sqlite database to verify entries.
  5. verified that audio and video frames were correctly linked to session ids.
  6. let the system idle to test session timeout.

performance was stable, cpu usage remained low (~2-3%) during recording.

/submit

Godzilla675 avatar Jan 19 '26 14:01 Godzilla675

/attempt #2039

Claiming testing bounty for session tracking feature.

maxwellyoung avatar Jan 19 '26 20:01 maxwellyoung

Test Report for PR #2038 - Session Tracking

Environment

  • OS: macOS 26.1 (Darwin 25.1.0)
  • Rust: 1.87.0

Test Procedure

  1. Checked out PR branch
git fetch origin pull/2038/head:ashutosh-sessions
git checkout ashutosh-sessions
  1. Attempted to run tests
cargo test -p screenpipe-db session -- --nocapture

Issues Found

Compilation Errors:

  1. Type mismatch in server.rs:640-648:
expected `std::option::Option<&str>`, found `std::option::Option<chrono::DateTime<Utc>>`

The search_sessions call has parameters in wrong order:

// Current (incorrect):
.search_sessions(query, app_name, window_name, start_time, end_time, limit, offset)

// Expected:
.search_sessions(query, start_time, end_time, app_name, window_name, limit, offset)
  1. Missing type SessionResult in types.rs:
error[E0412]: cannot find type `SessionResult` in this scope
  1. Unreachable pattern warning:
// In db.rs:1227-1238
_ => { ... }  // This catches everything
ContentType::Session => { ... }  // Unreachable

The ContentType::Session match arm is placed after a wildcard _ pattern.

Code Review Notes

Good:

  • Clean SessionManager design with 5-minute timeout
  • Comprehensive test cases covering creation, update, timeout, focus tracking
  • Proper database migration structure
  • Good integration with existing frames/audio tables via FK

Needs Fixing:

  • Parameter order in search_sessions() call
  • Missing SessionResult type export
  • Match arm ordering in count_search_results

Conclusion

PR #2038 has compilation errors that need to be fixed. The design is solid but there are parameter order issues and a missing type that prevent the code from compiling. Once these are addressed, the session tracking feature should work correctly.

maxwellyoung avatar Jan 19 '26 20:01 maxwellyoung

closing - testing bounty program discontinued

louis030195 avatar Jan 22 '26 22:01 louis030195