test: add yamllint tests for YAML templates and recipes
Add automated tests to validate that all YAML template files, recipe
files, and generated prefect.yaml files conform to yamllint standards.
This guards against regressions in future updates to these templates.
Also fix remaining yamllint issues: add trailing newlines to all YAML
files and fix comment spacing in the deployment template.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Wrap as_completed loop in timeout_context for consistent timeout semantics
Re-add timeout_context around the entire loop so that slow result
retrieval (e.g. large data deserialization in future.result()) is also
bounded by the caller's timeout, matching the previous behavior.
https://claude.ai/code/session_015BN7CFHM4zwPr4iamoBDeV
Add retry loop in wait_for_flow_run as defense-in-depth
The subscriber fix (retry counter reset) handles repeated idle-timeout
disconnections. This commit adds a retry loop in wait_for_flow_run that
catches RETRYABLE_EXCEPTIONS and re-creates the subscriber, so the watch
never crashes from ConnectionClosedError even if the subscriber
eventually gives up.
Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>