2026-03-25 20:05:34 +00:00
|
|
|
[workspace]
|
feat(wfe-yaml): add YAML workflow definitions with shell executor
Concourse-CI-inspired YAML format for defining workflows. Compiles
to standard WorkflowDefinition + step factories.
Features:
- Schema parsing with serde_yaml (YamlWorkflow, YamlStep, StepConfig)
- ((var.path)) interpolation from config maps at load time
- YAML anchors (&anchor/*alias) fully supported
- Validation at load time (no runtime surprises)
- Shell executor: runs commands via tokio::process, captures stdout,
parses ##wfe[output name=value] annotations for structured outputs
- Compiler: sequential wiring, parallel blocks, on_failure/on_success/
ensure hooks, error behavior mapping
- Public API: load_workflow(), load_workflow_from_str()
- 23 tests (schema, interpolation, compiler, e2e)
2026-03-25 21:32:00 +00:00
|
|
|
members = ["wfe-core", "wfe-sqlite", "wfe-postgres", "wfe-opensearch", "wfe-valkey", "wfe", "wfe-yaml"]
|
2026-03-25 20:05:34 +00:00
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
|
|
[workspace.package]
|
2026-03-26 00:59:20 +00:00
|
|
|
version = "1.0.0"
|
2026-03-25 20:05:34 +00:00
|
|
|
edition = "2024"
|
|
|
|
|
license = "MIT"
|
2026-03-26 00:59:20 +00:00
|
|
|
repository = "https://src.sunbeam.pt/studio/wfe"
|
|
|
|
|
homepage = "https://src.sunbeam.pt/studio/wfe"
|
2026-03-25 20:05:34 +00:00
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
|
|
|
|
# Core
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
async-trait = "0.1"
|
|
|
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
2026-03-25 20:41:34 +00:00
|
|
|
tracing-opentelemetry = "0.28"
|
|
|
|
|
opentelemetry = "0.27"
|
|
|
|
|
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"] }
|
|
|
|
|
opentelemetry-otlp = { version = "0.27", features = ["tonic"] }
|
2026-03-25 20:05:34 +00:00
|
|
|
|
|
|
|
|
# HTTP
|
|
|
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
|
|
|
|
|
|
# Persistence
|
|
|
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "sqlite", "postgres", "chrono", "uuid", "json"] }
|
|
|
|
|
|
|
|
|
|
# Redis/Valkey
|
|
|
|
|
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
|
|
|
|
|
|
|
|
|
|
# Search
|
|
|
|
|
opensearch = "2"
|
|
|
|
|
|
|
|
|
|
# Internal crates
|
|
|
|
|
wfe-core = { path = "wfe-core" }
|
|
|
|
|
wfe-sqlite = { path = "wfe-sqlite" }
|
|
|
|
|
wfe-postgres = { path = "wfe-postgres" }
|
|
|
|
|
wfe-opensearch = { path = "wfe-opensearch" }
|
|
|
|
|
wfe-valkey = { path = "wfe-valkey" }
|
feat(wfe-yaml): add YAML workflow definitions with shell executor
Concourse-CI-inspired YAML format for defining workflows. Compiles
to standard WorkflowDefinition + step factories.
Features:
- Schema parsing with serde_yaml (YamlWorkflow, YamlStep, StepConfig)
- ((var.path)) interpolation from config maps at load time
- YAML anchors (&anchor/*alias) fully supported
- Validation at load time (no runtime surprises)
- Shell executor: runs commands via tokio::process, captures stdout,
parses ##wfe[output name=value] annotations for structured outputs
- Compiler: sequential wiring, parallel blocks, on_failure/on_success/
ensure hooks, error behavior mapping
- Public API: load_workflow(), load_workflow_from_str()
- 23 tests (schema, interpolation, compiler, e2e)
2026-03-25 21:32:00 +00:00
|
|
|
wfe-yaml = { path = "wfe-yaml" }
|
|
|
|
|
|
|
|
|
|
# YAML
|
|
|
|
|
serde_yaml = "0.9"
|
|
|
|
|
regex = "1"
|
2026-03-25 20:05:34 +00:00
|
|
|
|
2026-03-25 22:32:07 +00:00
|
|
|
# Deno runtime
|
|
|
|
|
deno_core = "0.394"
|
2026-03-25 23:02:51 +00:00
|
|
|
deno_error = "0.7"
|
2026-03-25 22:32:07 +00:00
|
|
|
url = "2"
|
|
|
|
|
|
2026-03-25 20:05:34 +00:00
|
|
|
# Dev/Test
|
|
|
|
|
pretty_assertions = "1"
|
|
|
|
|
rstest = "0.23"
|
|
|
|
|
wiremock = "0.6"
|
|
|
|
|
tokio-stream = "0.1"
|
2026-03-25 23:02:51 +00:00
|
|
|
tempfile = "3"
|