Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-45243: Use connection limits to simplify sqlite3 tests#29356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-45243: Use connection limits to simplify sqlite3 tests #29356
Uh oh!
There was an error while loading. Please reload this page.
Conversation
erlend-aasland commented Nov 2, 2021 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
13a40b0 to 07d012aCompare07d012a to 8cdb980Comparesqlite3 testsbedevere-bot commented Nov 2, 2021
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 22adb06 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bigmem tests rewriting does not look correct to me. These tests are specially purposed to test the integer overflow. They try with scripts of specific length (slightly below or above INT_MAX). It does not make sense to test scripts with smaller length. They are decorated with bigmemtest because they require a large amount of RAM and should be skipped if it is not enough.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Nov 2, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
The C code explicitly checks the current connection limit (
cpython/Modules/_sqlite/cursor.c Lines 730 to 737 in 77a1f8d
cpython/Modules/_sqlite/statement.c Lines 62 to 68 in 77a1f8d
|
erlend-aasland commented Nov 2, 2021
@serhiy-storchaka, let me know if you want me to revert the bigmem tests. I believe it is correct to change them, though (see my previous comment). |
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let change these tests.
Uh oh!
There was an error while loading. Please reload this page.
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Nov 4, 2021
Thanks for reviewing, @serhiy-storchaka. What do you think of my proposed patch in #29356 (comment)? I guess it is out of scope for this PR, but I think we should apply it. |
erlend-aasland commented Nov 4, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
FYI, I'll merge in |
erlend-aasland commented Nov 5, 2021
CI is ok; ready for merge :) I'll create an issue regarding the length checks. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
build-in round is missing if SQLITE_OMIT_FLOATING_POINT is defined
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Nov 5, 2021
Thank you for reviewing, Serhiy. The PR is in a better shape now. |
https://bugs.python.org/issue45243