Giter Site home page Giter Site logo

vaadin / client-server-addon-template Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 5.0 100 KB

Client-server Vaadin add-on template using Lit.

Home Page: https://vaadin.com/directory

License: Apache License 2.0

Java 70.28% CSS 3.43% TypeScript 26.30%
java template-repository typescript vaadin webcomponents

client-server-addon-template's Introduction

client-server-addon-template's People

Contributors

manolo avatar mcollovati avatar mstahv avatar samie avatar vaadin-bot avatar zhesun88 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

client-server-addon-template's Issues

PiT 24.2: webdriver: project validation ITs do not pass in linux

Description

IT Tests are failing when running them in a docker container running Linux, like the one used in github actions.

Note that it was working previously, and manifested when running PiT 24.2.0.alpha7 but not when it was run in PiT 24.2.0.alpha6 , so perhaps it's a problem in chrome or webdriver, etc, but apparently not a problem in flow or platform

Error

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 21.08 s <<< FAILURE! -- in org.vaadin.addons.sample.ExampleViewIT
[ERROR] org.vaadin.addons.sample.ExampleViewIT.componentIsPresent[any_Chrome_] -- Time elapsed: 19.58 s <<< ERROR!
org.openqa.selenium.SessionNotCreatedException:
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: '0f4a2f400820', ip: '172.17.0.2'
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:232)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:159)
	at org.openqa.selenium.chromium.ChromiumDriver.<init>(ChromiumDriver.java:108)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:88)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:83)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:72)
	at org.vaadin.addons.sample.AbstractTestBenchIntegrationTest.setup(AbstractTestBenchIntegrationTest.java:107)
...
Caused by: org.openqa.selenium.WebDriverException: Driver server process died prematurely.
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.8'
Driver info: driver.version: ChromeDriver
	at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:237)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:119)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518)
	... 30 more

How to reproduce

Option 1 - Docker

  1. Run the docker image
docker pull catthehacker/ubuntu:runner-latest
docker run --rm -it catthehacker/ubuntu:runner-latest
  1. Switch to root
sudo su
  1. Install some utility software
apt-get update
apt-get -y install ca-certificates sudo unzip wget jq curl vim
  1. install java 17 and maven
curl -sL -o /tmp/jdk.tgz https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.8%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.8_7.tar.gz
mkdir /tmp/jdk && tar xzf /tmp/jdk.tgz -C /tmp/jdk --strip-components 1
ln -s /tmp/jdk/bin/java /usr/bin

curl -sL -o /tmp/mvn.tgz https://archive.apache.org/dist/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz
mkdir /tmp/mvn && tar xzf /tmp/mvn.tgz -C /tmp/mvn --strip-components 1
ln -s /tmp/mvn/bin/mvn /usr/bin
  1. Exit root
exit
  1. Add a valid TB license
mkdir -p ~/.vaadin && echo '{"username":"...","proKey":"..."}' > ~/.vaadin/proKey
  1. Clone and run the project
git clone https://github.com/vaadin/client-server-addon-template.git
cd client-server-addon-template
mvn clean install -Pproduction,it \
  -Dcom.vaadin.testbench.Parameters.testsInParallel=2 \
  -Dcom.vaadin.testbench.Parameters.headless=true -Dheadless 

Option 2 - Gitpod

  1. open the project https://github.com/vaadin/client-server-addon-template in Gitpod
  2. set java 17 sdk as default
sdk install java 17.0.0-tem 
  1. Run the project
mvn clean install -Pproduction,it \
  -Dcom.vaadin.testbench.Parameters.testsInParallel=2 \
  -Dcom.vaadin.testbench.Parameters.headless=true -Dheadless 

Versions

Linux: ubuntu 22.04.2 LTS
Vaadin: 24.2.0.alpha7 and previous

PiT 24.2: client-server addon template does not work in production mode

  1. Checkout the project
git clone https://github.com/vaadin/client-server-addon-template.git
cd client-server-addon-template
  1. When running the project in dev mode mvn clean jetty:run , the addon is displayed and working properly
    Screenshot 2023-08-02 at 12 08 33

  2. But if I try in production mode mvn clean install -Pproduction && mvn -Pproduction jetty:run, it fails without any error
    Screenshot 2023-08-02 at 12 06 44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.