Repository navigation
Fix validate on main: WebMCP flag for Chrome 157+ and bwrap path in bench test - #150
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validatehas been red onmainbecause two things changed under CI without any change to the repo: Chrome stable moved to 157, andubuntu-latestmoved from Ubuntu 24.04 to 26.04.1. Extension browser tests (Chrome 157+). CI installs
chrome@stable, so the browser moved from 156.0.8078.80 (last green run) to 157 and, by now, 158. Chrome 157 removed theWebMCPTestingfeature, so the test launcher's--enable-features=WebMCPTestingno longer exposeddocument.modelContext, and 9 tests timed out withsupported: false. The same API is behind theWebMCPfeature on 156, 157 and 158, so the launcher now enablesWebMCP.The CLI's
chrome://flagsentryenable-webmcp-testing@1still exists in 157 and still turns ondocument.modelContext(checked by launching 157 with it set in Local State), so the CLI needs no change. Only the comment naming the underlying feature is updated.2. Bench real-sandbox test (Ubuntu 26.04). On the 24.04 runner, bwrap could not create a sandbox, so the two real-sandbox tests were skipped. On 26.04 bwrap works, so they ran in CI for the first time, and one failed with
spawnSync bwrap ENOENT. The test spawnsbwrapwith an environment whosePATHholds only the fake pi prefix and Node's directory. That includes/usr/binwhen Node is installed there, but not on the runner, where Node lives in/opt/hostedtoolcache. The test now spawns thebwrapfound on the hostPATH, and its assertion reports the exit signal and spawn error instead of only stderr.bench/run.mjspasses the user's full environment tobwrap, so the bench itself is unaffected.Testing
validatepasses on this branch, with Chrome 158.0.8127.88 on Ubuntu 26.04. Both real-sandbox bench tests ran rather than being skipped.node --test "extension/**/*.test.mjs"(withXWEBMCP_SYNTHETIC_CI=1) passes 35/35 on Chrome 156.0.8078.80 and 157.0.8103.78. Before the change, 157 failed 9.bench/test/sandbox.test.mjswith Node outside/usr/binreproduces the CIENOENTwithout the fix and passes with it. The full bench suite passes 130/130.go test ./internal/chrome/passes.