diff options
| author | Jamal Carvalho <jamal@golang.org> | 2022-01-28 22:32:52 +0000 |
|---|---|---|
| committer | Jamal Carvalho <jamal@golang.org> | 2022-01-31 19:09:51 +0000 |
| commit | 19ec1b9482734ffd42dccbe062933596f533d160 (patch) | |
| tree | 049326e26d445bca6d5694cb394b29be61864508 /devtools/docker | |
| parent | b7b7129ed82f18b0d4e41badd47a400ba051beef (diff) | |
| download | go-x-pkgsite-19ec1b9482734ffd42dccbe062933596f533d160.tar.xz | |
devtools,tests: use screentest for visual diff testing
Screentest is a visual diff testing tool installed from
x/website. This change adds a screentest check to pkgsite
as the first step in replacing the nodejs based e2e tests.
Postgres data is persisted across test runs to speed up
reruns of the test on dev machine.
Change-Id: If0aa12b109ff67033e230c84c549fb10a2beeb46
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/381815
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'devtools/docker')
| -rw-r--r-- | devtools/docker/compose.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/devtools/docker/compose.yaml b/devtools/docker/compose.yaml index fcd06364..c5ac6968 100644 --- a/devtools/docker/compose.yaml +++ b/devtools/docker/compose.yaml @@ -134,6 +134,8 @@ services: POSTGRES_DB: ${GO_DISCOVERY_DATABASE_NAME:-discovery-db} POSTGRES_PASSWORD: ${GO_DISCOVERY_DATABASE_PASSWORD:-postgres} POSTGRES_USER: ${GO_DISCOVERY_DATABASE_USER:-postgres} + volumes: + - pgdata:/var/lib/postgresql/data nodejs: image: node:14.17.0 environment: @@ -153,6 +155,10 @@ services: image: browserless/chrome:1.46.0-puppeteer-10.1.0 environment: - CONNECTION_TIMEOUT=240000 + chromedp: + # This should match the version we are using in tests/screentest/run.sh. + image: chromedp/headless-shell:97.0.4692.71 + shm_size: 8G go: # This should match the version we are using on AppEngine. image: golang:1.16.7 @@ -166,3 +172,4 @@ services: working_dir: /pkgsite volumes: gomodcache: + pgdata:
\ No newline at end of file |
