Fail to speed up CI by not installing Chrome.
I have no idea why the same "vintage" machine I logged into via tmate
has this working, but this doesn't, but the --no-sandbox thing is
correct regardless.
Variants of the following is what SHOULD work but doesn't yet.
PATH=/usr/local/share/chromium/chrome-linux:$PATH GOEXPERIMENT=synctest stdbuf -oL -eL go test -v -count=1 -run TestBrowserInitialization ./claudetool/browse/...
diff --git a/claudetool/browse/browse.go b/claudetool/browse/browse.go
index 5cd28cd..9ab1ae3 100644
--- a/claudetool/browse/browse.go
+++ b/claudetool/browse/browse.go
@@ -71,6 +71,10 @@
b.initOnce.Do(func() {
// ChromeDP.ExecPath has a list of common places to find Chrome...
opts := chromedp.DefaultExecAllocatorOptions[:]
+ // This is the default when running as root, but we generally need it
+ // when running in a container, even when we aren't root (which is largely
+ // the case for tests).
+ opts = append(opts, chromedp.NoSandbox)
allocCtx, _ := chromedp.NewExecAllocator(b.ctx, opts...)
browserCtx, browserCancel := chromedp.NewContext(
allocCtx,