Skip to content

feat(examples): golden example L2 — deploy Op (local executor) (#216) - #225

Merged
lex00 merged 1 commit into
mainfrom
feat/216-l2-deploy-op
Jun 7, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/216-l2-deploy-op

Conversation

@lex00

@lex00 lex00 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

L2 of the golden teaching example — wraps L1's same declarations in an Op (a named, phased workflow), runnable locally.

What L2 adds

deploy.op.ts: chant run deploy runs in-process on the local executor (no Temporal server), building the manifests and applying them to your current kube context (point it at local k3d). Two phases:

  • Build — npm run build → k8s.yaml
  • Apply — kubectl apply -f k8s.yaml

Same declarations as L1; L2 only adds how they're operated. Gates / schedules / crash-resume need --temporal (that's L3).

  • chant.config.ts — adds the temporal lexicon
  • package.json — temporal dep + deploy script
  • README — L2 section with the local k3d run steps

Validation (build-only, as agreed)

The Op can't run in CI (no cluster). Now that the example-tier tests actually run in CI (#224), a real test validates the Op compiles to a well-formed workflow (name: "deploy", phases [Build, Apply]). Running the deploy is the documented local step.

examples/examples.test.ts → 150 passed | 10 skipped
  ✓ golden example L2 — deploy Op > compiles to a well-formed Op

eslint packages/ clean.

Part of #216.

🤖 Generated with Claude Code

L2 wraps L1's same declarations in an Op: a named, phased workflow.
`chant run deploy` runs it in-process on the local executor (no Temporal
server), building the manifests and applying them to the current kube
context (point it at local k3d). Two phases: Build (npm run build → k8s.yaml)
and Apply (kubectl apply). Gates/schedules/crash-resume are L3 (--temporal).

- deploy.op.ts — the Op definition
- chant.config.ts — add the temporal lexicon
- package.json — temporal dep + `deploy` script
- README — L2 section with the local k3d run steps

The Op can't run in CI (no cluster). Now that the example-tier tests run in
CI (#224), a real test validates that the Op *compiles* to a well-formed
workflow; running it is the documented local step. Test runs green
(examples.test.ts: 150 passed).

Part of #216.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lex00
lex00 merged commit 27f1113 into main Jun 7, 2026
5 checks passed
@lex00
lex00 deleted the feat/216-l2-deploy-op branch June 7, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant