Skip to content

Ignore aiosqlite 0.22.0 - #1729

Merged
puddly merged 1 commit into
zigpy:devfrom
puddly:puddly/pin-aiosqlite
Dec 18, 2025
Merged

puddly merged 1 commit into
zigpy:devfrom
puddly:puddly/pin-aiosqlite

Conversation

@puddly

@puddly puddly commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator

0.22.0 changes the background thread behavior but does not fix the underlying race condition where await db.close() doesn't actually wait for the thread to join.

Copilot AI review requested due to automatic review settings December 18, 2025 18:26
@codecov

codecov Bot commented Dec 18, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (4f09003) to head (c72e793).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1729   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files          63       63           
  Lines       12272    12272           
=======================================
  Hits        12186    12186           
  Misses         86       86           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restricts the aiosqlite dependency to exclude version 0.22.0 due to a race condition where await db.close() doesn't properly wait for the background thread to join, despite changes to the background thread behavior in that version.

  • Adds upper bound constraint to exclude aiosqlite 0.22.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
"attrs",
"aiohttp",
"aiosqlite>=0.20.0",
"aiosqlite>=0.20.0,<0.22.0",

Copilot AI Dec 18, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version constraint <0.22.0 only excludes version 0.22.0 specifically. If version 0.23.0 or later is released with the same race condition, it will still be allowed by this constraint. Consider using !=0.22.0 instead to only exclude the problematic version, or add an upper bound like <0.23.0 if you want to prevent automatic upgrades to untested versions until the race condition is confirmed fixed.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will 0.23.0 be allowed by >=0.20.0,<0.22.0?

@puddly
puddly merged commit 027a204 into zigpy:dev Dec 18, 2025
18 checks passed
mineshaftgap pushed a commit to mineshaftgap/zigpy that referenced this pull request Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants