Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b14b534
Keep post-deploy checks on the app that is supposed to answer.
jmjava Sep 27, 2026
369fdd3
Wait for the intercept before checking the original override.
jmjava Sep 27, 2026
3e892a5
Run the Telepresence CLI for intercepts and keep hop JSON.
jmjava Sep 27, 2026
9abde2d
Let the runner create the Telepresence client account.
jmjava Sep 27, 2026
6cf6e13
Run intercept clients as root with a writable home.
jmjava Sep 27, 2026
42b61db
Run Telepresence from a privileged client pod.
jmjava Sep 27, 2026
e72e6cf
Drop the unknown Telepresence --http-match flag.
jmjava Sep 27, 2026
689979d
Filter Telepresence intercepts by the session header.
jmjava Sep 27, 2026
27bfe0e
Drop --namespace from the Telepresence 2.25 intercept.
jmjava Sep 27, 2026
2fcd53d
Deliver header-matched traffic to localhost on the PR pod.
jmjava Sep 27, 2026
abf491a
Forward Telepresence HTTP intercepts through a free local port.
jmjava Sep 27, 2026
4f0bc9e
Force the Telepresence agent to speak HTTP/1.
jmjava Sep 27, 2026
144b2d2
Revert the invalid Telepresence helm protocol setting.
jmjava Sep 27, 2026
5bc43ea
Bump Telepresence to 2.32 so header intercepts speak HTTP/1.
jmjava Sep 27, 2026
1e8093a
Run Telepresence 2.32 intercepts from a separate client pod.
jmjava Sep 27, 2026
011ac2d
Deliver headered Telepresence traffic off the TUN to the PR pod.
jmjava Sep 28, 2026
766e00d
Keep header intercepts on Telepresence 2.25, which can create them.
jmjava Sep 28, 2026
aaf17a3
Route Telepresence TCP intercepts by session header in-cluster.
jmjava Sep 28, 2026
d37b0b7
Keep going when Telepresence reports the intercept already exists.
jmjava Sep 28, 2026
42a6fb2
Send matched Telepresence traffic to the handler in plaintext.
jmjava Sep 28, 2026
368b117
ci(e2e): collect full pod logs in intercept artifacts
jmjava Sep 28, 2026
8c3409f
Make mirrord the CI intercept backend and prove PR-pod routing
jmjava Sep 28, 2026
978fda5
docs(intercepts): record the iptables root cause from full logs
jmjava Sep 28, 2026
84c6105
mirrord proxy: run as its own ServiceAccount and fail closed on the s…
jmjava Sep 28, 2026
011938c
Remove in-cluster Telepresence; mirrord is the only intercept backend
jmjava Sep 28, 2026
a5885f8
mirrord proxy gate: ignore telemetry machine-ID error, disable analytics
jmjava Sep 28, 2026
e90c4d5
AGENTS.md: debug pipeline/intercept changes on a persistent local kin…
jmjava Sep 28, 2026
d517851
mirrord intercept: grant pods/portforward, anchor header_filter, posi…
jmjava Sep 28, 2026
4864daf
gitignore artifacts/: local E2E output is scratch, not source
jmjava Sep 28, 2026
0344679
milestone-7: mark 'run either backend' superseded; fix link to remove…
jmjava Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/intercept-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Weekly (and path-filtered) product-path evidence: trigger → StackRun →
# operator → PR PipelineRun → intercept (Telepresence or mirrord) → tests.
# operator → PR PipelineRun → mirrord intercept → routing proof → tests.
# Not the everyday PR gate — local-regression.yml is. Path filters still
# start Kind when Helm/tasks/operator/orchestrator/pipeline/stacks or the
# listed scripts change.
Expand Down Expand Up @@ -38,7 +38,7 @@ on:
workflow_dispatch:
schedule:
# Weekly product-path evidence on the default branch (Monday).
# Changing this workflow file on a PR runs the same telepresence + mirrord jobs as the cron.
# Changing this workflow file on a PR runs the same mirrord job as the cron.
- cron: "43 7 * * 1"

permissions:
Expand All @@ -56,7 +56,8 @@ jobs:
strategy:
fail-fast: false
matrix:
backend: [telepresence, mirrord]
# mirrord is the only in-cluster intercept backend (see docs/intercept-backends.md).
backend: [mirrord]
env:
E2E_ARTIFACT_DIR: ${{ github.workspace }}/artifacts/${{ matrix.backend }}
E2E_GIT_SSH_PRIVATE_KEY: ${{ secrets.E2E_GIT_SSH_PRIVATE_KEY }}
Expand Down Expand Up @@ -123,10 +124,6 @@ jobs:
set -o pipefail
bash build-images/build-and-push.sh localhost:5000 latest 2>&1 | tee build-images.log

- name: Install Telepresence traffic manager
if: matrix.backend == 'telepresence'
run: ./scripts/install-telepresence-traffic-manager.sh

- name: Run authenticated product path
env:
PR_NUMBER: ${{ github.run_number }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ sample-repos/*/venv/
sample-repos/*/output/
sample-repos/*/.mvn/wrapper/maven-wrapper.jar
docs/demos/media/
artifacts/
27 changes: 27 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,33 @@ Do **not** stop after a single partial test run. Follow **[docs/AGENT-REGRESSION
- Run **`bash scripts/run-regression-agent.sh`** (or **`run-regression-agent-full.sh`** if Results + DB must pass).
- **Loop**: fix failures → re-run until **`regression exit code: 0`** and done criteria in the doc are met.

## Local kind first — CI is confirmation, not the debugger

`intercept-e2e.yml` costs ~20 min per cycle (runner queue + `kind create` + image build + pipeline) and only hands back log zips after the cluster is gone. On 2026-09-27 four consecutive mirrord-intercept fixes were debugged that way; each was a two-minute `kubectl logs` question on a live cluster.

When changing `tasks/**`, `pipeline/**`, `scripts/run-product-intercept-e2e.sh`, `scripts/run-e2e-with-intercepts.sh`, `operator/`, or `orchestrator/`:

1. Bring up (or reuse) the persistent local cluster once — check `MemAvailable` in `/proc/meminfo` is above 8 GiB first:

```bash
bash scripts/run-cluster-ci.sh --skip-isolation # kind "tekton-stack" + registry + Tekton
kubectl create namespace staging --dry-run=client -o yaml | kubectl apply -f -
kubectl label namespace staging pod-security.kubernetes.io/enforce=privileged \
pod-security.kubernetes.io/audit=privileged pod-security.kubernetes.io/warn=privileged --overwrite
kubectl create secret generic ssh-key-secret -n tekton-pipelines --dry-run=client -o yaml | kubectl apply -f -
bash build-images/build-and-push.sh localhost:5000 latest
```

2. Iterate against it. Re-apply only what changed (`kubectl apply -f tasks/`, `kubectl apply -f pipeline/`, rebuild one tool image) and rerun
`bash scripts/run-product-intercept-e2e.sh --intercept-backend mirrord --pr <N> 2>&1 | tee /tmp/intercept-local.log`.
Watch live: `kubectl get pods -n staging -w`, `kubectl logs -n staging <mirrord-proxy-pod>`, `kubectl logs -n staging -l app=mirrord --tail=-1`.

3. Do **not** `kind delete cluster --name tekton-stack` between iterations. Delete only when the cluster itself is suspect. Never touch other kind clusters on the machine.

4. Push to CI when the local run is green. CI then confirms on a clean VM.

Log-grep gates in tasks match **specific fatal messages**, never a generic `ERROR <tool>` (mirrord emits a non-fatal telemetry `ERROR` line). See [docs/intercept-backends.md](docs/intercept-backends.md).

## Quick commands

| Intent | Command |
Expand Down
174 changes: 0 additions & 174 deletions PR-TELEPRESENCE-INTERCEPT-CONFIRMATION.md

This file was deleted.

13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Each row links to the **in-browser player** on Pages (`#seg-…`) and to the **c
| [M4.1](milestones/milestone-4.1.md) | **Completed** | Standalone baggage libraries (Spring Boot, Node, Flask, PHP) |
| [M5](milestones/milestone-5.md) | **Completed** | Original traffic validation + mirrord evaluation |
| [M6](milestones/milestone-6.md) | **Completed** | Full MetalBear testing (all intercept scenarios) |
| [M7](milestones/milestone-7.md) | **Completed** | Dual intercept backend: Telepresence or mirrord via `intercept-backend` param |
| [M7](milestones/milestone-7.md) | **Completed** | Dual intercept backend via `intercept-backend` param. Superseded 2026-09-27: in-cluster Telepresence removed, mirrord only ([why](docs/intercept-backends.md)) |
| [M7.1](milestones/milestone-7-1.md) | **Completed** | Pipeline speed: parallel containerize, Kaniko cache, parallel clone |
| [M8](milestones/milestone-8.md) | **Partial** | Demo assets: Manim + TTS + composed segments + [GitHub Pages](https://jmjava.github.io/tekton-dag/); VHS terminal recordings, Slidev PDF, full concat still open |
| [M9](milestones/milestone-9.md) | **Completed** | Test-trace regression graph + minimal test selection (Neo4j, mock Datadog). 10 Newman requests, 36 assertions. Test filtering in PR pipeline. |
Expand Down Expand Up @@ -148,7 +148,7 @@ flowchart LR
Promote[stack-promote]
end
subgraph runtime [Runtime]
Intercept[Intercept: Telepresence or mirrord]
Intercept[Intercept: mirrord header steal]
Validate[Validate propagation + original traffic]
Test[Run tests: Newman / Playwright / Artillery]
end
Expand All @@ -171,7 +171,7 @@ flowchart LR
| **Merge** (`stack-merge-release`) | Promote RC to release, build, tag release images, push next dev cycle version commit. |
| **Promote** (`stack-promote`) | Copy release-tagged images to a target registry/environment (`registries.yaml` or API overrides); optional approval gate. |

**Intercept backends:** Telepresence (default) or mirrord, selected via pipeline param `intercept-backend`. Both are implemented. Weekly/manual CI is [`.github/workflows/intercept-e2e.yml`](.github/workflows/intercept-e2e.yml) (`scripts/run-product-intercept-e2e.sh`). Treat only a recent successful matrix job and its retained traffic artifact as verification ([M17.3](milestones/milestone-17.md)).
**Intercept backend:** mirrord (header steal, routing proven from the PR pod access log). The in-cluster Telepresence backend was removed on 2026-09-27; Telepresence remains a laptop tool only. See [docs/intercept-backends.md](docs/intercept-backends.md). Weekly/manual CI is [`.github/workflows/intercept-e2e.yml`](.github/workflows/intercept-e2e.yml) (`scripts/run-product-intercept-e2e.sh`). Treat only a recent successful matrix job and its retained traffic artifact as verification ([M17.3](milestones/milestone-17.md)).

**Orchestration service** (M10): In-cluster Flask service that receives GitHub webhooks, resolves repo-to-stack dynamically, and creates **StackRun** CRs. The Go operator reconciles each StackRun into a Tekton PipelineRun. Packaged via Helm (`operator.enabled` defaults **true**) with an ArgoCD ApplicationSet for multi-team provisioning. Mutation APIs require a bearer token. See [docs/m10-multi-team-architecture.md](docs/m10-multi-team-architecture.md) and [orchestrator/README.md](orchestrator/README.md).

Expand All @@ -196,8 +196,8 @@ flowchart LR
kubectl apply -f tasks/
kubectl apply -f pipeline/

# 5. Optional: Telepresence Traffic Manager (for PR pipeline intercepts)
./scripts/install-telepresence-traffic-manager.sh
# 5. mirrord intercept proxy identity (ServiceAccount + Role in staging)
./scripts/install-mirrord-intercept-rbac.sh

# 6. Optional: Postgres + Tekton Results (persist run history)
./scripts/install-postgres-kind.sh
Expand Down Expand Up @@ -230,11 +230,10 @@ kubectl port-forward svc/el-stack-event-listener 8080:8080 -n tekton-pipelines &

```bash
# Product path against a cluster that already has the control plane
./scripts/run-product-intercept-e2e.sh --intercept-backend telepresence
./scripts/run-product-intercept-e2e.sh --intercept-backend mirrord

# Full local helper (bootstrap + PR pipeline)
./scripts/run-e2e-with-intercepts.sh --intercept-backend telepresence
./scripts/run-e2e-with-intercepts.sh --intercept-backend mirrord
./scripts/run-e2e-with-intercepts.sh --intercept-backend mirrord --skip-bootstrap
```

Expand Down
12 changes: 6 additions & 6 deletions docs/CUSTOMIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace: tekton-pipelines
cluster: prod-us-east
imageRegistry: registry.internal/squad-b
cacheRepo: registry.internal/squad-b/kaniko-cache
interceptBackend: telepresence
interceptBackend: mirrord
maxConcurrentRuns: 5
maxParallelBuilds: 8
stacks:
Expand All @@ -34,7 +34,7 @@ teamName: "squad-b"
namespace: "tekton-pipelines"
imageRegistry: "registry.internal/squad-b"
cacheRepo: "registry.internal/squad-b/kaniko-cache"
interceptBackend: "telepresence"
interceptBackend: "mirrord"
maxParallelBuilds: 8
stackFile: "stacks/squad-b-core.yaml"
gitUrl: "https://github.com/myorg/platform.git"
Expand Down Expand Up @@ -235,13 +235,13 @@ Ensure a **compile image** exists that matches that toolchain (build and push wi

## 8. Add intercept backend support

**Goal:** Use **mirrord** instead of **Telepresence** (or switch per environment).
**Goal:** Understand the intercept backend setting. mirrord is the only implemented backend; the in-cluster Telepresence task was removed (see [intercept-backends.md](intercept-backends.md)).

1. **Cluster** — install the components your chosen backend needs (e.g. Telepresence Traffic Manager or mirrord operator per vendor docs).
1. **Cluster** — run `./scripts/install-mirrord-intercept-rbac.sh` once per target namespace (ServiceAccount + Role for the proxy pod).

2. **Helm** — set `interceptBackend: "mirrord"` in values; the orchestrator sets `INTERCEPT_BACKEND` for webhook-created runs.
2. **Helm** — `interceptBackend` is `"mirrord"`; the orchestrator sets `INTERCEPT_BACKEND` for webhook-created runs.

3. **Pipeline param** — `stack-pr-test` already exposes `intercept-backend` (`telepresence` | `mirrord`). `generate-run.sh` supports:
3. **Pipeline param** — `stack-pr-test` exposes `intercept-backend` (`mirrord`; kept for API compatibility). `generate-run.sh` supports:

```bash
./scripts/generate-run.sh --mode pr --repo demo-fe --pr 1 --intercept-backend mirrord --apply
Expand Down
Loading
Loading