Skip to content
Closed
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
44 changes: 0 additions & 44 deletions .github/workflows/tests_components.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/tests_mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15, windows-latest]
os: [macos-15]
runs-on: ${{ matrix.os }}
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed
Expand All @@ -44,7 +44,7 @@ jobs:
- uses: ./.github/actions/run-test
with:
node-version: "20"
command: npm run test-mcp
command: DEBUG=pw:browser npm run ctest-mcp -- --reporter=list
bot-name: "mcp-${{ matrix.os }}"
flakiness-client-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
flakiness-tenant-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
Expand Down
199 changes: 0 additions & 199 deletions .github/workflows/tests_primary.yml

This file was deleted.

1 change: 1 addition & 0 deletions packages/playwright-core/src/server/browserContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@
// Cleanup.
const promises: Promise<void>[] = [];
for (const { context, artifact } of this._browser._idToVideo.values()) {
console.error('Waiting for video to finish before closing context', context === this, artifact.localPath());

Check failure on line 536 in packages/playwright-core/src/server/browserContext.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
// Wait for the videos to finish.
if (context === this)
promises.push(artifact.finishedPromise());
Expand Down
6 changes: 6 additions & 0 deletions packages/playwright-core/src/server/videoRecorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
}

writeFrame(frame: Buffer, timestamp: number) {
console.error('Writing frame at timestamp', timestamp);

Check failure on line 115 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
this._launchPromise.then(error => {
if (error)
return;
Expand All @@ -121,6 +122,7 @@

private _writeFrame(frame: Buffer, timestamp: number) {
assert(this._process);
console.error('VideoRecorder: _writeFrame', this._isStopped, { timestamp });

Check failure on line 125 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
if (this._isStopped)
return;

Expand Down Expand Up @@ -155,6 +157,7 @@
async stop() {
// Only report the error on stop. This allows to make the constructor synchronous.
const error = await this._launchPromise;
console.error('Stopping video recorder, error:', error);

Check failure on line 160 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
if (error)
throw error;
if (this._isStopped || !this._lastFrame)
Expand All @@ -165,9 +168,12 @@
this._writeFrame(Buffer.from([]), this._lastFrame.timestamp + addTime);
this._isStopped = true;
try {
console.error('will wait _lastWritePromise');

Check failure on line 171 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
await this._lastWritePromise;
await this._gracefullyClose!();
console.error('did stop video recorder');

Check failure on line 174 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
} catch (e) {
console.error('Error while stopping ffmpeg', e);

Check failure on line 176 in packages/playwright-core/src/server/videoRecorder.ts

View workflow job for this annotation

GitHub Actions / docs & lint

Unexpected console statement
debugLogger.log('error', `ffmpeg failed to stop: ${String(e)}`);
}
}
Expand Down
Loading
Loading