flakytest.dev anze3db flakytest
Tests / apps/api/tests.py

TestGithubMarketplaceHookEndpoint::test_github_marketplace_hook

First seen 2 years, 10 months ago in 7c258a9
CI github-actions:test 12 runs
Average
50 ms
median 55 ms
max 66 ms
Phases
Setup 9 ms Call 40 ms Teardown 0.85 ms
Categories
Database 16 ms Other (Libraries, Imports, Unsampled, pytest) 34 ms

8 database queries per run

Needs 0 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup9 ms16.6%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms16.6%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms16.6%
Atomic.__enter__django/db/transaction.py:1989 ms16.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms16.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms16.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms16.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms16.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms16.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms14.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms14.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms14.7%
Connection.connectpsycopg/connection.py:1098 ms14.7%
wait_connpsycopg/waiting.py:1413 ms5.5%
EpollSelector.select<stdlib>/selectors.py:4523 ms5.5%
wait_connpsycopg/waiting.py:1453 ms5.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms5.5%
wait_connpsycopg/waiting.py:1362 ms3.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms3.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms1.8%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms1.8%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms1.8%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
call45 ms82.4%
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hookapps/api/tests.py:464 response = self.client.post(45 ms82.4%
Client.postdjango/test/client.py:115345 ms82.4%
RequestFactory.postdjango/test/client.py:49945 ms82.4%
RequestFactory.genericdjango/test/client.py:67145 ms82.4%
Client.requestdjango/test/client.py:108245 ms82.4%
ClientHandler.__call__django/test/client.py:18624 ms44.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14124 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13024 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12324 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3424 ms44.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms44.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19824 ms44.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6524 ms44.9%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3724 ms44.9%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6424 ms44.9%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7024 ms44.9%
github_marketplace_hookapps/api/urls.py:178 github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))24 ms44.9%
Task.delaypotatoq/task.py:25724 ms44.9%
Task.apply_asyncpotatoq/task.py:28124 ms44.9%
Task.build_messagepotatoq/task.py:34224 ms44.9%
Task.resolved_ignore_resultpotatoq/task.py:23524 ms44.9%
Potatoq.results_enabled_by_defaultpotatoq/app.py:49124 ms44.9%
broker_for_urlpotatoq/brokers/__init__.py:4524 ms44.9%
import_module<stdlib>/importlib/__init__.py:8824 ms44.9%
_gcd_import<frozen importlib._bootstrap>:138924 ms44.9%
_find_and_load<frozen importlib._bootstrap>:135324 ms44.9%
_find_and_load_unlocked<frozen importlib._bootstrap>:124924 ms44.9%
_load_unlocked<frozen importlib._bootstrap>:85724 ms44.9%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74724 ms44.9%
SourceLoader.get_code<frozen importlib._bootstrap_external>:88124 ms44.9%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:81024 ms44.9%
_call_with_frames_removed<frozen importlib._bootstrap>:49124 ms44.9%
ClientHandler.__call__django/test/client.py:17320 ms37.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms37.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms33.7%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms33.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms30.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms26.2%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms15.0%
StaticFile.__init__whitenoise/responders.py:734 ms7.5%
StaticFile.get_headerswhitenoise/responders.py:1764 ms7.5%
formatdate<stdlib>/email/utils.py:2662 ms3.7%
format_datetime<stdlib>/email/utils.py:2842 ms3.7%
StaticFile.__init__whitenoise/responders.py:762 ms3.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.7%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms3.7%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms7.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms7.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms3.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms3.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2092 ms3.7%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms3.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2642 ms3.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:752 ms3.7%
Estimated from 31 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/urls.py:178
github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))
github_marketplace_hook · Imports
24 ms
apps/api/tests.py:464
response = self.client.post(
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hook · Libraries
20 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestGithubMarketplaceHookEndpoint class 8 ms
_django_setup_unittest class 0.28 ms
_template_string_if_invalid_marker function 0.06 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

8 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:464
45 ms
setup setUpClass
django/test/testcases.py:1423
9 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 54 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 28 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 48 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 45 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 66 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 32 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 59 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 57 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 55 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 63 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 34 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 56 ms 78a4357 main Profile