Skip to content

Commit 3a12e47

Browse files
committed
v3.0.1: fix ./run, webrick
1 parent aa0d346 commit 3a12e47

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ and other spots online. One detail sets us apart: we do _not_ use
202202
Changelog and Update Instructions
203203
=================================
204204

205+
**3.0.1**, released 2020-04-09
206+
207+
Changes:
208+
209+
* Re-included "webrick", so specs can require it.
210+
* Re-included "xvfb-run", to fix ./run.
211+
* Nix "curl", which is unused.
212+
213+
To upgrade:
214+
215+
* Change `OVERVIEW_INTEGRATION_TESTER_VERSION` to `3.0.1`
216+
205217
**3.0.0**, released 2020-04-08
206218

207219
Changes:
@@ -216,6 +228,11 @@ To upgrade:
216228
`OVERVIEW_VERSION` to at least `a19aeed0cfcc2417a1ddc135f424ecf76748285b`
217229
* (To follow changes in `overview-server` project): set
218230
`DEVELOPMENT_PROJECT_NAME=overview-server`
231+
* Nix the `--shm-size` Docker flag from your `./run`.
232+
* If you modified your `run` script to invoke `xvfb-run`, remove the
233+
`--init` Docker flag.
234+
* Overwrite your `run` by downloading
235+
[run-browser @ v3.0.0](https://raw.githubusercontent.com/overview/overview-integration-tester/v3.0.0/skeleton/run-browser)
219236
* Overwrite your `run-browser` by downloading
220237
[run-browser @ v3.0.0](https://raw.githubusercontent.com/overview/overview-integration-tester/v3.0.0/skeleton/run-browser)
221238
* Overwrite your `spec/spec_helper.rb` with

docker/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
FROM alpine:3.11.5
22

3+
# ruby-json: generally useful
4+
# ruby-webrick: useful for tests to create plugin web servers
5+
# ruby-etc: required (but not depended on) by ruby-webrick
6+
# xvfb-run: used by ./run
7+
# x11vnc: used by ./run-browser
38
RUN apk add --no-cache \
49
ca-certificates \
510
chromium \
611
chromium-chromedriver \
7-
curl \
812
ruby \
13+
ruby-etc \
914
ruby-json \
1015
ruby-webrick \
1116
ttf-freefont \
1217
unzip \
1318
x11vnc \
1419
xvfb \
20+
xvfb-run \
1521
&& gem install bundler
1622

1723
WORKDIR /app
@@ -20,8 +26,6 @@ COPY Gemfile Gemfile.lock all-tests /app/
2026

2127
RUN apk add --no-cache --virtual build-deps \
2228
build-base \
23-
ca-certificates \
24-
curl \
2529
libxml2-dev \
2630
libxslt-dev \
2731
ruby-dev \

skeleton/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ ABSDIR="$(realpath "$DIR")"
55

66
set -e
77

8+
# shellcheck source=config
89
. "$DIR"/config
910

1011
IMAGE_NAME=overview/overview-integration-tester:$OVERVIEW_INTEGRATION_TESTER_VERSION
11-
docker image ls -q $IMAGE_NAME >/dev/null || docker pull $IMAGE_NAME
12+
docker image ls -q "$IMAGE_NAME" >/dev/null || docker pull "$IMAGE_NAME"
1213

1314
# [adamhooper, 2018-01-23] HEADLESS=true seems to break within_frame()
1415
# sporadically with Chrome 63 and Chromedriver 2.35. The closest report I can
@@ -30,6 +31,6 @@ exec docker run --rm -it \
3031
-v "$ABSDIR"/helpers:/app/helpers \
3132
-v "$ABSDIR"/reports:/app/reports \
3233
-v "$ABSDIR"/spec:/app/spec \
33-
--shm-size=2g \
34+
--init \
3435
"$IMAGE_NAME" \
3536
"$@"

skeleton/run-browser

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ABSDIR="$(realpath "$DIR")"
55

66
set -e
77

8+
# shellcheck source=config
89
. "$DIR"/config
910

1011
IMAGE_NAME=overview/overview-integration-tester:$OVERVIEW_INTEGRATION_TESTER_VERSION

test/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ cp -av "$DIR"/../skeleton "$DIR"/framework
77
cp -av "$DIR"/files-atop-framework/* "$DIR"/framework/
88
sed -ie 's/^WAIT_FOR_URLS=.*/WAIT_FOR_URLS="http:\/\/overview-web"/' "$DIR"/framework/config
99
"$DIR"/framework/run-in-docker-compose
10+
#"$DIR"/framework/run spec/login_spec.rb
1011
#"$DIR"/framework/run-browser ./all-tests

0 commit comments

Comments
 (0)