sourcegraph/internal/batches
Michael Bahr 4d6e8949e8
fix(batches): don't request unnecessary info that's likely to cause GH errors (#64299)
Closes SRCH-802

After a long and unsuccessful hunt of eventual consistency errors, I
noticed that we don't need the GraphQL fragments that are causing
problems.

I introduced a simplified request, which succeeds reliably. What
customers should see now is one error (see second picture below), which
is followed by a retry, and then success.

Previously we've seen this error, sometimes less often, sometimes more,
but customers saw it so often that it caused their batch changes to
fail.

<img width="1042" alt="Screenshot 2024-08-06 at 14 02 00"
src="https://github.com/user-attachments/assets/c5a099da-d474-43db-ac12-ac7c4f22d4d3">

Customers may still see an initial error, which I've seen to reliably
disappear on the first retry. It should not be a problem

<img width="1039" alt="Screenshot 2024-08-06 at 14 02 48"
src="https://github.com/user-attachments/assets/99f278d4-4020-48ea-b4ac-32cbdfce455d">

## Test plan

Manual testing

## Changelog

- fix(batches): improve GitHub Apps integration reliability by
simplifying the data requested from GitHub
2024-08-07 10:47:37 +02:00
..
global bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
graphql bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
processor bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
reconciler authz: Drop requirement for installing authz providers in every service (#63743) 2024-07-31 01:23:34 +02:00
rewirer bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
scheduler lib/background: upgrade Routine interface with context and errors (#62136) 2024-05-24 10:04:55 -04:00
search bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
service authz: Drop requirement for installing authz providers in every service (#63743) 2024-07-31 01:23:34 +02:00
sources fix(batches): don't request unnecessary info that's likely to cause GH errors (#64299) 2024-08-07 10:47:37 +02:00
state bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
store authz: Drop requirement for installing authz providers in every service (#63743) 2024-07-31 01:23:34 +02:00
syncer chore(batches): simplify Sourcer interface (#63673) 2024-07-08 08:18:11 +01:00
testing authz: Drop requirement for installing authz providers in every service (#63743) 2024-07-31 01:23:34 +02:00
types feat: implement functionality to create credential GitHub apps (#63635) 2024-07-05 08:56:41 -05:00
webhooks bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
background.go Move purge worker into repo-updater and simplify init (#59790) 2024-01-24 14:46:24 +01:00
BUILD.bazel gating: Add individual switches for disabling tools features (#63686) 2024-07-16 15:45:38 +02:00
CODENOTIFY Move enterprise/internal/batches package to internal/batches (#54855) 2023-07-12 08:42:35 -06:00
conf.go gating: Add individual switches for disabling tools features (#63686) 2024-07-16 15:45:38 +02:00
doc.go Move enterprise/internal/batches package to internal/batches (#54855) 2023-07-12 08:42:35 -06:00