smt-functional-testing
Skill by GoogleCloudPlatform
Tests local Dataflow pipeline changes against the main branch using ephemeral GCP resources. Built for functional testing of four migration templates: gcs-spanner-dv, sourcedb-to-spanner, datastream-to-spanner and spanner-to-sourcedb.
Install smt-functional-testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/GoogleCloudPlatform/DataflowTemplates /tmp/DataflowTemplates && mkdir -p ~/.claude/skills && cp -r /tmp/DataflowTemplates/.agents/skills/smt_functional_testing ~/.claude/skills/smt-functional-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/GoogleCloudPlatform/DataflowTemplates /tmp/DataflowTemplates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DataflowTemplates/.agents/skills/smt_functional_testing ~/.gemini/antigravity-cli/skills/smt-functional-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install smt-functional-testing in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an IDE agent through functional testing of local Dataflow pipeline changes against the main branch. The agent reads the git diff, summarizes the changes, and proposes test cases covering happy paths, edge cases, error handling and DLQ routing. It then designs source and target schemas, provisions ephemeral GCP resources with a unique run ID suffix, stages a Dataflow job with Terraform, and checks the destination data against expected results.
The workflow has five approval gates, and the agent pauses before state-changing actions. It stops immediately if any terminal command fails and does not retry on its own. Teardown commands are drafted at the end and run only after approval. The skill is meant for developers testing these four specific migration templates. It should not be used for other templates, for deploying templates to production, or for debugging production pipelines without testing.
Written from the project's SKILL.md and checked against it.
What it can do
- Code analysisRuns git diff main and summarizes the changes and the pipeline components they affect.
- Test matrix generationProposes test cases for happy paths, edge cases, error scenarios, DLQ routing and regressions.
- Topology designDesigns source and target DDL and DML, with an optional sharded setup of four logical shards.
- Ephemeral provisioningCreates Cloud SQL and Spanner resources with a run ID suffix using gcloud commands.
- Terraform job stagingGenerates a tfvars file and applies it with Terraform to stage the Dataflow job.
- Verification and reportingRuns queries against destination tables and DLQs and writes a Markdown test report.
- Teardown draftingDrafts cleanup commands for the provisioned instances, config files and local files.
What you need
- Authenticated gcloud CLI
- Authenticated terraform CLI
- The /smt-e2e-dataflow-debugging skill installed and active
- A pre-built flex template path
- A .env.testing file in the workspace root
Try asking
- /smt-functional-testing test my sourcedb-to-spanner changes against main
- Generate test cases for my datastream-to-spanner pipeline diff
- Draft teardown commands for my finished spanner-to-sourcedb test run
Good to know
- Only for gcs-spanner-dv, sourcedb-to-spanner, datastream-to-spanner and spanner-to-sourcedb.
- Not for deploying templates to production or debugging production pipelines without testing.
- Dataflow jobs default to n2-standard-4 workers, which have at least 4 vCPUs.
- Stops on any command error and asks for user intervention rather than retrying.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/smt_functional_testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to smt-functional-testing
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
smt-functional-testing: common questions
Which templates does this skill support?
It supports gcs-spanner-dv, sourcedb-to-spanner, datastream-to-spanner and spanner-to-sourcedb. The source says to skip it entirely for any other template.
Does this skill deploy templates to production?
No. The description says it should not be used for deploying templates to production.
What happens if a command fails during a test run?
The agent stops immediately, shows the error and asks for intervention. It does not attempt autonomous retries.
How do I install smt-functional-testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is smt-functional-testing free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is smt-functional-testing safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to smt-functional-testing?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
