Skip to content

ci: overflow hosted-eligible e2e to the mini when it would start sooner, only on lanes it publishes as free - #535

Merged
SSFSKIM merged 3 commits into
masterfrom
mini-first-overflow
Nov 8, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
mini-first-overflow

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026

Copy link
Copy Markdown
Owner

The owner asked for this (2026-11-08). Over the previous 24 h the Mac mini ran about 5 job-hours, against 22 on GitHub's hosted macOS (5 at a time). When the hosted queue is long, hosted-eligible e2e groups wait while the mini idles. The planner already overflowed such groups to EC2; EC2 is released (MAC_EC2=off), and the planner said "the mini is never overflow". Now the mini is a target the same way.

  • Sampler (scripts/ci-gate-backlog.mjs, the Mac-Backlog trailer):

    • It goes to v2; the validator still accepts v1, which has no mini fields, so the mini is never a target there.
    • A missing ci-kit-mac-ec2 runner now means EC2 offline. Before, it threw. So every sample since EC2's release had failed ("Mac backlog unavailable"), and placement fell back to normal.
    • It adds the mini's runner state, its queued and running jobs (complete MAWS pages), and its lane availability.
  • Lane availability comes from the repo variable MAC_MINI_LANES, which the mini publishes (ci-kit CI: guard public self-hosted workflows against outside triggers #197, deployed 2026-11-08 10:28Z with install.sh --publish-lanes).

    • The publisher counts as held: quiet windows, ci-hold, measured claims, the dialog drain, VM holds and pauses, a stopped launcher or runner, and MAWS's 06:45–07:00Z mini window (from 06:43Z).
    • Fail-closed, the architect's condition (1316): a missing, malformed, wrong-version, future, stale (more than 5 minutes, also rechecked at plan time from the publication's own lanesAt) or unreadable value holds both lanes.
    • A host placement needs host free, a guest placement needs vm free, and the solo label needs both.
  • Planner (gate-plan.mjs): each eligible direct group goes where it is expected to start soonest:

    • hosted: unchanged;
    • EC2: unchanged, and only when MAC_EC2 is on;
    • the mini: (running + queued + already sent) × the self-hosted/hosted runtime ratio 0.46, over MINI_SLOTS = 1.

    Ties stay hosted. Between EC2 and the mini, the mini wins. MAC_MINI_OVERFLOW is on unless set to off (architect 1316). A mini-overflowed group takes its no-hosting placement, placed(group): host labels, or the guest's for MAC_VM_E2E groups, with their variant and timeouts. It keeps the hosted retry policy; the retry and flaky guards now cover e2e-vm too. Groups whose normal placement needs EC2 (LAUNCHD without a usable guest) are never mini candidates. EC2's shadow accounting is unchanged.

  • Names: an entry's overflow is 'ec2' or 'mini', and job names read (EC2 overflow) or (mini overflow). Every consumer of that suffix is updated: alerts, refusals, ci-gate's tail, peer-held and peer-wait.

  • Review: an independent review (reviewer-medium) found two fail-closed defects, both fixed with tests that reproduce them (dfee238): the publication's age wasn't rechecked at plan time, and a non-string timestamp was coerced.

  • Tests: 278/280 focused locally. The 2 failures are launcher import-coverage tests that need TypeScript, and they fail on master too. Gate 42474110066 (static, unit) on the merge with master 5fc234d: GREEN.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Sample mini capacity and fail-closed published lane holds alongside the hosted and EC2 queues. Choose the earliest expected start, preserve guest placement and retries, and carry target names through peer checks and relaunches.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Preserve lanesAt through sampling and reject expired or future publication time at planning. Require strictly typed ISO UTC timestamps and publication fields; malformed availability holds the mini without discarding EC2 backlog.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…rst-overflow

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T11:16:53.530924Z 5d5dcf4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 4f383a6 into master Nov 8, 2026
@SSFSKIM
SSFSKIM deleted the mini-first-overflow branch November 8, 2026 11:41
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
), #535, #536 and #524's channel reach

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…notification a row carries and the engine's queued notices; #535, #536 and #537 noted, #533 closed; the fake machine's queue-record row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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