Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci: analyst legend fix, proactive optimization, intra-week action (#14877)

Tobias Wochinger662db7e05a73
diff --git a/.github/workflows/ci-runtime-analyst.lock.yml b/.github/workflows/ci-runtime-analyst.lock.yml
index 743398d4d6..6158e1b45c 100644
--- a/.github/workflows/ci-runtime-analyst.lock.yml
+++ b/.github/workflows/ci-runtime-analyst.lock.yml
@@ -1,4 +1,4 @@
-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"64afed6944cca8e6da5cfce2f95bf703eff324f66562b0d0f7e2f78bd6faad5c","body_hash":"dcc80e724fbf07bb323d51758f88ed107bc5aa520a3f2a5e0f05b9816b5a3d58","compiler_version":"v0.82.0","strict":true,"agent_id":"claude","agent_model":"claude-opus-4-8","engine_versions":{"claude":"2.1.195"}}
+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"64afed6944cca8e6da5cfce2f95bf703eff324f66562b0d0f7e2f78bd6faad5c","body_hash":"d89c8ccc081d6d65263fd8179ceb3ec1b47414bd636af69a68a4b6e6819f8546","compiler_version":"v0.82.0","strict":true,"agent_id":"claude","agent_model":"claude-opus-4-8","engine_versions":{"claude":"2.1.195"}}
# gh-aw-manifest: {"version":1,"secrets":["CLAUDE_API_KEY","GH_AW_CI_ANALYST_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"2ad2a516e432f0a0000cfaed33d262a380f9e58f","version":"v0.82.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.13","digest":"sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.13@sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.13","digest":"sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.13@sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.13","digest":"sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.13@sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.32","digest":"sha256:63e46b56dfd70895a701b6fc6dd0189e11e2d875f327f1781e81b31848735477","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.32@sha256:63e46b56dfd70895a701b6fc6dd0189e11e2d875f327f1781e81b31848735477"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.5.0","digest":"sha256:e25564dccc9110a70a77b9df560cbde11aa392fcb5f08b9abe5c4ebc6d146ea4","pinned_image":"ghcr.io/github/github-mcp-server:v1.5.0@sha256:e25564dccc9110a70a77b9df560cbde11aa392fcb5f08b9abe5c4ebc6d146ea4"}]}
# This file was automatically generated by gh-aw (v0.82.0). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
diff --git a/.github/workflows/ci-runtime-analyst.md b/.github/workflows/ci-runtime-analyst.md
index 3d8150648c..4790abd3bb 100644
--- a/.github/workflows/ci-runtime-analyst.md
+++ b/.github/workflows/ci-runtime-analyst.md
@@ -201,11 +201,15 @@ is only the spine.
- [ ] Refresh every non-closed ledger entry; run the "Assessment loop" for
any open agent PR whose CI has completed; judge merged entries against
post-merge numbers.
-- [ ] Compute this week's timing metrics (merge-group only) and compare
- against history ("Metric definitions", "Judging and acting").
-- [ ] Parse vitest logs; update week-over-week flaky-test tracking
- ("Vitest output analysis").
-- [ ] Decide the outcome: verified in-surface improvement → PR on a
+- [ ] Compute this week's timing metrics (merge-group only, ≥5 runs per
+ day for daily medians) and compare against history; investigate any
+ sustained intra-week shift in this same run ("Metric definitions",
+ "Judging and acting").
+- [ ] Parse vitest logs; update week-over-week flaky-test tracking, and
+ mine the slowest tests for optimization candidates even when nothing
+ regressed ("Vitest output analysis", "Judging and acting").
+- [ ] Decide the outcome: verified in-surface improvement (regression fix
+ or proactive slow-test optimization) → PR on a
`ci-perf/` branch with `expectedImpact` recorded in the ledger
("Judging and acting", "Verify changes before requesting a PR");
pipeline.yml-only proposal → comment on this run's PR or a single
@@ -256,6 +260,10 @@ with `created=<from>..<to>`, then `GET /repos/{owner}/{repo}/actions/runs/{id}/j
run, from the job `steps` array): duration of the `Build` step and of the
`run tests` step. Also record the total duration of the `e2e-tests` job,
which is typically on the critical path.
+- **Per-day medians** (chart + trend detection) must be computed from at
+ least 5 merge-group runs per day, or all of that day's runs when fewer
+ exist. Never base a day's median on a single sampled run — that is what
+ makes real intra-week shifts dismissible as "noise".
Population rules:
@@ -335,7 +343,23 @@ this layout:
trend, runner-wait share, Build / `run tests` step drift, new or
persistent flaky tests. Call out regressions larger than ~10% on medians
with links to the first run(s) exhibiting them.
-2. Only when you have a concrete improvement whose expected effect you can
+2. **Sustained intra-week shifts are actionable on their own** — a step
+ median moving ≥50% across three or more consecutive days (e.g.
+ `run tests` doubling within the week) must be investigated in the same
+ run, not parked as "noisy" or deferred for lack of week-over-week
+ history. Locate the day the shift started, list the PRs merged that day
+ (head commits of the day's merge-group runs), compare the vitest
+ slowest-tests output from runs before vs after, and name the suspect
+ tests/PRs in the report. If the culprit is an in-surface test or config,
+ that is a PR candidate this week.
+3. **You are not only a regression watchdog.** Every week, also mine the
+ vitest slowest-tests/files output for optimization potential: serial
+ awaits that could run concurrently, expensive setup repeated per-test
+ that could be hoisted, oversized fixtures, unnecessary sleeps/timeouts,
+ redundant DB round-trips. A quiet week with no regressions is the best
+ time to land one such improvement. Missing baseline history blocks
+ regression *claims* — it never blocks optimizing a measurably slow test.
+4. Only when you have a concrete improvement whose expected effect you can
justify from the measured data — and that passed the verification
described below — request a pull request with the change.
Allowed change surface for PRs:
@@ -346,13 +370,13 @@ this layout:
Never include changes to `.github/**` in the PR — analysis reports belong
in the job summary and repo memory, and the publish job rejects files
under top-level dot-folders.
-3. If your best recommendation is a change to `.github/workflows/pipeline.yml`
+5. If your best recommendation is a change to `.github/workflows/pipeline.yml`
itself, do NOT edit it. Instead, write the exact proposed diff in a fenced
`diff` code block:
- as an additional comment on the PR you are creating in the same run, or
- if you are not creating a PR this week, as a single GitHub issue
(assigned via safe outputs) containing the analysis and the diff.
-4. If nothing is actionable: update memory, write the report to the job
+6. If nothing is actionable: update memory, write the report to the job
summary, and finish without creating a PR, issue, or comment. A quiet week
is a successful run.
@@ -484,11 +508,15 @@ Chart template (GitHub renders `mermaid` fenced blocks natively). Copy it
verbatim and only fill in the data: the x-axis days (every day that has
merge-group runs), the six value lists (daily merge-group medians in
seconds, same day order), and the y-axis maximum (largest value rounded up
-to the next 100). Do not change the structure or the series order.
+to the next 100). Do not change the structure or the series order, and do
+not move the legend into the chart title — long xychart titles get clipped
+when rendered, so the legend line above the chart is the readable one.
+
+ Lines: 1 run tests · 2 Build · 3 e2e-tests · 4 runner wait · 5 overall incl. wait · 6 overall excl. wait
```mermaid
xychart-beta
- title "Daily merge-group medians (s) — 1: run tests, 2: Build, 3: e2e-tests, 4: runner wait, 5: overall incl. wait, 6: overall excl. wait"
+ title "Daily merge-group medians (seconds), lines 1-6"
x-axis [MM-DD, MM-DD, MM-DD]
y-axis "seconds" 0 --> 600
line [0, 0, 0]