ci: add e2e tests with Kind cluster, migrate to v1#111
Merged
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
3e5dd57 to
d677315
Compare
d677315 to
0e2de75
Compare
a54fa5f to
d6f8fc5
Compare
4 tasks
126ae6b to
1a4de9b
Compare
- 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>
1a4de9b to
60bb024
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Depends on #110.
Migrate test resources to v1
All TaskRuns in
task/git-clone/tests/run.yamland samples intask/git-clone/samples/are updated fromtekton.dev/v1beta1totekton.dev/v1.Add e2e test infrastructure
Simple e2e setup that:
helm/kind-actiontests/run.yamlTests run against two Tekton Pipelines LTS versions:
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