golang-samples icon indicating copy to clipboard operation
golang-samples copied to clipboard

logging/taillogs: TestTailLogs failed

Open flaky-bot[bot] opened this issue 3 years ago • 5 comments

Note: #2403 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 030b37e8a56e02cd00b2fc253c00eaab0fb7fd08 buildURL: Build Status, Sponge status: failed

Test output
received:
entries:{log_name:"projects/golang-samples-tests-3/logs/cloudaudit.googleapis.com%2Factivity" resource:{type:"logging_log" labels:{key:"name" value:"log-example"} labels:{key:"project_id" value:"golang-samples-tests-3"}} proto_payload:{[type.googleapis.com/google.cloud.audit.AuditLog]:{service_name:"logging.googleapis.com" method_name:"google.logging.v2.LoggingServiceV2.DeleteLog" resource_name:"projects/golang-samples-tests-3/logs/log-example" status:{} authentication_info:{principal_email:"kokoro-golang-samples-tests-3@golang-samples-tests-3.iam.gserviceaccount.com" service_account_key_name:"//iam.googleapis.com/projects/golang-samples-tests-3/serviceAccounts/kokoro-golang-samples-tests-3@golang-samples-tests-3.iam.gserviceaccount.com/keys/05f4f474c5e39177cefa244f629ad07d6636a8cb" principal_subject:"serviceAccount:kokoro-golang-samples-tests-3@golang-samples-tests-3.iam.gserviceaccount.com"} authorization_info:{resource:"projects/golang-samples-tests-3/logs/log-example" permission:"logging.logs.delete" granted:true resource_attributes:{service:"logging.googleapis.com" name:"projects/golang-samples-tests-3/logs/log-example"}} request_metadata:{caller_ip:"34.70.17.196" caller_supplied_user_agent:"grpc-go/1.44.1-dev,gzip(gfe)" request_attributes:{time:{seconds:1649784784 nanos:686170707} auth:{}} destination_attributes:{}} request:{fields:{key:"@type" value:{string_value:"type.googleapis.com/google.logging.v2.DeleteLogRequest"}} fields:{key:"logName" value:{string_value:"projects/golang-samples-tests-3/logs/log-example"}}}}} timestamp:{seconds:1649784784 nanos:672573289} receive_timestamp:{seconds:1649784786 nanos:265711659} severity:NOTICE insert_id:"2if0r7ddrxi"}
    taillogs_test.go:90: tailLogs sample failed to complete after 2 minutes

flaky-bot[bot] avatar Apr 12 '22 18:04 flaky-bot[bot]

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (030b37e8a56e02cd00b2fc253c00eaab0fb7fd08), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

flaky-bot[bot] avatar Apr 12 '22 19:04 flaky-bot[bot]

@daniel-sanche Do you have reason to believe that this will no longer fail? Or have changes been made, this test also failed before this issue opened in the past. My guess is some retries need to be added to test code or this might just happen again.

nit: Please include a reason when closing issues without a linked PR.

codyoss avatar Jul 06 '22 19:07 codyoss

This was closed as part of a team bug bash/issue triage. The logging libraries are changing owners, and as this all recent go logging tests seem stable, we decided to close it for now as part of the transition.

If it's marked as flaky again, I'll take a look at it in more detail

daniel-sanche avatar Jul 07 '22 00:07 daniel-sanche

Oops! Looks like this issue is still flaky. It failed again. :grimacing:

I reopened the issue, but a human will need to close it again.


commit: 113bab98e20a39bb7d4d02187edee7ed7d8313ec buildURL: Build Status, Sponge status: failed

Test output
received:
entries:{log_name:"projects/golang-samples-tests-9/logs/cloudaudit.googleapis.com%2Factivity" resource:{type:"logging_log" labels:{key:"name" value:"log-example"} labels:{key:"project_id" value:"golang-samples-tests-9"}} proto_payload:{[type.googleapis.com/google.cloud.audit.AuditLog]:{service_name:"logging.googleapis.com" method_name:"google.logging.v2.LoggingServiceV2.DeleteLog" resource_name:"projects/golang-samples-tests-9/logs/log-example" status:{} authentication_info:{principal_email:"kokoro-golang-samples-tests-9@golang-samples-tests-9.iam.gserviceaccount.com" service_account_key_name:"//iam.googleapis.com/projects/golang-samples-tests-9/serviceAccounts/kokoro-golang-samples-tests-9@golang-samples-tests-9.iam.gserviceaccount.com/keys/856904aab52517339a377bfa7e38eb5bf3fe0f50" principal_subject:"serviceAccount:kokoro-golang-samples-tests-9@golang-samples-tests-9.iam.gserviceaccount.com"} authorization_info:{resource:"projects/golang-samples-tests-9/logs/log-example" permission:"logging.logs.delete" granted:true resource_attributes:{service:"logging.googleapis.com" name:"projects/golang-samples-tests-9/logs/log-example"}} request_metadata:{caller_ip:"173.255.112.51" caller_supplied_user_agent:"grpc-go/1.44.1-dev,gzip(gfe)" request_attributes:{time:{seconds:1657387539 nanos:148124605} auth:{}} destination_attributes:{}} request:{fields:{key:"@type" value:{string_value:"type.googleapis.com/google.logging.v2.DeleteLogRequest"}} fields:{key:"logName" value:{string_value:"projects/golang-samples-tests-9/logs/log-example"}}}}} timestamp:{seconds:1657387539 nanos:128877723} receive_timestamp:{seconds:1657387540 nanos:604043026} severity:NOTICE insert_id:"8voyyud542f"}
    taillogs_test.go:90: tailLogs sample failed to complete after 2 minutes

flaky-bot[bot] avatar Jul 09 '22 18:07 flaky-bot[bot]

Looks like there is still significant flakiness here. I will drop this to P2, but will try to investigate more over the next couple weeks

daniel-sanche avatar Jul 11 '22 15:07 daniel-sanche

I do not see any flakiness failures recently - closing this one

losalex avatar Oct 06 '22 16:10 losalex