Skip to content

ci: refresh the reviewed unit weights now that confirmation runs eight partitions #4140

Closed

Description

@schlessera

Context

#4108 runs ready confirmation's unit tier in eight partitions. The reviewed weights in scripts/test-shard-costs.json predicted about 549 s of tests per partition. The first three confirmations were uneven:

Run unit jobs, whole job (s)
43991610923 605, 713, 739, 800, 836, 926, 983, 1,024
43994468443 637, 684, 698, 709, 718, 933, 1,002, 1,043
44017250694 608, 681, 728, 760, 808, 810, 821, 979

The slowest job is about 28–32% shorter than the four-partition baseline (1,433 s in run 43974750583), not the halving the weights predicted. The weights were last refreshed on 2026-11-02, the suite has grown since, and one test added by #4107 (tests/first-party-source-pins.test.ts, about 36 s) has no weight at all. The slowest partition sets the merge lease's hold time.

Scope

  • Refresh the reviewed unit weights with the documented procedure (bun scripts/refresh-unit-costs.ts <run-id> <attempt>, docs/process/ci-timings.md) from a qualifying run.
  • Record in the PR the eight planned partition estimates before and after.

Out of scope

Acceptance criteria

  • scripts/test-shard-costs.json and scripts/unit-shard-measurement.json come from one qualifying run, with its provenance recorded as the procedure requires.
  • Every file in default discovery at that run's source has a positive weight.
  • The PR's own ready confirmation is linked, with its eight unit job durations beside the three runs above.

Verification

  • bun run check:pr --base origin/main.
  • The PR's ready confirmation.

Contract impact

None. CI tooling only.

Activity

  1. added
    type: chore
    area: ci
    priority: p2
    agent-ready
    on Nov 17, 2026
  2. self-assigned this
    on Nov 17, 2026
  3. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-a2ed6c11. Branch: chore/4140-refresh-unit-weights.

    none

  4. added this to the 0.45.0 milestone on Nov 17, 2026
  5. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Delivered by #4155 (squash 5f7f69276). Measurements under the refreshed weights:

    Eight confirmation partitions, whole unit job (s)

    Run Weights Durations Slowest
    43991610923 old 605, 713, 739, 800, 836, 926, 983, 1,024 1,024
    43994468443 old 637, 684, 698, 709, 718, 933, 1,002, 1,043 1,043
    44017250694 old 608, 681, 728, 760, 808, 810, 821, 979 979
    44036241499 old 660, 679, 687, 762, 786, 798, 801, 891 891
    44057627969 (this PR's confirmation) new 677, 683, 725, 734, 737, 763, 817, 925 925

    Four main partitions, Complete unit proof step (s), same test source apart from the table

    Run Weights Durations
    44041605108 old 911, 999, 1,179, 1,185
    44053195432 new 858, 866, 928, 1,329

    Reading: the spread is tighter (seven of eight confirmation partitions within 140 s of each other, three of four main partitions within 70 s), but in both layouts one partition runs well over its planned share, so the slowest job, which sets the merge lease, did not clearly get faster. In the four-partition run both worker processes of the slow partition took about 1,240 s against about 830 s in a sibling. The files in it cost more together than their separately measured weights add up to. That is one run of each layout; the cause is not established.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: cipriority: p2type: chore

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions