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 15 runs
Average
47 ms
median 50 ms
max 66 ms
Phases
Setup 9 ms Call 38 ms Teardown 0.78 ms
Categories
Database 15 ms Other (Libraries, Imports, Unsampled, pytest) 32 ms

8 database queries per run

Needs 1 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup7 ms20.2%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms20.2%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms20.2%
Atomic.__enter__django/db/transaction.py:1987 ms20.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms20.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms20.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms20.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms20.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms20.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms17.7%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms17.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms17.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3336 ms17.7%
Connection.connectpsycopg/connection.py:1096 ms17.7%
wait_connpsycopg/waiting.py:1415 ms12.6%
EpollSelector.select<stdlib>/selectors.py:4525 ms12.6%
wait_connpsycopg/waiting.py:1452 ms5.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms5.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.91 ms2.5%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.91 ms2.5%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.91 ms2.5%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.91 ms2.5%
Cursor.executepsycopg/cursor.py:1130.91 ms2.5%
Connection.waitpsycopg/connection.py:4950.91 ms2.5%
call28 ms78.6%
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hookapps/api/tests.py:464 response = self.client.post(23 ms63.9%
Client.postdjango/test/client.py:115323 ms63.9%
RequestFactory.postdjango/test/client.py:49923 ms63.9%
RequestFactory.genericdjango/test/client.py:67123 ms63.9%
Client.requestdjango/test/client.py:108223 ms63.9%
ClientHandler.__call__django/test/client.py:17316 ms44.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms44.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms39.3%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms39.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms29.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms24.6%
WhiteNoise.get_static_filewhitenoise/base.py:2087 ms19.7%
StaticFile.__init__whitenoise/responders.py:774 ms9.8%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms4.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms4.9%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms4.9%
<GC>~2 ms4.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.9%
StaticFile.__init__whitenoise/responders.py:722 ms4.9%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.9%
__init____init__:-12 ms4.9%
FileEntry.__init__whitenoise/responders.py:2632 ms4.9%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms4.9%
<GC>~2 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms4.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms4.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms4.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms4.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2122 ms4.9%
urljoin<stdlib>/urllib/parse.py:7072 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2644 ms9.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms4.9%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms4.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms4.9%
StaticFile.__init__whitenoise/responders.py:762 ms4.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms4.9%
ClientHandler.__call__django/test/client.py:1867 ms19.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms19.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:657 ms19.7%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:377 ms19.7%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:647 ms19.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:707 ms19.7%
github_marketplace_hookapps/api/urls.py:178 github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))7 ms19.7%
Task.delaypotatoq/task.py:2577 ms19.7%
Task.apply_asyncpotatoq/task.py:2817 ms19.7%
Task.build_messagepotatoq/task.py:3427 ms19.7%
Task.resolved_ignore_resultpotatoq/task.py:2357 ms19.7%
Potatoq.results_enabled_by_defaultpotatoq/app.py:4917 ms19.7%
broker_for_urlpotatoq/brokers/__init__.py:457 ms19.7%
import_module<stdlib>/importlib/__init__.py:887 ms19.7%
_gcd_import<frozen importlib._bootstrap>:13897 ms19.7%
_find_and_load<frozen importlib._bootstrap>:13537 ms19.7%
_find_and_load_unlocked<frozen importlib._bootstrap>:12495 ms14.7%
_load_unlocked<frozen importlib._bootstrap>:8575 ms14.7%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7475 ms14.7%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8815 ms14.7%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8105 ms14.7%
_call_with_frames_removed<frozen importlib._bootstrap>:4915 ms14.7%
_find_and_load_unlocked<frozen importlib._bootstrap>:12382 ms4.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.9%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.9%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.9%
Atomic.__enter__django/db/transaction.py:2112 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hookapps/api/tests.py:471 obj = GithubMarketplaceHook.objects.get()2 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.9%
QuerySet.getdjango/db/models/query.py:6352 ms4.9%
QuerySet.__len__django/db/models/query.py:3722 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.9%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms4.9%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms4.9%
Atomic.__exit__django/db/transaction.py:2862 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms4.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:464
response = self.client.post(
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hook · Libraries
16 ms
apps/api/urls.py:178
github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))
github_marketplace_hook · Imports
7 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
6 ms
apps/api/tests.py:471
obj = GithubMarketplaceHook.objects.get()
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hook · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestGithubMarketplaceHookEndpoint class 6 ms
_django_setup_unittest class 0.18 ms
_dj_autoclear_mailbox function 0.05 ms
_live_server_helper function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

8 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:464
25 ms
setup setUpClass
django/test/testcases.py:1423
7 ms
call _pre_setup
django/test/testcases.py:1164
2 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

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