ResultFAILURE
Tests 1 failed / 969 succeeded
Started2025-02-05 09:18
Elapsed1m45s
Revisionda02b374bd41020acc3d84e1efa8972c0134f3ec
Refs 1647

Test Failures


pkg/interceptors/server Failure 0.00s

go run hack/e2e.go -v --test --test_args='--ginkgo.focus=pkg\/interceptors\/server\sFailure$'
goroutine 68 [running]:
testing.(*common).logDepth(0xc000131380, {0xc0001a3da0, 0x54}, 0x3)
testing.(*common).log(...)
testing.(*common).Logf(0xc000131380, {0x35869f4, 0x2}, {0xc000282a10, 0x1, 0x1})
go.uber.org/zap/zaptest.TestingWriter.Write({{0x3a80610?, 0xc000131380?}, 0xd0?}, {0xc0009ae800, 0x55, 0x400})
go.uber.org/zap/zapcore.(*ioCore).Write(0xc000773c50, {0x2, {0xc1e0e92c6459572d, 0x503ca8ca7, 0x4e7e0e0}, {0x0, 0x0}, {0xc000925dc0, 0x35}, {0x0, ...}, ...}, ...)
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000278dd0, {0x0, 0x0, 0x0})
go.uber.org/zap.(*SugaredLogger).log(0xc0002cd538, 0x2, {0x35a86ee, 0x19}, {0xc000891fc0, 0x1, 0x1}, {0x0, 0x0, 0x0})
go.uber.org/zap.(*SugaredLogger).Errorf(...)
github.com/tektoncd/triggers/pkg/interceptors/server.UpdateCACertToClusterInterceptorCRD.func1()
created by github.com/tektoncd/triggers/pkg/interceptors/server.UpdateCACertToClusterInterceptorCRD in goroutine 67
				from junit_OhhWdjlE.xml

Filter through log files


Show 969 Passed Tests

Error lines from build-log.txt

... skipping 317 lines ...
vendor/github.com/Azure/go-autorest/autorest/date/date.go
vendor/github.com/Azure/go-autorest/autorest/date/go_mod_tidy_hack.go
vendor/github.com/Azure/go-autorest/autorest/date/time.go
vendor/github.com/Azure/go-autorest/autorest/date/timerfc1123.go
vendor/github.com/Azure/go-autorest/autorest/date/unixtime.go
vendor/github.com/Azure/go-autorest/autorest/date/utility.go
vendor/github.com/Azure/go-autorest/autorest/error.go
vendor/github.com/Azure/go-autorest/autorest/go_mod_tidy_hack.go
vendor/github.com/Azure/go-autorest/autorest/preparer.go
vendor/github.com/Azure/go-autorest/autorest/responder.go
vendor/github.com/Azure/go-autorest/autorest/retriablerequest.go
vendor/github.com/Azure/go-autorest/autorest/retriablerequest_1.7.go
vendor/github.com/Azure/go-autorest/autorest/retriablerequest_1.8.go
... skipping 218 lines ...
vendor/github.com/google/cel-go/common/ast/navigable.go
vendor/github.com/google/cel-go/common/containers/BUILD.bazel
vendor/github.com/google/cel-go/common/containers/container.go
vendor/github.com/google/cel-go/common/debug/BUILD.bazel
vendor/github.com/google/cel-go/common/debug/debug.go
vendor/github.com/google/cel-go/common/decls/decls.go
vendor/github.com/google/cel-go/common/error.go
vendor/github.com/google/cel-go/common/errors.go
vendor/github.com/google/cel-go/common/runes/buffer.go
vendor/github.com/google/cel-go/common/source.go
vendor/github.com/google/cel-go/common/stdlib/BUILD.bazel
vendor/github.com/google/cel-go/common/stdlib/standard.go
vendor/github.com/google/cel-go/common/types/BUILD.bazel
... skipping 60 lines ...
vendor/github.com/google/cel-go/parser/parser.go
vendor/github.com/google/cel-go/parser/unescape.go
vendor/github.com/google/cel-go/parser/unparser.go
vendor/github.com/google/gnostic/LICENSE
vendor/github.com/google/gnostic/compiler/README.md
vendor/github.com/google/gnostic/compiler/context.go
vendor/github.com/google/gnostic/compiler/error.go
vendor/github.com/google/gnostic/compiler/extensions.go
vendor/github.com/google/gnostic/compiler/helpers.go
vendor/github.com/google/gnostic/compiler/main.go
vendor/github.com/google/gnostic/compiler/reader.go
vendor/github.com/google/gnostic/extensions/README.md
vendor/github.com/google/gnostic/extensions/extension.pb.go
... skipping 630 lines ...
vendor/go.uber.org/atomic/README.md
vendor/go.uber.org/atomic/bool.go
vendor/go.uber.org/atomic/bool_ext.go
vendor/go.uber.org/atomic/doc.go
vendor/go.uber.org/atomic/duration.go
vendor/go.uber.org/atomic/duration_ext.go
vendor/go.uber.org/atomic/error.go
vendor/go.uber.org/atomic/error_ext.go
vendor/go.uber.org/atomic/float32.go
vendor/go.uber.org/atomic/float32_ext.go
vendor/go.uber.org/atomic/float64.go
vendor/go.uber.org/atomic/float64_ext.go
vendor/go.uber.org/atomic/gen.go
... skipping 21 lines ...
vendor/go.uber.org/automaxprocs/internal/runtime/cpu_quota_unsupported.go
vendor/go.uber.org/automaxprocs/internal/runtime/runtime.go
vendor/go.uber.org/automaxprocs/maxprocs/maxprocs.go
vendor/go.uber.org/automaxprocs/maxprocs/version.go
vendor/go.uber.org/multierr/CHANGELOG.md
vendor/go.uber.org/multierr/README.md
vendor/go.uber.org/multierr/error.go
vendor/go.uber.org/multierr/error_pre_go120.go
vendor/go.uber.org/multierr/glide.yaml
vendor/go.uber.org/zap/.golangci.yml
vendor/go.uber.org/zap/.readme.tmpl
vendor/go.uber.org/zap/CHANGELOG.md
vendor/go.uber.org/zap/LICENSE.txt
vendor/go.uber.org/zap/Makefile
vendor/go.uber.org/zap/README.md
vendor/go.uber.org/zap/array.go
vendor/go.uber.org/zap/array_go118.go
vendor/go.uber.org/zap/buffer/buffer.go
vendor/go.uber.org/zap/buffer/pool.go
vendor/go.uber.org/zap/config.go
vendor/go.uber.org/zap/error.go
vendor/go.uber.org/zap/field.go
vendor/go.uber.org/zap/http_handler.go
vendor/go.uber.org/zap/internal/level_enabler.go
vendor/go.uber.org/zap/internal/ztest/clock.go
vendor/go.uber.org/zap/level.go
vendor/go.uber.org/zap/logger.go
... skipping 3 lines ...
vendor/go.uber.org/zap/sugar.go
vendor/go.uber.org/zap/writer.go
vendor/go.uber.org/zap/zapcore/console_encoder.go
vendor/go.uber.org/zap/zapcore/core.go
vendor/go.uber.org/zap/zapcore/encoder.go
vendor/go.uber.org/zap/zapcore/entry.go
vendor/go.uber.org/zap/zapcore/error.go
vendor/go.uber.org/zap/zapcore/field.go
vendor/go.uber.org/zap/zapcore/json_encoder.go
vendor/go.uber.org/zap/zapcore/sampler.go
vendor/go.uber.org/zap/zaptest/logger.go
vendor/golang.org/x/crypto/LICENSE
vendor/golang.org/x/crypto/cast5/cast5.go
... skipping 1357 lines ...
vendor/k8s.io/apimachinery/pkg/util/strategicpatch/meta.go
vendor/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go
vendor/k8s.io/apimachinery/pkg/util/validation/validation.go
vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go
vendor/k8s.io/apimachinery/pkg/util/wait/delay.go
vendor/k8s.io/apimachinery/pkg/util/wait/error.go
vendor/k8s.io/apimachinery/pkg/util/wait/loop.go
vendor/k8s.io/apimachinery/pkg/util/wait/poll.go
vendor/k8s.io/apimachinery/pkg/util/wait/timer.go
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go
vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1/matchcondition.go
vendor/k8s.io/client-go/applyconfigurations/admissionregistration/v1/mutatingwebhook.go
... skipping 2031 lines ...
    --- PASS: TestInterceptor_ExecuteTrigger_owners_parseBodyForOwners/Payload_body_missing_sender_field (0.00s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_parseBodyForOwners/Issue_comment_missing_'comment'_section (0.00s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_parseBodyForOwners/Issue_comment_missing_body_field_in_comment_section (0.00s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_parseBodyForOwners/Payload_return_with_all_details_issue_comment (0.00s)
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation/personalAccessToken_secretKey_is_empty
    github_test.go:2034: Interceptor.Process() = error getting github token: github interceptor personalAccessToken.secretKey is empty, want error getting github token: github interceptor personalAccessToken.secretKey is empty
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation/error_parsing_payload_body
    github_test.go:2034: Interceptor.Process() = error parsing body: pull_request body missing 'number' field, want error parsing body: pull_request body missing 'number' field
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation/no_owners_file
    github_test.go:2034: Interceptor.Process() = owners check requirements not met, want owners check requirements not met
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation/error_checking_owner_file_validation
    github_test.go:2034: Interceptor.Process() = error checking owner verification: GET http://127.0.0.1:38153/api/v3/repos/owner/repo/contents/OWNERS: 500  [], want 
=== RUN   TestInterceptor_ExecuteTrigger_owners_data_validation/no_context
    github_test.go:2034: Interceptor.Process() = error getting github token: no request context passed, want error getting github token: no request context passed
--- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation (0.20s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/personalAccessToken_secretKey_is_empty (0.04s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_parsing_payload_body (0.04s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_owners_file (0.04s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_checking_owner_file_validation (0.04s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_context (0.04s)
... skipping 39 lines ...
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_continue (0.06s)
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_not_continue (0.05s)
=== RUN   TestServer_ServeHTTP_Error
=== RUN   TestServer_ServeHTTP_Error/bad_path
    logger.go:146: 2025-02-05T09:19:24.310Z	INFO	HTTP 400 - path did not match any interceptors
=== RUN   TestServer_ServeHTTP_Error/invalid_body
    logger.go:146: 2025-02-05T09:19:24.340Z	INFO	HTTP 400 - failed to parse body as InterceptorRequest: json: cannot unmarshal string into Go value of type v1beta1.InterceptorRequest
--- PASS: TestServer_ServeHTTP_Error (0.06s)
    --- PASS: TestServer_ServeHTTP_Error/bad_path (0.03s)
    --- PASS: TestServer_ServeHTTP_Error/invalid_body (0.03s)
=== RUN   TestServer_RegisterInterceptor
--- PASS: TestServer_RegisterInterceptor (0.00s)
=== RUN   Test_SecretNotExist
    logger.go:146: 2025-02-05T09:19:24.385Z	INFO	secret  is missing
--- PASS: Test_SecretNotExist (0.04s)
=== RUN   Test_CreateSecret
--- PASS: Test_CreateSecret (0.04s)
=== RUN   Test_CheckCertValidity
    logger.go:146: 2025-02-05T09:19:30.498Z	ERROR	failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-02-05T09:19:30Z is after 2025-02-05T09:19:30Z
--- PASS: Test_CheckCertValidity (10.07s)
=== RUN   Test_CreateAndValidateCerts
--- PASS: Test_CreateAndValidateCerts (0.04s)
=== RUN   Test_GetTLSData
=== RUN   Test_GetTLSData/Invalid_secret
=== NAME  Test_GetTLSData
    logger.go:146: 2025-02-05T09:19:34.574Z	ERROR	failed to fetch secret secret "test111" not found
=== RUN   Test_GetTLSData/missing_key
=== NAME  Test_GetTLSData
    logger.go:146: 2025-02-05T09:19:34.575Z	WARN	server key missing
=== RUN   Test_GetTLSData/missing_cert
=== NAME  Test_GetTLSData
    logger.go:146: 2025-02-05T09:19:34.575Z	WARN	server cert missing
... skipping 7 lines ...
    --- PASS: Test_GetTLSData/missing_cert (0.00s)
    --- PASS: Test_GetTLSData/Invalid_certs (0.00s)
    --- PASS: Test_GetTLSData/Valid_certs (0.00s)
=== RUN   Test_UpdateCACertToClusterInterceptorCRD
--- PASS: Test_UpdateCACertToClusterInterceptorCRD (10.03s)
PASS
panic: Log in goroutine after Test_UpdateCACertToClusterInterceptorCRD has completed: 2025-02-05T09:19:45.609Z	ERROR	failed to fetch secret secret "testsecrets" not found

goroutine 68 [running]:
testing.(*common).logDepth(0xc000131380, {0xc0001a3da0, 0x54}, 0x3)
	/usr/local/go/src/testing/testing.go:1029 +0x6d4
testing.(*common).log(...)
	/usr/local/go/src/testing/testing.go:1011
... skipping 10 lines ...
go.uber.org/zap.(*SugaredLogger).Errorf(...)
	/home/prow/go/src/github.com/tektoncd/triggers/vendor/go.uber.org/zap/sugar.go:216
github.com/tektoncd/triggers/pkg/interceptors/server.UpdateCACertToClusterInterceptorCRD.func1()
	/home/prow/go/src/github.com/tektoncd/triggers/pkg/interceptors/server/server.go:335 +0x2da
created by github.com/tektoncd/triggers/pkg/interceptors/server.UpdateCACertToClusterInterceptorCRD in goroutine 67
	/home/prow/go/src/github.com/tektoncd/triggers/pkg/interceptors/server/server.go:330 +0x228
FAIL	github.com/tektoncd/triggers/pkg/interceptors/server	21.570s
=== RUN   TestInterceptor_ExecuteTrigger_ShouldContinue
=== RUN   TestInterceptor_ExecuteTrigger_ShouldContinue/valid_case
--- PASS: TestInterceptor_ExecuteTrigger_ShouldContinue (0.05s)
    --- PASS: TestInterceptor_ExecuteTrigger_ShouldContinue/valid_case (0.05s)
=== RUN   TestInterceptor_ExecuteTrigger_ShouldNotContinue
=== RUN   TestInterceptor_ExecuteTrigger_ShouldNotContinue/bad_payload
... skipping 274 lines ...
    logger.go:146: 2025-02-05T09:19:24.984Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is http://my-svc.default.svc:80/path
    logger.go:146: 2025-02-05T09:19:24.985Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is https://my-svc.default.svc:8443/path
--- PASS: TestReconcileKind (0.01s)
PASS
ok  	github.com/tektoncd/triggers/pkg/reconciler/interceptor	1.107s
=== RUN   TestUninitializedMetrics
    logger.go:146: 2025-02-05T09:19:25.396Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of eventlistener, failed to initialize the metrics recorder
    logger.go:146: 2025-02-05T09:19:25.396Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clustertriggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-02-05T09:19:25.397Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-02-05T09:19:25.397Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggertemplate, failed to initialize the metrics recorder
    logger.go:146: 2025-02-05T09:19:25.397Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clusterinterceptor, failed to initialize the metrics recorder
--- PASS: TestUninitializedMetrics (0.04s)
=== RUN   TestCountMetrics
--- PASS: TestCountMetrics (0.04s)
=== RUN   TestELCount
--- PASS: TestELCount (0.04s)
=== RUN   TestTTCount
... skipping 64 lines ...
=== RUN   TestRecordRecordDurationMetrics/Record_Metrics
    logger.go:146: 2025-02-05T09:19:29.513Z	DEBUG	event listener request completed	{"status": 200, "duration": 0.000000007}
--- PASS: TestRecordRecordDurationMetrics (0.00s)
    --- PASS: TestRecordRecordDurationMetrics/Record_Metrics (0.00s)
=== RUN   TestRecordRecordCountMetrics
=== RUN   TestRecordRecordCountMetrics/Record_Metrics
    logger.go:146: 2025-02-05T09:19:29.514Z	DEBUG	event listener request	{"status": "failed"}
--- PASS: TestRecordRecordCountMetrics (0.00s)
    --- PASS: TestRecordRecordCountMetrics/Record_Metrics (0.00s)
=== RUN   TestHandleEvent
=== RUN   TestHandleEvent/single_trigger_embedded_within_EventListener
    logger.go:146: 2025-02-05T09:19:29.559Z	DEBUG	handling event with path /, payload: {"head_commit": {"id": "testrevision"}, "repository": {"url": "testurl"}, "foo": "bar\t\r\nbaz昨"} and header: map[Accept-Encoding:[gzip] Content-Length:[99] Content-Type:[application/json] User-Agent:[Go-http-client/1.1]]	{"eventlistener": "my-el", "namespace": "foo", "/triggers-eventid": "12345", "eventlistenerUID": "el-uid", "/triggers-eventid": "12345"}
    logger.go:146: 2025-02-05T09:19:29.559Z	DEBUG	event listener request	{"status": "succeeded"}
... skipping 195 lines ...
    logger.go:146: 2025-02-05T09:19:30.275Z	INFO	Generating resource: kind: &APIResource{Name:taskruns,Namespaced:true,Kind:TaskRun,Verbs:[],ShortNames:[],SingularName:,Categories:[],Group:tekton.dev,Version:v1,StorageVersionHash:,}, name: git-clone-run
    logger.go:146: 2025-02-05T09:19:30.275Z	INFO	For event ID "12345" creating resource tekton.dev/v1, Resource=taskruns
--- PASS: TestCloudEventHandling (0.03s)
=== RUN   TestSink_IsValidPayload
=== RUN   TestSink_IsValidPayload/event_with_Json_Body
    logger.go:146: 2025-02-05T09:19:30.305Z	DEBUG	handling event with path /, payload: {"head_commit": {"id": "testrevision"}, "repository": {"url": "testurl"}} and header: map[Accept-Encoding:[gzip] Content-Length:[73] Content-Type:[application/json] User-Agent:[Go-http-client/1.1]]	{"eventlistener": "test-el", "namespace": "foo", "/triggers-eventid": "12345", "eventlistenerUID": "", "/triggers-eventid": "12345"}
    logger.go:146: 2025-02-05T09:19:30.305Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-02-05T09:19:30.305Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload/event_with_non_Json_Body
    logger.go:146: 2025-02-05T09:19:30.334Z	DEBUG	event listener request	{"status": "failed"}
    logger.go:146: 2025-02-05T09:19:30.334Z	ERROR	Invalid event body format : invalid character '<' looking for beginning of value
--- PASS: TestSink_IsValidPayload (0.06s)
    --- PASS: TestSink_IsValidPayload/event_with_Json_Body (0.03s)
    --- PASS: TestSink_IsValidPayload/event_with_non_Json_Body (0.03s)
=== RUN   TestSink_IsValidPayload_PayloadValidation
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body
    logger.go:146: 2025-02-05T09:19:30.364Z	DEBUG	handling event with path /, payload: {"head_commit": {"id": "testrevision"}, "repository": {"url": "testurl"}} and header: map[Accept-Encoding:[gzip] Content-Length:[73] Content-Type:[application/json] User-Agent:[Go-http-client/1.1]]	{"eventlistener": "test-el", "namespace": "foo", "/triggers-eventid": "12345", "eventlistenerUID": "", "/triggers-eventid": "12345"}
    logger.go:146: 2025-02-05T09:19:30.364Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-02-05T09:19:30.364Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body
    logger.go:146: 2025-02-05T09:19:30.394Z	DEBUG	handling event with path /, payload: <test>xml</test> and header: map[Accept-Encoding:[gzip] Content-Length:[16] Content-Type:[application/json] User-Agent:[Go-http-client/1.1]]	{"eventlistener": "test-el", "namespace": "foo", "/triggers-eventid": "12345", "eventlistenerUID": "", "/triggers-eventid": "12345"}
    logger.go:146: 2025-02-05T09:19:30.394Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-02-05T09:19:30.394Z	DEBUG	event listener request	{"status": "succeeded"}
--- PASS: TestSink_IsValidPayload_PayloadValidation (0.06s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body (0.03s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body (0.03s)
PASS
ok  	github.com/tektoncd/triggers/pkg/sink	2.001s
... skipping 342 lines ...
    --- PASS: TestGetResourcesFromClients/only_secrets_(and_namespaces) (0.03s)
    --- PASS: TestGetResourcesFromClients/only_pods_(and_namespaces) (0.03s)
=== RUN   TestHMACHeader
--- PASS: TestHMACHeader (0.00s)
PASS
ok  	github.com/tektoncd/triggers/test	1.680s
FAIL
Finished run, return code is 1
XML report written to /logs/artifacts/junit_OhhWdjlE.xml
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace