Skip to content

build_all_models() never returns once an adcp.types.generated_poc alias module is imported #1619

Description

@bokelley

Observed

adcp.testing.build_all_models() never returns once any module under the deprecated adcp.types.generated_poc.* alias has been imported. _realize_lazy_exports marks modules done by name, but the alias path is registered under a different name than the adcp.types.domains.* module it points at, so the loop never terminates.

Reproduction (adcp 9.1.0)

import adcp.types.generated_poc.core.format_id  # noqa: F401
from adcp.testing import build_all_models

build_all_models()  # never returns (timed out at 60 s)

The same script importing adcp.types.domains.core.format_id instead returns normally.

Expected

build_all_models() treats an alias module and its target as the same module and returns. If aliases can't be supported, it should raise and name the alias import instead of hanging.

Impact

Adopters still migrating off generated_poc, which 9.0 deprecates and removes in v10, can't use build_all_models() for the freezegun setup it exists for (#1310 / #1339). A test session that calls it hangs. The Embedded Sales Agent hit this, and its freezegun cleanup is blocked until its import rename lands.

Activity

  1. added a commit that references this issue on Oct 26, 2026
    6f61234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions