rmfrall opened a new pull request, #77676:
URL: https://github.com/apache/airflow/pull/77676
The tags validation error said only "tag cannot be longer than 100
characters":
it did not identify the offending tag, did not state its actual length, and
read
as if the *combined* length of all tags were limited (the limit is per tag,
matching `dag_tag.name VARCHAR(100)`).
The error now reads, for example:
DAG tag 'xxx...' is 150 characters long; the maximum length of a single
DAG tag is 100 characters
so authors can locate the offending tag directly in the DAG file.
This continues the approach reviewed in #55750 and incorporates that review's
feedback (ValueError rather than AirflowException, no redundant `if tags:`
guard,
tests in the existing file, no docs change).
Tests: the existing parametrized `test__tags_length` gains a combined-length
pass case and matches the new message, plus a focused test asserting the
message
identifies the offending tag, its length, and the limit.
closes: #55693
---
##### 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]