Open jacekn opened 2 years ago
I think this might be related with the failure on e2e tests that happened the other day after merging https://github.com/runatlantis/atlantis/pull/1884
it feels like part of the issue might be the lack of exponential backoff in the retry fix https://github.com/runatlantis/atlantis/pull/1131/files
current code https://github.com/runatlantis/atlantis/blob/master/server/events/vcs/github_client.go#L333
it does look like its doing geometirc backoff now, but its unclear if we need to switch to exponential to resolve.
Maybe it's worth also adding extra logging to the section to record the fact that retries are happening?
Confirmed that we are experiencing this issue as well in 0.17.5. Would love for this to get fixed ASAP.
This issue is happening in 0.17.4 as well.
Looks like something similar to #1131 is needed but in GetModifiedFiles
is this still an issue with v0.19.8
?
It's happening with me on v0.20.1
its happening on 0.22 as well
Community Note
Overview of the Issue
I'm experiencing intermittent 404s on PRs. Atlantis leaves the following comment in the PR:
Reproduction Steps
This happens intermittently but the steps are to:
Logs
Logs
```json {"level":"info","ts":"2021-11-19T11:50:25.342Z","caller":"events/events_controller.go:318","msg":"identified event as type \"opened\"","json":{}} {"level":"info","ts":"2021-11-19T11:50:25.342Z","caller":"events/events_controller.go:346","msg":"executing autoplan","json":{}} {"level":"error","ts":"2021-11-19T11:50:25.766Z","caller":"events/pull_updater.go:14","msg":"GET https://api.github.com/repos/myorg/myrepo/pulls/999/files?per_page=300: 404 Not Found []","json":{"repo":"myorg/myrepo","pull":"999"},"stacktrace":"github.com/runatlantis/atlantis/server/events.(*PullUpdater).updatePull\n\t/home/circleci/project/server/events/pull_updater.go:14\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).runAutoplan\n\t/home/circleci/project/server/events/plan_command_runner.go:77\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run\n\t/home/circleci/project/server/events/plan_command_runner.go:221\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunAutoplanCommand\n\t/home/circleci/project/server/events/command_runner.go:162"} ```Environment details
Atlantis
v0.17.5
Atlantis server-side config file:
Repo
atlantis.yaml
file (atlantis is actually disabled for theEnvironment variables:
Additional Context
Similar to