From 3ab63e831433e3f331fa3a93f412d27d0bb021b9 Mon Sep 17 00:00:00 2001 From: Marco Geweke Date: Fri, 17 May 2024 10:48:20 +0200 Subject: [PATCH] Release 4.12.1 --- HISTORY.md | 4 ++++ README.md | 23 +---------------------- build.gradle | 2 +- cli/graalvm/build-native-image.sh | 8 ++++---- cli/graalvm/prepare-native-image-build.sh | 10 +++++----- docs/CLI.md | 2 +- docs/WEB.md | 2 +- web/Dockerfile | 2 +- 8 files changed, 18 insertions(+), 35 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 307bcb5c..78c1d2d8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # JLineup Release History +## Release 4.12.1 - 2024-05-17 +* Bugfix: Possible NullPointerException in Pixelmatch implementation +* Update: Selenium was updated to 4.21.0 + ## Release 4.12.0 - 2024-05-15 * Improvement: Set some more Chrome options to try to improve deterministic rendering * Improvement: The max detected color difference is now printed in the report, additionally diff --git a/README.md b/README.md index aa60504f..ce34ed30 100644 --- a/README.md +++ b/README.md @@ -7,27 +7,6 @@ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/otto-de/jlineup?label=GitHub Release)](https://github.com/otto-de/jlineup/releases) ![](https://snyk-widget.herokuapp.com/badge/mvn/de.otto/jlineup-cli/badge.svg) -## News - -**2024-05-07**: **JLineup 4.11.1** is here! This release contains an improved anti-alias detection ported from Pixelmatch. -It also fixes some bugs, updates dependencies and masks sensitive data in the log and report output. - -**2024-04-10**: **JLineup 4.10.0** is out! This release contains dependency updates and the brand-new Lambda module. It -allows you to run the screenshot creation in a lambda function, and it can speed up the process significantly. We have this -running in an internal beta. Documentation will follow soon. - -**2023-12-19**: Ho ho ho, **JLineup 4.9.2** is here! This should fix the flaky Chrome [issue](https://github.com/SeleniumHQ/selenium/issues/13091) with problems parsing a JSON response. - -**2023-08-16**: **JLineup 4.9.0**, which fixes latest Chromedriver issues, requires **Java 17** or later due to dependency updates that have this requirement. - -**2023-03-09**: **Chrome 111** requires a new parameter to fix the connection with the current Selenium version built -into JLineup. This was added in [JLineup 4.8.3](https://github.com/otto-de/jlineup/releases/tag/v4.8.3). Background -information may be found in this [thread](https://groups.google.com/g/chromedriver-users/c/xL5-13_qGaA/m/oTA9W3cQAgAJ). - -**2023-02-14**: **Chrome 110** replaced the "old" `--headless` parameter, that was used by JLineup. If you face problems with CHROME_HEADLESS runs, -please update to [JLineup 4.8.3](https://github.com/otto-de/jlineup/releases/tag/v4.8.3), which uses the new `--headless=new` parameter. -Chrome headless mode's device size specifications now include the Browser controls and the window frame, except you switch to mobile emulation. - ## About JLineup is a tool which is useful for automated visual regression tests of web pages, especially in continuous delivery pipelines. @@ -91,7 +70,7 @@ JLineup CLI comes as executable Java Archive. Java 17 or higher has to be availa Open a terminal and download it like this: - wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.12.0/jlineup-cli-4.12.0.jar -O jlineup.jar + wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.12.1/jlineup-cli-4.12.1.jar -O jlineup.jar Then type diff --git a/build.gradle b/build.gradle index d3b38b44..abe9fde0 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ plugins { //\ ///\ ////\ -def jlineup_version = "4.12.1-SNAPSHOT" +def jlineup_version = "4.12.1" ///// //// /// diff --git a/cli/graalvm/build-native-image.sh b/cli/graalvm/build-native-image.sh index fc6b63b2..455db560 100755 --- a/cli/graalvm/build-native-image.sh +++ b/cli/graalvm/build-native-image.sh @@ -64,7 +64,7 @@ cd cli `#--static` \ `#-H:+TraceSecurityServices` \ `#-H:+TraceClassInitialization` \ --jar build/libs/jlineup-cli-4.12.0-all.jar +-jar build/libs/jlineup-cli-4.12.1-all.jar echo "" echo "DONE BUILDING NATIVE IMAGE" @@ -76,13 +76,13 @@ echo "" echo "STARTING TEST RUN" echo "" -mv jlineup-cli-4.12.0-all build/libs/jlineup-cli-4.12.0-all +mv jlineup-cli-4.12.1-all build/libs/jlineup-cli-4.12.1-all rm ~/.m2/repository/webdriver -rf -./build/libs/jlineup-cli-4.12.0-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step before +./build/libs/jlineup-cli-4.12.1-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step before set +e -./build/libs/jlineup-cli-4.12.0-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step after +./build/libs/jlineup-cli-4.12.1-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step after set -e diff --git a/cli/graalvm/prepare-native-image-build.sh b/cli/graalvm/prepare-native-image-build.sh index 4ad05067..0872577c 100755 --- a/cli/graalvm/prepare-native-image-build.sh +++ b/cli/graalvm/prepare-native-image-build.sh @@ -45,10 +45,10 @@ echo "" echo "$JAVA_HOME" cd cli -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-output-dir=graalvm -jar build/libs/jlineup-cli-4.12.0-all.jar --config graalvm/lineup_chrome_headless.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.0-all.jar --config graalvm/lineup_chrome_headless.json --step after || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.0-all.jar --config graalvm/lineup_firefox_headless.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.0-all.jar --config graalvm/lineup_chrome.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.0-all.jar --url www.otto.de --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-output-dir=graalvm -jar build/libs/jlineup-cli-4.12.1-all.jar --config graalvm/lineup_chrome_headless.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.1-all.jar --config graalvm/lineup_chrome_headless.json --step after || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.1-all.jar --config graalvm/lineup_firefox_headless.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.1-all.jar --config graalvm/lineup_chrome.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.12.1-all.jar --url www.otto.de --step before || true #-J-Djava.security.properties=graalvm/java.security.overrides \ diff --git a/docs/CLI.md b/docs/CLI.md index a417aaf8..233eb42f 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -11,7 +11,7 @@ support. It may also work under MacOS or Windows, but we don't test this. You can simply download the CLI version by getting the jlineup-cli.jar from Maven Central in a terminal window: -`wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.12.0/jlineup-cli-4.12.0.jar -O jlineup.jar` +`wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.12.1/jlineup-cli-4.12.1.jar -O jlineup.jar` Now you have a `jlineup.jar` in your current directory. diff --git a/docs/WEB.md b/docs/WEB.md index 4017ce82..bfc993ae 100644 --- a/docs/WEB.md +++ b/docs/WEB.md @@ -8,7 +8,7 @@ interface to take JLineup jobs. JLineup WEB requires at least Java 17. You can simply download the web version by getting the jlineup-web.jar from Maven Central in a terminal window: -`wget https://repo1.maven.org/maven2/de/otto/jlineup-web/4.12.0/jlineup-web-4.12.0.jar -O jlineup-web.jar` +`wget https://repo1.maven.org/maven2/de/otto/jlineup-web/4.12.1/jlineup-web-4.12.1.jar -O jlineup-web.jar` Now you have a `jlineup-web.jar` in your current directory. diff --git a/web/Dockerfile b/web/Dockerfile index c6de9072..04f7c92e 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y wget \ && apt-get install -yf chromium-browser firefox libjpeg-progs \ - && wget -U "jlineup-docker" -O jlineup-web.jar https://repo1.maven.org/maven2/de/otto/jlineup-web/4.12.0/jlineup-web-4.12.0.jar + && wget -U "jlineup-docker" -O jlineup-web.jar https://repo1.maven.org/maven2/de/otto/jlineup-web/4.12.1/jlineup-web-4.12.1.jar ADD docker/application.yml application.yml RUN apt-get remove --auto-remove perl -yf && apt-get purge --auto-remove perl -yf EXPOSE 8080