checkpoints-actions-and-data-docs
Build, save, and run GX Checkpoints; configure actions, notifications, custom actions, and local Data Docs updates safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- checkpoints-actions-and-data-docs
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Build, save, and run GX Checkpoints; configure actions, notifications, custom actions, and local Data Docs updates safely.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/actions-and-notifications.md7.8 KB
- 参考文档references/checkpoint-api.md6.6 KB
- 参考文档references/data-docs.md5.4 KB
- 参考文档references/troubleshooting.md7.7 KB
- 脚本scripts/run_checkpoint_smoke.py8.0 KB
03 SKILL.md 正文
Checkpoints, Actions, and Data Docs
Use this sub-skill when a task needs production-style Great Expectations orchestration: running one or more saved validations through a Checkpoint, updating Data Docs, sending notifications, or adding custom post-validation actions.
Route by task
- Read Checkpoint API to construct
gx.Checkpoint, persist it withcontext.checkpoints, passbatch_parametersandexpectation_parameters, choose checkpoint result formats, and summarizeCheckpointResultobjects. - Read Actions and notifications before adding
UpdateDataDocsAction,SlackNotificationAction,EmailAction, or a customValidationAction; this reference coversnotify_on,notify_with, credential safety, and no-network tests. - Read Data Docs when configuring local or networked Data Docs sites, calling
context.build_data_docs(), opening docs, or diagnosing stale docs. - Read Troubleshooting when checkpoints have no validation definitions, notification credentials are missing, Slack/email sends happen unexpectedly, Data Docs are absent/stale, results are too verbose, or custom action payloads do not match.
- Run scripts/run_checkpoint_smoke.py for a tiny no-network checkpoint smoke workflow that builds an ephemeral pandas validation, runs a checkpoint, and optionally exercises a safe local
UpdateDataDocsActionin a temporary file project.
Prerequisite routes
- For context mode, file-project persistence, config variables, and credential substitution, read
../contexts-and-configuration/SKILL.md. - For datasource, asset, and batch-definition setup, read
../datasources-and-assets/SKILL.md. - For expectation suites and custom expectations, read
../expectations-and-suites/SKILL.md. - For validation-definition creation, result interpretation, and unexpected rows, read
../validations-and-results/SKILL.md.
Core public APIs
- Import GX as
import great_expectations as gx. - Import actions from
great_expectations.checkpointorgreat_expectations.checkpoint.actions, includingUpdateDataDocsAction,SlackNotificationAction,EmailAction, andValidationAction. - Construct checkpoints with
gx.Checkpoint(name=..., validation_definitions=[...], actions=[...], result_format=...). - Persist checkpoints with
context.checkpoints.add(...)orcontext.checkpoints.add_or_update(...); retrieve withcontext.checkpoints.get(name)and list/delete withall()anddelete(name). - Run checkpoints with
checkpoint.run(batch_parameters=..., expectation_parameters=..., run_id=...)and inspectresult.success,result.run_results, andresult.describe_dict().
Guardrails
- Never place real Slack webhooks, bot tokens, SMTP passwords, or recipient lists in code, generated skills, logs, or committed GX config; use config variables or environment substitution.
- Do not include Slack/email actions in smoke tests unless the test explicitly mocks network calls; notification actions call external APIs when
notify_onmatches the result. - Put
UpdateDataDocsActionbefore notification actions for readability, even though GX prioritizes Data Docs actions internally so notification renderers can use fresh docs links. - Prefer
SUMMARYorBASICfor routine checkpoint runs; reserveCOMPLETEfor bounded diagnostics because it can inflate stored validation results and notification payloads.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).