Skip to content

Harden startup discovery and add CI smoke coverage#104

Open
justrach wants to merge 1 commit intomainfrom
fix/startup-onboarding-smoke
Open

Harden startup discovery and add CI smoke coverage#104
justrach wants to merge 1 commit intomainfrom
fix/startup-onboarding-smoke

Conversation

@justrach
Copy link
Copy Markdown
Owner

Summary

  • resolve and validate the CDP endpoint before serving traffic
  • auto-discover tabs during startup so first-run /tabs is populated
  • add regression coverage for discovery and startup parsing
  • add a GitHub Actions startup smoke job with real Chrome

Verification

  • zig build test
  • zig build
  • manual managed startup smoke (/health, /tabs, /discover)
  • manual external CDP_URL=http://127.0.0.1:9224/json/version startup smoke
  • invalid external CDP URL fails before binding the server

Copy link
Copy Markdown
Owner Author

@justrach justrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

The CI smoke test and startup auto-discovery are still valuable. However, much of the client/router/bridge work in this PR now overlaps with main.

✅ Still useful — keep these parts

  • .github/workflows/ci.yml — CI smoke job with real Chrome is great for catching startup regressions
  • Startup auto-discovery — populating /tabs on first boot so the first API call doesn't need a manual /discover
  • Regression tests for discovery and startup parsing

❌ Already on main — drop these parts

  • client.zig changes (EventBuffer is completely different now)
  • bridge.zig key ownership (allocator.dupe already merged)
  • router.zig discovery/evaluate changes (already merged)
  • har.zig ownership changes (already merged)

🔧 Recommendation

This PR touches 17 files but only ~3 are still needed. I'd recommend:

  1. Close this PR
  2. Open a fresh PR with just the CI workflow + startup auto-discover changes
  3. Skip the client/router/bridge/har changes that are already on main

That avoids a painful 17-file rebase where most hunks conflict.

@justrach
Copy link
Copy Markdown
Owner Author

Can you update this PR to build and test against Zig 0.16.0? The active release/CI path is now targeting 0.16.0, so it would help to rebase and rerun on that toolchain before review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant