Skip to content

Re-enable NSKIP047 - #864

Merged
ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/047
Aug 5, 2026
Merged

ppenna merged 1 commit into
nanvix/v3.12.3from
nskip/047

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jul 31, 2026

Copy link
Copy Markdown

Closes #527

What

Add test_dbm / test_dbm_gnu / test_dbm_ndbm to the test list; drop the NSKIP047 module skips.

Why

Redundant: the tests self-skip when the C backends are absent. (Backends still unbuilt.)
Verified the full lifecycle on Linux.

Copilot AI lite review requested due to automatic review settings July 31, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown

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 aims to re-enable the dbm-related tests for Nanvix by removing the NSKIP047 module-level skips and adding test_dbm, test_dbm_gnu, and test_dbm_ndbm to the Nanvix test manifest list.

Changes:

  • Removed the Nanvix-specific NSKIP047 module skips from test_dbm, test_dbm_gnu, and test_dbm_ndbm.
  • Added test_dbm, test_dbm_gnu, and test_dbm_ndbm to the .nanvix SDK image test list.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
Lib/test/test_dbm.py Removes Nanvix module skip that previously prevented running dbm backend tests on Nanvix.
Lib/test/test_dbm_gnu.py Removes Nanvix module skip and relies on import_helper.import_module() self-skip behavior.
Lib/test/test_dbm_ndbm.py Removes Nanvix module skip and relies on import_helper.import_module() self-skip behavior.
.nanvix/src/config.py Adds dbm-related tests to the Nanvix SDK image test manifest.

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

Comment thread Lib/test/test_dbm.py
Comment on lines 3 to 5
from test.support import is_nanvix
import unittest
if is_nanvix:
raise unittest.SkipTest("NSKIP047: _dbm/_gdbm/_ndbm C backends N/A on Nanvix (configure.ac:7268)")

Comment thread Lib/test/test_dbm_gnu.py
Comment on lines 1 to 3
from test.support import is_nanvix
import unittest
if is_nanvix:
raise unittest.SkipTest("NSKIP047: _dbm/_gdbm/_ndbm C backends N/A on Nanvix (configure.ac:7268)") # detail: only _gdbm needed for this module

Comment thread Lib/test/test_dbm_ndbm.py
Comment on lines 1 to 3
from test.support import is_nanvix
import unittest
if is_nanvix:
raise unittest.SkipTest("NSKIP047: _dbm/_gdbm/_ndbm C backends N/A on Nanvix (configure.ac:7268)") # detail: only _dbm needed for this module

Copilot AI review requested due to automatic review settings August 3, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Suppressed comments (3)

Lib/test/test_dbm.py:6

  • Removing the Nanvix module-level skip makes this test run with the fallback pure-Python backend (dbm.dumb) when no C dbm backends are built. On Nanvix, dbm.dumb._commit() uses os.rename() (Lib/dbm/dumb.py:126), and Nanvix already skips dbm.dumb tests for NSKIP021 because rename() hangs the kernel. Without a guard here, running test_dbm on Nanvix can hang rather than cleanly skip.
from test.support import is_nanvix
import unittest

import dbm

Lib/test/test_dbm_ndbm.py:2

  • is_nanvix is now unused after removing the Nanvix-specific skip. Keeping it adds dead imports and makes it easier to miss real platform guards.
from test.support import is_nanvix
import unittest

Lib/test/test_dbm_gnu.py:2

  • is_nanvix is now unused after removing the Nanvix-specific skip. Keeping it adds dead imports and makes it easier to miss real platform guards.
from test.support import is_nanvix
import unittest

@ada-x64
ada-x64 marked this pull request as ready for review August 3, 2026 14:41
Redundant: the tests self-skip when the C backends are absent. (Backends still unbuilt.)
Copilot AI review requested due to automatic review settings August 5, 2026 20:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review details

Suppressed comments (3)

Lib/test/test_dbm_gnu.py:3

  • is_nanvix is now unused after removing the Nanvix-only SkipTest, so this import should be dropped.
from test.support import is_nanvix
import unittest

Lib/test/test_dbm_ndbm.py:3

  • is_nanvix is now unused after removing the Nanvix-only SkipTest, so this import should be dropped.
from test.support import is_nanvix
import unittest

Lib/test/test_dbm.py:5

  • is_nanvix is now unused after removing the Nanvix-only SkipTest, so this import should be dropped to avoid dead code.
from test.support import is_nanvix
import unittest

  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .nanvix/src/config.py Resolved
@ppenna
ppenna merged commit c3fa40b into nanvix/v3.12.3 Aug 5, 2026
13 checks passed
@ppenna
ppenna deleted the nskip/047 branch August 5, 2026 20:39
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.

[NSKIP047] _dbm/_gdbm/_ndbm C backends N/A on Nanvix

3 participants