Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862471 - [guru] dev-python/python-heatclient-2.5.1 fails tests (lto)
Summary: [guru] dev-python/python-heatclient-2.5.1 fails tests (lto)
Status: RESOLVED OBSOLETE
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 883357
  Show dependency tree
 
Reported: 2022-07-31 07:39 UTC by Agostino Sarubbo
Modified: 2024-04-07 20:32 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,324.81 KB, text/plain)
2022-07-31 07:39 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 2022-07-31 07:39:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/python-heatclient-2.5.1 fails tests (lto).
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing

Here is a bit of explanation:

-Werror=lto-type-mismatch:
User to find possible runtime issues in packages. It likely means the package is unsafe to build & use with LTO.
For projects using the same identifier but with different types across different files, they must be fixed to be consistent across the codebase.

-Werror=odr:
Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO. C++ code must comply with the One Definition Rule (ODR) - see https://en.cppreference.com/w/cpp/language/definition#One_Definition_Rule.

-Werror=strict-aliasing:
Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO.

Workarounds:
- If upstream is friendly and still active, file a bug upstream. For emulators, codecs, games, or multimedia packages, it may be worth just applying a workaround instead, as upstreams sometimes aren't receptive to these bugs (VALID FOR ALL).
- Use the new 'filter-lto' from flag-o-matic.eclass as it's likely to be unsafe with LTO (VALID FOR lto-type-mismatch - odr).
- Fix it yourself if interested, of course (VALID FOR ALL).
- Append-flags -fno-strict-aliasing (VALID FOR strict-aliasing).
- Use memcpy() but a union is sometimes suitable too (VALID FOR strict-aliasing).
- -fstrict-aliasing is implied by -O2, so this must be addressed in some form (VALID FOR strict-aliasing).

See also: https://marc.info/?l=gentoo-dev&m=165639574126280&w=2
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-31 07:39:39 UTC
Created attachment 795997 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-31 07:39:40 UTC
Error(s) that match a know pattern:


AttributeError: 'DerivedConfigTest' object has no attribute 'result'
AttributeError: 'DerivedConfigTest' object has no attribute 'result_error'
AttributeError: 'EnvVarTest' object has no attribute 'remove'
AttributeError: 'EnvVarTestToken' object has no attribute 'remove'
AttributeError: 'ShellParamValidationTest' object has no attribute 'command'
AttributeError: 'ShellTestEvents' object has no attribute 'event_id_one'
AttributeError: 'StackManagerNoPaginationTest' object has no attribute 'total'
AttributeError: 'StackManagerPaginationTest' object has no attribute 'offset'
AttributeError: 'StackStatusActionTest' object has no attribute 'action'
AttributeError: 'TestEventShow' object has no attribute 'format'
AttributeError: 'TestStackShow' object has no attribute 'format'
AttributeError: 'YamlParseExceptions' object has no attribute 'raised_exception'
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_heat_template_validate_hot
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_heat_template_validate_yaml
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_empty_lists
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_fake_action
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_help_cmd
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_resource_type_list
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_resource_type_show
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_stack_list_debug
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_stack_list_property
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_stack_not_found
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_template_function_list
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_template_version_list
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_openstack_version
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_orchestration_template_validate_hot
FAILED heatclient/tests/functional/osc/v1/test_readonly.py::SimpleReadOnlyOpenStackClientTest::test_orchestration_template_validate_yaml
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_create_minimal_from_file
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_create_minimal_from_url
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_delete
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_show
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_snapshot_create_restore
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_snapshot_delete
FAILED heatclient/tests/functional/osc/v1/test_stack.py::OpenStackClientStackTest::test_stack_suspend_resume
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_bash_completion
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_fake_action
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_help
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_help_cmd
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_resource_template_fmt_arg_long_json
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_resource_template_fmt_arg_short_yaml
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_resource_template_fmt_default
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_resource_type_list
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_resource_type_show
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_stack_list
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_stack_list_debug
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_template_function_list
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_template_validate_hot
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_template_validate_yaml
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_template_version_list
FAILED heatclient/tests/functional/test_readonly_heat.py::SimpleReadOnlyHeatClientTest::test_heat_version
FAILED heatclient/tests/unit/osc/v1/test_event.py::TestEventShow::test_event_show
FAILED heatclient/tests/unit/osc/v1/test_stack.py::TestStackShow::test_stack_show
FAILED heatclient/tests/unit/osc/v1/test_stack.py::TestStackShow::test_stack_show_explicit_no_resolve
FAILED heatclient/tests/unit/test_deployment_utils.py::DerivedConfigTest::test_build_derived_config_params
FAILED heatclient/tests/unit/test_deployment_utils.py::TempURLSignalTest::test_create_temp_url
FAILED heatclient/tests/unit/test_environment_format.py::YamlParseExceptions::test_parse_to_value_exception
FAILED heatclient/tests/unit/test_shell.py::EnvVarTest::test_missing_auth
FAILED heatclient/tests/unit/test_shell.py::EnvVarTestToken::test_missing_auth
FAILED heatclient/tests/unit/test_shell.py::ShellParamValidationTest::test_bad_parameters
FAILED heatclient/tests/unit/test_shell.py::ShellTestEvents::test_event_list
FAILED heatclient/tests/unit/test_shell.py::ShellTestEvents::test_event_show
FAILED heatclient/tests/unit/test_shell.py::ShellTestEvents::test_stack_event_list_log
FAILED heatclient/tests/unit/test_stacks.py::StackManagerNoPaginationTest::test_stack_list_no_pagination
FAILED heatclient/tests/unit/test_stacks.py::StackManagerPaginationTest::test_stack_list_pagination
FAILED heatclient/tests/unit/test_stacks.py::StackStatusActionTest::test_status_action
FAILED heatclient/tests/unit/test_template_format.py::YamlParseExceptions::test_parse_to_value_exception
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/python-heatclient-2.5.1/work/python-heatclient-2.5.1/.tox/functional/bin/heat'
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/python-heatclient-2.5.1/work/python-heatclient-2.5.1/.tox/functional/bin/openstack'
testtools.matchers._impl.MismatchError: 'http://fake-host.com:8080/v1/AUTH_demo/bar-e16a6b33-ed56-4094-bcb0-fa01107ee063/312f7968-443f-4da6-82ba-da6c637e9ae4?temp_url_sig=6416c4067887a13afba902d7cfb07a6b1e36b8a765e574ca418200128bc115af&temp_url_expires=1659245805' does not match /http://fake-host.com:8080/v1/AUTH_demo/bar-[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}\?temp_url_sig=[0-9a-f]{40}&temp_url_expires=[0-9]{10}/
Comment 3 Julien 2024-04-07 20:32:33 UTC
commit 3a32a7ae360fce31d1119f35dd60c7c632a457d8
Author: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Date:   Sun Feb 19 10:15:35 2023 +0500

    dev-python/python-heatclient: treeclean
    
    Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>