rmfrall opened a new pull request, #77678:
URL: https://github.com/apache/airflow/pull/77678

   DAG owner_links validation only checked the link format, so owner names and 
links
   longer than the 500-character dag_owner_attributes columns were accepted at
   authoring time and surfaced only later, as a raw database error raised by 
the dag
   processor when owner attributes are written, far from the DAG file that set 
them
   (on databases that enforce the column length; others accepted them silently).
   Both lengths are now validated alongside the format, naming the offending 
entry,
   its actual length and the limit, consistent with how tag lengths are handled
   (_validate_tags / TAG_MAX_LEN).
   
   Note: this rejects at authoring time the small class of DAGs that a
   non-length-enforcing database accepted silently before; on length-enforcing
   databases the error merely moves earlier and becomes readable.
   
   The REST API datamodel gap noted in the issue is left for a follow-up, since 
the
   API error response needs a separate design.
   
   Details and PostgreSQL evidence: #77677
   
   Tests: the existing test_dag_owner_links gains a boundary case (500-char 
owner
   name and link accepted) and over-limit cases (600-char owner name, 600-char
   link) asserting the error identifies the offending entry and the limit.
   
   closes: #77677
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — TeleAgent
   
   Generated-by: TeleAgent following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to