Skip to content

ci(coverage): recover throttled worker reads and align CS Go - #501

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/coverage-ci-reliability
Nov 28, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/coverage-ci-reliability

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Tracks MatrixOne #33416.

The original two group selectors make about 300 REST reads per hour while both groups are running. Both base branches now use this path and share the repository's Actions REST quota. In the busiest rolling hour of the incident sample, overlapping group wait intervals imply about 908 result and progress requests at the old cadence. Admission, cleanup, and preflight calls add to that estimate. MatrixOne #33399 · GitHub Actions REST quota

The preflight error response recorded a 5,000-request limit, zero remaining and a reset six seconds later. The 908 requests are an estimate for the sampled result and progress polls. Preflight throttle log

  • Use authenticated conditional reads for CS queue observations, selected-worker results and optional job details. Result polling runs every 30 seconds. Parent liveness checks during admission share the selector's 30-second cadence, and grant lookups run every 10 seconds.
  • Use the five-minute handoff budget for control reads. Allow up to one quota interval for results from the exact granted worker. Each explicit cooldown comes from the current GitHub response. Exponential backoff applies when GitHub supplies no usable hint. The final parent check before a grant shares the selection deadline. A cancellation retry observes the cooldown and revalidates the same worker within the existing cleanup budget.
  • Verify the runner ID, name, labels, site and exact run before granting it. The worker revalidates the live parent and selector before checking out PR code.
  • Keep the verified node tools when Go matches the source. Otherwise install the version in go.mod and export the selected root before cache configuration.

Validation

143 Linux Coverage and orchestration tests passed. The tests cover a 1,500-second reset followed by a five-second reset, a 30-minute cooldown rejected during selection, partial runner assignment, conditional queue timeouts, admission request cadence, a 120-second throttle before grant, and a 25-second cancellation cooldown across active, terminal, and changed attempts. Both Actions polling endpoints returned HTTP 304 on a real conditional GET. Container checks exercised the two branch module files with Linux Go 1.27.1 and 1.26.4. MatrixOne rollout

@XuPeng-SH
XuPeng-SH enabled auto-merge (squash) November 28, 2026 04:08
@XuPeng-SH
XuPeng-SH disabled auto-merge November 28, 2026 04:11
@XuPeng-SH
XuPeng-SH merged commit ef2876e into matrixorigin:main Nov 28, 2026
1 check passed
@XuPeng-SH
XuPeng-SH deleted the codex/coverage-ci-reliability branch November 28, 2026 04:11
XuPeng-SH added a commit to matrixorigin/matrixone that referenced this pull request Nov 28, 2026
## What type of PR is this?

- [x] Test and CI

## Which issue(s) this PR fixes:

Fixes #33416.

## What this PR does / why we need it:

Point the Coverage controller, both workers and the identity contract at
the published revision `ef2876eed20e186776c00127a1382384069e24e4` from
[CI #501](matrixorigin/CI#501). The
default-branch entrypoint serves PRs targeting `main` and `4.2-dev`.

Preflight checks the exact live PR revision on both sides of
classification. It uses current GitHub cooldowns within a two-minute
allowance on required revision reads. Unavailable file lists select full
CI, and file counts at the API cap avoid pagination.

Successful parent attempts finish without standby discovery. Failed or
cancelled attempts use one paginated scan per round to discover all
active worker states. In a one-page time window this reduces discovery
from 15 list calls to 3. The controller still verifies the exact worker
marker and parent attempt before cancellation. The incident sample
included 93 dedicated worker runs across six hours, which fits one page
for those cleanup windows. [Earlier cleanup
change](#33176)

On the published CI revision, 109 CI tests, 87 MatrixOne helper and
contract tests, and actionlint passed locally. The pinned contract
covers throttling, one failed-group redispatch, and exact cleanup.

The published CI revision has the same tree as the CI #501 head. A live
`4.2-dev` PR run confirmed that it uses the shared default-branch
entrypoint and standby workflow. [4.2-dev Coverage
run](https://github.com/matrixorigin/matrixone/actions/runs/46103004052)
Measure live CS and Shanghai queue time and quota failures on fresh runs
targeting both branches after rollout.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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