GoogleContainerTools / GoogleContainerTools/skaffold
[test] Flaky test in `exec` integration tests - last RPC event not found
- Dominant language
- Go
- Stars
- 15.9k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
This is to track the flaky test we have with the `TestExec_ActionsEvents/events_for_succeeded_action` integration test:
```
=== Failed Tests ===
/v2/integration/TestExec_ActionsEvents
--- FAIL: TestExec_ActionsEvents (17.52s)
/v2/integration/TestExec_ActionsEvents/events_for_succeeded_action
util.go:90: Assinged test TestExec_ActionsEvents/events_for_succeeded_action to partition: 0
exec_test.go:198: Running [skaffold exec --default-repo us-central1-docker.pkg.dev/k8s-skaffold/testing action-succeeded --rpc-port 46819 --event-log-file /tmp/TestExec_ActionsEventsevents_for_succeeded_action388194937/001/e308ee0a-4a1b-442e-9e53-8d4a10f56f9alogs.json] in testdata/custom-actions-local
exec_test.go:198: Ran [skaffold exec --default-repo us-central1-docker.pkg.dev/k8s-skaffold/testing action-succeeded --rpc-port 46819 --event-log-file /tmp/TestExec_ActionsEventsevents_for_succeeded_action388194937/001/e308ee0a-4a1b-442e-9e53-8d4a10f56f9alogs.json] in 8.9 seconds
exec_test.go:208: expected output "taskEvent":{"id":"Exec-0","task":"Exec","status":"Succeeded"}} not found in output: {"timestamp":"2023-04-28T21:41:08.576485813Z","metaEvent":{"entry":"Starting Skaffold: \u0026{Version:v2.3.0-58-gcd6a804c8 ConfigVersion:skaffold/v4beta5 GitVersion: GitCommit:cd6a804c8e3d3920952a9a5f546b7fd84ea711db BuildDate:2023-04-28T21:29:15Z GoVersion:go1.20.3 Compiler:gc Platform:linux/amd64 User:}","metadata":{"build":{"artifacts":[{"type":"DOCKER","name":"localtaks","context":"./app","dockerfile":"Dockerfile"}],"type":"LOCAL"},"deploy":{"deployers":[{"type":"KUBECTL","count":1}],"cluster":"MINIKUBE"},"runID":"a4859f64-5fce-427d-9c22-e67e111eebdd","render":{}}}}
exit status 1
{"timestamp":"2023-04-28T21:41:08.654236023Z","taskEvent":{"id":"Exec-0","task":"Exec","description":"Executing custom action action-succeeded","status":"InProgress"}}
{"timestamp":"2023-04-28T21:41:08.654264725Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Starting execution for action-succeeded\n"}}
{"timestamp":"2023-04-28T21:41:08.836249018Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"3.15.4: "}}
{"timestamp":"2023-04-28T21:41:08.836257618Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Pulling from library/alpine\n"}}
{"timestamp":"2023-04-28T21:41:08.843052174Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Digest: sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454\n"}}
make: *** [Makefile:148: integration-tests] Error 1
{"timestamp":"2023-04-28T21:41:08.843078175Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Status: Image is up to date for alpine:3.15.4\n"}}
{"timestamp":"2023-04-28T21:41:08.956640484Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"3.15.4: "}}
{"timestamp":"2023-04-28T21:41:08.956665686Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Pulling from library/alpine\n"}}
{"timestamp":"2023-04-28T21:41:08.969318434Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Digest: sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454\n"}}
{"timestamp":"2023-04-28T21:41:08.969345336Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"Status: Image is up to date for alpine:3.15.4\n"}}
{"timestamp":"2023-04-28T21:41:08.970211294Z","execEvent":{"id":"task8","taskId":"Exec-0","status":"InProgress"}}
{"timestamp":"2023-04-28T21:41:08.970777732Z","execEvent":{"id":"task7","taskId":"Exec-0","status":"InProgress"}}
{"timestamp":"2023-04-28T21:41:10.039262921Z","execEvent":{"id":"task8","taskId":"Exec-0","status":"Succeeded"}}
{"timestamp":"2023-04-28T21:41:10.148327229Z","execEvent":{"id":"task7","taskId":"Exec-0","status":"Succeeded"}}
{"timestamp":"2023-04-28T21:41:14.150998891Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"[task8] hello-from-task8\n"}}
{"timestamp":"2023-04-28T21:41:14.151056995Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"[task8] bye-from-task8\n"}}
{"timestamp":"2023-04-28T21:41:16.243133469Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"[task7] hello-from-task7\n"}}
{"timestamp":"2023-04-28T21:41:16.243154171Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"STANDARD","message":"[task7] bye-from-task7\n"}}
{"timestamp":"2023-04-28T21:41:16.378693439Z","skaffoldLogEvent":{"taskId":"Exec-0","subtaskId":"-1","level":"WARN","message":"action-succeeded cleanup error:removing stopped container: Error: No such container: 8c257855515c48633a45294e4afac2f74b5a06c36e38e78f352b0bd9160ae320\n"}}
--- FAIL: TestExec_ActionsEvents/events_for_succeeded_action (8.92s)
```
Contributor guide
Assessment
This issue has not been assessed yet.