-
Bug
-
Resolution: Done
-
Normal
-
None
-
rhos-18.0.0
Hello,
we observe a failure in RPM job executed as part of Component CI for OSP 18
```
aodh.tests.functional.api.v2.test_alarm_scenarios.TestAlarmsRuleThreshold.test_post_invalid_alarm_statistic
-----------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/zuul/src/code.engineering.redhat.com/aodh/aodh/tests/base.py", line 121, in skip_if_not_implemented
return func(*args, **kwargs)
File "/home/zuul/src/code.engineering.redhat.com/aodh/aodh/tests/functional/api/v2/test_alarm_scenarios.py", line 2175, in test_post_invalid_alarm_statistic
self.assertIn(expected_err_msg,
File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 399, in assertIn
self.assertThat(haystack, Contains(needle), message)
File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 480, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: "aggregation_method should be in ['count', 'mean', 'max', 'min', 'first', 'last', 'std'] not magic" not in "aggregation_method should be in ['count'] not magic"
```
^--- and a few similar errors.
What we do in the job, is:
– we fetch the spec file and install the RPM dependencies listed there,
– we install some missing RPMs identified (that should be in spec file probably, but they are not),
– we run the tests defined in tox.
The additional RPMs we install are listed here:
https://github.com/RedHatCRE/znoyder/blob/6e728306f860ed90054144fefa454d5cd90cc4d0/znoyder/config.d/43-override-OSP-18.yml#L41
So, in essence, this is a tox job but with truncated requirement.txt and site-packages enabled.
You can use this change for debugging the issue.
https://code.engineering.redhat.com/gerrit/c/aodh/+/446895
Yours,
Szymon