68 releases
| new 0.3.116 | Apr 13, 2026 |
|---|---|
| 0.3.115 | Apr 12, 2026 |
| 0.3.104 | Mar 31, 2026 |
| 0.3.71 | Feb 28, 2026 |
| 0.3.4 | Nov 27, 2025 |
#44 in #api-mocking
Used in 3 crates
5.5MB
112K
SLoC
mockforge-pipelines
Pipeline orchestration and workflow management for MockForge.
lib.rs:
MockForge Pipelines
Event-driven pipeline orchestration for MockForge.
This crate provides a GitHub Actions-like pipeline system for automating mock lifecycle management, including:
- Schema change detection → auto-regenerate SDKs
- Scenario publication → auto-promote to test → notify teams
- Drift threshold exceeded → auto-generate Git PRs
Overview
Pipelines are defined in YAML and triggered by events. Each pipeline consists of steps that execute sequentially or in parallel. Steps can be:
regenerate_sdk- Regenerate client SDKs for specified languagesauto_promote- Automatically promote scenarios/personas/configsnotify- Send notifications to teams (Slack, email, webhooks)create_pr- Create Git pull requests
Example Pipeline
name: schema-change-pipeline
triggers:
- event: schema.changed
filters:
workspace_id: "workspace-123"
schema_type: ["openapi", "protobuf"]
steps:
- name: regenerate-sdks
type: regenerate_sdk
config:
languages: ["typescript", "python", "rust"]
workspace_id: "{{workspace_id}}"
- name: notify-teams
type: notify
config:
channels: ["#api-team", "#frontend-team"]
message: "SDKs regenerated for {{workspace_id}}"
Event System
Events are emitted by various MockForge components and trigger pipelines:
schema.changed- OpenAPI/Protobuf schema modifiedscenario.published- New scenario publisheddrift.threshold_exceeded- Drift budget exceededpromotion.completed- Promotion completedworkspace.created- New workspace created
Dependencies
~78–120MB
~2M SLoC