testing-mwaa-workflow
БесплатноБез исполняемых скриптовНе проверенTests Amazon MWAA workflow execution end-to-end: trigger a run and monitor it to completion for Provisioned (Python DAG, via Airflow REST API) and Serverless…
от aws★ 3 696 звёзд на GitHubОб этом скилле
Testing MWAA Workflows
AWS MCP server (optional but recommended): running the AWS CLI commands in this skill through the AWS MCP server gives sandboxed execution and audit logging. Every command here also works with the plain AWS CLI, so the skill does not require the MCP server or any MCP-only tools.
Test Amazon MWAA workflow execution end-to-end: trigger a run, poll it to a terminal state, and on failure drive a capped debug -> fix -> retest loop. This skill triggers and reads state only; it delegates every diagnosis to debugging-mwaa-workflow and every mutation (artifact edit, redeploy, environment create/update) to authoring-mwaa-workflow. Routes by flavor, then runs one shared spine.
Execution note — poll in discrete steps: whenever you wait for an AWS operation to reach a terminal or ready state, issue one status check per call and decide in your own loop whether to check again. Never block a single command or script on the wait (no
while+sleepuntil done), regardless of the operation or how long it takes.
Guardrail — where this skill's own files live (MCP vs local install)
This skill can be loaded two ways, and they resolve the skill's own bundled files from different places. Determine how the skill was loaded before reading a reference:
- Loaded through the AWS MCP
retrieve_skilltool: The skill is not installed on the local filesystem. You MUST fetch each reference viaretrieve_skillwith thefileparameter (e.g.file="references/provisioned-testing.md") and read the returned content. Do NOTfile_readthese paths locally — they do not exist on disk. - Installed locally (e.g.
.kiro/skills/testing-mwaa-workflow/or~/.claude/skills/testing-mwaa-workflow/): Read the files from the local skill directory using relative paths.
This distinction applies only to the skill's own packaged files. User data and
session artifacts are always read from and written to the user's working
directory. Never fetch or write customer data through retrieve_skill.
Step 0: Detect Flavor, Mode, and Complexity
Flavor (reuse debugging's logic)
- An environment name resolvable via
aws mwaa get-environment-> Provisioned. - A
workflow/...ARN or anyaws mwaa-serverlesscontext -> Serverless. - Neither signal -> ask: MWAA Provisioned (Python DAG) or MWAA Serverless (YAML workflow)?
Invocation mode
- Standalone — the user points at an existing, already-deployed target.
- Delegated — another skill (authoring-mwaa-workflow or
upgrading-mwaa-environments) deployed the target and handed over the resolved
target (env name +
dag_id, or workflow ARN) and, for a DAG, its S3 key. That skill's approval to test satisfies the first trigger confirmation only.
Complexity
- Simple — target already deployed and known-ready -> skip to Step 2.
- Standard — just deployed, readiness unknown -> full spine.
- Complex — retest inside an active fix loop.
Step 1: Readiness Check (before the first trigger)
Confirm the artifact is deployed and parse-ready. Do not trigger blind. This step
is MANDATORY even when you plan to adopt an existing run — the readiness data
(is_active/is_stale, has_import_errors) confirms the DAG is parsed and
runnable before Step 2 decides whether to adopt a prior run.
- Provisioned: confirm
dag_idpresent withhas_import_errors: false, then apply the version-aware ready check via the/dagscollection endpoint. Determine the poll window from the environment's configured scan interval: checkget-environment->AirflowConfigurationOptionsforscheduler.dag_dir_list_interval(AF2) ordag_processor.refresh_interval(AF3). If unset, default to 300s. Poll up to that interval + 30s at 15s intervals (the per-DAG endpoint can lag). On AF2 (REST API v1) requireis_active: true. On AF3 (REST API v2) theis_activefield does not exist — requireis_stale: falseinstead and never wait onis_active(it reads as absent/false forever). A DAG that is parsed but not yet ready will reject trigger attempts with an opaqueRestApiClientException. Not ready in time -> hand to debugging-mwaa-workflow. - Serverless: confirm
WorkflowStatusisREADY(viaget-workflow --workflow-arn). Not ready -> hand to debugging-mwaa-workflow.
This readiness window is separate from the Step 3 run timeout. See references/provisioned-testing.md and references/serverless-testing.md for exact commands.
Step 2: Confirm, then Trigger (safety gate)
State the resolved target and classify its environment. Unless you are certain it is a development/test environment (name or tags clearly indicate dev/test), treat it as production: emit a prod warning and require explicit user confirmation before triggering. If the target is confirmed production (name or tags contain `prod
Установить testing-mwaa-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл testing-mwaa-workflow?
Tests Amazon MWAA workflow execution end-to-end: trigger a run and monitor it to completion for Provisioned (Python DAG, via Airflow REST API) and Serverless (YAML workflow, via StartWorkflowRun). Verifies the artifact is deployed and parse-ready, triggers with confirmation, polls to terminal state, and on failure delegates diagnosis to debugging-mwaa-workflow and artifact/redeploy fixes to authoring-mwaa-workflow, then retests up to a capped number of attempts. Triggers on: test my DAG, test my workflow, run my DAG, trigger a test run, does my DAG work, smoke-test the pipeline, verify my workflow runs, execute my DAG to check it. Not applicable to writing or deploying a new workflow (handled by authoring-mwaa-workflow), or for diagnosing why a run failed or root-causing an error (handled by debugging-mwaa-workflow).
Как установить скилл testing-mwaa-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing-mwaa-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic