Skip to content

Automated Testing: Support multiple reviewers in review routing - #86682

Merged
aduth merged 2 commits into
trunkfrom
update/review-routing-multiple-reviewers
Nov 11, 2026
Merged

aduth merged 2 commits into
trunkfrom
update/review-routing-multiple-reviewers

Conversation

@aduth

@aduth aduth commented Nov 11, 2026

Copy link
Copy Markdown
Member

What?

Updates review routing tool added in #86325 to support multiple reviewers being associated with a routing configuration.

Why?

  • As with CODEOWNERS, its reasonable to expect that multiple individuals or teams may be relevant to review a single type of change
  • This may be an initial blocker to enable requested review. Testing in Automated Testing: Request reviews using review routing automation #86677 reveals that GITHUB_TOKEN does not have permissions to request review from teams. While we may be able to resolve this with a separate token that has the appropriate permissions, an interim solution may be to ping individuals instead of teams (even if those individuals are the same as on the team).

How?

The current documents use YAML frontmatter to configure reviewers and threshold. So, this extends that by supporting inline YAML sequence syntax as a bracketed, comma-separated list.

Examples:

Existing support:

reviewer: org/team-slug

Now also supported:

reviewer: [org/team-slug, octocat]

The package doesn't actually use a YAML parser at the moment, to avoid an added dependency (currently the package is zero-dependency, which also simplifies CI setup). Eventually we may want to integrate a proper YAML parser here, in which case it could also be specified as any valid YAML sequence. Currently, the goal is that the configuration as currently supported is valid YAML syntax, but not all valid YAML syntax is supported.

The changes also include some small normalization to allow names to be specified with or without a leading @. Previously this was strict and could fail if someone included the @. It's fairly straightforward to normalize, which improves developer experience.

Testing Instructions

Verify tests pass: npm run test:unit tools/review-routing

Use of AI Tools

Researched and implemented in coordination with Claude Code + Opus 5.5.

@aduth
aduth requested review from ciampo and lancewillett November 11, 2026 15:43
@aduth
aduth requested a review from manzoorwanijk as a code owner November 11, 2026 15:43
@aduth aduth added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: 0 B

Total Size: 8.64 MB

6e0c263 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric a49b609 trunk % Change
timeToFirstByte 43.4 ms +8.18% -5.3% 43.45 ms +13% -4.72% -0.12%
largestContentfulPaint 72 ms +5.56% -8.33% 70 ms +5.71% -2.86% 2.86%
lcpMinusTtfb 26.05 ms +17.08% -9.98% 24.7 ms +16.4% -8.1% 5.47%
wpBeforeTemplate 22.49 ms +7.34% -3.78% 22.57 ms +17.94% -4.25% -0.35%
wpTemplate 16.85 ms +12.28% -4.57% 16.91 ms +8.28% -4.49% -0.35%
wpTotal 39.9 ms +8.85% -4.81% 40.09 ms +13.57% -5.09% -0.47%
wpMemoryUsage 7.72 MB +0% -0% 7.68 MB +0% -0% 0.44%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric a49b609 trunk % Change
timeToFirstByte 34.9 ms +11.75% -1.86% 36.15 ms +4.98% -3.6% -3.46%
largestContentfulPaint 64 ms +6.25% -0% 64 ms +6.25% -0% 0%
lcpMinusTtfb 29.55 ms +1.18% -2.71% 28.45 ms +5.8% -6.85% 3.87%
wpBeforeTemplate 19.01 ms +4% -0.84% 19.35 ms +6.2% -1.03% -1.76%
wpTemplate 13.11 ms +5.72% -5.87% 13.35 ms +5.54% -3.15% -1.8%
wpTotal 32.24 ms +8.5% -2.61% 33.33 ms +4.53% -3.3% -3.27%
wpMemoryUsage 6.41 MB +0% -0% 6.37 MB +0% -0% 0.54%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric a49b609 trunk % Change
mediaProcessingJpeg 326.05 ms +0.44% -0.61% 330.9 ms +0.41% -0.47% -1.47%
mediaProcessingAvif 4883.4 ms +0.33% -0.51% 4910.45 ms +0.38% -0.15% -0.55%
mediaProcessingJpegToAvif 3402.7 ms +0.41% -0.1% 3411.5 ms +0.29% -0.23% -0.26%

media-upload

Metric a49b609 trunk % Change
jpegUploadProcessing 1449.87 ms +1.57% -0.82% 1457.11 ms +2.52% -0.53% -0.5%
pngUploadProcessing 230.87 ms +13.48% -9.65% 236.4 ms +11.96% -3.8% -2.34%
largeJpegUploadProcessing 1449.14 ms +0.25% -0.33% 1442.05 ms +0.46% -0.29% 0.49%
multipleImageUploadProcessing 1514.46 ms +0.41% -1.24% 1517.91 ms +3.13% -1.2% -0.23%

post-editor

Metric a49b609 trunk % Change
serverResponse 482.74 ms +0.77% -2.69% 453.52 ms +6.78% -3.87% 6.44%
firstPaint 414.02 ms +7.55% -3.08% 405.31 ms +3.05% -2.97% 2.15%
domContentLoaded 792.44 ms +5.65% -0.28% 798.36 ms +0.56% -0.49% -0.74%
loaded 793.45 ms +5.66% -0.26% 799.48 ms +0.56% -0.5% -0.75%
firstContentfulPaint 454.09 ms +8.05% -1.94% 447.43 ms +0.96% -0.36% 1.49%
firstBlock 2161.12 ms +0.3% -1.15% 2146.66 ms +0.78% -0.91% 0.67%
type 16.28 ms +0.74% -6.27% 16.22 ms +3.58% -4.75% 0.37%
typeWithoutInspector 16.65 ms +2.04% -4.68% 16.93 ms +7.62% -10.28% -1.65%
typeWithTopToolbar 21.92 ms +5.52% -9.17% 21.92 ms +3.6% -2.83% 0%
typeContainer 8.37 ms +7.05% -9.56% 8.36 ms +8.25% -4.43% 0.12%
focus 121.8 ms +3.79% -11.76% 119.99 ms +1.6% -2.45% 1.51%
firstFocus 242.66 ms +0% -0% 268.04 ms +0% -0% -9.47%
selectAll 412.3 ms +4.33% -1.71% 413.1 ms +3.84% -3.83% -0.19%
undo 29.05 ms +8.67% -4.1% 28.39 ms +5.11% -5.07% 2.32%
listViewOpen 77.9 ms +12.21% -9.79% 85.12 ms +6.2% -11.75% -8.48%
inserterOpen 41.79 ms +6.96% -11.44% 42.69 ms +4.66% -6.79% -2.11%
inserterHover 11.25 ms +13.6% -12.36% 11.75 ms +5.45% -5.53% -4.26%
inserterSearch 7.47 ms +8.57% -3.75% 7.83 ms +8.3% -7.54% -4.6%
loadPatterns 638.09 ms +2.39% -4.46% 658.06 ms +5.79% -3.16% -3.03%
wpTotal 472.98 ms +0.81% -2.72% 443.67 ms +6.97% -3.92% 6.61%
wpMemoryUsage 14.77 MB +0% -0% 14.74 MB +0% -0% 0.24%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric a49b609 trunk % Change
serverResponse 314.63 ms +0.1% -9.59% 302.82 ms +4.87% -6.97% 3.9%
firstPaint 357.29 ms +2.57% -6.13% 372.06 ms +1.77% -12.34% -3.97%
domContentLoaded 644.27 ms +3.94% -1.35% 653.27 ms +0.73% -0.69% -1.38%
loaded 645.07 ms +3.94% -1.35% 654.03 ms +0.72% -0.69% -1.37%
firstContentfulPaint 368.79 ms +4.28% -1.81% 377.5 ms +0.3% -2.06% -2.31%
firstBlock 1984.03 ms +6% -0.95% 1985.66 ms +0.8% -0.78% -0.08%
type 15.46 ms +4.66% -9.06% 15.66 ms +1.92% -14.88% -1.28%
navigate 90.28 ms +11.44% -0.56% 98.24 ms +15.36% -5.87% -8.1%
loadPatterns 1194.62 ms +6.54% -22.96% 1028.16 ms +8.01% -4.65% 16.19%
loadPages 932.16 ms +10.34% -0.41% 981.9 ms +2.83% -5.11% -5.07%
wpTotal 306.36 ms +0.07% -9.84% 294.59 ms +5.02% -7.29% 4%
wpMemoryUsage 12.79 MB +0% -0% 12.75 MB +0% -0% 0.27%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

6e0c263 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Navigates the items list via UP/DOWN arrow keys in /test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeFocused() failed

Locator:  getByLabel('Page Two')
Expected: focused
Received: inactive
Timeout:  5000ms

Call log:
  - Expect "toBeFocused" getByLabel('Page Two') with timeout 5000ms
  - waiting for getByLabel('Page Two')
    14 × locator resolved to <button type="button" tabindex="-1" aria-pressed="false" id="view-list-0-165-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-165-label" aria-describedby="view-list-0-165-description"></button>
       - unexpected value "inactive"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:146:49
Undo restores the post selection when another synced entity is loaded (RTC WebSocket) in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 1,
+   "offset": 1,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5

6e0c263 Run

@aduth
aduth enabled auto-merge (squash) November 11, 2026 18:20
@aduth
aduth merged commit cc608d4 into trunk Nov 11, 2026
127 of 148 checks passed
@aduth
aduth deleted the update/review-routing-multiple-reviewers branch November 11, 2026 18:28
@github-actions github-actions Bot added this to the Gutenberg 24.5 milestone Nov 11, 2026
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
…Press#86682)

* Automated Testing: Support multiple reviewers in review routing

* Automated Testing: Normalize to review leading at-sign

Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants