Description
A follow on to #14321. As mentioned in that periobolos seems to error out updating the org if a GitHub id doesn't exist. I would like it to keep going.
In that issue it was mentioned this was fixed in newer images. I just tried the latest image
gcr.io/k8s-prow/peribolos@sha256:cb771295078f0a7353f375d39242ecafadcfc46650efb8a5f0adfa10b3f8c050
and it looks like I'm still hitting the issue. Here's the error
{"component":"peribolos","error":"status code 422 not one of [200], body: {\"message\":\"The request could not be processed.\",\"documentation_url\":\"https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership\"}","file":"prow/cmd/peribolos/main.go:484","func":"main.configureOrgMembers.func1","level":"warning","msg":"UpdateOrgMembership(kubeflow, ajayalfred, false) failed","time":"2020-05-21T04:13:58Z"}
Full logs are attached.
logs.txt
It looks like peribolos tries to recover from a not found error
test-infra/prow/cmd/peribolos/main.go
Lines 443 to 447 in e1cbc3c
It looks like github.IsNotFound is checking for 404s.
test-infra/prow/github/client.go
Line 613 in 2905fd2
But it looks like the error code in this case is 422
/cc @clarketm