Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,633 changes: 1,633 additions & 0 deletions .github/workflows/smoke-playwright-cloud-hypervisor.lock.yml

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions .github/workflows/smoke-playwright-cloud-hypervisor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
description: Smoke test Playwright CLI loopback access in the Cloud Hypervisor runtime
on:
workflow_dispatch:
label_command:
name: test-playwright-cloud-hypervisor
events: [pull_request]
remove_label: false
permissions:
contents: read
pull-requests: read
issues: read
copilot-requests: write
concurrency:
job-discriminator: ${{ github.run_id }}
env:
NPM_CONFIG_REGISTRY: https://packagefeedproxy.microsoft.io/npm/
name: Smoke Playwright Cloud Hypervisor
engine:
id: copilot
version: 1.0.34
network:
allowed:
- cdn.playwright.dev
- playwright.download.prss.microsoft.com
- packagefeedproxy.microsoft.io
- "*.pkgs.visualstudio.com"
blocked:
- node
steps:
- name: Install Playwright CLI from Microsoft registry
run: |
test "$(npm view @playwright/cli@0.1.18 version --registry="$NPM_CONFIG_REGISTRY")" = "0.1.18"
npm install -g @playwright/cli@0.1.18 --registry="$NPM_CONFIG_REGISTRY"
Comment on lines +31 to +34
timeout-minutes: 10
tools:
bash:
- "*"
safe-outputs:
threat-detection:
enabled: false
add-comment:
hide-older-comments: true
timeout-minutes: 30
sandbox:
agent:
id: awf
version: v0.28.1
runtime: cloud-hypervisor
strict: false
post-steps:
- name: Validate Playwright loopback result
run: node scripts/ci/validate-playwright-loopback-smoke.js cloud-hypervisor
---

# Smoke Test: Playwright CLI Loopback on Cloud Hypervisor

Run `bash scripts/ci/run-playwright-loopback-smoke.sh cloud-hypervisor` exactly once. This starts
a server and Playwright browser inside the agent sandbox, verifies JavaScript
rendering over loopback, and verifies browser egress to a non-allowlisted domain
is blocked.

Read `/tmp/gh-aw/agent/playwright-loopback-results.json` and report the observed
results. On a pull request trigger, call `add_comment` with
`item_number: ${{ github.event.pull_request.number }}`. On `workflow_dispatch`,
call `noop`. Include this exact marker when successful:

`PLAYWRIGHT_LOOPBACK_RESULT runtime=cloud-hypervisor loopback=pass javascript_title=pass blocked_egress=pass`
1,731 changes: 1,731 additions & 0 deletions .github/workflows/smoke-playwright-docker-sbx.lock.yml

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions .github/workflows/smoke-playwright-docker-sbx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
description: Smoke test Playwright CLI loopback access in the Docker sbx runtime
on:
workflow_dispatch:
label_command:
name: test-playwright-docker-sbx
events: [pull_request]
remove_label: false
permissions:
contents: read
pull-requests: read
issues: read
copilot-requests: write
concurrency:
job-discriminator: ${{ github.run_id }}
env:
NPM_CONFIG_REGISTRY: https://packagefeedproxy.microsoft.io/npm/
name: Smoke Playwright Docker Sbx
engine:
id: copilot
version: 1.0.34
network:
allowed:
- cdn.playwright.dev
- playwright.download.prss.microsoft.com
- packagefeedproxy.microsoft.io
- "*.pkgs.visualstudio.com"
blocked:
- node
steps:
- name: Install Playwright CLI from Microsoft registry
run: |
test "$(npm view @playwright/cli@0.1.18 version --registry="$NPM_CONFIG_REGISTRY")" = "0.1.18"
npm install -g @playwright/cli@0.1.18 --registry="$NPM_CONFIG_REGISTRY"
Comment on lines +31 to +34
timeout-minutes: 10
tools:
bash:
- "*"
safe-outputs:
threat-detection:
enabled: false
add-comment:
hide-older-comments: true
timeout-minutes: 30
sandbox:
agent:
id: awf
runtime: docker-sbx
strict: false
post-steps:
- name: Validate Playwright loopback result
run: node scripts/ci/validate-playwright-loopback-smoke.js docker-sbx
---

# Smoke Test: Playwright CLI Loopback on Docker sbx

Run `bash scripts/ci/run-playwright-loopback-smoke.sh docker-sbx` exactly once. This starts
a server and Playwright browser inside the agent sandbox, verifies JavaScript
rendering over loopback, and verifies browser egress to a non-allowlisted domain
is blocked.

Read `/tmp/gh-aw/agent/playwright-loopback-results.json` and report the observed
results. On a pull request trigger, call `add_comment` with
`item_number: ${{ github.event.pull_request.number }}`. On `workflow_dispatch`,
call `noop`. Include this exact marker when successful:

`PLAYWRIGHT_LOOPBACK_RESULT runtime=docker-sbx loopback=pass javascript_title=pass blocked_egress=pass`
1,632 changes: 1,632 additions & 0 deletions .github/workflows/smoke-playwright-gvisor.lock.yml

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions .github/workflows/smoke-playwright-gvisor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
description: Smoke test Playwright CLI loopback access in the gVisor runtime
on:
workflow_dispatch:
label_command:
name: test-playwright-gvisor
events: [pull_request]
remove_label: false
permissions:
contents: read
pull-requests: read
issues: read
copilot-requests: write
concurrency:
job-discriminator: ${{ github.run_id }}
env:
NPM_CONFIG_REGISTRY: https://packagefeedproxy.microsoft.io/npm/
name: Smoke Playwright gVisor
engine:
id: copilot
version: 1.0.34
network:
allowed:
- cdn.playwright.dev
- playwright.download.prss.microsoft.com
- packagefeedproxy.microsoft.io
- "*.pkgs.visualstudio.com"
blocked:
- node
steps:
- name: Install Playwright CLI from Microsoft registry
run: |
test "$(npm view @playwright/cli@0.1.18 version --registry="$NPM_CONFIG_REGISTRY")" = "0.1.18"
npm install -g @playwright/cli@0.1.18 --registry="$NPM_CONFIG_REGISTRY"
Comment on lines +31 to +34
timeout-minutes: 10
tools:
bash:
- "*"
safe-outputs:
threat-detection:
enabled: false
add-comment:
hide-older-comments: true
timeout-minutes: 20
sandbox:
agent:
id: awf
runtime: gvisor
strict: false
post-steps:
- name: Validate Playwright loopback result
run: node scripts/ci/validate-playwright-loopback-smoke.js gvisor
---

# Smoke Test: Playwright CLI Loopback on gVisor

Run `bash scripts/ci/run-playwright-loopback-smoke.sh gvisor` exactly once. This starts
a server and Playwright browser inside the agent sandbox, verifies JavaScript
rendering over loopback, and verifies browser egress to a non-allowlisted domain
is blocked.

Read `/tmp/gh-aw/agent/playwright-loopback-results.json` and report the observed
results. On a pull request trigger, call `add_comment` with
`item_number: ${{ github.event.pull_request.number }}`. On `workflow_dispatch`,
call `noop`. Include this exact marker when successful:

`PLAYWRIGHT_LOOPBACK_RESULT runtime=gvisor loopback=pass javascript_title=pass blocked_egress=pass`
Loading
Loading