github-actions[bot] opened a new pull request, #75325: URL: https://github.com/apache/airflow/pull/75325
* Fix tasks clear --task-regex matching as a plain substring The flag, its help text and the docs all promise a regular expression, but since #47360 removed regex support from partial_subset (to stop the REST API root parameter from being parsed as a regex) the CLI passed the pattern straight through and it was matched as a literal substring. Any pattern with metacharacters silently matched nothing and cleared nothing. Resolve the regex in the CLI, the only caller that promises one, and hand partial_subset a concrete set of task ids so the shared method keeps its non-regex contract. An invalid pattern now exits with a one-line error instead of a traceback. * Validate --task-regex before looking up the Dag A mistyped Dag id hid an invalid task pattern until the Dag id was fixed, and with --dag-regex every Dag file was parsed before the pattern error was reported. --------- (cherry picked from commit aee2d4d512209c112c7df1efc6260bf534615102) Co-authored-by: Y-C <[email protected]> Co-authored-by: Eason09053360 <[email protected]> -- 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]
