
Testing Dags
Iterative test-debug-fix loop for Airflow DAGs, starting with a single trigger-and-wait run.
- skills.sh installs
- 1.2K
- GitHub stars
- 463
- last updated
- Aug 21, 2026
What it does
- Covers the cycle of triggering a DAG, reading failure output, applying a fix, and retesting until success
- Includes
af runs trigger-wait,af runs diagnose,af tasks logs, andaf dags errorsfor diagnosis, plus a common-fixes table - Starts with
af runs trigger-waitand skips pre-flight checks, debugging only when a run fails - Designed for multi-step requests like "test this dag and fix it" rather than simple test or run commands
Install
$ npx -y skills add astronomer/agents --skill testing-dags -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
DAG Testing Skill
Use af commands to test, debug, and fix DAGs in iterative cycles.
Running the CLI
These commands assume af is on PATH. Run via astro otto to get it automatically, or install standalone with uv tool install astro-airflow-mcp.
Quick Validation with Astro CLI
If the user has the Astro CLI available, these commands provide fast feedback without needing a running Airflow instance:
# Parse DAGs to catch import errors, syntax issues, and DAG-level problems
astro dev parse
# Run pytest against DAGs (runs tests in tests/ directory)
astro dev pytest
Use these for quick validation during development. For full end-to-end testing against a live Airflow instance, continue to the trigger-and-wait workflow below.
FIRST ACTION: Just Trigger the DAG
When the user asks to test a DAG, your FIRST AND ONLY action should be:
af runs trigger-wait <dag_id>
DO NOT:
- Call
af dags listfirst - Call
af dags getfirst - Call
af dags errorsfirst - Use
greporlsor any other bash command - Do any "pre-flight checks"
Just trigger the DAG. If it fails, THEN debug.
Testing Workflow Overview
Details
- Repository
- github.com/astronomer/agents
- Categories
- Testing & QA, Data Science & Analytics, Debugging
- First seen
- Apr 16, 2026
More from astronomer/agents
All 24- Migrating Airflow 2 To 31.2K
- Setting Up Astro Project1.1K
- Tracing Upstream Lineage1.1K
- Profiling Tables1.1K
- Tracing Downstream Lineage1.1K
- Checking Freshness1K
- Annotating Task Lineage1K
- Cosmos Dbt Core1K
- Airflow Hitl992
- Creating Openlineage Extractors972
- Cosmos Dbt Fusion936
- Warehouse Init853
- Deploying Airflow835
- Troubleshooting Astro Deployments669
- Airflow Plugins635
- Managing Astro Deployments606
- Blueprint599
- Init176
- Managing Astro Local Env1.8K
- Airflow1.5K
- Analyzing Data1.5K
- Authoring Dags1.3K
- Debugging Dags1.3K
Similar to Testing Dags
More Testing & QA
debugging-dagsastronomer/agents1.3K installsStructured DAG failure diagnosis that traces root causes through logs, git history, and package version drift.
authoring-dagsastronomer/agents1.3K installsStructured workflow for writing Apache Airflow DAGs, from discovery through validation and test handoff.
test-fixingmhattingpete/claude-skills-marketplace387 installsSystematic test-fixing workflow that groups failures by error type, module, and root cause before repairing them.
test-driven-developmentaddyosmani/agent-skills75.8K installsStructured red-green-refactor workflow that writes a failing test before any code change, including bug fixes.