File tree Expand file tree Collapse file tree 5 files changed +22
-10
lines changed Expand file tree Collapse file tree 5 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818
1919## [ Unreleased]
2020
21+ ## [ 0.6.1]
22+
2123### Fixed
2224
2325- Fixed excessive memory usage in ` AsyncWebhookView ` and ` SyncWebhookView ` caused by creating a new ` GitHubRouter ` instance on each request.
@@ -100,11 +102,12 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
100102
101103- Josh Thomas
< [email protected] > (maintainer)
102104
103- [ unreleased ] : https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.0 ...HEAD
105+ [ unreleased ] : https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.1 ...HEAD
104106[ 0.1.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.1.0
105107[ 0.2.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.0
106108[ 0.2.1 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.1
107109[ 0.3.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.3.0
108110[ 0.4.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.4.0
109111[ 0.5.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.5.0
110112[ 0.6.0 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.0
113+ [ 0.6.1 ] : https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.1
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Source = "https://github.com/joshuadavidthomas/django-github-app"
102102[tool .bumpver ]
103103commit = true
104104commit_message = " :bookmark: bump version {old_version} -> {new_version}"
105- current_version = " 0.6.0 "
105+ current_version = " 0.6.1 "
106106push = false # set to false for CI
107107tag = false
108108version_pattern = " MAJOR.MINOR.PATCH[PYTAGNUM]"
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- __version__ = "0.6.0 "
3+ __version__ = "0.6.1 "
Original file line number Diff line number Diff line change @@ -77,26 +77,35 @@ def test_duplicate_routers_without_module_level_router(self):
7777
7878 assert len (router_ids ) == 5
7979
80- @pytest .mark .limit_memory ("2.5MB" )
80+ @pytest .mark .limit_memory ("100KB" )
81+ @pytest .mark .xdist_group (group = "memory_tests" )
8182 def test_router_memory_stress_test (self ):
82- view_count = 50000
83+ view_count = 10000
8384 views = []
8485
8586 for _ in range (view_count ):
8687 view = View ()
8788 views .append (view )
8889
90+ view1_router = views [0 ].router
91+
8992 assert len (views ) == view_count
90- assert all (view .router is views [ 0 ]. router for view in views )
93+ assert all (view .router is view1_router for view in views )
9194
92- @pytest .mark .limit_memory ("4MB" )
95+ @pytest .mark .limit_memory ("1.5MB" )
96+ @pytest .mark .xdist_group (group = "memory_tests" )
97+ @pytest .mark .skip (
98+ "does not reliably allocate memory when run with other memory test"
99+ )
93100 def test_router_memory_stress_test_legacy (self ):
94- view_count = 50000
101+ view_count = 10000
95102 views = []
96103
97104 for _ in range (view_count ):
98105 view = LegacyView ()
99106 views .append (view )
100107
108+ view1_router = views [0 ].router
109+
101110 assert len (views ) == view_count
102- assert not all (view .router is views [ 0 ]. router for view in views )
111+ assert not all (view .router is view1_router for view in views )
Original file line number Diff line number Diff line change 44
55
66def test_version ():
7- assert __version__ == "0.6.0 "
7+ assert __version__ == "0.6.1 "
You can’t perform that action at this time.
0 commit comments