Skip to content

Regression: 1.15+ fails on macOS, while 1.14.4 works fine #432

Closed

Description

@jamadden

Versions of testgres prior to 1.15 work correctly on macOS. But with the shift to "internal_platform_utils", macOS no longer works in 1.15 or 1.16. Instead, you get NotImplementedError:

  File "/../postgres.py", line 224, in setUp
    node.start()
  File "/../python3.13/site-packages/testgres/node.py", line 1187, in start
    self._manually_started_pm_pid = self._get_node_state().pid
  File "/../python3.13/site-packages/testgres/node.py", line 1079, in _get_node_state
    return utils.get_pg_node_state(
  File "/../python3.13/site-packages/testgres/utils.py", line 530, in get_pg_node_state
    if platform_utils_provider.get().ProcessIsZombi_soft_check(os_ops, pid) is True:
  File "/..python3.13/site-packages/testgres/impl/platforms/internal_platform_utils.py", line 71, in ProcessIsZombi_soft_check
    raise NotImplementedError("InternalPlatformUtils::ProcessIsZombi_soft_ver is not implemented.")
NotImplementedError: InternalPlatformUtils::ProcessIsZombi_soft_ver is not implemented.

Activity

  1. jamadden commented on Sep 21, 2026

    @jamadden
    Author

    FWIW, patching testgres.impl.platforms.internal_platform_utils_factory::create_internal_platform_utils to return the win32 implementation (which appears to be basically no-ops) when os_ops.get_platform() returns "darwin" lets our tests using testgres complete successfully on macOS with testgres 1.16.1

  2. dmitry-lipetsk commented on Sep 22, 2026

    @dmitry-lipetsk
    Collaborator

    Hello Jason,

    Thanks for this notification.

    I added a formal support of macos in #435 - for local operations only.

    CI on macos is added, too.

    New package will be released asap.

  3. jamadden commented on Sep 22, 2026

    @jamadden
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions