Skip to content

Warm pool: learn a baseline only after it is leased 3 times in a day #1255

Closed

Description

@V3RON

Problem

With baselines (#327), the warm pool learns every baseline that is leased even once as its own kind and keeps at least one copy of it booted for 24 hours. On 2026-11-04, one lease each of ios-test and android-test on a test worker made the pool keep 4 kinds warm (plain iPhone 17, plain Pixel 9 and the two baselines): 3 simulators and 2 emulators booted at once, a load average of 217 on an M3 Pro, and baseline leases of 39 s and 60 s instead of ~25 s.

A worker whose agents use several baselines a day keeps one extra booted device per baseline, even for a baseline someone leased once to try it. An operator cannot opt one out: warm forget works per model, and warmPool.learn: false turns all learning off.

A second gap: when a new version of a learned baseline is saved, the learned kind takes only the new version number. A version saved from a device of another model, OS or image tag leaves the pool warming copies that no longer match the baseline (found in #1245's review).

Decided with the maintainer (2026-11-04)

  • The pool learns a baseline kind only after it was leased at least N times within 24 hours. Before that, a lease of it is a copy and a boot, and nothing stays booted.
  • N is a worker setting, warmPool.baselineLearnAfter, default 3. 1 gives today's behaviour.
  • Plain kinds keep today's rule (learned on the first lease).
  • When a new version of a learned baseline is saved, the learned kind takes that version's model, OS and image tag as well as its version.
  • Delivered as its own feature after Named baselines: a lease starts from a device the operator prepared #327 merges, not inside its stack.

Out of scope

  • Naming a baseline in warmPool.targets (an operator target for a baseline).
  • Live Android snapshots to speed up seed making and baseline save (discussed 2026-11-04; parked until fresh-home workers such as CI make the first lease matter).

Refs

ADR 0038 (learned warm pool), ADR 0061 (baselines), #327, #1245.

Written by an agent.

Activity

  1. added
    request:new
    on Nov 4, 2026
  2. V3RON commented on Nov 4, 2026

    @V3RON
    ContributorAuthor

    Being specified in #1257. This issue stays open until that feature ships.

    Written by an agent.

  3. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Shipped as #1257.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions