Skip to content

test(engine-bar): median of 3 runs with spread and week-over-week delta - #148

Merged
Sannrox merged 1 commit into
mainfrom
test/116
Nov 27, 2026
Merged

Sannrox merged 1 commit into
mainfrom
test/116

Conversation

@Sannrox

@Sannrox Sannrox commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Closes #116

Each scale-factor query now runs three times per engine. report.py scores the median wall clock, the maximum peak memory, and the min-max spread, and the weekly job summary prints the delta against the committed snapshot (geometric mean, worst query, and each bar).

Lane

  • claim branch: test/116
  • worktree: .worktrees/issue-116
  • base SHA: 72ecdf7281154cb801c747c8ef6dff0d65ffaa95
  • published SHA: ec0d90830289c6c1f8235dd0bdae9ae37a6599e6
  • authority: Land

Reuse decision

  • Job: run a fixed query set several times per engine, summarize wall-clock with a robust location statistic and a spread, score named bars, and show how this score changed since the last recorded run
  • Verdict: Reuse
  • Concept: scripts/engine-bar/sf/run.sh and scripts/engine-bar/sf/report.py; the workflow copies the committed docs/engine-bar/sf{1,10}-*.jsonl snapshot into a previous-dir layout
  • Edge: GitHub Actions copy of committed files; no extra permissions, no artifact download
  • Searched: existing harness, report.py last-wins grouping, engine-bar workflow, engine_bar_sf in-process SQL tests; rejected a new scorer, rejected downloading previous workflow artifacts

Simplify-change

  • No new crate, workflow, or stats library. Spread is min-max because n=3 makes IQR degenerate.
  • Tests name: median ignores an outlier duration; max peak wins; one failed trial is incomplete; n=1 snapshot still scores 4.65; --previous prints geo-mean and per-bar delta.
  • Production +214 / -79 in harness, docs, and workflow; tests add the report contract.

Tests run

  • python3 -m unittest discover -s tests -t . (74 tests, ~2.2s)
  • cargo fmt --all -- --check
  • cargo build --locked --workspace --all-targets
  • cargo clippy --locked --workspace --all-targets -- -D warnings
  • cargo clippy --locked -p kako-source-sekai --features sekai-client --all-targets -- -D warnings
  • cargo test --locked --workspace
  • cargo test --locked -p kako-source-sekai --features sekai-client
  • bash scripts/validate-workflow-skills.sh
  • python3 scripts/adr-index --check
  • bash scripts/check-workflows.sh

First cargo build hit a full /tmp tmpfs while compiling DuckDB; rerun used a disk-backed TMPDIR in this worktree's target/ and passed.

Autoreview

$AUTOREVIEW --mode local --base origin/main --codex-bin <absolute-codex>: scoped-clean, no accepted/actionable findings.

validate-behavior

Skipped: harness and job-summary format, no operator-facing product flow.

The committed results.md tables remain the last n=1 snapshot (spread n/a) until a three-trial run is recorded. The next Engine bar workflow run is the evidence for live median, spread, and week-over-week delta.

Run each scale-factor query three times per engine. Score the median wall
clock, the maximum peak memory, and the min-max spread. The weekly summary
compares those bars to the committed snapshot.
@Sannrox
Sannrox marked this pull request as ready for review November 27, 2026 21:31
@Sannrox
Sannrox merged commit 32ff43c into main Nov 27, 2026
18 checks passed
@Sannrox
Sannrox deleted the test/116 branch November 27, 2026 22:06
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.

test(engine-bar): median of 3 runs with spread and week-over-week delta

1 participant