TestKeys - test_get_launchpad_crashes_for_user_not_found

Bug #1990873 reported by Alexsander de Souza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Adam Collard

Bug Description

http://maas-ci.internal:8080/job/maas-tester/748/consoleText

[2022-09-23T13:24:50.727Z] ======================================================================
[2022-09-23T13:24:50.727Z] FAIL: maasserver.utils.tests.test_keys.TestKeys.test_get_launchpad_crashes_for_user_not_found
[2022-09-23T13:24:50.727Z] maasserver.utils.tests.test_keys.TestKeys.test_get_launchpad_crashes_for_user_not_found
[2022-09-23T13:24:50.728Z] ----------------------------------------------------------------------
[2022-09-23T13:24:50.728Z] testtools.testresult.real._StringException: testtools.testresult.real._StringException: Empty attachments:
[2022-09-23T13:24:50.728Z] Twisted logs
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] Seeds: {{{MAAS_RAND_SEED=f7f8b96b10ed07fd PYTHONHASHSEED=2740712418}}}
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] Traceback (most recent call last):
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 724, in _execute_once_for_engine
[2022-09-23T13:24:50.728Z] result = self.execute_once(data)
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 662, in execute_once
[2022-09-23T13:24:50.728Z] result = self.test_runner(data, run)
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/executors.py", line 47, in default_new_style_executor
[2022-09-23T13:24:50.728Z] return function(data)
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 658, in run
[2022-09-23T13:24:50.728Z] return test(*args, **kwargs)
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/src/maasserver/utils/tests/test_keys.py", line 89, in test_get_launchpad_crashes_for_user_not_found
[2022-09-23T13:24:50.728Z] def test_get_launchpad_crashes_for_user_not_found(self, error):
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 610, in test
[2022-09-23T13:24:50.728Z] raise DeadlineExceeded(runtime, self.settings.deadline)
[2022-09-23T13:24:50.728Z] hypothesis.errors.DeadlineExceeded: Test took 466.36ms, which exceeds the deadline of 200.00ms
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] The above exception was the direct cause of the following exception:
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] Traceback (most recent call last):
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/src/maasserver/utils/tests/test_keys.py", line 89, in test_get_launchpad_crashes_for_user_not_found
[2022-09-23T13:24:50.728Z] def test_get_launchpad_crashes_for_user_not_found(self, error):
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 1235, in wrapped_test
[2022-09-23T13:24:50.728Z] raise the_error_hypothesis_found
[2022-09-23T13:24:50.728Z] File "/run/build/checkout/.ve/lib/python3.10/site-packages/hypothesis/core.py", line 905, in __flaky
[2022-09-23T13:24:50.728Z] raise Flaky(message) from cause
[2022-09-23T13:24:50.728Z] hypothesis.errors.Flaky: Hypothesis test_get_launchpad_crashes_for_user_not_found(self=<maasserver.utils.tests.test_keys.TestKeys.test_get_launchpad_crashes_for_user_not_found id=0x7f60d4baa620>, error=<HTTPStatus.NOT_FOUND: 404>) produces unreliable results: Falsified on the first call but did not on a subsequent one
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] -------------------- >> begin captured stdout << ---------------------
[2022-09-23T13:24:50.728Z] Falsifying example: test_get_launchpad_crashes_for_user_not_found(
[2022-09-23T13:24:50.728Z] error=<HTTPStatus.NOT_FOUND: 404>,
[2022-09-23T13:24:50.728Z] self=<maasserver.utils.tests.test_keys.TestKeys.test_get_launchpad_crashes_for_user_not_found id=0x7f60d4baa620>,
[2022-09-23T13:24:50.728Z] )
[2022-09-23T13:24:50.728Z] Unreliable test timings! On an initial run, this test took 466.36ms, which exceeded the deadline of 200.00ms, but on a subsequent run it took 3.83 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None.
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] You can reproduce this example by temporarily adding @reproduce_failure('6.46.9', b'AAA=') as a decorator on your test case
[2022-09-23T13:24:50.728Z]
[2022-09-23T13:24:50.728Z] --------------------- >> end captured stdout << ----------------------
[2022-09-23T13:24:50.728Z]

Tags: flaky-test

Related branches

description: updated
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 3.3.0
Changed in maas:
assignee: nobody → Adam Collard (adam-collard)
Changed in maas:
status: Triaged → Fix Committed
tags: added: flaky-test
summary: - [flaky test] TestKeys - test_get_launchpad_crashes_for_user_not_found
+ TestKeys - test_get_launchpad_crashes_for_user_not_found
Changed in maas:
milestone: 3.3.0 → 3.3.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.