Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle/mitigate crash and context issues #11

Merged
merged 14 commits into from
Jun 24, 2024
Merged

Conversation

Oded-B
Copy link
Collaborator

@Oded-B Oded-B commented Jun 14, 2024

Description

  • Use new context to avoid context cancellation when HTTP request context deadlines
  • Add "context"(the human kind, like extra infromation) to error in argocd.go
  • Replace errors.CheckError(err) function calls to preven process exiting on failure.
  • Move error function return value to the standard position
  • Handle cases where GetContents returns nil HTTP response (like in Context
    cancellation)

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 14, 2024

context canceled after 10 sec:

time="2024-06-14T11:51:15Z" level=info msg="is PushEvent" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:210"
time="2024-06-14T11:51:15Z" level=info msg="Did not found cached client for commercetools, creating one with GITHUB_APP_ID/GITHUB_APP_PRIVATE_KEY_PATH env vars" func="github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.(*GhClientPair).GetAndCache" file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:192"
time="2024-06-14T11:51:15Z" level=debug msg="Using public Github API endpoint" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.createGhAppClientPair file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:146"
time="2024-06-14T11:51:15Z" level=info msg="Installation ID for GitHub Application # 851926 is: 48190544" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.getAppInstallationId file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:67"
time="2024-06-14T11:51:15Z" level=debug msg="Changed files in push event: [workspace/special-delivery/telefonistka/telefonistka/helmfile.yaml]" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.handlePushEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/webhook_proxy.go:100"
time="2024-06-14T11:51:15Z" level=info msg="Non-actionable event type check_suite" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:284"
time="2024-06-14T11:51:16Z" level=info msg="is PullRequestEvent(synchronize)" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:229"
time="2024-06-14T11:51:16Z" level=debug msg="Found cached client for commercetools" func="github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.(*GhClientPair).GetAndCache" file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:190"
time="2024-06-14T11:51:16Z" level=info msg="Did not found global cached client, creating one with APPROVER_GITHUB_OAUTH_TOKEN env var" func="github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.(*GhClientPair).GetAndCache" file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:205"
time="2024-06-14T11:51:16Z" level=debug msg="Using public Github API endpoint" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.createGhTokenClientPair file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/clients.go:173"
time="2024-06-14T11:51:16Z" level=debug msg="Setting commit e43afa26dda7ed6bde77edeb7ea9a7301b4d213a status to pending" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.SetCommitStatus file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:623" prNumber=200 repo=commercetools/k8s-manifests-poc
time="2024-06-14T11:51:17Z" level=info msg="Non-actionable event type status" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:284"
time="2024-06-14T11:51:18Z" level=debug msg="Checking ArgoCD diff for components: [workspace/special-delivery/telefonistka/telefonistka]" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.GenerateDiffOfChangedComponents file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:342"
time="2024-06-14T11:51:18Z" level=info msg="Got 10 ArgoCD applications for repo https://github.com/commercetools/k8s-manifests-poc in 88 ms" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.findArgocdAppByManifestPathAnnotation file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:198"
time="2024-06-14T11:51:18Z" level=debug msg="Found app telefonistka-plg-gcp-eu-west1-v1 with manifest-generate-paths(\"workspace/special-delivery/telefonistka/telefonistka\") annotation that matches workspace/special-delivery/telefonistka/telefonistka" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.findArgocdAppByManifestPathAnnotation file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:220"
time="2024-06-14T11:51:18Z" level=debug msg="Found ArgoCD application: telefonistka-plg-gcp-eu-west1-v1" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:246"
time="2024-06-14T11:51:18Z" level=info msg="Non-actionable event type check_run" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:284"
time="2024-06-14T11:51:21Z" level=info msg="Non-actionable event type check_run" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandleEvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:284"
time="2024-06-14T11:51:22Z" level=debug msg="Got ArgoCD app telefonistka-plg-gcp-eu-west1-v1" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:260"
time="2024-06-14T11:51:22Z" level=debug msg="Got (live)resources for app telefonistka-plg-gcp-eu-west1-v1" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:269"
time="2024-06-14T11:51:25Z" level=error msg="Error getting manifests for app telefonistka-plg-gcp-eu-west1-v1, revision test_pr5: rpc error: code = Canceled desc = context canceled" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:282"

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 14, 2024

/publish

Copy link

oci-image-publish-on-comment: succeeded ✅
https://github.com/commercetools/telefonistka/actions/runs/9515741486
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-e6aa775

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 14, 2024

So, 10 sec after the context is created and between https://github.com/commercetools/telefonistka/blob/main/internal/pkg/argocd/argocd.go#L263
and https://github.com/commercetools/telefonistka/blob/main/internal/pkg/argocd/argocd.go#L279 the context is being canceled.

I increased the server http timeout because the number matched (10 sec) but it didn't help

telefonistka-c7cd95c58-7j9cn generic-http-app time="2024-06-14T12:10:18Z" level=debug msg="Got (live)resources for app telefonistka-plg-gcp-eu-west1-v1" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:269"
telefonistka-c7cd95c58-7j9cn generic-http-app time="2024-06-14T12:10:21Z" level=error msg="Error getting manifests for app telefonistka-plg-gcp-eu-west1-v1, revision test_pr5: rpc error: code = Canceled desc = context canceled" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:282"

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 17, 2024

/publish

Copy link

oci-image-publish-on-comment: failed ❌
https://github.com/commercetools/telefonistka/actions/runs/9545264226
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-35956ee

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 17, 2024

/publish

Copy link

oci-image-publish-on-comment: succeeded ✅
https://github.com/commercetools/telefonistka/actions/runs/9545833128
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-8ccc131

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 17, 2024

/publish

Copy link

oci-image-publish-on-comment: succeeded ✅
https://github.com/commercetools/telefonistka/actions/runs/9546329348
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-a0c9844

@Oded-B Oded-B changed the title Test new timeout values Handle/mitigate crash and context issues Jun 19, 2024
@Oded-B Oded-B marked this pull request as ready for review June 19, 2024 14:33
Copy link

gitstream-cm bot commented Jun 19, 2024

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

@@ -51,25 +50,29 @@ func groupObjsByKey(localObs []*unstructured.Unstructured, liveObjs []*unstructu
}
}
localObs, _, err := controller.DeduplicateTargetObjects(appNamespace, localObs, &resourceInfoProvider{namespacedByGk: namespacedByGk})
errors.CheckError(err)
if err != nil {
return nil, err

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap it with more context maybe?

resourceTracking := argo.NewResourceTracking()
for _, res := range resources.Items {
live := &unstructured.Unstructured{}
err := json.Unmarshal([]byte(res.NormalizedLiveState), &live)
errors.CheckError(err)
if err != nil {
return nil, err

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, maybe more context is useful.

@@ -80,7 +83,9 @@ func groupObjsForDiff(resources *application.ManagedResourcesResponse, objs map[
if local, ok := objs[key]; ok || live != nil {
if local != nil && !kube.IsCRD(local) {
err = resourceTracking.SetAppInstance(local, argoSettings.AppLabelKey, appName, namespace, argoappv1.TrackingMethod(argoSettings.GetTrackingMethod()))
errors.CheckError(err)
if err != nil {
return nil, err

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And same.

ctx, cancel := context.WithTimeout(r.Context(), 30*time.Second)
// We don't use the request context as it might have a short deadline and we don't want to stop event handling based on that
// But we do want to stop the event handling after a certain point, so:
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
githubapi.HandleEvent(r, ctx, mainGhClientCache, prApproverGhClientCache, githubWebhookSecret)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here be dragons.

As discussed, this is probably fine, but it's not entirely right since the request only has 10 seconds, and we're now doing blocking background work that will take longer. Also, that work is accessing the request so it should be done with that after 10s.

Say HandleEvent takes 20s. When it returns we should've already been done 10 seconds ago. While I'm not entirely clear on what the impact of this is, it's clearly an issue.

As mentioned, instead, we should pull out the request processing part from the background processing part and return on the http request as soon as we can, just after kicking of another go routine to do the background work.

There are some considerations that's I'm not clear on about the background work e.g. in case of failures, what's the right way to handle that?

I think let's do a short pairing session to see if we can answer some questions and come up with a slightly better solution.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current impact is GH webhook fails with 504:
image
It does't impact the users but it needs fixing.

Oded-B added 5 commits June 20, 2024 13:36
Actual Event proccessing is move to backround thread.

This require some refactoring, created ReciveWebhook and ReciveEventFile
functions to represent the different behavior in Web Server VS CLI
triggering while keeping to the GH stuff in the GH package
@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 21, 2024

/publish

Copy link

oci-image-publish-on-comment: succeeded ✅
https://github.com/commercetools/telefonistka/actions/runs/9609818981
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-791420c

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 21, 2024

Current version of code does fail after 120 sec when argocd-application-controller is down, as intended, but it also crashes:

 telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:54:15Z" level=debug msg="Found ArgoCD application: foobar-plg-gcp-eu-west1-v1" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:252"

### cut non relevant lines ###


telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Error getting app foobar-plg-gcp-eu-west1-v1: rpc error: code = DeadlineExceeded desc = context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:263"
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Error generating diff for component workspace/special-delivery/gitops-demo-ns2/foobar: rpc error: code = DeadlineExceeded desc = context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.GenerateDiffOfChangedComponents file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:352"
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Failed to get ArgoCD diff information: err=rpc error: code = DeadlineExceeded desc = context deadline exceeded\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:132" prNumber=212 repo=commercetools/k8s-manifests-poc
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Could not comment in PR: err=context deadline exceeded\n<nil>\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.GhPrClientDetails.CommentOnPr file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:591" prNumber=212 repo=commercetools/k8s-manifests-poc
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Failed to comment in PR: err=context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.commentPR file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:372" prNumber=212 repo=commercetools/k8s-manifests-poc
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Failed to comment ArgoCD diff: err=context deadline exceeded\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:165"
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=info msg="Checking for Drift" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:168" prNumber=212 repo=commercetools/k8s-manifests-poc
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:13Z" level=error msg="Fail to get file:context deadline exceeded\n<nil>\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.GetFileContent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:1028" prNumber=212 repo=commercetools/k8s-manifests-poc
telefonistka-6d5f9985d9-74lnr generic-http-app panic: runtime error: invalid memory address or nil pointer dereference
telefonistka-6d5f9985d9-74lnr generic-http-app [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x20bf98b]
telefonistka-6d5f9985d9-74lnr generic-http-app
telefonistka-6d5f9985d9-74lnr generic-http-app goroutine 2708 [running]:
telefonistka-6d5f9985d9-74lnr generic-http-app github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.GetFileContent({0xc000c7e9e0, {0x2d5f0a8, 0xc000afc8c0}, {0xc00102e650, 0x4}, {0xc0011e13a0, 0xd}, {0xc00134ed98, 0x11}, {0xc0011e10b0, ...}, ...}, ...)
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:1029 +0x18b
telefonistka-6d5f9985d9-74lnr generic-http-app github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.GetInRepoConfig({0xc000c7e9e0, {0x2d5f0a8, 0xc000afc8c0}, {0xc00102e650, 0x4}, {0xc0011e13a0, 0xd}, {0xc00134ed98, 0x11}, {0xc0011e10b0, ...}, ...}, ...)
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:1011 +0x65
telefonistka-6d5f9985d9-74lnr generic-http-app github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.DetectDrift({0xc000c7e9e0, {0x2d5f0a8, 0xc000afc8c0}, {0xc00102e650, 0x4}, {0xc0011e13a0, 0xd}, {0xc00134ed98, 0x11}, {0xc0011e10b0, ...}, ...})
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/promotion.go:56 +0x7b
telefonistka-6d5f9985d9-74lnr generic-http-app github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent(0xc000817b00, {0xc000c7e9e0, {0x2d5f0a8, 0xc000afc8c0}, {0x0, 0x0}, {0xc0011e13a0, 0xd}, {0xc00134ed98, 0x11}, ...}, ...)
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:169 +0x9f9
telefonistka-6d5f9985d9-74lnr generic-http-app github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.handleEvent({0x27ae840, 0xc000817b00}, 0xc000841680, 0xc000841740, 0xc000d15d40, {0xc000e70000, 0x622d, 0x7000}, {0xc0011e1020, 0xc})
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:292 +0xd85
telefonistka-6d5f9985d9-74lnr generic-http-app created by github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.ReciveWebhook in goroutine 2706
telefonistka-6d5f9985d9-74lnr generic-http-app 	/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:232 +0x291
- telefonistka-6d5f9985d9-74lnr › generic-http-app
+ telefonistka-6d5f9985d9-74lnr › generic-http-app
telefonistka-6d5f9985d9-74lnr generic-http-app time="2024-06-21T07:56:17Z" level=info msg="server started" func=github.com/wayfair-incubator/telefonistka/cmd/telefonistka.serve file="/go/src/github.com/wayfair-incubator/telefonistka/cmd/telefonistka/server.go:73"

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 21, 2024

/publish

Copy link

oci-image-publish-on-comment: succeeded ✅
https://github.com/commercetools/telefonistka/actions/runs/9612095577
ghcr.io/commercetools/telefonistka:test_context_canceled_issue
ghcr.io/commercetools/telefonistka:sha-4d55de3

@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 21, 2024

After 4d55de3 the process no longer crash:

telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Error getting app foobar-plg-gcp-eu-west1-v1: rpc error: code = DeadlineExceeded desc = context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.generateDiffOfAComponent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:263"
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Error generating diff for component workspace/special-delivery/gitops-demo-ns2/foobar: rpc error: code = DeadlineExceeded desc = context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/argocd.GenerateDiffOfChangedComponents file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/argocd/argocd.go:352"
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Failed to get ArgoCD diff information: err=rpc error: code = DeadlineExceeded desc = context deadline exceeded\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:132" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Could not comment in PR: err=context deadline exceeded\n<nil>\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.GhPrClientDetails.CommentOnPr file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:591" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Failed to comment in PR: err=context deadline exceeded" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.commentPR file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:372" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Failed to comment ArgoCD diff: err=context deadline exceeded\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:165"
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=info msg="Checking for Drift" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:168" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Drift detection failed: err=context deadline exceeded\n" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.HandlePREvent file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:172" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=debug msg="Setting commit 707d8baf692e2305e009d5fb79c92f8946fc3c32 status to error" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.SetCommitStatus file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:660" prNumber=213 repo=commercetools/k8s-manifests-poc
telefonistka-6fcf44c68c-ltdrr generic-http-app time="2024-06-21T10:31:57Z" level=error msg="Failed to set commit status: err=context deadline exceeded\n<nil>" func=github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi.SetCommitStatus file="/go/src/github.com/wayfair-incubator/telefonistka/internal/pkg/githubapi/github.go:664" prNumber=213 repo=commercetools/k8s-manifests-poc

Handle cases where GetContents returns nil HTTP respons (like in Context
cancellation)
Copy link

gitstream-cm bot commented Jun 24, 2024

🥷 Code experts: no user but you matched threshold 10

Oded-B has most 👩‍💻 activity in the files.
Oded-B has most 🧠 knowledge in the files.

See details

cmd/telefonistka/bump-version-overwrite.go

Activity based on git-commit:

Oded-B
JUN
MAY
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 88%

cmd/telefonistka/bump-version-regex.go

Activity based on git-commit:

Oded-B
JUN
MAY
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 87%

cmd/telefonistka/bump-version-yaml.go

Activity based on git-commit:

Oded-B
JUN
MAY
APR
MAR
FEB
JAN

Knowledge based on git-blame:

cmd/telefonistka/event.go

Activity based on git-commit:

Oded-B
JUN
MAY
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 100%

cmd/telefonistka/server.go

Activity based on git-commit:

Oded-B
JUN 4 additions & 3 deletions
MAY
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 100%

internal/pkg/argocd/argocd.go

Activity based on git-commit:

Oded-B
JUN 103 additions & 25 deletions
MAY 6 additions & 0 deletions
APR 273 additions & 0 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 100%

internal/pkg/argocd/argocd_copied_from_upstream.go

Activity based on git-commit:

Oded-B
JUN
MAY
APR 99 additions & 0 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 100%

internal/pkg/githubapi/github.go

Activity based on git-commit:

Oded-B
JUN 76 additions & 13 deletions
MAY 8 additions & 1 deletions
APR 51 additions & 10 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 48%

internal/pkg/githubapi/promotion.go

Activity based on git-commit:

Oded-B
JUN 24 additions & 7 deletions
MAY
APR 46 additions & 18 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Oded-B: 27%

To learn more about /:\ gitStream - Visit our Docs

@Oded-B Oded-B requested a review from hnnsgstfssn June 24, 2024 07:14
@Oded-B
Copy link
Collaborator Author

Oded-B commented Jun 24, 2024

@hnnsgstfssn please check 16ea028

@Oded-B Oded-B merged commit e2b552d into main Jun 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants