You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1 #84987
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-01-06.00:04:50.476>created_at=<Date2020-05-28.17:47:38.365>labels= ['3.8', 'type-feature', 'library', '3.9', '3.10']
title='sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1'updated_at=<Date2021-01-06.00:05:08.010>user='https://github.com/erlend-aasland'
CheckTraceCallbackContent() in [Lib/sqlite3/test/hooks.py](https://github.com/python/cpython/blob/main/Lib/sqlite3/test/hooks.py) fails for SQLite versions 3.7.3 through 3.7.14.1, apparently because of an SQLite bug that was fixed in 3.7.15 (2012-12-12). Extract from the changelog https://sqlite.org/changes.html:
Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors.
Either we fix tests for SQLite < 3.7.15, or we drop support for SQLite < 3.7.15. (I'm +1 for the latter.)
NB: Versions pre 3.7.3 does not build at all, because of sqlite3_create_function_v2(). See bpo-40744 and #64529.
Could you please check https://distrowatch.com/ and verify that all major Linux distributions have a sufficient version of sqlite. Please also check LTS like Debian oldstable, Ubuntu, and CentOS.
Debian oldstable (jessie) has sqlite 3.8.7.1
Ubuntu 14.04 LTS (trusty) has sqlite 3.8.2
CentOS 7 and 8 has sqlite versions > 3.7.15
The following distributions include sqlite version _less than_ 3.7.15:
• Porteus (release v2.1 and older)
• OLPC OS
• HardenedBSD
• 0Linux / FreePBX (release v10 and older)
• ToOpPy Linux
• Baruwa Enterprise Edition
Activity
erlend-aasland commentedon May 28, 2020
CheckTraceCallbackContent()in[Lib/sqlite3/test/hooks.py](https://github.com/python/cpython/blob/main/Lib/sqlite3/test/hooks.py)fails for SQLite versions 3.7.3 through 3.7.14.1, apparently because of an SQLite bug that was fixed in 3.7.15 (2012-12-12). Extract from the changelog https://sqlite.org/changes.html:Either we fix tests for SQLite < 3.7.15, or we drop support for SQLite < 3.7.15. (I'm +1 for the latter.)
NB: Versions pre 3.7.3 does not build at all, because of
sqlite3_create_function_v2(). See bpo-40744 and #64529.erlend-aasland commentedon May 28, 2020
Also related to bpo-26187
tiran commentedon May 28, 2020
Could you please check https://distrowatch.com/ and verify that all major Linux distributions have a sufficient version of sqlite. Please also check LTS like Debian oldstable, Ubuntu, and CentOS.
erlend-aasland commentedon May 28, 2020
Debian oldstable (jessie) has sqlite 3.8.7.1
Ubuntu 14.04 LTS (trusty) has sqlite 3.8.2
CentOS 7 and 8 has sqlite versions > 3.7.15
The following distributions include sqlite version _less than_ 3.7.15:
• Porteus (release v2.1 and older)
• OLPC OS
• HardenedBSD
• 0Linux / FreePBX (release v10 and older)
• ToOpPy Linux
• Baruwa Enterprise Edition
The other hits were inactive distros.
https://distrowatch.com/search.php?pkg=sqlite&relation=less&pkgver=3.7.15&distrorange=InLatest#pkgsearch
berkerpeksag commentedon May 28, 2020
+1 for dropping support for < 3.7.15 in master. We should fix or skip tests in maintenance branches.
2 remaining items
miss-islington commentedon Jan 4, 2021
New changeset f7f0ed5 by Erlend Egeberg Aasland in branch 'master':
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
f7f0ed5
gvanrossum commentedon Jan 4, 2021
Please ping this issue if the backports don't auto-merge after the tests pass, or if the tests fail.
erlend-aasland commentedon Jan 4, 2021
PR's for fixing the tests in 3.9 and 3.8 are now awaiting merge. PR for dropping support for SQLite pre 3.7.15 in master is opened.
miss-islington commentedon Jan 4, 2021
New changeset 0ccac5f by Miss Islington (bot) in branch '3.8':
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
0ccac5f
miss-islington commentedon Jan 4, 2021
New changeset 80e5732 by Miss Islington (bot) in branch '3.9':
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
80e5732
brandtbucher commentedon Jan 5, 2021
It looks like the markup in the NEWS entry broke Travis on master. I guess that's one downside of Travis not being a required job anymore.
berkerpeksag commentedon Jan 6, 2021
New changeset cf0b239 by Erlend Egeberg Aasland in branch 'master':
bpo-40810: Require SQLite 3.7.15 (GH-24106)
cf0b239
berkerpeksag commentedon Jan 6, 2021
I think this is now done. Thank you, Erlend!