ResultFAILURE
Tests 1 failed / 972 succeeded
Started2025-07-04 11:09
Elapsed15m24s
Revision3dec4848c9e60461aeefa59ced1db98055752be6
Refs 1850

Test Failures


pkg/interceptors/server Failure 0.00s

go run hack/e2e.go -v --test --test_args='--ginkgo.focus=pkg\/interceptors\/server\sFailure$'
goroutine 82 [running]:
testing.(*common).logDepth(0xc0004ff6c0, {0xc00014d920, 0x54}, 0x3)
testing.(*common).log(...)
testing.(*common).Logf(0xc0004ff6c0, {0x45d1b75, 0x2}, {0xc0001143a0, 0x1, 0x1})
go.uber.org/zap/zaptest.TestingWriter.Write({{0x4c14d10?, 0xc0004ff6c0?}, 0x50?}, {0xc0009d8800, 0x55, 0x400})
go.uber.org/zap/zapcore.(*ioCore).Write(0xc00050d710, {0x2, {0xc2120c55e10cd538, 0x66755b482, 0x6a0f9e0}, {0x0, 0x0}, {0xc0001302c0, 0x35}, {0x0, ...}, ...}, ...)
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00057a410, {0x0, 0x0, 0x0})
go.uber.org/zap.(*SugaredLogger).log(0xc000439c20, 0x2, {0x45f57b7, 0x19}, {0xc000ac3fc0, 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_u4iXz0sU.xml

Filter through log files


Show 972 Passed Tests

Error lines from build-log.txt

... skipping 214 lines ...
+ readonly RUN_UNIT_TESTS
+ readonly RUN_INTEGRATION_TESTS
+ readonly RUN_CONFORMANCE_TESTS
+ readonly EMIT_METRICS
+ readonly TEST_TO_RUN
+ cd /home/prow/go/src/github.com/tektoncd/triggers
+ local failed=0
+ [[ -n '' ]]
+ run_build_tests
+ ((  ! RUN_BUILD_TESTS  ))
+ return 0
+ ((  ! PRESUBMIT_TEST_FAIL_FAST  ))
+ run_unit_tests
... skipping 6 lines ...
+ local 'msg===== RUNNING UNIT TESTS ===='
+ local border=============================
+ echo -e '============================\n==== RUNNING UNIT TESTS ====\n============================'
============================
==== RUNNING UNIT TESTS ====
============================
+ local failed=0
+ function_exists pre_unit_tests
++ type -t pre_unit_tests
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ ((  ! failed  ))
+ function_exists unit_tests
++ type -t unit_tests
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ default_unit_test_runner
+ report_go_test ./...
+ local 'args= ./... '
... skipping 1275 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:36841/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 (1.76s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/personalAccessToken_secretKey_is_empty (0.29s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_parsing_payload_body (0.36s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_owners_file (0.35s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_checking_owner_file_validation (0.49s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_context (0.27s)
... skipping 38 lines ...
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_continue (1.34s)
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_not_continue (0.71s)
=== RUN   TestServer_ServeHTTP_Error
=== RUN   TestServer_ServeHTTP_Error/bad_path
    logger.go:146: 2025-07-04T11:23:44.252Z	INFO	HTTP 400 - path did not match any interceptors
=== RUN   TestServer_ServeHTTP_Error/invalid_body
    logger.go:146: 2025-07-04T11:23:44.756Z	INFO	HTTP 400 - failed to parse body as InterceptorRequest: json: cannot unmarshal string into Go value of type v1beta1.InterceptorRequest
--- PASS: TestServer_ServeHTTP_Error (1.45s)
    --- PASS: TestServer_ServeHTTP_Error/bad_path (0.88s)
    --- PASS: TestServer_ServeHTTP_Error/invalid_body (0.56s)
=== RUN   TestServer_RegisterInterceptor
--- PASS: TestServer_RegisterInterceptor (0.00s)
=== RUN   Test_SecretNotExist
    logger.go:146: 2025-07-04T11:23:45.339Z	INFO	secret  is missing
--- PASS: Test_SecretNotExist (0.49s)
=== RUN   Test_CreateSecret
--- PASS: Test_CreateSecret (0.28s)
=== RUN   Test_CheckCertValidity
    logger.go:146: 2025-07-04T11:23:52.505Z	ERROR	failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-07-04T11:23:52Z is after 2025-07-04T11:23:52Z
--- PASS: Test_CheckCertValidity (10.84s)
=== RUN   Test_CreateAndValidateCerts
--- PASS: Test_CreateAndValidateCerts (0.37s)
=== RUN   Test_GetTLSData
=== RUN   Test_GetTLSData/Invalid_secret
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-04T11:23:57.254Z	ERROR	failed to fetch secret secret "test111" not found
=== RUN   Test_GetTLSData/missing_key
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-04T11:23:57.254Z	WARN	server key missing
=== RUN   Test_GetTLSData/missing_cert
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-04T11:23:57.255Z	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.27s)
PASS
panic: Log in goroutine after Test_UpdateCACertToClusterInterceptorCRD has completed: 2025-07-04T11:24:07.554Z	ERROR	failed to fetch secret secret "testsecrets" not found

goroutine 82 [running]:
testing.(*common).logDepth(0xc0004ff6c0, {0xc00014d920, 0x54}, 0x3)
	/home/prow/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.8.linux-amd64/src/testing/testing.go:1029 +0x6d4
testing.(*common).log(...)
	/home/prow/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.8.linux-amd64/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	27.921s
=== RUN   TestInterceptor_ExecuteTrigger_ShouldContinue
=== RUN   TestInterceptor_ExecuteTrigger_ShouldContinue/valid_case
--- PASS: TestInterceptor_ExecuteTrigger_ShouldContinue (0.42s)
    --- PASS: TestInterceptor_ExecuteTrigger_ShouldContinue/valid_case (0.41s)
=== RUN   TestInterceptor_ExecuteTrigger_ShouldNotContinue
=== RUN   TestInterceptor_ExecuteTrigger_ShouldNotContinue/bad_payload
... skipping 279 lines ...
    logger.go:146: 2025-07-04T11:23:51.051Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is http://my-svc.default.svc:80/path
    logger.go:146: 2025-07-04T11:23:51.052Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is https://my-svc.default.svc:8443/path
--- PASS: TestReconcileKind (0.38s)
PASS
ok  	github.com/tektoncd/triggers/pkg/reconciler/interceptor	2.590s
=== RUN   TestUninitializedMetrics
    logger.go:146: 2025-07-04T11:23:52.930Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of eventlistener, failed to initialize the metrics recorder
    logger.go:146: 2025-07-04T11:23:52.941Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clustertriggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-07-04T11:23:52.942Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-07-04T11:23:52.943Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggertemplate, failed to initialize the metrics recorder
    logger.go:146: 2025-07-04T11:23:52.943Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clusterinterceptor, failed to initialize the metrics recorder
--- PASS: TestUninitializedMetrics (0.41s)
=== RUN   TestCountMetrics
--- PASS: TestCountMetrics (0.45s)
=== RUN   TestELCount
--- PASS: TestELCount (0.44s)
=== RUN   TestTTCount
... skipping 65 lines ...
=== RUN   TestRecordRecordDurationMetrics/Record_Metrics
    logger.go:146: 2025-07-04T11:24:17.870Z	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-07-04T11:24:17.871Z	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-07-04T11:24:18.015Z	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-07-04T11:24:18.016Z	DEBUG	event listener request	{"status": "succeeded"}
... skipping 195 lines ...
    logger.go:146: 2025-07-04T11:24:21.428Z	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-07-04T11:24:21.428Z	INFO	For event ID "12345" creating resource tekton.dev/v1, Resource=taskruns
--- PASS: TestCloudEventHandling (0.16s)
=== RUN   TestSink_IsValidPayload
=== RUN   TestSink_IsValidPayload/event_with_Json_Body
    logger.go:146: 2025-07-04T11:24:21.541Z	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-07-04T11:24:21.541Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-04T11:24:21.542Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload/event_with_non_Json_Body
    logger.go:146: 2025-07-04T11:24:21.738Z	DEBUG	event listener request	{"status": "failed"}
    logger.go:146: 2025-07-04T11:24:21.738Z	ERROR	Invalid event body format : invalid character '<' looking for beginning of value
--- PASS: TestSink_IsValidPayload (0.31s)
    --- PASS: TestSink_IsValidPayload/event_with_Json_Body (0.11s)
    --- PASS: TestSink_IsValidPayload/event_with_non_Json_Body (0.20s)
=== RUN   TestSink_IsValidPayload_PayloadValidation
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body
    logger.go:146: 2025-07-04T11:24:21.891Z	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-07-04T11:24:21.894Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-04T11:24:21.894Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body
    logger.go:146: 2025-07-04T11:24:22.033Z	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-07-04T11:24:22.033Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-04T11:24:22.033Z	DEBUG	event listener request	{"status": "succeeded"}
--- PASS: TestSink_IsValidPayload_PayloadValidation (0.29s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body (0.15s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body (0.14s)
PASS
ok  	github.com/tektoncd/triggers/pkg/sink	5.685s
... skipping 342 lines ...
    --- PASS: TestGetResourcesFromClients/only_secrets_(and_namespaces) (0.14s)
    --- PASS: TestGetResourcesFromClients/only_pods_(and_namespaces) (0.15s)
=== RUN   TestHMACHeader
--- PASS: TestHMACHeader (0.00s)
PASS
ok  	github.com/tektoncd/triggers/test	3.830s
FAIL
+ failed=('1' '0')
+ local failed
+ [[ 1 -eq 0 ]]
+ failed=1
+ echo 'Finished run, return code is 1'
Finished run, return code is 1
+ run_go_tool github.com/jstemmer/go-junit-report go-junit-report --help
++ mktemp /logs/artifacts/junit_XXXXXXXX
+ local xml=/logs/artifacts/junit_u4iXz0sU.xml
+ cat /tmp/tmp.bhKO4AVkyu
+ sed -e 's#"github.com/tektoncd/triggers/#"#g'
+ go-junit-report
+ echo 'XML report written to /logs/artifacts/junit_u4iXz0sU.xml'
XML report written to /logs/artifacts/junit_u4iXz0sU.xml
+ ((  ! IS_PROW  ))
+ return 1
+ failed=1
+ ((  ! failed  ))
+ results_banner Unit 1
+ local result
+ [[ 1 -eq 0 ]]
+ result=FAILED
+ header 'Unit tests FAILED'
++ echo Unit tests FAILED
++ tr a-z A-Z
+ local 'upper=UNIT TESTS FAILED'
+ make_banner = 'UNIT TESTS FAILED'
+ local 'msg===== UNIT TESTS FAILED ===='
+ local border============================
+ echo -e '===========================\n==== UNIT TESTS FAILED ====\n==========================='
===========================
==== UNIT TESTS FAILED ====
===========================
+ return 1
+ failed=1
+ ((  ! PRESUBMIT_TEST_FAIL_FAST  ))
+ run_integration_tests
+ ((  ! RUN_INTEGRATION_TESTS  ))
+ return 0
+ ((  ! PRESUBMIT_TEST_FAIL_FAST  ))
+ run_conformance_tests
... skipping 8 lines ...