From 19ec1b9482734ffd42dccbe062933596f533d160 Mon Sep 17 00:00:00 2001 From: Jamal Carvalho Date: Fri, 28 Jan 2022 22:32:52 +0000 Subject: 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 Run-TryBot: Jamal Carvalho TryBot-Result: kokoro Reviewed-by: Jonathan Amsterdam --- devtools/docker/compose.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'devtools/docker') 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 -- cgit v1.3-6-g1900