Skip to content

warm fast-path early-return does not engage locally (1.8 s local vs 142 ms CI on the same warm rebuild) #1542

Closed

Description

@zackees

What

Reported as a side finding in #1537 and filed here so it is tracked separately from the cold-build work.

Local warm rebuilds of bench/blink -e esp32s3 take ~1.8 s, while CI reports 142 ms for the warm case. The fast-path-check phase returns in 0.006 ms, so the fast path's check runs — but the full pipeline still executes behind it: resolve (~151 ms) + 46 up-to-date checks (~724 ms) + esptool (~0.15 s).

The behaviour is stable across runs with a hot daemon, and is unaffected by toolchain mtimes — so the fast-path early-return simply does not engage locally. It is not clear whether the difference is environmental (entry conditions that CI satisfies but a local checkout does not) or a genuine bug in the hit conditions.

Why it matters

Warm rebuilds are the most common interactive operation (edit one file, rebuild). CI publishing 142 ms while a developer sees 1.8 s — a 12x gap on the same tool — means either the published warm number does not represent local use, or a large class of local warm builds never reaches the fast path. Both are worth resolving before more warm-path optimization is attempted, since the work may already be done and just not triggered.

Next step

Instrument fast_path_check to log which input failed to match on a local warm run (metadata_hash, extra_artifact_ok, watch_set_cache, compiler_cache are the four inputs it consults), then compare against the same run on CI. That will show whether a specific input is locally unsatisfiable or whether the condition ordering has a gap.

Found while investigating #1537.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions