Skip to content

Packages the lab adds, in the Candidate boot only - #44

Merged
maralcbr merged 4 commits into
mainfrom
candidate-adds
Nov 27, 2026
Merged

maralcbr merged 4 commits into
mainfrom
candidate-adds

Conversation

@maralcbr

@maralcbr maralcbr commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Packages the lab adds (spec section 22): the lab installs what a benchmark needs into the Performance run's Candidate boot, never the Mac's own system, and keeps those values apart from the Release.

perfWanted(Mac, Release)
  the Release's own metrics                 -> release-7.3, offline
  each set of adds (bench-3: omarchy-mlx, opencl-aurora)
    kept set release-7.3-adds-<12 hex>?     -> boot it, offline
    else, on a Lab-owned Mac only:
      lab-agent adds_resolve                  pacman -Sw against copies of the db and keyring,
                                              the Mac's repositories, no host cache
        -> files in 64 MiB parts to the job
      labd joins, checks size and sha256    -> artifact store, frozen set (pinned by gc)
      a failed resolve: no attempt, wait 24 h
values under "7.3+omarchy-mlx"              -> reports.db `adds` column; in no Release figure,
                                               "With packages the lab added" on the Configuration page
  • Staging a Performance run is offline (--config with the candidate's own options and no repository): pacman installs the set's files and fetches nothing. That needs lab-agent 0.12.0; labd gives an older one no Performance run.
  • Only labd makes a Performance run (/api/jobs refuses one); an attempt takes only the metrics it was asked for.
  • bench-3: bench-2 (with its fio pinned, omarchy-maclab#45, which this branch sits on) plus adds for MLX (omarchy-mlx) and clpeak (opencl-aurora, omarchy-pkgs#3720, draft). It has no placeholder: merged, it is the current set.
  • The Neural engine stays "no build": Omarchy's ANE compiler takes none of MobileNet v1's convolutions (below).

Evidence

  • Resolve on m2-max, the same pacman steps: omarchy-mlx and what it needs, 5 files, 487 MB (omarchy-mlx 479 MB, 8 parts), keyring and integrity checked; the Mac's sync database and pacman cache untouched.
  • Rusticl (omarchy-pkgs#3720), unpacked on m2-max, nothing installed: clpeak on Apple M2 Max (G14C B1), fp32 10.5 TFLOPS, 348 GB/s.
  • ANE: mil-hwxc 0.1.0 on m2-max compiled a 64→64 1×1 conv at 8×8 for H14, and refused MobileNet v1's first conv (3→32 3×3 s2 at 224), its depthwise 3×3 and its pointwise convs at 112, 14 and 7, on H13 and H14 alike (conv-outside-envelope).
  • Timing on neo, the slowest Lab-owned Mac (A18 Pro), Omarchy, bench-2's lists through lab run (rc.29's lab-agent): Quick 25.5 min, downloads included; Full 40.7 min, without Storage (fio was still the placeholder; about 3 min more). MotionMark did not finish in its 900 s on neo, which is 17 min of either list. VA-API decode measured there too: 472 frames/s H.264 1080p, 151 HEVC 4K. bench-3's added rows run in runs of their own after these. The macOS side is not timed: neo has no macOS runner enrolled.
  • Tests: a Release's own run then the added run (resolved, kept, booted offline, values apart, published with adds); a Volunteer's Mac waits for a kept set; the join refuses short, long, missing and wrong parts and replaces a bad blob; the retry wait; the offline and resolve configurations; reports.db round trip and figures. Codex reviewed it, and its ten findings are fixed. scripts/ci-local --serial: 21 passed, 7 skipped.

Merge Danger

Door: two-way

Blast Radius: performance runs

Performance runs now stage offline and need lab-agent 0.12.0, which the Agent rollout brings after a Deploy. reports.db gains a column (migration 0006, add-only). A set resolved on one Mac may lack a package another Mac lacks: that Mac's offline stage fails, saying so (spec, a known limit).

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; all four previous findings are addressed.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; all four previous findings are addressed.

Summary

This PR adds benchmark packages only to Candidate boots and keeps their measurements separate from the Release's own results.

  • Performance runs can add packages to a Release without changing the Mac's system.
  • Performance pages show results with added packages separately.

No new actionable issues were found in the changes since the previous review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Missing benchmark measurements] --> B{Needs added packages?}
  B -->|No| C[Boot the Release set offline]
  B -->|Yes| D{Saved set exists?}
  D -->|No| E[One Lab-owned Mac resolves packages]
  E --> F[Check uploaded files and save set]
  D -->|Yes| G[Boot the saved set offline]
  F --> G
  C --> H[Release measurements]
  G --> I[Separate added-package measurements]
  I --> J[Configuration table and JSON export]
Loading

Reviews (3) · Last reviewed commit: "Packages the lab adds, after Greptile: a..." · Reviewed by Greptile

Comment thread internal/server/perf_adds.go Resolved
Comment thread internal/server/page_performance.go Resolved
… its Release with them, resolved once by a Lab-owned Mac against a copy of its pacman database and kept by labd as the frozen set release-<version>-adds-<…>; every Mac stages a Performance run offline, the values stay under the Release and the packages, published apart and in none of the Release's figures, and the Releases' sets stay in the artifact store; bench-3 adds omarchy-mlx for MLX and opencl-aurora for clpeak
…n and an attempt takes only its metrics; the resolve copies the keyring too and names no host cache; the join takes exact parts within bounds, checks a blob already there and clears the spool; a failed resolve costs no attempt and waits a day; Performance runs need lab-agent 0.12.0, which stages offline; frozen Releases' files stay from their freeze; added values show without a macOS result; the spec says why the Neural engine still has no Omarchy program
Comment thread internal/reports/figures.go Resolved
Comment thread internal/reports/figures.go Resolved
…Omarchy value with its own macOS value, names an API that differs, and is in performance.json; one Mac resolves a set at a time
@maralcbr
maralcbr merged commit c26b796 into main Nov 27, 2026
18 checks passed
@maralcbr
maralcbr deleted the candidate-adds branch November 27, 2026 13:07
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