Skip to content
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

gh-89289: Harden sqlite3.Connection init #92214

Merged
merged 2 commits into from
May 3, 2022

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented May 3, 2022

  • Make sure SQLite resources are freed if database open fails
  • Remove unneeded branches if init is aborted

Resolves #89289

- Make sure SQLite resources are freed if database open fails
- Remove unneeded branches if init is aborted
@erlend-aasland erlend-aasland added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 3, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit f01c13a 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 3, 2022
@erlend-aasland
Copy link
Contributor Author

Comments on CI/buildbot run:

  • PPC64LE RHEL7 Refleaks failed test_embed; probably not related
  • s390x Fedora Refleaks; ditto
  • macOS CI failed test_ssl with timeout errors; probably not related

@erlend-aasland
Copy link
Contributor Author

See the issue, and in particular #89289 (comment) for an explanation of parts of these changes.

@JelleZijlstra
Copy link
Member

Updated the branch to make sure the macOS failure really is a fluke.

@JelleZijlstra JelleZijlstra self-assigned this May 3, 2022
@JelleZijlstra JelleZijlstra merged commit c278474 into python:main May 3, 2022
@erlend-aasland erlend-aasland deleted the sqlite-harden-init branch May 3, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sqlite3] cleanup and harden Connection.__init__
3 participants