Skip to content

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

Open
roychying wants to merge 1 commit into
chenghan.ying/sq-hook-failure-reasonfrom
chenghan.ying/sq-request-duplicate-of
Open

roychying wants to merge 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 2 times, most recently from 337e3fd to 1b474d6 Compare December 2, 2026 22:23
@roychying
roychying force-pushed the chenghan.ying/sq-request-duplicate-of branch from 1b474d6 to f653dcc Compare December 2, 2026 22:55

This branch has not been deployed

No deployments
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.

1 participant