Skip to content

ci: add e2e tests with Kind cluster, migrate to v1#111

Merged
vdemeester merged 1 commit into
mainfrom
chore/e2e-tests
Jun 4, 2026
Merged

ci: add e2e tests with Kind cluster, migrate to v1#111
vdemeester merged 1 commit into
mainfrom
chore/e2e-tests

Conversation

@vdemeester
Copy link
Copy Markdown
Member

Changes

Depends on #110.

Migrate test resources to v1

All TaskRuns in task/git-clone/tests/run.yaml and samples in task/git-clone/samples/ are updated from tekton.dev/v1beta1 to tekton.dev/v1.

Add e2e test infrastructure

Simple e2e setup that:

  1. Spins up a Kind cluster via helm/kind-action
  2. Installs Tekton Pipelines at the specified version
  3. Installs the git-clone task
  4. Runs all 11 TaskRuns from tests/run.yaml
  5. Waits for completion and reports pass/fail

Tests run against two Tekton Pipelines LTS versions:

  • v1.12.0 (current LTS)
  • v1.6.0 (previous LTS)

This is intentionally simpler than the tektoncd/catalog e2e setup — no registry, no plumbing scripts, no change detection. Just Kind + Tekton + TaskRuns.

What was wrong with CI before

The build workflow had go test -run=^$ ./... which matches zero test names — it only compiled tests without running them. That's fixed in #110. This PR adds the missing task-level e2e tests.

Release Notes

NONE

@tekton-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from vdemeester after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 4, 2026
@vdemeester vdemeester force-pushed the chore/e2e-tests branch 3 times, most recently from 3e5dd57 to d677315 Compare June 4, 2026 07:40
@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 4, 2026
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 4, 2026
@vdemeester vdemeester force-pushed the chore/e2e-tests branch 9 times, most recently from a54fa5f to d6f8fc5 Compare June 4, 2026 08:34
@vdemeester vdemeester force-pushed the chore/e2e-tests branch 3 times, most recently from 126ae6b to 1a4de9b Compare June 4, 2026 09:00
- Migrate test TaskRuns and samples from v1beta1 to v1
- Add e2e test script that installs Tekton + task, runs all TaskRuns
- E2e job depends on build (needs: [build]), runs only after build passes
- Build git-init image with ko, load into Kind, override task default
  so tests exercise the code from the PR, not a released image
- Test against all Tekton Pipelines LTS versions
- Add concurrency group with cancel-in-progress
- Add CI summary fan-in job for branch protection
- Fix shebang from #!/usr/bin/env sh to #!/bin/sh for minimal images
- Fix .ko.yaml base image override key mismatch
- Use ghcr.io/tektoncd/plumbing/alpine-git-nonroot as base image
  (includes git, git-lfs, openssh, coreutils, nonroot user)
- Update goreleaser base image to match
- Add mkdir -p for user home directory (fixes #62)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@vdemeester vdemeester merged commit 54d4b67 into main Jun 4, 2026
7 checks passed
@vdemeester vdemeester deleted the chore/e2e-tests branch June 4, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants