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

TestGithubMarketplaceHookEndpoint::test_github_marketplace_hook

First seen 2 years, 9 months ago in 7c258a9
CI github-actions:test 5 runs
Average
53 ms
median 56 ms
max 63 ms
Phases
Setup 10 ms Call 42 ms Teardown 0.89 ms
Categories
Database 13 ms Other (Libraries, Unsampled, Imports, pytest) 40 ms

8 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 44 minutes ago · open run
Show pytest frames
setup11 ms18.4%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()11 ms18.4%
TestCase._enter_atomicsdjango/test/testcases.py:139611 ms18.4%
Atomic.__enter__django/db/transaction.py:19811 ms18.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms18.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30311 ms18.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms18.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms18.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms18.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms16.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms16.6%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms16.6%
Connection.connectpsycopg/connection.py:1099 ms16.6%
wait_connpsycopg/waiting.py:1414 ms7.4%
EpollSelector.select<stdlib>/selectors.py:4524 ms7.4%
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%
Connection.waitpsycopg/connection.py:4951 ms1.8%
call46 ms80.5%
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hookapps/api/tests.py:464 response = self.client.post(40 ms70.0%
Client.postdjango/test/client.py:115340 ms70.0%
RequestFactory.postdjango/test/client.py:49940 ms70.0%
RequestFactory.genericdjango/test/client.py:67140 ms70.0%
Client.requestdjango/test/client.py:108240 ms70.0%
ClientHandler.__call__django/test/client.py:17326 ms45.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6226 ms45.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10426 ms45.5%
WhiteNoise.add_fileswhitenoise/base.py:10826 ms45.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12022 ms38.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms35.0%
WhiteNoise.get_static_filewhitenoise/base.py:20816 ms28.0%
StaticFile.__init__whitenoise/responders.py:728 ms14.0%
StaticFile.get_file_statswhitenoise/responders.py:1618 ms14.0%
__init____init__:-16 ms10.5%
FileEntry.__init__whitenoise/responders.py:2606 ms10.5%
<GC>~6 ms10.5%
StaticFile.__init__whitenoise/responders.py:774 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms7.0%
StaticFile.__init__whitenoise/responders.py:762 ms3.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.5%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms3.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms3.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms3.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms7.0%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2602 ms3.5%
scantreewhitenoise/base.py:2602 ms3.5%
ClientHandler.__call__django/test/client.py:18614 ms24.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14114 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13014 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30912 ms21.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms21.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30912 ms21.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms21.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3412 ms21.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms21.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19812 ms21.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6512 ms21.0%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3712 ms21.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6412 ms21.0%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7012 ms21.0%
github_marketplace_hookapps/api/urls.py:178 github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))10 ms17.5%
Task.delaypotatoq/task.py:25710 ms17.5%
Task.apply_asyncpotatoq/task.py:28110 ms17.5%
Task.build_messagepotatoq/task.py:34210 ms17.5%
Task.resolved_ignore_resultpotatoq/task.py:23510 ms17.5%
Potatoq.results_enabled_by_defaultpotatoq/app.py:49110 ms17.5%
broker_for_urlpotatoq/brokers/__init__.py:4510 ms17.5%
import_module<stdlib>/importlib/__init__.py:8810 ms17.5%
_gcd_import<frozen importlib._bootstrap>:139010 ms17.5%
_find_and_load<frozen importlib._bootstrap>:135010 ms17.5%
_find_and_load_unlocked<frozen importlib._bootstrap>:130910 ms17.5%
_load_unlocked<frozen importlib._bootstrap>:91510 ms17.5%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7438 ms14.0%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8778 ms14.0%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8068 ms14.0%
_call_with_frames_removed<frozen importlib._bootstrap>:5498 ms14.0%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7472 ms3.5%
_call_with_frames_removed<frozen importlib._bootstrap>:5492 ms3.5%
<module>potatoq/brokers/memory.py2 ms3.5%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3512 ms3.5%
Coverage._should_tracecoverage/control.py:4532 ms3.5%
InOrOut.should_tracecoverage/inorout.py:3642 ms3.5%
canonical_filenamecoverage/files.py:852 ms3.5%
github_marketplace_hookapps/api/urls.py:177 GithubMarketplaceHook.objects.create(data=data).save()2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.createdjango/db/models/query.py:6692 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11672 ms3.5%
Model._do_insertdjango/db/models/base.py:12182 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet._insertdjango/db/models/query.py:19182 ms3.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3082 ms3.5%
MessageMiddleware.process_requestdjango/contrib/messages/middleware.py:122 ms3.5%
default_storagedjango/contrib/messages/storage/__init__.py:122 ms3.5%
FallbackStorage.__init__django/contrib/messages/storage/fallback.py:172 ms3.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms3.5%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms3.5%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms3.5%
Atomic.__enter__django/db/transaction.py:2112 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.5%
TestGithubMarketplaceHookEndpoint.test_github_marketplace_hookapps/api/tests.py:471 obj = GithubMarketplaceHook.objects.get()2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms3.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms3.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
Estimated from 33 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
28 ms
apps/api/urls.py:178
github_marketplace_hook_email.delay(data.get("action"), data.get("sender"))
github_marketplace_hook · Imports
10 ms
apps/api/urls.py:177
GithubMarketplaceHook.objects.create(data=data).save()
github_marketplace_hook · Database
2 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 9 ms
_django_setup_unittest class 0.28 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

8 queries · 4 ms
No repeated queries.

Biggest pieces of work

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

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
44 minutes ago CI github-actions:test passed 57 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 55 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 63 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 34 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 56 ms 78a4357 main Profile
2 years ago CI github-actions passed 90 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 97 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 175 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 95 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 95 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 92 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 86 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 88 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 84 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 87 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 84 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 87 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 87 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 86 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 83 ms 1680367 main Run