You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build_all_models() never returns once an adcp.types.generated_poc alias module is imported #1619
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)
importadcp.types.generated_poc.core.format_id# noqa: F401fromadcp.testingimportbuild_all_modelsbuild_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
fix(testing): stop build_all_models hanging after a generated_poc ali…
test(names): five numbered or invented spellings re-pointed at the br…