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

ProfileUploadTest::test_reject_invalid_gzip

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
38 ms
median 40 ms
max 56 ms
Phases
Setup 0.72 ms Call 37 ms Teardown 0.16 ms
Categories
Database 5 ms Other (Libraries, Unsampled, pytest, Logging) 33 ms

10 database queries per run

Needs 538 KB of memory (max 828 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call54 ms97.7%
ProfileUploadTest.test_reject_invalid_gzipapps/api/tests.py:605 response = self.upload(b"\x1f\x8bnot really gzip")54 ms97.7%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(54 ms97.7%
Client.postdjango/test/client.py:115354 ms97.7%
RequestFactory.postdjango/test/client.py:49954 ms97.7%
RequestFactory.genericdjango/test/client.py:67154 ms97.7%
Client.requestdjango/test/client.py:108254 ms97.7%
ClientHandler.__call__django/test/client.py:17354 ms97.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6254 ms97.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10454 ms97.7%
WhiteNoise.add_fileswhitenoise/base.py:10854 ms97.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12054 ms97.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13154 ms97.7%
WhiteNoise.get_static_filewhitenoise/base.py:20839 ms69.8%
StaticFile.__init__whitenoise/responders.py:7323 ms41.9%
StaticFile.get_headerswhitenoise/responders.py:1675 ms9.3%
StaticFile.get_headerswhitenoise/responders.py:1785 ms9.3%
parsedate<stdlib>/email/_parseaddr.py:1855 ms9.3%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms4.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1613 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1813 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1763 ms4.7%
formatdate<stdlib>/email/utils.py:2663 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1713 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1823 ms4.7%
StaticFile.__init__whitenoise/responders.py:745 ms9.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:835 ms9.3%
StaticFile.__init__whitenoise/responders.py:775 ms9.3%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms9.3%
StaticFile.__init__whitenoise/responders.py:765 ms9.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms4.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1903 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2028 ms14.0%
WhiteNoise.add_mime_headerswhitenoise/base.py:2163 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms9.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms4.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms4.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms4.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms4.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms4.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1783 ms4.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:643 ms4.7%
Estimated from 21 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:487
response = self.client.post(
ProfileUploadTest.upload · Libraries
54 ms

Fixtures

Exact setup time
_django_db_marker function 0.29 ms
_dj_autoclear_mailbox function 0.06 ms
_template_string_if_invalid_marker function 0.06 ms
_django_set_urlconf function 0.05 ms
_live_server_helper function 0.04 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.02 ms

Database

10 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:605
54 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 56 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 24 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 44 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 30 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 55 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 23 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 42 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 39 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 39 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 43 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 24 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 41 ms 78a4357 main Profile