Skip to content

fix(actions): group "(shard N)" jobs into one arc-job-report row - #383

Merged
JesperTerkelsen merged 4 commits into
mainfrom
feat/arc-job-report-merge-shard-rows
Oct 13, 2026
Merged

JesperTerkelsen merged 4 commits into
mainfrom
feat/arc-job-report-merge-shard-rows

Conversation

@JesperTerkelsen

@JesperTerkelsen JesperTerkelsen commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

The ARC job report now groups monorepo-typescript's Test (shard N) jobs into one row in both tables.

Shards were only recognised as <name> - shard N, which is service-ocpi's format. monorepo-typescript uses Test (shard N) and server uses unit-tests (shard-N). name() also strips a (…) suffix before that check, so on https://github.com/monta-app/monorepo-typescript/pull/11599#issuecomment-6141491902:

  • Jobs table: all 8 shards and the separate 7-second Test gate job showed as a single "Test · 4m 07s" row, linking only the slowest shard.
  • Suggested runner changes: one row per shard, so the summary said 💡 11 runner changes, and 7 of those were identical Test rows.

All three shard formats now group:

  • Jobs table: Test · shards **1** 2 3 … 8 | 3m 24s – 4m 07s, plus Test | 7s on its own row.
  • Suggested runner changes: shards are grouped per change and reason. Each row shows the highest peak memory and CPU and the fewest runs among them. The 💡 count is the number of rows: 5 instead of 11 for the run above.

Jobs that aren't shards are grouped by their full name, so two jobs that differ only in a (…) suffix keep separate rows. When two jobs would show the same short name, such as server's matrix jobs integration-tests (integration, app, …) and integration-tests (integration-services, …), both show their full name. Rows sort by their shown name, so service-ocpi's Unit Tests (Fast Feedback), shown as Unit Tests, stays above the Unit Tests · shards row.

Testing

🤖 Generated with Claude Code

Shards were only recognised as "<name> - shard N", and name() strips a
"(...)" suffix before that check. Monorepo-typescript's "Test (shard N)"
jobs therefore collapsed into one jobs-table row together with the
separate "Test" gate job, linking only the slowest shard, and got one
suggestion row each: PR 11599's comment listed 11 runner changes, 7 of
them identical "Test" rows.

Both formats now group into a "Test · shards 1 2 ..." row in both
tables. Suggestion rows group shards per change and reason, with the
highest memory and CPU and the fewest runs among them, and the 💡 count
is the number of rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@JesperTerkelsen
JesperTerkelsen marked this pull request as ready for review October 13, 2026 15:35
@JesperTerkelsen
JesperTerkelsen requested a review from a team as a code owner October 13, 2026 15:35
@JesperTerkelsen
JesperTerkelsen requested review from tobias0106 and removed request for a team October 13, 2026 15:35
… name

server names its shards "unit-tests (shard-N)", which the shard pattern
did not match. Rows were also sorted by the full job name, which put a
job like "Unit Tests (Fast Feedback)", shown as "Unit Tests", after the
"Unit Tests · shards" row in service-ocpi's comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
JesperTerkelsen and others added 2 commits October 13, 2026 17:52
…short name

server's Integration tests workflow has two matrix jobs,
"integration-tests (integration, app, identity, ...)" and
"integration-tests (integration-services, ...)". Both were shown as
"integration-tests", so the two rows could not be told apart. A job now
keeps its short name only when no other job in the run shortens to the
same one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rmat

One combined regex for "<name> - shard N", "<name> (shard N)" and
"<name> (shard-N)" was hard to read and to extend; each format is now
its own pattern, tried in order.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@JesperTerkelsen
JesperTerkelsen merged commit 821e53e into main Oct 13, 2026
1 check passed
@JesperTerkelsen
JesperTerkelsen deleted the feat/arc-job-report-merge-shard-rows branch October 13, 2026 16:18
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.

3 participants