Skip to content

Re-enable SQLite-backed DBM tests on Windows - #10160

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:reenable-windows-sqlite-dbm-tests
Dec 4, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:reenable-windows-sqlite-dbm-tests

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Regenerate Lib/test/test_dbm.py from CPython v3.15.2 with update_lib. It is now byte-for-byte identical to upstream. This removes the Windows class-wide SQLite file-locking skip and re-enables 17 tests as a group.

Recent Windows RustPython CI already runs test_dbm_sqlite3. Current RustPython clears cached statements on connection close, but that alone does not prove the formerly skipped Windows cleanup cases. This draft intentionally leaves that confirmation to the new Windows CI run.

On Linux with identical SQLite 3.53.2 inputs, CPython and RustPython each passed 46 cases across test_dbm.TestCase_sqlite3 and test_dbm_sqlite3; the platform-specific URI test skipped. Forty-eight explicit-close controls on each runtime left no database/WAL/SHM descriptors open. Git hooks passed. No runtime code, test assertions, or CI conditions changed.

Refs #9852.

Regenerate test_dbm from CPython 3.15.2 with update_lib. Remove the historical class-wide Windows skip so the hosted suite exercises ordinary SQLite DBM open, close and cleanup.

Refs: RustPython#9852

Assisted-by: Codex:GPT-6.2
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • Lib/test/test_dbm.py is excluded by !Lib/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@youknowone
youknowone marked this pull request as ready for review December 4, 2026 02:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T02:20:19.144585Z 75c0b65 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@youknowone
youknowone merged commit 93310c9 into RustPython:main Dec 4, 2026
20 checks passed
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.

2 participants