Skip to content

Instantly share code, notes, and snippets.

@JeromeJu
JeromeJu / POC
Last active January 12, 2024 15:26
//go:build conformance
// +build conformance
/*
This serves as a POC for conformance test suite design. It mocks the black boxexecution of TaskRuns and PipelineRuns
utilizing the Tekton clients to mock the controller of a conformant vendor service.
The next step will be to integrate this test as POC with v2 API.
Please use `go test -v -tags=conformance -count=1 ./test -run ^TestConformance` for triggering the test.
@JeromeJu
JeromeJu / gist:011f2a2d090295d218e5cccada2e5a07
Last active June 29, 2023 17:37
failure on creation of invalid pipeline
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
=================================================================
==== INSTALL THE PREVIOUS RELEASE OF TEKTON PIPELINE V0.49.0 ====
=================================================================
>> Deploying Tekton Pipelines of Version v0.49.0
namespace/tekton-pipelines unchanged
clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access unchanged
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
=================================================================
==== INSTALL THE PREVIOUS RELEASE OF TEKTON PIPELINE V0.49.0 ====
=================================================================
>> Deploying Tekton Pipelines of Version v0.49.0
namespace/tekton-pipelines unchanged
clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access unchanged
This file has been truncated, but you can view the full file.
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
=================================================================
==== INSTALL THE PREVIOUS RELEASE OF TEKTON PIPELINE V0.49.0 ====
=================================================================
>> Deploying Tekton Pipelines of Version v0.49.0
namespace/tekton-pipelines unchanged
clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access unchanged
=== RUN TestLargerResultsSidecarLogs
=== RUN TestLargerResultsSidecarLogs/larger_results_via_sidecar_logs
larger_results_sidecar_logs_test.go:70: Create namespace arendelle-pmltz to deploy to
larger_results_sidecar_logs_test.go:70: Verify SA "default" is created in namespace "arendelle-pmltz"
larger_results_sidecar_logs_test.go:80: Setting up test resources for "larger results via sidecar logs" test in namespace arendelle-pmltz
larger_results_sidecar_logs_test.go:93: Waiting for PipelineRun larger-results-sidecar-logs in namespace arendelle-pmltz to complete
larger_results_sidecar_logs_test.go:95: Error waiting for PipelineRun larger-results-sidecar-logs to finish: "larger-results-sidecar-logs" failed
panic.go:540: ############################################
panic.go:540: ### Dumping objects from arendelle-pmltz ###
panic.go:540: ############################################
This file has been truncated, but you can view the full file.
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
======================================================================
==== TESTING MAIN AGAINST THE LATEST RELEASE TO DETECT REGRESSION ====
======================================================================
>> Deploying Tekton Pipelines
2023/05/31 12:54:14 Using base cgr.dev/chainguard/static@sha256:f7914e3925ee3ff1355f713ed931a01d8036767a08a6a80af60964c249a65dff for github.com/tektoncd/pipeline/cmd/webhook
2023/05/31 12:54:14 Using base cgr.dev/chainguard/static@sha256:f7914e3925ee3ff1355f713ed931a01d8036767a08a6a80af60964c249a65dff for github.com/tektoncd/pipeline/cmd/resolvers
This file has been truncated, but you can view the full file.
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
=================================================================
==== INSTALL THE PREVIOUS RELEASE OF TEKTON PIPELINE V0.48.0 ====
=================================================================
>> Deploying Tekton Pipelines of Version v0.48.0
namespace/tekton-pipelines unchanged
clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access configured
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
======================================================================
==== TESTING MAIN AGAINST THE LATEST RELEASE TO DETECT REGRESSION ====
======================================================================
>> Deploying Tekton Pipelines
2023/05/28 17:26:48 Using base cgr.dev/chainguard/static@sha256:ee47224a2afc674c1f1089b9dea97d5ee400cf2fff3797398778450a4cfb2a8d for github.com/tektoncd/pipeline/cmd/webhook
2023/05/28 17:26:48 Using base cgr.dev/chainguard/static@sha256:ee47224a2afc674c1f1089b9dea97d5ee400cf2fff3797398778450a4cfb2a8d for github.com/tektoncd/pipeline/cmd/events
This file has been truncated, but you can view the full file.
./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
======================================================================
==== TESTING MAIN AGAINST THE LATEST RELEASE TO DETECT REGRESSION ====
======================================================================
>> Deploying Tekton Pipelines
2023/05/27 00:30:57 Using base cgr.dev/chainguard/static@sha256:ee47224a2afc674c1f1089b9dea97d5ee400cf2fff3797398778450a4cfb2a8d for github.com/tektoncd/pipeline/cmd/webhook
2023/05/27 00:30:57 Using base cgr.dev/chainguard/static@sha256:ee47224a2afc674c1f1089b9dea97d5ee400cf2fff3797398778450a4cfb2a8d for github.com/tektoncd/pipeline/cmd/events
This file has been truncated, but you can view the full file.
jeromeju@jju:~/pipeline$ ./test/e2e-tests-upgrade.sh
================================
==== SETTING UP ENVIRONMENT ====
================================
=================================================================
==== INSTALL THE PREVIOUS RELEASE OF TEKTON PIPELINE V0.48.0 ====
=================================================================
>> Deploying Tekton Pipelines of Version v0.48.0
namespace/tekton-pipelines created
clusterrole.rbac.authorization.k8s.io/tekton-pipelines-controller-cluster-access created