Skip to content

Commit

Permalink
chore: mark v1.26.1 (#17606)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Sep 27, 2022
1 parent 4b22c3f commit 46fb26d
Show file tree
Hide file tree
Showing 18 changed files with 84 additions and 84 deletions.
26 changes: 13 additions & 13 deletions docs/src/ci.md
Expand Up @@ -176,7 +176,7 @@ steps:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
Expand All @@ -194,7 +194,7 @@ steps:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -218,7 +218,7 @@ steps:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
Expand All @@ -239,7 +239,7 @@ steps:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
Expand All @@ -264,7 +264,7 @@ steps:
name: 'Playwright Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
- deployment: Run_E2E_Tests
pool:
vmImage: ubuntu-20.04
container: mcr.microsoft.com/playwright:v1.26.0-focal
container: mcr.microsoft.com/playwright:v1.26.1-focal
environment: testing
strategy:
runOnce:
Expand All @@ -325,7 +325,7 @@ jobs:
- deployment: Run_E2E_Tests
pool:
vmImage: ubuntu-20.04
container: mcr.microsoft.com/playwright:v1.26.0-focal
container: mcr.microsoft.com/playwright:v1.26.1-focal
environment: testing
strategy:
runOnce:
Expand Down Expand Up @@ -368,7 +368,7 @@ Running Playwright on Circle CI is very similar to running on Github Actions. In
executors:
pw-focal-development:
docker:
- image: mcr.microsoft.com/playwright:v1.26.0-focal
- image: mcr.microsoft.com/playwright:v1.26.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
```
Expand Down Expand Up @@ -404,7 +404,7 @@ to run tests on Jenkins.

```groovy
pipeline {
agent { docker { image 'mcr.microsoft.com/playwright:v1.26.0-focal' } }
agent { docker { image 'mcr.microsoft.com/playwright:v1.26.1-focal' } }
stages {
stage('e2e-tests') {
steps {
Expand All @@ -422,7 +422,7 @@ pipeline {
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.md)).

```yml
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
```

### GitLab CI
Expand All @@ -435,7 +435,7 @@ stages:

tests:
stage: test
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
script:
...
```
Expand All @@ -451,7 +451,7 @@ stages:

tests:
stage: test
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
parallel: 7
script:
- npm ci
Expand All @@ -466,7 +466,7 @@ stages:

tests:
stage: test
image: mcr.microsoft.com/playwright:v1.26.0-focal
image: mcr.microsoft.com/playwright:v1.26.1-focal
parallel:
matrix:
- PROJECT: ['chromium', 'webkit']
Expand Down
24 changes: 12 additions & 12 deletions docs/src/docker.md
Expand Up @@ -14,19 +14,19 @@ This image is published on [Docker Hub].
### Pull the image

```bash js
docker pull mcr.microsoft.com/playwright:v1.26.0-focal
docker pull mcr.microsoft.com/playwright:v1.26.1-focal
```

```bash python
docker pull mcr.microsoft.com/playwright/python:v1.26.0-focal
docker pull mcr.microsoft.com/playwright/python:v1.26.1-focal
```

```bash csharp
docker pull mcr.microsoft.com/playwright/dotnet:v1.26.0-focal
docker pull mcr.microsoft.com/playwright/dotnet:v1.26.1-focal
```

```bash java
docker pull mcr.microsoft.com/playwright/java:v1.26.0-focal
docker pull mcr.microsoft.com/playwright/java:v1.26.1-focal
```

### Run the image
Expand All @@ -38,39 +38,39 @@ By default, the Docker image will use the `root` user to run the browsers. This
On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers.

```bash js
docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.26.1-focal /bin/bash
```

```bash python
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.26.1-focal /bin/bash
```

```bash csharp
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.26.1-focal /bin/bash
```

```bash java
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.26.1-focal /bin/bash
```

#### Crawling and scraping

On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it.

```bash js
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.26.1-focal /bin/bash
```

```bash python
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.26.1-focal /bin/bash
```

```bash csharp
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.26.1-focal /bin/bash
```

```bash java
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.26.0-focal /bin/bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.26.1-focal /bin/bash
```

[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions:
Expand Down
4 changes: 2 additions & 2 deletions docs/src/release-notes-js.md
Expand Up @@ -81,7 +81,7 @@ This version was also tested against the following stable channels:

### Announcements

* 🎁 We now ship Ubuntu 22.04 Jammy Jellyfish docker image: `mcr.microsoft.com/playwright:v1.26.0-jammy`.
* 🎁 We now ship Ubuntu 22.04 Jammy Jellyfish docker image: `mcr.microsoft.com/playwright:v1.26.1-jammy`.
* 🪦 This is the last release with macOS 10.15 support (deprecated as of 1.21).
* 🪦 This is the last release with Node.js 12 support, we recommend upgrading to Node.js LTS (16).
* ⚠️ Ubuntu 18 is now deprecated and will not be supported as of Dec 2022.
Expand Down Expand Up @@ -331,7 +331,7 @@ Read more about [component testing with Playwright](./test-components).
}
});
```
* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.26.0-jammy`.
* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.26.1-jammy`.

### ⚠️ Breaking Changes ⚠️

Expand Down
2 changes: 1 addition & 1 deletion docs/src/release-notes-python.md
Expand Up @@ -48,7 +48,7 @@ This version was also tested against the following stable channels:

### Announcements

* 🎁 We now ship Ubuntu 22.04 Jammy Jellyfish docker image: `mcr.microsoft.com/playwright/python:v1.26.0-jammy`.
* 🎁 We now ship Ubuntu 22.04 Jammy Jellyfish docker image: `mcr.microsoft.com/playwright/python:v1.26.1-jammy`.
* 🪦 This is the last release with macOS 10.15 support (deprecated as of 1.21).
* ⚠️ Ubuntu 18 is now deprecated and will not be supported as of Dec 2022.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/test-snapshots-js.md
Expand Up @@ -56,7 +56,7 @@ The snapshot name `example-test-1-chromium-darwin.png` consists of a few parts:
If you are not on the same operating system as your CI system, you can use Docker to generate/update the screenshots:

```bash
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.26.1-focal /bin/bash
npm install
npx playwright test --update-snapshots
```
Expand Down

0 comments on commit 46fb26d

Please sign in to comment.