Skip to content

Codegen drift: Poe the Poet (version 0.48.0) Error: No poe configuration found from location /home/ubuntu Usage: poe [global options] task [task arguments] Global options: -h [TASK], --help [TASK] Show this help page and exit, optionally supply a task. --version Print the version and exit -v, --verbose Increase output (repeatable) -q, --quiet Decrease output (repeatable) -d, --dry-run Print the task contents but don't actually run it -C PATH, --directory PATH Specify where to find the pyproject.toml -e EXECUTOR, --executor EXECUTOR Override the default task executor -X KEY[=VALUE], --executor-opt KEY[=VALUE] Set executor configuration for this run. --ansi Force enable ANSI output --no-ansi Force disable ANSI output NO TASKS CONFIGURED output diverges from committed generated models #1105

Description

@devin-ai-integration

Running poetry run poe assemble on a clean checkout of main produces ~350 lines of style drift in airbyte_cdk/sources/declarative/models/declarative_component_schema.py (e.g. conint/confloat usage, class reordering) that does not match the committed file, so contributors hand-patch the generated model instead of regenerating it.

Consequences observed while adding UnionPartitionRouter (#1071):

  • The YAML schema declares minItems: 2 on UnionPartitionRouter.partition_routers, but the generated model has no corresponding constraint. The current codegen does not emit min_items, and pydantic v1 rejects a hand-added min_items=2 on this self-referential List[Union[...]] field at import time ("field constraints are set but not enforced").
  • There is no CI check that the committed generated file matches poe assemble output, so hand-maintained divergence accumulates silently.

Suggested follow-ups:

  • Pin/align the datamodel-code-generator version so poe assemble reproduces the committed file byte-for-byte.
  • Add an assemble-check CI job.
  • Decide whether array constraints like minItems should be reflected in the generated models (may require pydantic v2 or generator options).

Requested by tolik0 in review of PR #1071 (comment #1071 (comment)).


Devin session

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions