-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Python 3.12. This required a bunch of changes all over the place, listed below in a random order. Fix tests, especially around SSL connections. Stop requiring typing-extensions. Enable tracemalloc for tests, and add the possibility to run the tests with profiling enabled. Fix some issues identified by tracemalloc, like sockets not being closed in case of SSL handshake failures. Remove the CI test reporting plugin, it does not work easily with forked repos anyway. Fix checking of module versions, make the comparison accurate. Not sure how it worked before, but it looks like it did not match exactly the format in the server INFO response, i.e. MMmmPP. Remove loggers from tests, it's just noise in the output. If we don't use asserts, nobody will check the log output from CI. Speed up the computation for slots when initializing a cluster. After profiling, this turned out to be very slow, when it does not have to be. It does not make sense to recompute the same thing over and over in a loop. Run uvloop tests in matrix, i.e. don't bundle two tests executions (without uvloop and with it) in the same job. Easier to spot failures like this, and arguably the jobs can be scheduled in parallel so the overall execution is faster. Unlock urllib version, to be able to use more recent pytest versions. --------- Co-authored-by: Gabriel Erzse <gabriel.erzse@redis.com>
- Loading branch information
1 parent
68f9450
commit 1d932e0
Showing
19 changed files
with
194 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ exclude = | |
ignore = | ||
E126 | ||
E203 | ||
E231 | ||
E701 | ||
E704 | ||
F405 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,6 @@ coverage.xml | |
.venv* | ||
*.xml | ||
.coverage* | ||
prof | ||
profile_output* | ||
docker/stunnel/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.