Bug 2120066 - Branding package build fail on system with country and language different from US and English.
Summary: Branding package build fail on system with country and language different fro...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Build.Maven
Version: ---
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ovirt-4.5.3
: ---
Assignee: bugs@ovirt.org
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-21 12:03 UTC by Abba Soungui YOUNOUSS
Modified: 2022-08-22 09:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-08-22 09:38:52 UTC
oVirt Team: Infra
Embargoed:
mperina: ovirt-4.5+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 607 0 None Merged Fix build on system using a language other than English. 2022-08-22 09:38:51 UTC
Red Hat Issue Tracker RHV-47847 0 None None None 2022-08-21 12:09:18 UTC

Description Abba Soungui YOUNOUSS 2022-08-21 12:03:39 UTC
Description of problem:
When you try to build ovirt-engine on a system using a language and/or country different from English and US (e.g French and Cameroon), the build of the module Branding package fails because during test phase, Maven Surefire uses OS Locale as default for getting some properties in MessageBundles, instead of en_US. 


Version-Release number of selected component (if applicable):
4.5.2

How reproducible:
Always

Steps to Reproduce:
1. Set the OS language and country to something other than English and US.
2. Follow Github documentation to deploy a development environment.
3. Launch the build of ovirt-engine.

Actual results:
The build fail with a message similar to this:

[ERROR] Failures: 
[ERROR]   BrandingThemeTest.testGetMessagesBundle:55 expected: <Login header> but was: <Login header(fr)>
[INFO] 
[ERROR] Tests run: 30, Failures: 1, Errors: 0, Skipped: 0



Expected results:
The build should consider the locale en_US as default and compile sucessfully.


Additional info:
Using JVM environment variables -Duser.country and -Duser.language doesn't solve the problem, however adding them in the argline element of the configuration section of Maven Surefire Plugin in the POM of ovirt-engine solves the problem.

Comment 1 RHEL Program Management 2022-08-22 09:38:16 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.


Note You need to log in before you can comment on or make changes to this bug.