Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

chore(oss): preserve the public repo's .github (CI/CD improved on OSS side)

Jose Ramirez2ba8c54bd9d9
diff --git a/.github/CICD_PROPOSAL.md b/.github/CICD_PROPOSAL.md
deleted file mode 100644
index 83102fe66..000000000
--- a/.github/CICD_PROPOSAL.md
+++ /dev/null
@@ -1,125 +0,0 @@
-# CI/CD Proposal for Clerum
-
-## Overview
-
-This proposal introduces GitHub Actions CI/CD pipelines for the Clerum platform. The goal is to automate building, testing, versioning, and deploying all services to the DigitalOcean Container Registry and Kubernetes cluster.
-
-## Current State
-
-| Aspect | Current | Proposed |
-|--------|---------|----------|
-| **CI/CD** | None — manual `make docker-push` per service | Automated via GitHub Actions |
-| **Versioning** | Hardcoded `0.2.0` in Makefiles & deployment YAMLs | Git tags (`v0.3.0`) drive image tags |
-| **Registry** | `your-registry.example.com/evenfire/` | Same, automated push |
-| **Testing** | Manual `npm run lint` / `npm run test` | Automated on every PR + push to main |
-| **Deployment** | Manual `kubectl apply` | Automated deployment on release |
-
-## Architecture
-
-```
- ┌──────────────────────────────────────────┐
- │ GitHub Actions │
- │ │
- PR / push ───────▶ ci.yaml │
- to main │ ├─ Lint (all services) │
- │ ├─ Unit tests (mcp-host) │
- │ └─ Docker build (verify, no push) │
- │ │
- git tag ─────────▶ release.yaml │
- v* │ ├─ Build + tag Docker images │
- │ ├─ Push to DO Container Registry │
- │ └─ Update deployment manifests │
- │ │
- manual / ────────▶ deploy.yaml │
- post-release │ └─ kubectl apply to DOKS cluster │
- └──────────────────────────────────────────┘
-```
-
-## Workflows
-
-### 1. CI (`ci.yaml`) — Runs on every PR and push to `main`
-
-**Triggers:** `pull_request` to `main`, `push` to `main`
-
-**Jobs:**
-
-| Job | Steps | Purpose |
-|-----|-------|---------|
-| **lint** | `npm ci` + `npm run lint` for each service | Catch code quality issues early |
-| **test** | `npm ci` + `npm run test` in `mcp-host/` | Run unit tests |
-| **build** | `npm ci` + `npm run build` for each service | Verify TypeScript compilation |
-| **docker-build** | `docker build` for each service (no push) | Verify Docker images build successfully |
-
-Uses a **matrix strategy** to run lint/build across all 3 services in parallel:
-- `channel-reader`
-- `mcp-host`
-- `context-mapper`
-
-### 2. Release (`release.yaml`) — Runs on version tags
-
-**Trigger:** `push` tags matching `v*` (e.g., `v0.3.0`)
-
-**Jobs:**
-
-| Job | Steps | Purpose |
-|-----|-------|---------|
-| **build-and-push** | Build Docker images, tag with version + `latest`, push to DOCR | Publish versioned images |
-
-**Image tagging strategy:**
-- `your-registry.example.com/evenfire/<service>:<version>` (e.g., `:0.3.0`)
-- `your-registry.example.com/evenfire/<service>:latest`
-- `your-registry.example.com/evenfire/<service>:sha-<short-sha>` (for traceability)
-
-### 3. Deploy (`deploy.yaml`) — Manual or post-release
-
-**Trigger:** `workflow_dispatch` (manual) with environment selector, or called by `release.yaml`
-
-**Jobs:**
-
-| Job | Steps | Purpose |
-|-----|-------|---------|
-| **deploy** | `kubectl apply` for CRDs, then each service | Deploy to DOKS cluster |
-
-Requires an **environment approval** gate for production.
-
-## Versioning Strategy
-
-**Monorepo single version:** All services share one version tracked by git tags.
-
-```bash
-# To release:
-git tag v0.3.0
-git push origin v0.3.0
-# → Triggers release.yaml → builds all 3 images with tag 0.3.0
-```
-
-**Why single version?** The services are tightly coupled (shared CRD definitions, API contracts). Independent versioning would add complexity without benefit at this scale.
-
-## Required GitHub Secrets
-
-| Secret | Description |
-|--------|-------------|
-| `DIGITALOCEAN_ACCESS_TOKEN` | DigitalOcean API token for container registry auth |
-| `DOKS_KUBECONFIG` | Base64-encoded kubeconfig for the DOKS cluster (deploy only) |
-
-## Workflow Files
-
-Three workflow files are included in `.github/workflows/`:
-
-- **`ci.yaml`** — Continuous integration (lint, test, build)
-- **`release.yaml`** — Build, tag, and push images on version tags
-- **`deploy.yaml`** — Deploy to Kubernetes (manual trigger or called by release)
-
-## Rollback Strategy
-
-Since images are tagged with both version and git SHA:
-1. **Quick rollback:** Re-run deploy workflow with previous version tag
-2. **Manual rollback:** `kubectl set image deployment/<svc> <svc>=your-registry.example.com/evenfire/<svc>:<prev-version>`
-
-## Future Enhancements
-
-- **E2E tests in CI**: Run `tests/e2e/` against a local kind/k3d cluster before release
-- **Helm chart packaging**: Package and publish Helm charts to a chart repository
-- **MCP server images**: Extend the pipeline to build `mcp-servers/airtable` (currently the only one with a custom Dockerfile)
-- **Security scanning**: Add Trivy or Snyk container scanning
-- **Dependabot**: Automated dependency updates
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 9bfc2ea99..ddbe244e9 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,9 +1,10 @@
## Summary
## Testing
+
- [ ] `npm test` passes for changed services
- [ ] `npx tsc --noEmit` clean
## Checklist
-- [ ] I signed the CLA
+
- [ ] This is not a new third-party MCP server / WorkflowRecipe (those go to the registry)
diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml
index b99ac6a97..793dd0ac0 100644
--- a/.github/workflows/build-publish.yml
+++ b/.github/workflows/build-publish.yml
@@ -10,9 +10,9 @@ name: Build & Publish
# build_all=true rebuilds the whole matrix (use this for the first publish, or
# to repopulate ghcr).
#
-# Quickstart images (mcp-host, channel-reader — the docker-compose services) are
-# built multi-arch (amd64 + arm64) so Apple-Silicon users can pull-and-run. The
-# rest are amd64-only (they deploy to amd64 GKE).
+# mcp-host and channel-reader are built multi-arch (amd64 + arm64) so
+# Apple-Silicon users can pull-and-run. The rest are amd64-only (they deploy
+# to amd64 GKE).
on:
push:
@@ -36,6 +36,10 @@ jobs:
detect:
name: Detect changed images
runs-on: ubuntu-latest
+ # Publishing targets ghcr.io/evenfire-ai/*, which forks cannot write to.
+ # Guarding the entry job cascades: build-push needs detect, notify-infra
+ # needs build-push, so a fork skips the whole workflow cleanly.
+ if: github.repository == 'evenfire-ai/evenfire'
outputs:
force_all: ${{ steps.base.outputs.force_all }}
channel-reader: ${{ steps.filter.outputs.channel-reader }}
@@ -84,7 +88,7 @@ jobs:
- name: Detect changed paths
id: filter
if: steps.base.outputs.force_all != 'true'
- uses: dorny/paths-filter@v3
+ uses: dorny/paths-filter@v4
with:
base: ${{ github.event.before }}
filters: |
@@ -260,11 +264,11 @@ jobs:
- name: Set up QEMU
if: ${{ matrix.changed == 'true' || needs.detect.outputs.force_all == 'true' }}
- uses: docker/setup-qemu-action@v3
+ uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
if: ${{ matrix.changed == 'true' || needs.detect.outputs.force_all == 'true' }}
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: Log in to ghcr.io
if: ${{ matrix.changed == 'true' || needs.detect.outputs.force_all == 'true' }}
@@ -300,7 +304,7 @@ jobs:
- name: Build and push
if: ${{ matrix.changed == 'true' || needs.detect.outputs.force_all == 'true' }}
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
context: ${{ steps.buildargs.outputs.context }}
file: ${{ steps.buildargs.outputs.file }}
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.yml
index e59777194..1b78495cd 100644
--- a/.github/workflows/ci-public.yml
+++ b/.github/workflows/ci-public.yml
@@ -12,6 +12,9 @@ jobs:
strategy:
fail-fast: false
matrix:
+ # Every service with a `test` script belongs here. Keep in sync with
+ # TEST_SERVICES in the root Makefile — a service in one but not the other
+ # means its tests run in only half the places contributors look.
service:
- mcp-host
- channel-reader
@@ -19,6 +22,18 @@ jobs:
- control-api
- mcp-proxy
- workflow-recipes
+ - gfs-controller
+ - workspace-files-controller
+ - rpc-proxy
+ - webhook-gateway
+ - webhook-proxy
+ - workflow-approval-request-reader
+ - stdio-bridge
+ - external-rest-api
+ - desktop-app
+ - mcp-servers
+ - packages/workflow-runtime-core
+ - packages/workflow-sdk
steps:
- uses: actions/checkout@v4
@@ -29,17 +44,18 @@ jobs:
cache: npm
cache-dependency-path: ${{ matrix.service }}/package-lock.json
- # workflow-recipes and control-api both consume @clerum/workflow-runtime-core
- # via a `file:../packages/workflow-runtime-core` dependency. Build that package
- # first so its dist/ exists before the service's `npm ci` links it in — otherwise
- # the service build fails with TS2307 "Cannot find module '@clerum/workflow-runtime-core'".
+ # workflow-recipes, control-api and packages/workflow-sdk all consume
+ # @clerum/workflow-runtime-core via a `file:../packages/workflow-runtime-core`
+ # dependency. Build that package first so its dist/ exists before the service's
+ # `npm ci` links it in — otherwise the build fails with TS2307
+ # "Cannot find module '@clerum/workflow-runtime-core'".
- name: Install workflow-runtime-core dependencies
- if: matrix.service == 'workflow-recipes' || matrix.service == 'control-api'
+ if: matrix.service == 'workflow-recipes' || matrix.service == 'control-api' || matrix.service == 'packages/workflow-sdk'
working-directory: packages/workflow-runtime-core
run: npm ci
- name: Build workflow-runtime-core
- if: matrix.service == 'workflow-recipes' || matrix.service == 'control-api'
+ if: matrix.service == 'workflow-recipes' || matrix.service == 'control-api' || matrix.service == 'packages/workflow-sdk'
working-directory: packages/workflow-runtime-core
run: npm run build
@@ -57,6 +73,13 @@ jobs:
# Typecheck against the base tsconfig (covers src + test dirs).
# This catches errors in test files that tsconfig.build.json may exclude.
+ #
+ # mcp-servers is skipped: it has no root tsconfig.json (only the web-search and
+ # doc-generator sub-projects have one), so `tsc --noEmit` there resolves no
+ # project and just prints its help text. Adding a strict root tsconfig surfaces
+ # ~10 pre-existing type errors in its __tests__ — worth fixing, but as its own
+ # change rather than smuggled into a CI-coverage PR.
- name: Typecheck (tsc --noEmit)
+ if: matrix.service != 'mcp-servers'
working-directory: ${{ matrix.service }}
run: npx tsc --noEmit
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
deleted file mode 100644
index 1a5134137..000000000
--- a/.github/workflows/cla.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: CLA
-on:
- issue_comment:
- types: [created]
- pull_request_target:
- types: [opened, synchronize]
-jobs:
- cla:
- runs-on: ubuntu-latest
- steps:
- - uses: contributor-assistant/[email protected]
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_PAT }}
- with:
- path-to-signatures: 'signatures/cla.json'
- path-to-document: 'https://github.com/evenfire-ai/evenfire/blob/main/CLA.md'
- branch: 'main'