The GitHub Actions job "Tests (AMD)" on airflow.git/fix-common-ai-init has 
failed.
Run started by GitHub user 1fanwang (triggered by 1fanwang).

Head commit for run:
3dc0feba366ebf699ef5507663a1f2633be43db9 / 1fanwang <[email protected]>
Validate template fields after rendering in common.ai operators

message_history (AgentOperator) and source_path/file_type 
(DocumentLoaderOperator)
are template fields, rendered after __init__ runs. Both constructors validated
them there, acting on the un-rendered Jinja expressions: AgentOperator rejected
message_history + enable_hitl_review, and DocumentLoaderOperator enforced the
source_path/source_bytes/file_type combination. Move those checks into 
execute(),
which runs after rendering. Constructor-only checks that read no template field
(durable/code_mode) stay in __init__.

related: #70296
Signed-off-by: 1fanwang <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/30048541144

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to