codeintel: qa - sort monitored uploads, not just IDs (#38935)

This commit is contained in:
Noah S-C 2022-07-18 05:32:48 -07:00 committed by GitHub
parent 20b4152339
commit fc570afc99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,9 @@ func mainErr(ctx context.Context) error {
if err != nil {
return err
}
sort.Slice(uploads, func(i, j int) bool {
return uploads[i].id < uploads[j].id
})
if err := monitor(ctx, repoNames, uploads); err != nil {
return err

View File

@ -176,7 +176,6 @@ func queryRepoState(_ context.Context, repoNames []string, uploads []uploadMeta)
for _, upload := range uploads {
uploadIDs = append(uploadIDs, upload.id)
}
sort.Strings(uploadIDs)
var payload struct{ Data map[string]jsonUploadResult }
if err := internal.GraphQLClient().GraphQL(internal.SourcegraphAccessToken, makeRepoStateQuery(repoNames, uploadIDs), nil, &payload); err != nil {