Skip to content

ci: add Tekton pipeline for e2e tests#510

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/create-tekton-pipeline-e2e-test
Draft

ci: add Tekton pipeline for e2e tests#510
Copilot wants to merge 2 commits intomainfrom
copilot/create-tekton-pipeline-e2e-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

Adds a Tekton Pipelines definition under ci/tekton/ that replicates the Dagger-based e2e CI workflow from ci/main.go.

Pipeline stages

fetch-source  →  build-images  →  e2e-test
  (git-clone)      (Kaniko)       (DinD + k3d + pytest)
Stage Task Notes
1 git-clone (catalog) Clones repo with submodules
2 interlink-build-images Kaniko — no Docker daemon required in build pod
3 interlink-e2e-test Privileged DinD; mirrors NewInterlink() + Test()

Mapping to ci/main.go

Dagger Tekton
BuildImages() interlink-build-images task
NewInterlink() Steps 7–18 of interlink-e2e-test: Docker network, plugin + interLink containers, k3d cluster, Helm VK deploy
Test() / Run() + pytest Steps 19–23: wait for VK node, approve CSRs, clone vk-test-set, run pytest with identical filter

e2e-test approach

Dagger uses native service bindings between containers. The Tekton equivalent uses a shared Docker network (interlink-net) — plugin and interLink API server run as docker run containers; the k3d cluster is attached to the same network so the virtual-kubelet reaches interLink by hostname.

Pytest filter matches ci/main.go exactly:

not rclone and not limits and not stress and not multi-init and not fail

To test against pre-built images without the build stage, run interlink-e2e-test directly as a TaskRun (documented in ci/tekton/README.md).

Files

ci/tekton/
├── README.md                  # Setup, usage, Dagger mapping
├── pipeline.yaml              # Pipeline resource
├── pipeline-run.yaml          # Example PipelineRun
└── tasks/
    ├── build-images.yaml      # Kaniko build task
    └── e2e-test.yaml          # DinD/k3d test task
Original prompt

https://tekton.dev/docs/pipelines/tasks/ create a tekton pipeline to run the e2e test (like the one in ./ci/main.go)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 29, 2026

Deploy Preview for interlink-dev canceled.

Name Link
🔨 Latest commit 864e560
🔍 Latest deploy log https://app.netlify.com/projects/interlink-dev/deploys/69c91578559d560008925c9f

Agent-Logs-Url: https://github.com/interlink-hq/interLink/sessions/c88fb037-fef6-4719-97a8-74ee54b63da1

Co-authored-by: dciangot <4144326+dciangot@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Tekton pipeline to run end-to-end tests ci: add Tekton pipeline for e2e tests Mar 29, 2026
Copilot AI requested a review from dciangot March 29, 2026 12:06
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.

2 participants