ResultFAILURE
Tests 1 failed / 958 succeeded
Started2025-07-14 10:56
Elapsed24m36s
Revision64858510dc0793e92fd0bf4256f2502382e47656
Refs 1860

Test Failures


pkg/interceptors/bitbucket [build failed] 0.00s

go run hack/e2e.go -v --test --test_args='--ginkgo.focus=pkg\/interceptors\/bitbucket\s\[build\sfailed\]$'
from junit_BpYf699B.xml

Show 958 Passed Tests

Error lines from build-log.txt

... skipping 131 lines ...
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp/gce.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp/gke.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/LICENSE
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/README.md
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/cloudmonitoring.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/constants.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/error.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/metric.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/option.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric/version.go
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping/LICENSE
vendor/github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping/resourcemapping.go
vendor/github.com/cloudevents/sdk-go/v2/event/content_type.go
... skipping 1950 lines ...
    --- PASS: TestExecute_Error/incorrect_response_format (0.00s)
    --- PASS: TestExecute_Error/HTTPS_URL (0.07s)
=== RUN   TestCacheSecrets
--- PASS: TestCacheSecrets (0.11s)
PASS
ok  	github.com/tektoncd/triggers/pkg/interceptors	2.075s
FAIL	github.com/tektoncd/triggers/pkg/interceptors/bitbucket [build failed]
=== RUN   TestInterceptor_Process
=== RUN   TestInterceptor_Process/simple_body_check_with_matching_body
=== RUN   TestInterceptor_Process/simple_header_check_with_matching_header
=== RUN   TestInterceptor_Process/overloaded_header_check_with_case_insensitive_matching
=== RUN   TestInterceptor_Process/body_and_header_check
=== RUN   TestInterceptor_Process/body_and_header_canonical_check
... skipping 314 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:36047/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.56s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/personalAccessToken_secretKey_is_empty (0.09s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_parsing_payload_body (0.08s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_owners_file (0.15s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/error_checking_owner_file_validation (0.12s)
    --- PASS: TestInterceptor_ExecuteTrigger_owners_data_validation/no_context (0.12s)
... skipping 38 lines ...
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_continue (0.26s)
    --- PASS: TestServer_ServeHTTP/valid_request_that_should_not_continue (0.16s)
=== RUN   TestServer_ServeHTTP_Error
=== RUN   TestServer_ServeHTTP_Error/bad_path
    logger.go:146: 2025-07-14T11:20:25.092Z	INFO	HTTP 400 - path did not match any interceptors
=== RUN   TestServer_ServeHTTP_Error/invalid_body
    logger.go:146: 2025-07-14T11:20:25.202Z	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.34s)
    --- PASS: TestServer_ServeHTTP_Error/bad_path (0.23s)
    --- PASS: TestServer_ServeHTTP_Error/invalid_body (0.11s)
=== RUN   TestServer_RegisterInterceptor
--- PASS: TestServer_RegisterInterceptor (0.00s)
=== RUN   Test_SecretNotExist
    logger.go:146: 2025-07-14T11:20:25.327Z	INFO	secret  is missing
--- PASS: Test_SecretNotExist (0.12s)
=== RUN   Test_CreateSecret
--- PASS: Test_CreateSecret (0.34s)
=== RUN   Test_CheckCertValidity
    logger.go:146: 2025-07-14T11:20:31.929Z	ERROR	failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-07-14T11:20:31Z is after 2025-07-14T11:20:31Z
--- PASS: Test_CheckCertValidity (10.26s)
=== RUN   Test_CreateAndValidateCerts
--- PASS: Test_CreateAndValidateCerts (0.17s)
=== RUN   Test_GetTLSData
=== RUN   Test_GetTLSData/Invalid_secret
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-14T11:20:36.299Z	ERROR	failed to fetch secret secret "test111" not found
=== RUN   Test_GetTLSData/missing_key
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-14T11:20:36.300Z	WARN	server key missing
=== RUN   Test_GetTLSData/missing_cert
=== NAME  Test_GetTLSData
    logger.go:146: 2025-07-14T11:20:36.301Z	WARN	server cert missing
... skipping 301 lines ...
    logger.go:146: 2025-07-14T11:20:27.522Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is http://my-svc.default.svc:80/path
    logger.go:146: 2025-07-14T11:20:27.525Z	DEBUG	interceptor/interceptor.go:50	Resolved Address is https://my-svc.default.svc:8443/path
--- PASS: TestReconcileKind (0.04s)
PASS
ok  	github.com/tektoncd/triggers/pkg/reconciler/interceptor	1.325s
=== RUN   TestUninitializedMetrics
    logger.go:146: 2025-07-14T11:20:28.129Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of eventlistener, failed to initialize the metrics recorder
    logger.go:146: 2025-07-14T11:20:28.129Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clustertriggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-07-14T11:20:28.129Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggerbinding, failed to initialize the metrics recorder
    logger.go:146: 2025-07-14T11:20:28.130Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of triggertemplate, failed to initialize the metrics recorder
    logger.go:146: 2025-07-14T11:20:28.130Z	ERROR	metrics/metrics.go:210	ignoring the metrics recording for number of clusterinterceptor, failed to initialize the metrics recorder
--- PASS: TestUninitializedMetrics (0.23s)
=== RUN   TestCountMetrics
--- PASS: TestCountMetrics (0.29s)
=== RUN   TestELCount
--- PASS: TestELCount (0.31s)
=== RUN   TestTTCount
... skipping 64 lines ...
=== RUN   TestRecordRecordDurationMetrics/Record_Metrics
    logger.go:146: 2025-07-14T11:20:42.844Z	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-14T11:20:42.847Z	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-14T11:20:42.994Z	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-14T11:20:42.994Z	DEBUG	event listener request	{"status": "succeeded"}
... skipping 195 lines ...
    logger.go:146: 2025-07-14T11:20:45.113Z	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-14T11:20:45.113Z	INFO	For event ID "12345" creating resource tekton.dev/v1, Resource=taskruns
--- PASS: TestCloudEventHandling (0.10s)
=== RUN   TestSink_IsValidPayload
=== RUN   TestSink_IsValidPayload/event_with_Json_Body
    logger.go:146: 2025-07-14T11:20:45.199Z	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-14T11:20:45.199Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-14T11:20:45.199Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload/event_with_non_Json_Body
    logger.go:146: 2025-07-14T11:20:45.282Z	DEBUG	event listener request	{"status": "failed"}
    logger.go:146: 2025-07-14T11:20:45.282Z	ERROR	Invalid event body format : invalid character '<' looking for beginning of value
--- PASS: TestSink_IsValidPayload (0.17s)
    --- PASS: TestSink_IsValidPayload/event_with_Json_Body (0.09s)
    --- PASS: TestSink_IsValidPayload/event_with_non_Json_Body (0.08s)
=== RUN   TestSink_IsValidPayload_PayloadValidation
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body
    logger.go:146: 2025-07-14T11:20:45.337Z	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-14T11:20:45.338Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-14T11:20:45.338Z	DEBUG	event listener request	{"status": "succeeded"}
=== RUN   TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body
    logger.go:146: 2025-07-14T11:20:45.432Z	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-14T11:20:45.432Z	ERROR	Error getting Trigger test in Namespace foo: trigger.triggers.tekton.dev "test" not found
    logger.go:146: 2025-07-14T11:20:45.432Z	DEBUG	event listener request	{"status": "succeeded"}
--- PASS: TestSink_IsValidPayload_PayloadValidation (0.15s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_Json_Body (0.06s)
    --- PASS: TestSink_IsValidPayload_PayloadValidation/event_with_non_Json_Body (0.09s)
PASS
ok  	github.com/tektoncd/triggers/pkg/sink	3.901s
... skipping 343 lines ...
    --- PASS: TestGetResourcesFromClients/only_secrets_(and_namespaces) (0.11s)
    --- PASS: TestGetResourcesFromClients/only_pods_(and_namespaces) (0.10s)
=== RUN   TestHMACHeader
--- PASS: TestHMACHeader (0.00s)
PASS
ok  	github.com/tektoncd/triggers/test	2.774s
FAIL
Finished run, return code is 1
XML report written to /logs/artifacts/junit_BpYf699B.xml
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace