Skip to content

Add chrome and deno ecosystem domain groups for headless Chrome/Puppeteer and Deno testing#21653

Merged
pelikhan merged 9 commits intomainfrom
copilot/add-chrome-ecosystem-domain-group
Mar 18, 2026
Merged

Add chrome and deno ecosystem domain groups for headless Chrome/Puppeteer and Deno testing#21653
pelikhan merged 9 commits intomainfrom
copilot/add-chrome-ecosystem-domain-group

Conversation

Copy link
Contributor

Copilot AI commented Mar 18, 2026

Projects using headless Chrome for integration tests (e.g. deno/fresh) have 80+ requests blocked because Chrome's initialization touches Google/gvt1 domains not covered by any existing ecosystem group.

Changes

  • New chrome ecosystem in ecosystem_domains.json: *.google.com, *.googleapis.com, *.gvt1.com — Google and Chrome-specific domains needed by headless Chrome/Puppeteer
  • New deno ecosystem in ecosystem_domains.json: deno.land, jsr.io, *.jsr.io, googleapis.deno.dev, fresh.deno.dev — Deno runtime and Fresh framework domains
  • Priority ordering in ecosystemPriority: deno placed before node (Deno-specific domains resolve to deno rather than node); chrome placed after java and fonts so existing more-specific Google domain entries (maven.google.comjava, fonts.googleapis.comfonts, packages.cloud.google.comdefaults) continue to resolve correctly
  • Tests: priority override cases (java/fonts/defaults win over chrome wildcards), deno ecosystem expansion, and chrome expansion correctness
  • Docs: added chrome and deno rows to ecosystem reference table

Usage

network:
  allowed:
    - defaults
    - chrome  # *.google.com, *.googleapis.com, *.gvt1.com
    - deno    # deno.land, jsr.io, googleapis.deno.dev, fresh.deno.dev

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI and others added 2 commits March 18, 2026 21:02
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Adds a new `browser` ecosystem identifier for projects that use headless
Chrome, Puppeteer, or Playwright for integration testing. The ecosystem
includes the Google and Chrome-specific domains that are requested by the
Chrome browser during initialization and testing.

Domains added:
- *.google.com (accounts, OAuth, Google services)
- *.googleapis.com (Google APIs used by Chrome)
- *.gvt1.com (Chrome redirect/update service)
- fresh.deno.dev (Deno Fresh framework)

The `browser` entry is placed after `java` in the ecosystem priority
list to ensure that more-specific Google domains in existing ecosystems
(java: maven.google.com/dl.google.com, fonts: fonts.googleapis.com,
defaults: packages.cloud.google.com) continue to resolve correctly.

Fixes #<issue>"

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add browser/chrome ecosystem domain group for testing Add browser ecosystem domain group for headless Chrome/Puppeteer/Playwright testing Mar 18, 2026
Copilot AI requested a review from pelikhan March 18, 2026 21:12
@pelikhan
Copy link
Contributor

@copilot rename browser to chrome, add deno domains to deno set

- Rename `browser` ecosystem to `chrome` (Google/Chrome-specific domains)
- Remove `fresh.deno.dev` from `chrome` ecosystem
- Add new `deno` ecosystem with Deno-specific domains:
  deno.land, jsr.io, *.jsr.io, googleapis.deno.dev, fresh.deno.dev
- Update ecosystemPriority: add `deno` before `node` for correct resolution
- Update tests and docs to reflect renamed and new ecosystems

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot rename browser to chrome, add deno domains to deno set

Done in cf09f0f:

  • Renamed browserchrome (*.google.com, *.googleapis.com, *.gvt1.com)
  • Added a new deno ecosystem with deno.land, jsr.io, *.jsr.io, googleapis.deno.dev, and fresh.deno.dev

Copilot AI changed the title Add browser ecosystem domain group for headless Chrome/Puppeteer/Playwright testing Add chrome and deno ecosystem domain groups for headless Chrome/Puppeteer and Deno testing Mar 18, 2026
@pelikhan pelikhan marked this pull request as ready for review March 18, 2026 22:26
Copilot AI review requested due to automatic review settings March 18, 2026 22:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds two new network ecosystem identifiers (chrome, deno) to reduce blocked network requests during headless Chrome/Puppeteer and Deno/Fresh testing, plus updates priority resolution, tests, and docs.

Changes:

  • Add chrome and deno ecosystem domain groups to the embedded ecosystem_domains.json.
  • Update ecosystem resolution priority ordering to ensure existing more-specific mappings win over broad Google wildcards.
  • Add/extend tests and update the network reference docs to document the new identifiers.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
pkg/workflow/domains.go Documents new ecosystems and updates ecosystemPriority ordering for deterministic ecosystem resolution.
pkg/workflow/domains_test.go Adds test cases for chrome/deno ecosystem resolution and allowlist expansion.
pkg/workflow/data/ecosystem_domains.json Introduces the chrome and deno ecosystem domain lists.
docs/src/content/docs/reference/network.md Documents chrome and deno in the ecosystem identifier reference table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

pelikhan and others added 4 commits March 18, 2026 15:39
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Removed duplicate entry for 'bazel' in ecosystem_domains.json.
@pelikhan pelikhan merged commit 325c1b3 into main Mar 18, 2026
53 checks passed
@pelikhan pelikhan deleted the copilot/add-chrome-ecosystem-domain-group branch March 18, 2026 22:54
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.

Add browser/Chrome ecosystem domain group for browser-testing projects

3 participants