Skip to content

feat(submitqueue): Name the in-flight request a duplicate repeats in its failed hook event - #1157

Merged
roychying merged 1 commit into
chenghan.ying/sq-hook-failure-reasonfrom
chenghan.ying/sq-request-duplicate-of
Dec 3, 2026
Merged

roychying merged 1 commit into
chenghan.ying/sq-hook-failure-reasonfrom
chenghan.ying/sq-request-duplicate-of

Conversation

@roychying

@roychying roychying commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Why?

A request rejected as a duplicate says "request 99 is a duplicate of in-flight request 98", but the ID of request 98 is only in that text. A hook that points the author at the request already in flight should not have to parse it.

What?

  • Validate records the in-flight request's ID on the duplicate's terminal log, under the duplicate_of metadata key.
  • request.failed payloads carry it as duplicate_of.
  • The hook RFC and the gateway README list the new key.

Test Plan

  • bazel test //submitqueue/core/hookevent/... //submitqueue/orchestrator/controller/validate/....
  • make lint check-gazelle check-mocks
  • End to end, on an internal staging deployment: a second submission of a pull request already in flight failed as duplicate, and its event named the first request, which the comment linked to.

Issue

@roychying
roychying added this pull request to stack #1111 December 1, 2026 16:55
@roychying
roychying force-pushed the chenghan.ying/sq-request-duplicate-of branch 2 times, most recently from 0374ebc to ecdd077 Compare December 1, 2026 18:25
@roychying
roychying marked this pull request as ready for review December 1, 2026 18:29
@roychying
roychying requested review from a team and sbalabanov as code owners December 1, 2026 18:29
@roychying
roychying force-pushed the chenghan.ying/sq-request-duplicate-of branch 5 times, most recently from 1350246 to 447a265 Compare December 3, 2026 16:39
@roychying
roychying added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because the pull requests in the stack were not ordered correctly in the queue Dec 3, 2026
@roychying
roychying added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because the pull requests in the stack were not ordered correctly in the queue Dec 3, 2026
@roychying
roychying force-pushed the chenghan.ying/sq-request-duplicate-of branch from 447a265 to f972faa Compare December 3, 2026 19:49
@roychying
roychying added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 24d074d Dec 3, 2026
23 checks passed
@roychying
roychying deleted the chenghan.ying/sq-request-duplicate-of branch December 3, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants