Tests / confs/tests.py
TestSyncAnnouncements::test_uses_one_of_the_message_variations
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
23 ms
median 19 ms
max 42 ms
max 42 ms
Phases
Setup 2 ms
Call 21 ms
Teardown 0.39 ms
Categories
Database 18 ms
Factories 1 ms
Other (pytest, Libraries, Mocking, Unsampled) 4 ms
13 database queries per run
Needs 17 KB of memory (max 44 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup1 ms7.4%
__init____init__:-11 ms7.4%
signature<stdlib>/inspect.py:33431 ms7.4%
Signature.from_callable<stdlib>/inspect.py:30581 ms7.4%
_signature_from_callable<stdlib>/inspect.py:25281 ms7.4%
call13 ms90.7%
TestSyncAnnouncements.test_uses_one_of_the_message_variationsconfs/tests.py:9659 ms60.5%
TestSyncAnnouncements._syncconfs/tests.py:937 call_command("syncannouncements")9 ms60.5%
call_commanddjango/core/management/__init__.py:1959 ms60.5%
RichCommand.executedjango_rich/management/__init__.py:349 ms60.5%
BaseCommand.executedjango/core/management/base.py:4669 ms60.5%
Command.handleconfs/management/commands/syncannouncements.py:139 ms60.5%
sync_upcomingconfs/conference_announcements.py:107 for conference in upcoming:9 ms60.5%
QuerySet.__iter__django/db/models/query.py:4399 ms60.5%
QuerySet._fetch_alldjango/db/models/query.py:22629 ms60.5%
ModelIterable.__iter__django/db/models/query.py:1039 ms60.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms30.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7684 ms30.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:894 ms30.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:784 ms30.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3194 ms30.2%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5794 ms30.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms30.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms30.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms30.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms30.2%
Cursor.executepsycopg/cursor.py:1134 ms30.2%
Connection.waitpsycopg/connection.py:4954 ms30.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms30.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms30.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms30.2%
TestSyncAnnouncements.test_uses_one_of_the_message_variationsconfs/tests.py:963 conference = self._conference()4 ms30.2%
TestSyncAnnouncements._conferenceconfs/tests.py:933 return baker.make(Conference, **defaults)4 ms30.2%
makemodel_bakery/baker.py:1474 ms30.2%
Baker.createmodel_bakery/baker.py:3994 ms30.2%
Baker.__init__model_bakery/baker.py:4244 ms30.2%
Estimated from 4 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/conference_announcements.py:107
for conference in upcoming:
sync_upcoming
· Database
|
9 ms |
|
confs/tests.py:933
return baker.make(Conference, **defaults)
TestSyncAnnouncements._conference
· Factories
|
4 ms |
Fixtures
Exact setup time| _live_server_helper function | 0.08 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
13 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:963
|
13 ms |
|
setup __init__
__init__:-1
|
1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 14 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 19 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 15 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 16 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 22 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 17 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 42 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 37 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 12 ms | Run |