[MGNLTEST-54] VncSideKickContainer startup failure on Linux host prevents UI tests from running Created: 05/Jun/20  Updated: 07/Jul/20  Resolved: 11/Jun/20

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Rishab Dhar Assignee: Rishab Dhar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Host machine environment:

Linux version 5.3.0-53-generic (buildd@lgw01-amd64-016) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020

Magnolia build:

Version number : 6.2.2 (Snapshot: 2020.06.05 13:17:02)
Core version : 6.2.2-SNAPSHOT
Build : 5. June 2020 (rev. 3e3acc641d85efbb8b6c447d16abb59c1ccb53d1 of 285)
Edition : Community Edition


Attachments: Text File stacktrace.log    
Issue Links:
Relates
relates to MGNLTEST-56 Enable "Docker-hybrid-setup" to run U... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: core-TF-features-bugs-improvements
Story Points: 3

 Description   

Steps to reproduce

  • Set up environment for running UI tests - either using `Hybrid docker setup` or `Fully docker setup` recipe.
  • Run UI test e.g. info.magnolia.functionaltests.PagesCoreFunctionalTests from IDE using the test run instructions from ce/magnolia-integration-tests/tests/docs/ui-tests-setup-and-run-how-to.md

Actual behavior

The tests in the class fail to get executed because the VncSidekickContainer for recording tests does not get started up. A corresponding exception org.testcontainers.containers.ContainerLaunchException is also thrown. See the attached stacktrace for more details.

Expected behavior

Expect UI tests to run with recordings for the tests being stored in ce/magnolia-integration-tests/tests/target/failsafe-reports/recordings

Notes:

As a short term solution, consider disabling startup of VncSideKickContainer if the container startup fails. As a long term solution consider provisioning the VncSideKickContainer like the other containers part of the UI test run in a dockerized setup, and trigger only the start and stop of recording from the test-framework code. This makes the requirement of additional container more explicit, easier to use, and more deterministic.



 Comments   
Comment by Maxime Michel [ 12/Jun/20 ]

FWIW I have just tried to make the UI tests run on Ubuntu 20 and ran into a problem with the VNC recorder creating broken FLV files:

ubuntu@ip-172-30-100-173:/var/lib/jenkins/workspace/platform_dx-core_master/integration-tests/tests/target$ docker logs -f 563fe8749167 write_header: flv_version=1, audio=False, video=True write_metadata: {'duration': 0, 'width': 0, 'framerate': 30, 'videocodecid': 3, 'height': 0} start recording Socket error: [Errno 110] Connection timed out stop recording flush write_metadata: {'duration': 0.0, 'width': 0, 'framerate': 30, 'videocodecid': 3, 'height': 0}
Generated at Mon Feb 12 07:45:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.