bpo-42064: Add module backref to sqlite3 callback context#28242
Conversation
|
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 9150dfc 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
|
The |
Sorry, something went wrong.
|
FYI, the windows and asan CI failures are unrelated. |
Sorry, something went wrong.
|
Whoa, that's certainly a big PR. |
Sorry, something went wrong.
Did you filter out the auto-generated clinic changes? (You can use the |
Sorry, something went wrong.
encukou
left a comment
There was a problem hiding this comment.
This looks good, thanks!
One nitpick: it might not be not immediately clear that create_callback_context needs the defining class (i.e. exactly the Connection class, not a subclass which could have a different module). Do you want to add a comment on that?
Sorry, something went wrong.
Thanks for reviewing :)
Yes, that's a good idea. |
Sorry, something went wrong.
|
PTAL |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Arch Linux Asan Debug 3.x has failed when building commit 09c04e7. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/585/builds/655 Summary of the results of the build (if available): Click to see traceback logsremote: Enumerating objects: 8, done.
remote: Counting objects: 12% (1/8)
remote: Counting objects: 25% (2/8)
remote: Counting objects: 37% (3/8)
remote: Counting objects: 50% (4/8)
remote: Counting objects: 62% (5/8)
remote: Counting objects: 75% (6/8)
remote: Counting objects: 87% (7/8)
remote: Counting objects: 100% (8/8)
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 12% (1/8)
remote: Compressing objects: 25% (2/8)
remote: Compressing objects: 37% (3/8)
remote: Compressing objects: 50% (4/8)
remote: Compressing objects: 62% (5/8)
remote: Compressing objects: 75% (6/8)
remote: Compressing objects: 87% (7/8)
remote: Compressing objects: 100% (8/8)
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 0), reused 1 (delta 0), pack-reused 0
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '09c04e7f0d26f0006964554b6a0caa5ef7f0bd24'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 09c04e7f0d [bpo-42064](https://bugs.python.org/issue42064): Add module backref to `sqlite3` callback context (GH-28242)
Switched to and reset branch 'main'
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
make: *** [Makefile:1352: buildbottest] Terminated
Cannot open file '/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan_debug/build/test-results.xml' for upload |
Sorry, something went wrong.
Make sure that the module state will always outlive the callback context
by holding a strong reference to the module object in the callback
context.
https://bugs.python.org/issue42064