Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904124 - games-strategy/freeorion-0.5 fails tests
Summary: games-strategy/freeorion-0.5 fails tests
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-10 12:54 UTC by Agostino Sarubbo
Modified: 2023-04-13 20:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,717.96 KB, text/plain)
2023-04-10 12:54 UTC, Agostino Sarubbo
Details
1-LastTest.log (1-LastTest.log,288.42 KB, text/plain)
2023-04-10 12:54 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-04-10 12:54:17 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-strategy/freeorion-0.5 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-04-10 12:54:19 UTC
CC'ing also the author of the commit (caf3802e7acd436a4a2c2b6bc2991921194b51e4)
Comment 2 Agostino Sarubbo gentoo-dev 2023-04-10 12:54:20 UTC
Created attachment 859803 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2023-04-10 12:54:22 UTC
Created attachment 859804 [details]
1-LastTest.log

1-LastTest.log
Comment 4 Agostino Sarubbo gentoo-dev 2023-04-10 12:54:23 UTC
Error(s) that match a know pattern:


	  2 - TestPythonParser (Failed)
	  3 - SmokeTestGame (Failed)
	  4 - SmokeTestHostless (Failed)
-- Could NOT find CPPCheck (missing: CPPCHECK_EXECUTABLE) 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE) 
fatal: not a git repository (or any parent up to mount point /var/tmp)
Comment 5 Oleg 2023-04-13 11:17:14 UTC
I suppose it happends because we call tests on CI with `cmake --build . --target unittest` which calls each test in separate process while here binaries with multiple tests are called once, which leads to issues with multiple initialization of global variables.
Comment 6 Alexey 2023-04-13 20:15:59 UTC
Re CPPCheck, Flake8

They are testing code quality, and probably the check/ subdir should be disabled altogether in the ebuild. This is only useful for upstream CI.

> fatal: not a git repository (or any parent up to mount point /var/tmp)

This is an internal output of git which is run by cmake/make_versioncpp.py, and its failure is ignored by the script.

> cmake --build . --target unittest

Here it's called like this: ctest -j 43 --test-load 999 -j1, which still produces multiple binaries (gg_unittest, fo_unittest_parse, fo_unittest_util, fo_systemtest_game), not one.