diff --git a/.github/workflows/docs-doctor.yml b/.github/workflows/docs-doctor.yml index 6dd54c18..3df61108 100644 --- a/.github/workflows/docs-doctor.yml +++ b/.github/workflows/docs-doctor.yml @@ -47,6 +47,10 @@ jobs: env: OFFING_SITE_TOOLS: ${{ runner.temp }}/site-tools run: node --test dist/tests/dashboard-accuracy.test.js + - name: acc-fix-evals + env: + OFFING_SITE_TOOLS: ${{ runner.temp }}/site-tools + run: node --test dist/tests/fix-evals-site.test.js - name: Check the documentation site # Mizzen builds the site in a temporary folder and reports every broken link, placeholder, and # navigation entry. Errors fail the job; warnings stay in the log. diff --git a/.github/workflows/fix-evals.yml b/.github/workflows/fix-evals.yml index 17383ca2..5c5ee402 100644 --- a/.github/workflows/fix-evals.yml +++ b/.github/workflows/fix-evals.yml @@ -1,12 +1,20 @@ -name: fix-evals smoke +name: fix-evals on: + schedule: + - cron: "20 5 * * 1" workflow_dispatch: + inputs: + refresh: + description: Evaluate the public cohort instead of the smoke fixtures + type: boolean + default: false permissions: {} jobs: fixtures: + if: github.event_name == 'workflow_dispatch' && !inputs.refresh runs-on: ubuntu-latest timeout-minutes: 10 permissions: @@ -39,3 +47,67 @@ jobs: name: fix-evals-fixture-evidence path: artifacts/fix-evals retention-days: 7 + + evaluate: + if: github.event_name == 'schedule' || inputs.refresh + runs-on: ubuntu-latest + timeout-minutes: 35 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false + - uses: $/.github/actions/setup + with: + cache: npm + - run: npm run fix-evals -- --out artifacts/fix-evals + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: fix-evals-public-evidence + path: artifacts/fix-evals + if-no-files-found: error + retention-days: 14 + + review: + needs: evaluate + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false + - uses: $/.github/actions/setup + with: + cache: npm + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: fix-evals-public-evidence + path: artifacts/fix-evals + - name: Archive evidence only when the measured numbers change + run: | + set -euo pipefail + npm run build --silent + node dist/benchmarks/fix-evals/archive.js artifacts/fix-evals "$(date -u +%F)" --changed + - name: Open a reviewable evidence refresh + env: + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + branch="automation/fix-evals-${GITHUB_RUN_ID}" + if [ -z "$(git status --porcelain -- benchmarks/fix-evals/results/)" ]; then exit 0; fi + if gh pr view "$branch" --json number >/dev/null 2>&1; then exit 0; fi + gh auth setup-git + if ! git ls-remote --exit-code --heads origin "refs/heads/$branch" >/dev/null; then + git switch -c "$branch" + git add -- benchmarks/fix-evals/results/ + git -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com' commit -m 'test: refresh fix evaluation evidence' + git push origin "HEAD:refs/heads/$branch" + fi + printf 'Review the pinned outcomes and raw evidence from %s/%s/actions/runs/%s.\n\nThe results update only after this pull request is reviewed and merged.\n' \ + "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" > "$RUNNER_TEMP/fix-evals-pr.md" + gh pr create --base main --head "$branch" --title 'test: refresh fix evaluation evidence' --body-file "$RUNNER_TEMP/fix-evals-pr.md" diff --git a/.gitignore b/.gitignore index ecb1f534..391f908a 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ docs/_data/dashboard-maturity.json docs/_data/dashboard-comparison.json docs/_data/comparison.json docs/_data/comparison-losses.json +docs/_data/fix-evals.json +docs/_data/fix-evals-*.json docs/api/v1/ dist/* coverage/ diff --git a/README.md b/README.md index 59c43cb8..2dd44b51 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ Requirements: Node.js 22 or newer. +**Fix evaluation, November 28, 2026.** [50 of 60 pinned repositories were measured, and workflow validation stayed green in all 45 GitHub Actions fixer cases](https://github.com/velella-sh/offing/blob/main/benchmarks/fix-evals/results/2026-11-28/report.json). [See per-fixer and agent results](https://velella.sh/offing/fix-evals/). + ## What it covers Runtimes, package manifests and lockfiles, CI and infrastructure files across: diff --git a/benchmarks/fix-evals/archive.ts b/benchmarks/fix-evals/archive.ts new file mode 100644 index 00000000..286cecbb --- /dev/null +++ b/benchmarks/fix-evals/archive.ts @@ -0,0 +1,63 @@ +import { execFile } from "node:child_process"; +import { copyFile, mkdir, mkdtemp, readFile, rename, rm, stat, writeFile } from "node:fs/promises"; +import { join, resolve } from "node:path"; +import { promisify } from "node:util"; + +import { sha256 } from "./evaluate.js"; +import { fixEvalReport, latestFixEval } from "./site.js"; + +const execute = promisify(execFile); + +async function readReport(path: string) { + const text = await readFile(path, "utf8"); + const raw: unknown = JSON.parse(text); + return fixEvalReport.parse(raw); +} + +function counts(result: Awaited>) { + const { selected, repositories, excluded, fixers } = result; + return JSON.stringify({ selected, repositories, excluded, fixers }); +} + +async function archive(source: string, date: string, publishOnlyChanges: boolean): Promise { + if (!/^\d{4}-\d{2}-\d{2}$/u.test(date)) throw new Error("Expected a run date in YYYY-MM-DD form."); + const result = await readReport(join(source, "report.json")); + const last = await latestFixEval(".").catch(() => undefined); + if (publishOnlyChanges && last !== undefined && counts(result) === counts(await readReport(last.path))) { + process.stdout.write("Fix evaluation metrics unchanged.\n"); + return; + } + const directory = resolve("benchmarks/fix-evals/results"); + await mkdir(directory, { recursive: true }); + const stage = await mkdtemp(join(directory, ".run-")); + try { + await writeSnapshot(source, stage, result); + await rename(stage, join(directory, date)); + } finally { + await rm(stage, { force: true, recursive: true }); + } + process.stdout.write(`Recorded fix evaluation for ${date}.\n`); +} + +async function writeSnapshot(source: string, target: string, result: Awaited>) { + const evidence = join(target, "evidence.tar.gz"); + await execute("tar", ["--numeric-owner", "--no-xattrs", "-czf", evidence, "-C", source, "."], { + env: { PATH: process.env.PATH, COPYFILE_DISABLE: "1" }, + timeout: 60_000, + }); + if ((await stat(evidence)).size > 20 * 1024 * 1024) + throw new Error("Fix evaluation evidence archive exceeds 20 MiB."); + const evidenceSha256 = sha256(await readFile(evidence)); + await writeFile(join(target, "report.json"), `${JSON.stringify({ ...result, evidenceSha256 }, null, 2)}\n`); + const failures = new Set(result.fixers.flatMap(({ failures }) => failures.map(({ repository }) => repository))); + if (failures.size > 0) await mkdir(join(target, "failures")); + for (const id of failures) { + await copyFile(join(source, id, "evidence.json"), join(target, "failures", `${id}.json`)); + } +} + +const [source, date, flag] = process.argv.slice(2); +if (source === undefined || date === undefined || (flag !== undefined && flag !== "--changed")) { + throw new Error("Usage: archive [--changed]"); +} +await archive(resolve(source), date, flag === "--changed"); diff --git a/benchmarks/fix-evals/cohort.ts b/benchmarks/fix-evals/cohort.ts new file mode 100644 index 00000000..68cc2947 --- /dev/null +++ b/benchmarks/fix-evals/cohort.ts @@ -0,0 +1,126 @@ +import { readFile } from "node:fs/promises"; + +import { z } from "zod"; + +import { profiles } from "../../src/test-runners/profiles.js"; +import type { Commands, Input } from "./evaluate.js"; + +const command = z.tuple([z.string().min(1)]).rest(z.string()); +const sha = z.string().regex(/^[a-f0-9]{40}$/u); +const digest = z.string().regex(/^[a-f0-9]{64}$/u); +const selection = z.object({ + offingCommit: sha, + repositories: z + .array( + z.object({ + repository: z.string().regex(/^[a-z0-9][a-z0-9_.-]*\/[a-z0-9][a-z0-9_.-]*$/iu), + commit: sha, + patches: z.array(z.object({ paths: z.array(z.string()).min(1) })).min(1), + baseline: z.discriminatedUnion("kind", [ + z.object({ + kind: z.literal("isolated"), + image: z.string(), + lockSha256: z.string().optional(), + checks: z.array(z.object({ command })).min(1), + provider: z + .object({ + url: z + .string() + .regex( + /^https:\/\/github\.com\/digitalocean\/terraform-provider-digitalocean\/releases\/download\/[\w.]+\/terraform-provider-digitalocean_[\w.]+_linux_amd64\.zip$/u, + ), + sha256: digest, + }) + .optional(), + schemas: z + .object({ + repository: z.literal("yannh/kubernetes-json-schema"), + commit: sha, + directory: z.string().regex(/^v[\d.]+-standalone-strict$/u), + files: z.array(z.string().regex(/^[a-z0-9-]+\.json$/u)).min(1), + }) + .optional(), + }), + z.object({ kind: z.literal("upstream") }), + ]), + }), + ) + .min(60), +}); + +export interface Candidate { + input: Input; + commands?: Commands; + paths?: ReadonlySet; + image?: string; + assets?: readonly Asset[]; +} + +export interface Asset { + url: string; + path: string; + sha256?: string; +} + +type Baseline = z.infer["repositories"][number]["baseline"]; + +const goCheck = (action: "build" | "test"): Commands["build"] => [ + "sh", + "-ec", + "mkdir -p /work/go-tmp /work/go-cache && export GOTMPDIR=/work/go-tmp GOCACHE=/work/go-cache && go " + + action + + " -mod=vendor ./...", +]; + +function execution(baseline: Baseline): Omit & { profile: Input["profile"] } { + if (baseline.kind === "upstream") return { profile: null }; + if (baseline.image === profiles["github-actions"].image) return { profile: "github-actions" }; + if (baseline.image === profiles.go.image) { + return { profile: "go", commands: { build: goCheck("build"), test: goCheck("test") } }; + } + const [first, second] = baseline.checks; + if (baseline.provider && first && /^docker\.io\/hashicorp\/terraform@sha256:[a-f0-9]{64}$/u.test(baseline.image)) { + return { + profile: "terraform", + image: baseline.image, + commands: { build: first.command }, + assets: [{ ...baseline.provider, path: ".offing-tool.zip" }], + }; + } + if (baseline.schemas && first?.command[0] === "/usr/local/bin/kubeconform") { + const { repository, commit, directory, files } = baseline.schemas; + const assets = [...new Set([...files, "ingress-networking-v1.json"])].map((file) => ({ + url: `https://raw.githubusercontent.com/${repository}/${commit}/${directory}/${file}`, + path: `.offing-kubeconform-schemas/${file}`, + })); + return { profile: "kubernetes", commands: { build: first.command }, assets }; + } + if ( + baseline.image === profiles.npm.image && + baseline.lockSha256 === undefined && + baseline.checks.length === 2 && + first?.command[0] === "node" && + first.command[1] === "--check" && + second !== undefined + ) { + return { profile: "npm", commands: { build: first.command, test: second.command } }; + } + return { profile: null }; +} + +export async function readCohort(): Promise<{ revision: string; candidates: Candidate[] }> { + const data = selection.parse(JSON.parse(await readFile("benchmarks/fix-evals/selection.json", "utf8"))); + const candidates = data.repositories.map(({ repository, commit, baseline, patches }) => { + const id = repository.toLowerCase().replace(/[^a-z0-9]+/gu, "-"); + const { profile, ...setup } = execution(baseline); + return { + input: { id, repository, commit, profile }, + paths: new Set(patches.flatMap(({ paths }) => paths)), + ...setup, + }; + }); + if (new Set(candidates.map(({ input }) => input.id)).size !== candidates.length) { + throw new Error("Duplicate fix-evals case ID."); + } + return { revision: data.offingCommit, candidates }; +} diff --git a/benchmarks/fix-evals/evaluate.ts b/benchmarks/fix-evals/evaluate.ts index 7d5eea86..86427620 100644 --- a/benchmarks/fix-evals/evaluate.ts +++ b/benchmarks/fix-evals/evaluate.ts @@ -18,7 +18,12 @@ export interface Input { id: string; repository: string | null; commit: string | null; - profile: Profile; + profile: Profile | null; +} + +export interface Commands { + build: Command; + test?: Command; } interface Check extends Run { @@ -39,7 +44,7 @@ export interface Case { } export interface Evidence extends Input { - excluded?: "no-patch" | "baseline-not-green"; + excluded?: "no-patch" | "baseline-not-green" | "no-comparable-profile"; baseline?: Checks; cases: Case[]; } @@ -60,6 +65,12 @@ interface Options { output: string; fixers: Fixer[]; backend: (profile: Profile, root: string) => Promise; + commands?: Commands; + paths?: ReadonlySet; +} + +function withinScope(path: string, options: Options): boolean { + return options.paths?.has(path) ?? true; } async function recordFile(root: string, file: string, bytes: Buffer | string): Promise { @@ -105,11 +116,14 @@ async function recordCheck( } async function verify(input: Input, options: Options, root: string, prefix: string): Promise { - const profile = profiles[input.profile]; + if (input.profile === null) throw new Error("The case needs a comparable validation profile."); + const checks: Commands = options.commands ?? profiles[input.profile]; const execute = await options.backend(input.profile, root); - const build = await recordCheck(profile.build, execute, options.output, `${prefix}/build`); + const build = await recordCheck(checks.build, execute, options.output, `${prefix}/build`); const test = - "test" in profile ? await recordCheck(profile.test, execute, options.output, `${prefix}/test`, true) : undefined; + checks.test === undefined + ? undefined + : await recordCheck(checks.test, execute, options.output, `${prefix}/test`, true); return { build, ...(test === undefined ? {} : { test }) }; } @@ -133,7 +147,7 @@ async function runCase( const prefix = `${input.id}/${fixer.id}`; const patch = { path: `${prefix}/fix.patch`, sha256: sha256(diff) }; await recordFile(options.output, patch.path, diff); - const deterministic = renderPatches(repeat.patches) === diff; + const deterministic = renderPatches(repeat.patches.filter(({ path }) => withinScope(path, options))) === diff; return tempSource(async (temp): Promise => { const root = join(temp, "tree"); await cp(pristine.root, root, { recursive: true, errorOnExist: true, force: false }); @@ -173,7 +187,7 @@ async function runCase( applied: true, resolved, noNewFinding: introduced.length === 0, - idempotent: second.patches.length === 0, + idempotent: !second.patches.some(({ path }) => withinScope(path, options)), buildKeptGreen: passed(checks.build), testsKeptGreen: checks.test === undefined ? null : passed(checks.test), }, @@ -193,15 +207,20 @@ export async function evaluate( load: (root: string) => Promise, options: Options, ): Promise { + if (input.profile === null) return { ...input, cases: [], excluded: "no-comparable-profile" }; + const profile = input.profile; return tempSource(async (root) => { const evidence: Evidence = { ...input, cases: [] }; await load(root); const before = await scan(root); const { patches } = await planFixReport(before, options.fixers); - const scope = validationScopes[input.profile]; + const scope = validationScopes[profile]; const selected = options.fixers.flatMap((fixer) => { - const own = patches.filter((patch) => patch.fixer === fixer.id); - return own.length > 0 && own.every(({ path }) => scope === undefined || scope.test(path)) ? [{ fixer, own }] : []; + const own = patches.filter((patch) => patch.fixer === fixer.id && withinScope(patch.path, options)); + return own.length > 0 && + own.every(({ path }) => options.paths !== undefined || scope === undefined || scope.test(path)) + ? [{ fixer, own }] + : []; }); if (selected.length === 0) return { ...evidence, excluded: "no-patch" }; diff --git a/benchmarks/fix-evals/index.ts b/benchmarks/fix-evals/index.ts index 0a7950be..ab05ccf3 100644 --- a/benchmarks/fix-evals/index.ts +++ b/benchmarks/fix-evals/index.ts @@ -3,39 +3,27 @@ import { mkdir, readFile, writeFile } from "node:fs/promises"; import { dirname, join, resolve } from "node:path"; import { parseArgs } from "node:util"; import { configureActiveData, getActiveDataSync } from "@velella/ebb/data-source"; -import { z } from "zod"; import { fixers } from "../../src/fix/index.js"; +import { readBounded } from "../../src/forecast-tool/remote/body.js"; import { archiveTree, connectDocker, prepareImage, sandbox } from "../../src/test-runners/docker.js"; -import { isProfile, type Profile } from "../../src/test-runners/profiles.js"; -import { evaluate, type Evidence, type Input, scannedAt } from "./evaluate.js"; +import { isProfile } from "../../src/test-runners/profiles.js"; +import { type Asset, type Candidate, readCohort } from "./cohort.js"; +import { evaluate, type Evidence, scannedAt, sha256 } from "./evaluate.js"; import { summarize } from "./report.js"; import { proveRunnerProfiles } from "./runner-fixtures.js"; import { checkoutPublic, fixtureSource, tempSource } from "./source.js"; import { isFixtureTool, proveTestTools } from "./tool-fixtures.js"; -const repositoriesPath = "benchmarks/fix-evals/repositories.json"; -const fileName = z.string().regex(/^[a-z][a-z0-9-]*$/u); -const publicCases = z - .array( - z.strictObject({ - id: fileName, - repository: z.string().regex(/^[a-z0-9][a-z0-9_.-]*\/[a-z0-9][a-z0-9_.-]*$/iu), - commit: z.string().regex(/^[a-f0-9]{40}$/u), - profile: z.custom((value) => typeof value === "string" && isProfile(value)), - }), - ) - .min(1); - -async function inputs(fixtures: boolean): Promise { - if (fixtures) return ["green", "red"].map((id) => ({ id, repository: null, commit: null, profile: "npm" })); - const data: unknown = JSON.parse(await readFile(repositoriesPath, "utf8")); - const rows = publicCases.parse(data); - if (new Set(rows.map(({ id }) => id)).size !== rows.length) throw new Error("Duplicate fix-evals case ID."); - if (new Set(rows.map(({ repository }) => repository.toLowerCase())).size !== rows.length) { - throw new Error("A public repository can occur only once in the fix-evals selection."); +async function inputs(fixtures: boolean): Promise<{ candidates: Candidate[]; selectionRevision: string | null }> { + if (fixtures) { + return { + selectionRevision: null, + candidates: ["green", "red"].map((id) => ({ input: { id, repository: null, commit: null, profile: "npm" } })), + }; } - return rows; + const { revision, candidates } = await readCohort(); + return { selectionRevision: revision, candidates }; } async function writeJson(path: string, value: unknown): Promise { @@ -43,7 +31,19 @@ async function writeJson(path: string, value: unknown): Promise { await writeFile(path, `${JSON.stringify(value, null, 2)}\n`, { flag: "wx" }); } -async function run(out: string, rows: Input[], selected: typeof fixers): Promise { +async function stageAsset(root: string, asset: Asset): Promise { + const response = await fetch(asset.url, { credentials: "omit", signal: AbortSignal.timeout(30_000) }); + if (!response.ok) throw new Error(`Could not read pinned evaluation input ${asset.path}.`); + const bytes = await readBounded(response, 24 * 1024 * 1024, asset.path); + if (asset.sha256 !== undefined && sha256(Buffer.from(bytes)) !== asset.sha256) { + throw new Error(`Pinned evaluation input ${asset.path} did not match its SHA-256.`); + } + const path = join(root, asset.path); + await mkdir(dirname(path), { recursive: true }); + await writeFile(path, bytes, { flag: "wx" }); +} + +async function run(out: string, rows: Awaited>, selected: typeof fixers): Promise { const output = resolve(out); const revision = execFileSync("git", ["rev-parse", "HEAD"], { encoding: "utf8", timeout: 5000 }).trim(); await mkdir(dirname(output), { recursive: true }); @@ -51,23 +51,30 @@ async function run(out: string, rows: Input[], selected: typeof fixers): Promise await tempSource(async (config) => { configureActiveData({ cacheDirectory: config }); const docker = await connectDocker(config); - const images = new Map(); + const images = new Map(); const evidence: Evidence[] = []; - for (const input of rows) { - const load = (root: string) => - input.repository !== null && input.commit !== null - ? checkoutPublic(root, input.repository, input.commit) - : fixtureSource(root, join("tests/fixtures/fix-evals", input.id)); + for (const { input, commands, paths, image: expectedImage, assets = [] } of rows.candidates) { + const load = async (root: string) => { + if (input.repository !== null && input.commit !== null) { + await checkoutPublic(root, input.repository, input.commit); + } else { + await fixtureSource(root, join("tests/fixtures/fix-evals", input.id)); + } + for (const asset of assets) await stageAsset(root, asset); + }; const result = await evaluate(input, load, { output, fixers: selected, + ...(commands === undefined ? {} : { commands }), + ...(paths === undefined ? {} : { paths }), async backend(profile, root) { - let image = images.get(profile); + const profileKey = expectedImage === undefined ? profile : `${profile}:${expectedImage}`; + let image = images.get(profileKey); if (image === undefined) { const dockerfile = profile === "kubernetes" ? await readFile("benchmarks/fix-evals/Dockerfile.kubeconform", "utf8") : ""; - image = await prepareImage(docker, profile, dockerfile); - images.set(profile, image); + image = await prepareImage(docker, profile, dockerfile, expectedImage); + images.set(profileKey, image); } return sandbox(docker, image, await archiveTree(root)); }, @@ -83,7 +90,9 @@ async function run(out: string, rows: Input[], selected: typeof fixers): Promise revision, scannedAt, ebb: getActiveDataSync().info.version, - fixtures: rows.every(({ repository }) => repository === null), + selectionRevision: rows.selectionRevision, + selected: rows.candidates.length, + fixtures: rows.selectionRevision === null, images: Object.fromEntries(images), }); }); diff --git a/benchmarks/fix-evals/results/2026-11-28/evidence.tar.gz b/benchmarks/fix-evals/results/2026-11-28/evidence.tar.gz new file mode 100644 index 00000000..0c5c05db Binary files /dev/null and b/benchmarks/fix-evals/results/2026-11-28/evidence.tar.gz differ diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/achtaitaipai-odyc.json b/benchmarks/fix-evals/results/2026-11-28/failures/achtaitaipai-odyc.json new file mode 100644 index 00000000..920e23ad --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/achtaitaipai-odyc.json @@ -0,0 +1,96 @@ +{ + "id": "achtaitaipai-odyc", + "repository": "achtaitaipai/odyc", + "commit": "6cb119e0bc90833ea0384cac9064f94e3c2f8d09", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "achtaitaipai-odyc/github-actions-uses/fix.patch", + "sha256": "3ec204f83402d68cf6a8005cfc331baa22d1c953b7ce761ba0a4561a0a0a733d" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 583, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "achtaitaipai-odyc/github-actions-uses/build-1.stdout", + "stderr": "achtaitaipai-odyc/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 602, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "achtaitaipai-odyc/baseline/build-1.stdout", + "stderr": "achtaitaipai-odyc/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/adamant-im-adamant-api-jsclient.json b/benchmarks/fix-evals/results/2026-11-28/failures/adamant-im-adamant-api-jsclient.json new file mode 100644 index 00000000..7d280cd7 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/adamant-im-adamant-api-jsclient.json @@ -0,0 +1,96 @@ +{ + "id": "adamant-im-adamant-api-jsclient", + "repository": "Adamant-im/adamant-api-jsclient", + "commit": "951b210602903cfd57da4027019e1c718cfe17aa", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "adamant-im-adamant-api-jsclient/github-actions-uses/fix.patch", + "sha256": "23fe028703d1deb224e4acc448102eaff0beeaa8cd30f60750a2d4c20ccb79ff" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 478, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "adamant-im-adamant-api-jsclient/github-actions-uses/build-1.stdout", + "stderr": "adamant-im-adamant-api-jsclient/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 500, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "adamant-im-adamant-api-jsclient/baseline/build-1.stdout", + "stderr": "adamant-im-adamant-api-jsclient/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/agentgg-dev-agentgg.json b/benchmarks/fix-evals/results/2026-11-28/failures/agentgg-dev-agentgg.json new file mode 100644 index 00000000..e18700e1 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/agentgg-dev-agentgg.json @@ -0,0 +1,96 @@ +{ + "id": "agentgg-dev-agentgg", + "repository": "agentgg-dev/agentgg", + "commit": "20cca9c1896ef4fee26c93a8730c0f46e4ca44d6", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "agentgg-dev-agentgg/github-actions-uses/fix.patch", + "sha256": "cb298ba05c5e3d9ed011d354bd1174add3a412a3f5e30f7011244e611bee6e35" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 671, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "agentgg-dev-agentgg/github-actions-uses/build-1.stdout", + "stderr": "agentgg-dev-agentgg/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 734, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "agentgg-dev-agentgg/baseline/build-1.stdout", + "stderr": "agentgg-dev-agentgg/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/agions-dramaxis.json b/benchmarks/fix-evals/results/2026-11-28/failures/agions-dramaxis.json new file mode 100644 index 00000000..809b9dd7 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/agions-dramaxis.json @@ -0,0 +1,96 @@ +{ + "id": "agions-dramaxis", + "repository": "Agions/dramaxis", + "commit": "3ec6a159fb4c9a969bf85e83e701772b346d654c", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "agions-dramaxis/github-actions-uses/fix.patch", + "sha256": "ce74081a14af9de2309eaaae9fa62701a354c9a85a2b93722a698cc778ec170e" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 927, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "agions-dramaxis/github-actions-uses/build-1.stdout", + "stderr": "agions-dramaxis/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 920, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "agions-dramaxis/baseline/build-1.stdout", + "stderr": "agions-dramaxis/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/alirezakj-bettersoundcloud.json b/benchmarks/fix-evals/results/2026-11-28/failures/alirezakj-bettersoundcloud.json new file mode 100644 index 00000000..84a4be1e --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/alirezakj-bettersoundcloud.json @@ -0,0 +1,96 @@ +{ + "id": "alirezakj-bettersoundcloud", + "repository": "AlirezaKJ/BetterSoundCloud", + "commit": "81892f82a5f9ba204a2db53152968650dde6a01b", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "alirezakj-bettersoundcloud/github-actions-uses/fix.patch", + "sha256": "0345852dbe5f36bc96928aa9436e489abf9ba990fc542fea37b80b9ca2e62ddc" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 1000, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "alirezakj-bettersoundcloud/github-actions-uses/build-1.stdout", + "stderr": "alirezakj-bettersoundcloud/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 1026, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "alirezakj-bettersoundcloud/baseline/build-1.stdout", + "stderr": "alirezakj-bettersoundcloud/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/antfu-v-lazy-show.json b/benchmarks/fix-evals/results/2026-11-28/failures/antfu-v-lazy-show.json new file mode 100644 index 00000000..cf83996b --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/antfu-v-lazy-show.json @@ -0,0 +1,96 @@ +{ + "id": "antfu-v-lazy-show", + "repository": "antfu/v-lazy-show", + "commit": "dbd8bad96812be9ce96d3776c7e68e385df1b5cd", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "antfu-v-lazy-show/github-actions-uses/fix.patch", + "sha256": "5150ab557c111a91d1338ca98d1c34c13a18824fa11e161765bde544d73239dc" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 625, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "antfu-v-lazy-show/github-actions-uses/build-1.stdout", + "stderr": "antfu-v-lazy-show/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 651, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "antfu-v-lazy-show/baseline/build-1.stdout", + "stderr": "antfu-v-lazy-show/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/bikeshaving-repeater.json b/benchmarks/fix-evals/results/2026-11-28/failures/bikeshaving-repeater.json new file mode 100644 index 00000000..5133e497 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/bikeshaving-repeater.json @@ -0,0 +1,96 @@ +{ + "id": "bikeshaving-repeater", + "repository": "bikeshaving/repeater", + "commit": "c57e999dbbf4e02d92b8ebd3f04590ae6f27b396", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "bikeshaving-repeater/github-actions-uses/fix.patch", + "sha256": "17ae5628eaf8760e4cf267b1a68bc196393b460d7b88a3d0173e203c53a18883" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 467, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "bikeshaving-repeater/github-actions-uses/build-1.stdout", + "stderr": "bikeshaving-repeater/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 454, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "bikeshaving-repeater/baseline/build-1.stdout", + "stderr": "bikeshaving-repeater/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/billionsbobby-jevrouter.json b/benchmarks/fix-evals/results/2026-11-28/failures/billionsbobby-jevrouter.json new file mode 100644 index 00000000..1a8ac01c --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/billionsbobby-jevrouter.json @@ -0,0 +1,96 @@ +{ + "id": "billionsbobby-jevrouter", + "repository": "BillionsBobby/JevRouter", + "commit": "b1cdf80593ee530cedd99728a938f4e74ddd556b", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "billionsbobby-jevrouter/github-actions-uses/fix.patch", + "sha256": "1e27df1ec8ea2f51a895f5121ad5c60389f4fb1d47b68c891198fb8fa8730bbd" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 591, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "billionsbobby-jevrouter/github-actions-uses/build-1.stdout", + "stderr": "billionsbobby-jevrouter/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 388, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "billionsbobby-jevrouter/baseline/build-1.stdout", + "stderr": "billionsbobby-jevrouter/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/chilfish-weibo-archiver.json b/benchmarks/fix-evals/results/2026-11-28/failures/chilfish-weibo-archiver.json new file mode 100644 index 00000000..8f1f0606 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/chilfish-weibo-archiver.json @@ -0,0 +1,96 @@ +{ + "id": "chilfish-weibo-archiver", + "repository": "Chilfish/Weibo-archiver", + "commit": "f053b62fbd3217a2cf35a430b4c35cba96cb86dd", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "chilfish-weibo-archiver/github-actions-uses/fix.patch", + "sha256": "00096df1c448ada821dfb8319fe38c00e09cdf48544b0a9b2a4a5768a8ad2c87" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 578, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "chilfish-weibo-archiver/github-actions-uses/build-1.stdout", + "stderr": "chilfish-weibo-archiver/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 636, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "chilfish-weibo-archiver/baseline/build-1.stdout", + "stderr": "chilfish-weibo-archiver/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/cleomenezesjr-mosaicwm.json b/benchmarks/fix-evals/results/2026-11-28/failures/cleomenezesjr-mosaicwm.json new file mode 100644 index 00000000..6c86bcc9 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/cleomenezesjr-mosaicwm.json @@ -0,0 +1,96 @@ +{ + "id": "cleomenezesjr-mosaicwm", + "repository": "CleoMenezesJr/MosaicWM", + "commit": "db885f37744f8f427848f2f42237f8a77adff7a3", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "cleomenezesjr-mosaicwm/github-actions-uses/fix.patch", + "sha256": "459db5183dae75c91a2d5bc8e0ce028fcbf9ab04df1c0eded32551ee1dc425ae" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 408, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "cleomenezesjr-mosaicwm/github-actions-uses/build-1.stdout", + "stderr": "cleomenezesjr-mosaicwm/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 451, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "cleomenezesjr-mosaicwm/baseline/build-1.stdout", + "stderr": "cleomenezesjr-mosaicwm/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/cloudfour-lighthouse-parade.json b/benchmarks/fix-evals/results/2026-11-28/failures/cloudfour-lighthouse-parade.json new file mode 100644 index 00000000..7f715ac6 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/cloudfour-lighthouse-parade.json @@ -0,0 +1,96 @@ +{ + "id": "cloudfour-lighthouse-parade", + "repository": "cloudfour/lighthouse-parade", + "commit": "e3cddd59a47c0dfac81a1178f3e0032b6d4acc8a", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "cloudfour-lighthouse-parade/github-actions-uses/fix.patch", + "sha256": "beaf9254ec38daca89ffd1e394bf5b8dad2bbf7ac234771ca2be7479b999a77d" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 408, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "cloudfour-lighthouse-parade/github-actions-uses/build-1.stdout", + "stderr": "cloudfour-lighthouse-parade/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 399, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "cloudfour-lighthouse-parade/baseline/build-1.stdout", + "stderr": "cloudfour-lighthouse-parade/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-playwright-es.json b/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-playwright-es.json new file mode 100644 index 00000000..f41eaea2 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-playwright-es.json @@ -0,0 +1,96 @@ +{ + "id": "connectrpc-connect-playwright-es", + "repository": "connectrpc/connect-playwright-es", + "commit": "1fc1442b31f3104122b919f959cfe55d15338cca", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "connectrpc-connect-playwright-es/github-actions-uses/fix.patch", + "sha256": "5eea1ce929b8d3d8dab5b7f2a358389c5ab5ff04c85f35545cec690e8a9b9bc9" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 446, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "connectrpc-connect-playwright-es/github-actions-uses/build-1.stdout", + "stderr": "connectrpc-connect-playwright-es/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 427, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "connectrpc-connect-playwright-es/baseline/build-1.stdout", + "stderr": "connectrpc-connect-playwright-es/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-query-es.json b/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-query-es.json new file mode 100644 index 00000000..998312c1 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/connectrpc-connect-query-es.json @@ -0,0 +1,96 @@ +{ + "id": "connectrpc-connect-query-es", + "repository": "connectrpc/connect-query-es", + "commit": "584732abf870b5561ba50052d02caf0c85635204", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "connectrpc-connect-query-es/github-actions-uses/fix.patch", + "sha256": "95d0e0b534049510f4ecc5aaa78c73432e0dfb5833894aa1ef7c5c87036bb5ba" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 472, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "connectrpc-connect-query-es/github-actions-uses/build-1.stdout", + "stderr": "connectrpc-connect-query-es/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 457, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "connectrpc-connect-query-es/baseline/build-1.stdout", + "stderr": "connectrpc-connect-query-es/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/danieltyukov-studocuhack.json b/benchmarks/fix-evals/results/2026-11-28/failures/danieltyukov-studocuhack.json new file mode 100644 index 00000000..fc4fbbbd --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/danieltyukov-studocuhack.json @@ -0,0 +1,96 @@ +{ + "id": "danieltyukov-studocuhack", + "repository": "danieltyukov/studocuhack", + "commit": "a01a3ecb50573d9a7e15b29ebcb368f7c292db18", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "danieltyukov-studocuhack/github-actions-uses/fix.patch", + "sha256": "bfbda4d831be51c1ed6d9ee23723c261040590a772e3dfeaa5e35da4fc6c963f" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 677, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "danieltyukov-studocuhack/github-actions-uses/build-1.stdout", + "stderr": "danieltyukov-studocuhack/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 708, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "danieltyukov-studocuhack/baseline/build-1.stdout", + "stderr": "danieltyukov-studocuhack/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/davidpob99-nasa-wallpaper.json b/benchmarks/fix-evals/results/2026-11-28/failures/davidpob99-nasa-wallpaper.json new file mode 100644 index 00000000..4eaacc15 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/davidpob99-nasa-wallpaper.json @@ -0,0 +1,96 @@ +{ + "id": "davidpob99-nasa-wallpaper", + "repository": "davidpob99/nasa-wallpaper", + "commit": "457c3eadce775423fe1399eeada78a29c95698ae", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "davidpob99-nasa-wallpaper/github-actions-uses/fix.patch", + "sha256": "9eccb496abebe2a335411323dbc57192c7917b831d675ff15b22ef855e53ed99" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 336, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "davidpob99-nasa-wallpaper/github-actions-uses/build-1.stdout", + "stderr": "davidpob99-nasa-wallpaper/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 345, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "davidpob99-nasa-wallpaper/baseline/build-1.stdout", + "stderr": "davidpob99-nasa-wallpaper/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/dc7290-next-export-optimize-images.json b/benchmarks/fix-evals/results/2026-11-28/failures/dc7290-next-export-optimize-images.json new file mode 100644 index 00000000..21620768 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/dc7290-next-export-optimize-images.json @@ -0,0 +1,96 @@ +{ + "id": "dc7290-next-export-optimize-images", + "repository": "dc7290/next-export-optimize-images", + "commit": "dffdfc2aa86b3e91e21c6ed80d528b474eda2e4c", + "profile": "github-actions", + "cases": [ + { + "fixer": "github-actions-uses", + "patch": { + "path": "dc7290-next-export-optimize-images/github-actions-uses/fix.patch", + "sha256": "6f0d978fed1b01db6bec14012a192477e6ac6eba1b1c4b09a67b8ceb6429d45f" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 758, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "dc7290-next-export-optimize-images/github-actions-uses/build-1.stdout", + "stderr": "dc7290-next-export-optimize-images/github-actions-uses/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": false, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "sh", + "-ec", + "set -- .github/workflows/*.yml .github/workflows/*.yaml; for f do if [ -f \"$f\" ]; then set -- \"$@\" \"$f\"; fi; shift; done; [ \"$#\" -gt 0 ]; actionlint \"$@\"" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 737, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "dc7290-next-export-optimize-images/baseline/build-1.stdout", + "stderr": "dc7290-next-export-optimize-images/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/failures/stefanprodan-k8s-prom-hpa.json b/benchmarks/fix-evals/results/2026-11-28/failures/stefanprodan-k8s-prom-hpa.json new file mode 100644 index 00000000..124eabce --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/failures/stefanprodan-k8s-prom-hpa.json @@ -0,0 +1,220 @@ +{ + "id": "stefanprodan-k8s-prom-hpa", + "repository": "stefanprodan/k8s-prom-hpa", + "commit": "2dbaabafd360e5c1d0f8a9aaa7bfaa7cb80b6c4b", + "profile": "kubernetes", + "cases": [ + { + "fixer": "kubernetes", + "patch": { + "path": "stefanprodan-k8s-prom-hpa/kubernetes/fix.patch", + "sha256": "5c33ec04fc1c0afc18220887255b87682684952145de6033320af79eb89e19be" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "/usr/local/bin/kubeconform", + "-strict", + "-summary", + "-schema-location", + "./.offing-kubeconform-schemas/{{.ResourceKind}}{{.KindSuffix}}.json", + "custom-metrics-api/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-auth-reader-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiservice.yaml", + "custom-metrics-api/custom-metrics-cluster-role.yaml", + "custom-metrics-api/custom-metrics-resource-reader-cluster-role.yaml", + "custom-metrics-api/hpa-custom-metrics-cluster-role-binding.yaml", + "ingress/ingress-nginx-rbac.yaml", + "metrics-server/auth-delegator.yaml", + "metrics-server/auth-reader.yaml", + "metrics-server/metrics-apiservice.yaml", + "podinfo/podinfo-hpa-custom.yaml", + "podinfo/podinfo-hpa.yaml", + "podinfo/podinfo-ingress.yaml", + "prometheus/prometheus-rbac.yaml" + ], + "attempts": [ + { + "exitCode": 1, + "durationMs": 266, + "status": "failed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "46b91c0a005b3eccf6079c2f2f19e6b033a9ba173be02fa356c4fcbdb5c0c6f1", + "tail": "custom-metrics-api/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml - ClusterRoleBinding custom-metrics:system:auth-delegator failed validation: could not find schema for ClusterRoleBinding\ncustom-metrics-api/custom-metrics-apiserver-auth-reader-role-binding.yaml - RoleBinding custom-metrics-auth-reader failed validation: could not find schema for RoleBinding\ncustom-metrics-api/custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml - ClusterRoleBinding custom-metrics-resource-reader failed validation: could not find schema for ClusterRoleBinding\ncustom-metrics-api/custom-metrics-apiservice.yaml - APIService v1beta1.custom.metrics.k8s.io failed validation: could not find schema for APIService\ncustom-metrics-api/custom-metrics-cluster-role.yaml - ClusterRole custom-metrics-server-resources failed validation: could not find schema for ClusterRole\ncustom-metrics-api/custom-metrics-resource-reader-cluster-role.yaml - ClusterRole custom-metrics-resource-reader failed validation: could not find schema for ClusterRole\ncustom-metrics-api/hpa-custom-metrics-cluster-role-binding.yaml - ClusterRoleBinding hpa-controller-custom-metrics failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - RoleBinding nginx-ingress-role-nisa-binding failed validation: could not find schema for RoleBinding\ningress/ingress-nginx-rbac.yaml - ClusterRoleBinding nginx-ingress-clusterrole-nisa-binding failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - ClusterRole nginx-ingress-clusterrole failed validation: could not find schema for ClusterRole\nmetrics-server/auth-delegator.yaml - ClusterRoleBinding metrics-server:system:auth-delegator failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - Role nginx-ingress-role failed validation: could not find schema for Role\nmetrics-server/auth-reader.yaml - RoleBinding metrics-server-auth-reader failed validation: could not find schema for RoleBinding\nmetrics-server/metrics-apiservice.yaml - APIService v1beta1.metrics.k8s.io failed validation: could not find schema for APIService\npodinfo/podinfo-hpa-custom.yaml - HorizontalPodAutoscaler podinfo failed validation: could not find schema for HorizontalPodAutoscaler\npodinfo/podinfo-hpa.yaml - HorizontalPodAutoscaler podinfo failed validation: could not find schema for HorizontalPodAutoscaler\nprometheus/prometheus-rbac.yaml - ClusterRole prometheus failed validation: could not find schema for ClusterRole\nprometheus/prometheus-rbac.yaml - ClusterRoleBinding prometheus failed validation: could not find schema for ClusterRoleBinding\nSummary: 22 resources found in 15 files - Valid: 4, Invalid: 0, Errors: 18, Skipped: 0\n" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + }, + { + "exitCode": 1, + "durationMs": 289, + "status": "failed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "46b91c0a005b3eccf6079c2f2f19e6b033a9ba173be02fa356c4fcbdb5c0c6f1", + "tail": "custom-metrics-api/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml - ClusterRoleBinding custom-metrics:system:auth-delegator failed validation: could not find schema for ClusterRoleBinding\ncustom-metrics-api/custom-metrics-apiserver-auth-reader-role-binding.yaml - RoleBinding custom-metrics-auth-reader failed validation: could not find schema for RoleBinding\ncustom-metrics-api/custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml - ClusterRoleBinding custom-metrics-resource-reader failed validation: could not find schema for ClusterRoleBinding\ncustom-metrics-api/custom-metrics-apiservice.yaml - APIService v1beta1.custom.metrics.k8s.io failed validation: could not find schema for APIService\ncustom-metrics-api/custom-metrics-cluster-role.yaml - ClusterRole custom-metrics-server-resources failed validation: could not find schema for ClusterRole\ncustom-metrics-api/custom-metrics-resource-reader-cluster-role.yaml - ClusterRole custom-metrics-resource-reader failed validation: could not find schema for ClusterRole\ncustom-metrics-api/hpa-custom-metrics-cluster-role-binding.yaml - ClusterRoleBinding hpa-controller-custom-metrics failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - RoleBinding nginx-ingress-role-nisa-binding failed validation: could not find schema for RoleBinding\ningress/ingress-nginx-rbac.yaml - ClusterRoleBinding nginx-ingress-clusterrole-nisa-binding failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - ClusterRole nginx-ingress-clusterrole failed validation: could not find schema for ClusterRole\nmetrics-server/auth-delegator.yaml - ClusterRoleBinding metrics-server:system:auth-delegator failed validation: could not find schema for ClusterRoleBinding\ningress/ingress-nginx-rbac.yaml - Role nginx-ingress-role failed validation: could not find schema for Role\nmetrics-server/auth-reader.yaml - RoleBinding metrics-server-auth-reader failed validation: could not find schema for RoleBinding\nmetrics-server/metrics-apiservice.yaml - APIService v1beta1.metrics.k8s.io failed validation: could not find schema for APIService\npodinfo/podinfo-hpa-custom.yaml - HorizontalPodAutoscaler podinfo failed validation: could not find schema for HorizontalPodAutoscaler\npodinfo/podinfo-hpa.yaml - HorizontalPodAutoscaler podinfo failed validation: could not find schema for HorizontalPodAutoscaler\nprometheus/prometheus-rbac.yaml - ClusterRole prometheus failed validation: could not find schema for ClusterRole\nprometheus/prometheus-rbac.yaml - ClusterRoleBinding prometheus failed validation: could not find schema for ClusterRoleBinding\nSummary: 22 resources found in 15 files - Valid: 4, Invalid: 0, Errors: 18, Skipped: 0\n" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "stefanprodan-k8s-prom-hpa/kubernetes/build-1.stdout", + "stderr": "stefanprodan-k8s-prom-hpa/kubernetes/build-1.stderr" + }, + { + "stdout": "stefanprodan-k8s-prom-hpa/kubernetes/build-2.stdout", + "stderr": "stefanprodan-k8s-prom-hpa/kubernetes/build-2.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": true, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": false, + "testsKeptGreen": null + } + }, + { + "fixer": "kubernetes-ingress-v1", + "patch": { + "path": "stefanprodan-k8s-prom-hpa/kubernetes-ingress-v1/fix.patch", + "sha256": "8478e2982da19b511faf61f1f1b61332702dffcf42256509df8267fadd1b554d" + }, + "checks": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "/usr/local/bin/kubeconform", + "-strict", + "-summary", + "-schema-location", + "./.offing-kubeconform-schemas/{{.ResourceKind}}{{.KindSuffix}}.json", + "custom-metrics-api/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-auth-reader-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiservice.yaml", + "custom-metrics-api/custom-metrics-cluster-role.yaml", + "custom-metrics-api/custom-metrics-resource-reader-cluster-role.yaml", + "custom-metrics-api/hpa-custom-metrics-cluster-role-binding.yaml", + "ingress/ingress-nginx-rbac.yaml", + "metrics-server/auth-delegator.yaml", + "metrics-server/auth-reader.yaml", + "metrics-server/metrics-apiservice.yaml", + "podinfo/podinfo-hpa-custom.yaml", + "podinfo/podinfo-hpa.yaml", + "podinfo/podinfo-ingress.yaml", + "prometheus/prometheus-rbac.yaml" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 282, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "094c2b0a68d9331f2bee746013bf51863d83397f13b79c8437fec54c0869225a", + "tail": "Summary: 22 resources found in 15 files - Valid: 22, Invalid: 0, Errors: 0, Skipped: 0\n" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "stefanprodan-k8s-prom-hpa/kubernetes-ingress-v1/build-1.stdout", + "stderr": "stefanprodan-k8s-prom-hpa/kubernetes-ingress-v1/build-1.stderr" + } + ] + } + }, + "metrics": { + "deterministic": true, + "applied": true, + "resolved": true, + "noNewFinding": true, + "idempotent": true, + "buildKeptGreen": true, + "testsKeptGreen": null + } + } + ], + "baseline": { + "build": { + "schemaVersion": "offing.test-run.v1", + "command": [ + "/usr/local/bin/kubeconform", + "-strict", + "-summary", + "-schema-location", + "./.offing-kubeconform-schemas/{{.ResourceKind}}{{.KindSuffix}}.json", + "custom-metrics-api/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-auth-reader-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml", + "custom-metrics-api/custom-metrics-apiservice.yaml", + "custom-metrics-api/custom-metrics-cluster-role.yaml", + "custom-metrics-api/custom-metrics-resource-reader-cluster-role.yaml", + "custom-metrics-api/hpa-custom-metrics-cluster-role-binding.yaml", + "ingress/ingress-nginx-rbac.yaml", + "metrics-server/auth-delegator.yaml", + "metrics-server/auth-reader.yaml", + "metrics-server/metrics-apiservice.yaml", + "podinfo/podinfo-hpa-custom.yaml", + "podinfo/podinfo-hpa.yaml", + "podinfo/podinfo-ingress.yaml", + "prometheus/prometheus-rbac.yaml" + ], + "attempts": [ + { + "exitCode": 0, + "durationMs": 297, + "status": "passed", + "totals": null, + "failures": [], + "logs": { + "stdout": { + "sha256": "094c2b0a68d9331f2bee746013bf51863d83397f13b79c8437fec54c0869225a", + "tail": "Summary: 22 resources found in 15 files - Valid: 22, Invalid: 0, Errors: 0, Skipped: 0\n" + }, + "stderr": { + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "tail": "" + } + } + } + ], + "flaky": [], + "files": [ + { + "stdout": "stefanprodan-k8s-prom-hpa/baseline/build-1.stdout", + "stderr": "stefanprodan-k8s-prom-hpa/baseline/build-1.stderr" + } + ] + } + } +} diff --git a/benchmarks/fix-evals/results/2026-11-28/report.json b/benchmarks/fix-evals/results/2026-11-28/report.json new file mode 100644 index 00000000..3710eda4 --- /dev/null +++ b/benchmarks/fix-evals/results/2026-11-28/report.json @@ -0,0 +1,949 @@ +{ + "schemaVersion": "offing.fix-evals.v1", + "selected": 60, + "repositories": 50, + "fixtures": false, + "revision": "f266972e666b1e61860698eb59c81fd5f689e198", + "ebb": "0.2.0", + "excluded": [ + { + "id": "cnosdb-cnosdb", + "reason": "no-comparable-profile" + }, + { + "id": "dpgaspar-flask-appbuilder", + "reason": "no-comparable-profile" + }, + { + "id": "dynamicexpresso-dynamicexpresso", + "reason": "no-comparable-profile" + }, + { + "id": "joserodpt-realscoreboard", + "reason": "no-comparable-profile" + }, + { + "id": "knrt10-kubernetes-basiclearning", + "reason": "no-comparable-profile" + }, + { + "id": "monogramm-autodiscover-email-settings", + "reason": "no-comparable-profile" + }, + { + "id": "n8henrie-pycookiecheat", + "reason": "no-comparable-profile" + }, + { + "id": "readme-workflows-recent-activity", + "reason": "no-comparable-profile" + }, + { + "id": "streamich-fs-monkey", + "reason": "no-comparable-profile" + }, + { + "id": "zhanyong-wan-dongbei", + "reason": "no-comparable-profile" + } + ], + "fixers": [ + { + "id": "action-runtime", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "codemods", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "dockerfile", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "dockerfile-legacy", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "github-actions-uses", + "cases": 45, + "status": "measured", + "metrics": { + "deterministic": { + "passed": 45, + "applicable": 45, + "percent": 100 + }, + "applied": { + "passed": 45, + "applicable": 45, + "percent": 100 + }, + "resolved": { + "passed": 29, + "applicable": 45, + "percent": 64.44444444444444 + }, + "noNewFinding": { + "passed": 45, + "applicable": 45, + "percent": 100 + }, + "idempotent": { + "passed": 45, + "applicable": 45, + "percent": 100 + }, + "buildKeptGreen": { + "passed": 45, + "applicable": 45, + "percent": 100 + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [ + { + "repository": "achtaitaipai-odyc", + "failures": ["resolved"] + }, + { + "repository": "adamant-im-adamant-api-jsclient", + "failures": ["resolved"] + }, + { + "repository": "agentgg-dev-agentgg", + "failures": ["resolved"] + }, + { + "repository": "agions-dramaxis", + "failures": ["resolved"] + }, + { + "repository": "alirezakj-bettersoundcloud", + "failures": ["resolved"] + }, + { + "repository": "antfu-v-lazy-show", + "failures": ["resolved"] + }, + { + "repository": "bikeshaving-repeater", + "failures": ["resolved"] + }, + { + "repository": "billionsbobby-jevrouter", + "failures": ["resolved"] + }, + { + "repository": "chilfish-weibo-archiver", + "failures": ["resolved"] + }, + { + "repository": "cleomenezesjr-mosaicwm", + "failures": ["resolved"] + }, + { + "repository": "cloudfour-lighthouse-parade", + "failures": ["resolved"] + }, + { + "repository": "connectrpc-connect-playwright-es", + "failures": ["resolved"] + }, + { + "repository": "connectrpc-connect-query-es", + "failures": ["resolved"] + }, + { + "repository": "danieltyukov-studocuhack", + "failures": ["resolved"] + }, + { + "repository": "davidpob99-nasa-wallpaper", + "failures": ["resolved"] + }, + { + "repository": "dc7290-next-export-optimize-images", + "failures": ["resolved"] + } + ] + }, + { + "id": "go-mod", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + } + }, + "failures": [] + }, + { + "id": "java", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "kubernetes", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [ + { + "repository": "stefanprodan-k8s-prom-hpa", + "failures": ["buildKeptGreen"] + } + ] + }, + { + "id": "kubernetes-ingress-v1", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "node-buffer", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + } + }, + "failures": [] + }, + { + "id": "node-renames", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "node-util-is", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + } + }, + "failures": [] + }, + { + "id": "python", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "python-imp", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "python-renames", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "python-utcnow", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "runtime-pins", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "terraform-legacy", + "cases": 1, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "applied": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "resolved": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "noNewFinding": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "idempotent": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "buildKeptGreen": { + "passed": 1, + "applicable": 1, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + }, + { + "id": "workflow-commands", + "cases": 0, + "status": "too few cases", + "metrics": { + "deterministic": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "applied": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "resolved": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "noNewFinding": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "idempotent": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "buildKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + }, + "testsKeptGreen": { + "passed": 0, + "applicable": 0, + "percent": null + } + }, + "failures": [] + } + ], + "scannedAt": "2026-11-27T00:00:00.000Z", + "selectionRevision": "b821f1ce170475aea318e7e72dc93a1c1af700ee", + "images": { + "github-actions": "docker.io/rhysd/actionlint@sha256:9d36088643581e728c969f35141f88139fec77280b2be23c1f66f8e40e1025e7", + "terraform:docker.io/hashicorp/terraform@sha256:1c27ac61857ceeb75c4119ea908143791f3f05914142116181355bb360e61e33": "docker.io/hashicorp/terraform@sha256:1c27ac61857ceeb75c4119ea908143791f3f05914142116181355bb360e61e33", + "npm": "docker.io/library/node@sha256:e0e989b967dacc279681ed81774b2ce9eeebbb0efb8e0c427573235bebf1eda1", + "go": "docker.io/library/golang@sha256:66c04b389c4b0a2e0f0d51f3a37de0109650887a321b2a3b8cd9f573d7490a01", + "kubernetes": "sha256:5006303e972de19ed64bdc0efb57824960017450a7c0e59e4523dd1ac3cd9d8f" + }, + "evidenceSha256": "a4449c04edc07e46c0543244d17670b62115763decd19926b09a9d514703ca6b" +} diff --git a/benchmarks/fix-evals/site-data.schema.json b/benchmarks/fix-evals/site-data.schema.json new file mode 100644 index 00000000..3a132deb --- /dev/null +++ b/benchmarks/fix-evals/site-data.schema.json @@ -0,0 +1,185 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "required": ["schemaVersion", "run", "fixes", "charts", "agent"], + "properties": { + "schemaVersion": { + "const": "offing.fix-evals-page.v1" + }, + "run": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "date", + "selected", + "measured", + "excluded", + "revision", + "ebb", + "evidence", + "failureLinks", + "agentLinks" + ], + "properties": { + "id": { + "const": "fix-evals" + }, + "date": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + }, + "selected": { + "type": "integer", + "minimum": 0 + }, + "measured": { + "type": "integer", + "minimum": 0 + }, + "excluded": { + "type": "integer", + "minimum": 0 + }, + "revision": { + "type": "string", + "pattern": "^[a-f0-9]{40}$" + }, + "ebb": { + "type": "string" + }, + "evidence": { + "type": "string" + }, + "failureLinks": { + "type": "string" + }, + "agentLinks": { + "type": "string" + } + } + }, + "maxItems": 1 + }, + "fixes": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "cases", + "status", + "deterministic", + "applied", + "resolved", + "noNewFinding", + "idempotent", + "buildKeptGreen", + "testsKeptGreen" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[a-z0-9][a-z0-9-]*$" + }, + "cases": { + "type": "integer", + "minimum": 0 + }, + "status": { + "enum": ["measured", "too few cases"] + }, + "deterministic": { + "type": "string" + }, + "applied": { + "type": "string" + }, + "resolved": { + "type": "string" + }, + "noNewFinding": { + "type": "string" + }, + "idempotent": { + "type": "string" + }, + "buildKeptGreen": { + "type": "string" + }, + "testsKeptGreen": { + "type": "string" + } + } + } + }, + "charts": { + "type": "array", + "minItems": 0, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["label", "percent"], + "properties": { + "label": { + "type": "string" + }, + "percent": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + } + }, + "agent": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["id", "date", "profile", "agent", "arm", "static", "project", "both", "source"], + "properties": { + "id": { + "type": "string" + }, + "date": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + }, + "profile": { + "type": "string" + }, + "agent": { + "type": "string" + }, + "arm": { + "enum": ["Bare prompt", "Migration packet"] + }, + "static": { + "type": "string", + "pattern": "^\\d+/\\d+$" + }, + "project": { + "type": "string", + "pattern": "^(\\d+/\\d+|not run)$" + }, + "both": { + "type": "string", + "pattern": "^(\\d+/\\d+|not run)$" + }, + "source": { + "type": "string", + "pattern": "^https://github\\.com/" + } + } + } + } + } +} diff --git a/benchmarks/fix-evals/site.ts b/benchmarks/fix-evals/site.ts new file mode 100644 index 00000000..1a5a7c0b --- /dev/null +++ b/benchmarks/fix-evals/site.ts @@ -0,0 +1,169 @@ +import { readFile, readdir } from "node:fs/promises"; +import { resolve } from "node:path"; + +import { z } from "zod"; + +import { metrics } from "./evaluate.js"; + +const reports = "benchmarks/fix-evals/results"; +const agentRuns = "benchmarks/agent-migrations/results"; +const github = "https://github.com/velella-sh/offing/blob/main/"; +const id = z.string().regex(/^[a-z0-9][a-z0-9-]*$/u); +const count = z.int().nonnegative(); +const metric = z.object({ passed: count, applicable: count, percent: z.number().min(0).max(100).nullable() }); +export const fixEvalReport = z.looseObject({ + schemaVersion: z.literal("offing.fix-evals.v1"), + selected: count, + repositories: count, + fixtures: z.literal(false), + evidenceSha256: z + .string() + .regex(/^[a-f0-9]{64}$/u) + .optional(), + revision: z.string().regex(/^[a-f0-9]{40}$/u), + ebb: z.string(), + excluded: z.array(z.object({ id, reason: id })), + fixers: z.array( + z.object({ + id, + cases: count, + status: z.enum(["measured", "too few cases"]), + metrics: z.record(z.enum(metrics), metric), + failures: z.array(z.object({ repository: id, failures: z.array(z.enum(metrics)) })), + }), + ), +}); + +const agentRecord = z.object({ + agent: z.object({ name: z.string(), version: z.string(), model: z.string() }), + cases: z + .array( + z.object({ + conditions: z.array( + z.object({ + condition: z.enum(["baseline", "packet"]), + staticSuccess: z.boolean().optional(), + success: z.boolean(), + projectVerificationStatus: z.enum(["pass", "fail", "timeout", "not-run"]), + }), + ), + }), + ) + .min(1), +}); + +type AgentRecord = z.infer; +type Rate = z.infer; + +const metricLabels = { + deterministic: "Deterministic", + applied: "Applied", + resolved: "Resolved", + noNewFinding: "No new finding", + idempotent: "Idempotent", + buildKeptGreen: "Build or validation stayed green", + testsKeptGreen: "Tests stayed green", +} as const satisfies Record<(typeof metrics)[number], string>; + +async function json(path: string): Promise { + return JSON.parse(await readFile(path, "utf8")); +} + +export async function latestFixEval(root: string): Promise<{ date: string; path: string }> { + const entries = await readdir(resolve(root, reports), { withFileTypes: true }); + const date = entries + .filter((entry) => entry.isDirectory()) + .map(({ name }) => name) + .filter((name) => /^\d{4}-\d{2}-\d{2}$/u.test(name)) + .sort() + .at(-1); + if (date === undefined) throw new Error("No dated fix evaluation results."); + return { date, path: `${reports}/${date}/report.json` }; +} + +function rates({ passed, applicable, percent }: Rate): string { + if (applicable === 0) return "not applicable"; + return `${passed}/${applicable}${percent === null ? "" : ` (${percent.toFixed(1)}%)`}`; +} + +function agentRows(record: AgentRecord, file: string) { + return (["baseline", "packet"] as const).map((mode) => { + const arms = record.cases.flatMap(({ conditions }) => conditions.filter(({ condition }) => condition === mode)); + const project = arms.filter(({ projectVerificationStatus }) => projectVerificationStatus !== "not-run"); + const staticPassed = arms.filter(({ staticSuccess, success }) => staticSuccess ?? success).length; + const projectPassed = project.filter( + ({ projectVerificationStatus }) => projectVerificationStatus === "pass", + ).length; + const bothPassed = project.filter(({ success }) => success).length; + if (arms.length !== record.cases.length) throw new Error(`Incomplete paired agent run in ${file}.`); + return { + id: `${file.slice(0, -5)}-${mode}`, + date: file.slice(0, 10), + profile: project.length === 0 ? "Static checks" : "Static checks and selected project checks", + agent: `${record.agent.name} ${record.agent.version} · ${record.agent.model}`, + arm: mode === "baseline" ? "Bare prompt" : "Migration packet", + static: `${staticPassed}/${arms.length}`, + project: project.length === 0 ? "not run" : `${projectPassed}/${project.length}`, + both: project.length === 0 ? "not run" : `${bothPassed}/${project.length}`, + source: `${github}${agentRuns}/${file}`, + }; + }); +} + +export async function fixEvalPageData(root: string) { + const { date, path } = await latestFixEval(root); + const result = fixEvalReport.parse(await json(resolve(root, path))); + if (result.repositories + result.excluded.length !== result.selected) { + throw new Error("The evaluated and excluded repositories must cover the selection."); + } + const fixes = result.fixers.map((fixer) => ({ + id: fixer.id, + cases: fixer.cases, + status: fixer.status, + ...Object.fromEntries(metrics.map((key) => [key, rates(fixer.metrics[key])])), + })); + const charts = result.fixers.flatMap(({ id: label, metrics: { buildKeptGreen } }) => + buildKeptGreen.percent === null ? [] : [{ label, percent: buildKeptGreen.percent }], + ); + const files = (await readdir(resolve(root, agentRuns))) + .filter((file) => /^\d{4}-\d{2}-\d{2}-.+\.json$/u.test(file)) + .sort(); + const agent = ( + await Promise.all( + files.map(async (file) => agentRows(agentRecord.parse(await json(resolve(root, agentRuns, file))), file)), + ) + ).flat(); + const failures = result.fixers.flatMap((fixer) => + fixer.failures.map( + ({ repository, failures }) => + `- \`${fixer.id}\` on [${repository}](${github}${reports}/${date}/failures/${repository}.json) · ${failures.map((key) => metricLabels[key]).join(", ")}`, + ), + ); + const run = [ + { + id: "fix-evals", + date, + selected: result.selected, + measured: result.repositories, + excluded: result.excluded.length, + revision: result.revision, + ebb: result.ebb, + evidence: `[Verified summary](${github}${path}) · [Raw logs and hashes](${github}${reports}/${date}/evidence.tar.gz)`, + failureLinks: failures.length === 0 ? "No failed metrics in this run." : failures.join("\n"), + agentLinks: files.map((file) => `- [${file.slice(0, 10)} agent run](${github}${agentRuns}/${file})`).join("\n"), + }, + ]; + return { schemaVersion: "offing.fix-evals-page.v1", run, fixes, charts, agent }; +} + +export async function renderFixEvalCollections(root: string): Promise> { + const data = await fixEvalPageData(root); + return Object.fromEntries( + [ + ["fix-evals", data], + ["fix-evals-run", data.run], + ["fix-evals-fixers", data.fixes], + ["fix-evals-agent", data.agent], + ].map(([file, value]) => [`docs/_data/${file}.json`, `${JSON.stringify(value, null, 2)}\n`]), + ); +} diff --git a/docs/FIX_EVALS_METHOD.md b/docs/FIX_EVALS_METHOD.md index 6ef853db..0c1a3d13 100644 --- a/docs/FIX_EVALS_METHOD.md +++ b/docs/FIX_EVALS_METHOD.md @@ -16,7 +16,8 @@ npm run fix-evals -- --fixtures --runner-profile all npm run fix-evals -- --fixtures --runner-tool all ``` -The evaluation pilot uses the public candidate list in +The command reads the checked-in public selection and records one outcome or exclusion for every pin. The +earlier four-repository pilot is retained in [`benchmarks/fix-evals/repositories.json`](https://github.com/velella-sh/offing/blob/main/benchmarks/fix-evals/repositories.json). ## Selection and isolation @@ -41,7 +42,10 @@ input hashes or source commits needed to recreate that environment. A candidate identifies a public GitHub repository, a full commit SHA, and the build or validation profile. An eligible repository must produce a patch with the current Offing registry and have a passing baseline for every check that -profile defines. Static validators only score plans whose patched paths are all in the validation scope. The evidence lists candidates with no patch and those whose baseline failed or timed out. A failing +profile defines. The current plan is limited to the recorded patch paths that the baseline validates. The evidence +lists candidates with no patch, failed or timed-out baselines, and pins with no comparable offline profile. The last +category includes upstream-only build jobs, a nested Docker build, and cases with dependency caches that cannot be +recreated by the runner. A failing or timed-out baseline is retained with its first attempt and any retry. Retrying never promotes a failed baseline. The harness fetches pinned Git objects over HTTPS and no application credentials are forwarded. Trees containing @@ -67,6 +71,10 @@ execution. | Kubernetes | `kubeconform` with pinned inputs in `manifests/` and `schemas/` | No separate check | | GitHub Actions | `actionlint` over workflow files | No separate check | +Several source pins include their own recorded checks. The Go profile keeps its scratch cache in the container, the +small Node projects run their recorded syntax checks and tests, and the Terraform and Kubernetes pins stage their +recorded public provider or schemas. Provider bytes are checked against their SHA-256 before the isolated run. + The offline profiles exclude projects whose commands require missing dependencies, registries, live services, or unavailable fixtures. Use versioned vendored materials in the pinned source. Validation profiles do not run workflow jobs or deploy resources. @@ -123,5 +131,11 @@ check one log against its attempt. Raw output may contain text printed by an eva data. An infrastructure failure aborts the run without a summary so partial output cannot be mistaken for a complete run. Individual command output and source archive sizes are bounded. -The deterministic report is separate from the agent-assisted evaluation. The release page and its comparison -require the completed public cohort and the independently verified agent results. +The [fix evaluation page](/fix-evals/) displays the measured cohort and all exclusions. It reads the latest dated +report under [`benchmarks/fix-evals/results/`](https://github.com/velella-sh/offing/tree/main/benchmarks/fix-evals/results). +Each report includes a SHA-256 for its adjacent evidence archive. Extract it to inspect the raw logs and patches +identified by the report and failure records. The weekly workflow proposes a pull request when the measured counts +change. GitHub's artifact retains the run evidence when the counts stay the same. + +The page attributes the agent-assisted results to their separate runs and displays static and project-check +denominators separately. [Agent migration method](/BENCHMARKS/) diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml index a08094aa..72ed9fc4 100644 --- a/docs/_data/navigation.yml +++ b/docs/_data/navigation.yml @@ -75,6 +75,8 @@ main: url: /VALIDATION/ - title: "Benchmarks" url: /BENCHMARKS/ + - title: "Fix evaluation" + url: /fix-evals/ - title: "Measured comparison" url: /COMPARISON/ - title: "State of EOL" diff --git a/docs/_templates/fix-evals.md b/docs/_templates/fix-evals.md new file mode 100644 index 00000000..bdded75e --- /dev/null +++ b/docs/_templates/fix-evals.md @@ -0,0 +1,33 @@ +--- +title: Offing fix evaluation +description: Deterministic patches and agent migration outcomes on pinned public repository commits. +layout: doc +--- + +# Fix evaluation + +On :field[date], Offing measured :field[measured] of :field[selected] pinned repositories. The other :field[excluded] are listed with exclusion reasons in the run report. The runner used Offing commit :field[revision] and bundled Ebb :field[ebb]. + +:field[evidence] + +[Evaluation method](/FIX_EVALS_METHOD/) + +## Deterministic fixes + +Build results include the pinned validator for static infrastructure profiles. Separate test counts only apply to profiles that ran tests. The table shows counts for every fixer. A percentage requires at least five applicable cases for that metric. + +::bar-chart{from="fix-evals.charts" category="label" value="percent" title="Build or validation remained green (%)"} + +::record-table{from="fix-evals-fixers" caption="Outcomes by registered fixer" columns='[{"field":"id","label":"Fixer"},{"field":"cases","label":"Cases","kind":"number"},{"field":"status","label":"Evidence"},{"field":"deterministic","label":"Deterministic"},{"field":"applied","label":"Applied"},{"field":"resolved","label":"Resolved"},{"field":"noNewFinding","label":"No new finding"},{"field":"idempotent","label":"Idempotent"},{"field":"buildKeptGreen","label":"Build or validation"},{"field":"testsKeptGreen","label":"Tests"}]'} + +### Failed metrics + +:field[failureLinks] + +## Agent migrations + +Each task used a bare prompt and a migration packet in separate worktrees. The earlier run used static checks. The later run also exercised upstream project builds and tests for a subset with a passing clean baseline. + +::record-table{from="fix-evals-agent" caption="Agent outcomes by verification profile and prompt" columns='[{"field":"date","label":"Run date"},{"field":"agent","label":"Agent"},{"field":"profile","label":"Verification profile"},{"field":"arm","label":"Prompt"},{"field":"static","label":"Static criteria"},{"field":"project","label":"Project check"},{"field":"both","label":"Both criteria"}]'} + +:field[agentLinks] diff --git a/docs/mizzen.yml b/docs/mizzen.yml index 20be6d79..e2344f16 100644 --- a/docs/mizzen.yml +++ b/docs/mizzen.yml @@ -10,6 +10,18 @@ network: include: - .well-known collections: + fix-evals-run: + source: _data/fix-evals-run.json + id: id + template: _templates/fix-evals.md + permalink: /{id}/ + markdown: [evidence, failureLinks, agentLinks] + fix-evals-fixers: + source: _data/fix-evals-fixers.json + id: id + fix-evals-agent: + source: _data/fix-evals-agent.json + id: id comparison-losses: source: _data/comparison-losses.json id: id diff --git a/src/test-runners/docker.ts b/src/test-runners/docker.ts index fed38ff9..1ce6c03b 100644 --- a/src/test-runners/docker.ts +++ b/src/test-runners/docker.ts @@ -42,8 +42,12 @@ export async function connectDocker(config: string) { throw new Error("A local Docker daemon is required. Start Docker and run again."); } -export async function prepareImage(docker: Docker, profile: Profile, dockerfile: string): Promise { - const { image } = profiles[profile]; +export async function prepareImage( + docker: Docker, + profile: Profile, + dockerfile: string, + image: string = profiles[profile].image, +): Promise { if (profile !== "kubernetes") { const installed = await docker(["image", "inspect", "--format", "{{.Os}}/{{.Architecture}}", image]).catch( () => null, @@ -123,7 +127,8 @@ export function dockerArgs(name: string, image: string): string[] { export function dockerExecArgs(name: string, command: Command, attempt?: 1 | 2): string[] { const metadata = attempt === undefined ? [] : ["--env", "OFFING_TEST_ATTEMPT=" + attempt]; - return ["exec", ...metadata, "--workdir", worktree, name, "timeout", "-k", "5s", "130s", ...command]; + // BusyBox and GNU both accept a bare seconds value. The caller aborts and removes the sandbox first. + return ["exec", ...metadata, "--workdir", worktree, name, "timeout", "130", ...command]; } function commandFailure(error: unknown): { exitCode: number; stdout: Buffer; stderr: Buffer } | null { diff --git a/tests/fix-evals-site.test.ts b/tests/fix-evals-site.test.ts new file mode 100644 index 00000000..a02866d1 --- /dev/null +++ b/tests/fix-evals-site.test.ts @@ -0,0 +1,104 @@ +import assert from "node:assert/strict"; +import { execFile } from "node:child_process"; +import { access, copyFile, mkdir, readFile, writeFile } from "node:fs/promises"; +import { dirname, join, resolve } from "node:path"; +import { test } from "node:test"; +import { promisify } from "node:util"; + +import { Ajv2020 } from "ajv/dist/2020.js"; +import { parse } from "yaml"; + +import { readCohort } from "../benchmarks/fix-evals/cohort.js"; +import { sha256 } from "../benchmarks/fix-evals/evaluate.js"; +import { + fixEvalPageData, + fixEvalReport, + latestFixEval, + renderFixEvalCollections, +} from "../benchmarks/fix-evals/site.js"; +import { tempSource } from "../benchmarks/fix-evals/source.js"; + +test("acc-fix-evals data validates, records the full selection and links the raw evidence", async () => { + const { candidates } = await readCohort(); + const data = await fixEvalPageData("."); + const schema: object = JSON.parse(await readFile("benchmarks/fix-evals/site-data.schema.json", "utf8")); + const validate = new Ajv2020().compile(schema); + assert.equal(validate(data), true, JSON.stringify(validate.errors)); + const run = data.run[0] ?? assert.fail("Missing run"); + assert.equal(run.selected, candidates.length); + assert.equal(run.measured + run.excluded, run.selected); + assert.match(run.evidence, /evidence\.tar\.gz/u); + const { path } = await latestFixEval("."); + const snapshot = fixEvalReport.parse(JSON.parse(await readFile(path, "utf8"))); + const raw = await readFile(join(dirname(path), "evidence.tar.gz")); + assert.equal(sha256(raw), snapshot.evidenceSha256); + for (const { failures } of snapshot.fixers) { + for (const { repository } of failures) { + await access(join(dirname(path), "failures", repository + ".json")); + } + } + for (const { date, project, both } of data.agent) { + assert.equal(project === "not run", both === "not run", date); + } +}); + +test("acc-fix-evals builds the data page and nav with pinned Mizzen and Lateen without network access", async (t) => { + const tools = resolve(process.env.OFFING_SITE_TOOLS ?? ".github/site-tools"); + const mizzen = join(tools, "node_modules/@velella/mizzen/bin/mizzen.js"); + const theme = join(tools, "node_modules/@velella/lateen"); + try { + await access(mizzen); + } catch { + if (process.env.OFFING_SITE_TOOLS) throw new Error(`Mizzen is missing under ${tools}`); + t.skip("Install .github/site-tools to run the offline site integration check."); + return; + } + + const root = resolve("."); + await tempSource(async (directory) => { + const docs = join(directory, "docs"); + const production = parse(await readFile("docs/mizzen.yml", "utf8")) as { + collections: Record; + }; + const collections = Object.fromEntries( + Object.entries(production.collections).filter(([name]) => name.startsWith("fix-evals-")), + ); + const navigation = parse(await readFile("docs/_data/navigation.yml", "utf8")) as { + main: { children?: { title: string; url: string }[] }[]; + }; + const link = navigation.main.flatMap(({ children }) => children ?? []).find(({ url }) => url === "/fix-evals/"); + assert.ok(link); + await mkdir(join(docs, "_data"), { recursive: true }); + await mkdir(join(docs, "_templates")); + await writeFile(join(docs, "_data/navigation.json"), JSON.stringify({ main: [link] })); + await copyFile(join(root, "docs/_templates/fix-evals.md"), join(docs, "_templates/fix-evals.md")); + await copyFile(join(root, "docs/FIX_EVALS_METHOD.md"), join(docs, "FIX_EVALS_METHOD.md")); + await writeFile(join(docs, "mizzen.yml"), JSON.stringify({ title: "Offing", base: "/offing", collections })); + for (const [file, contents] of Object.entries(await renderFixEvalCollections(root))) { + await writeFile(join(directory, file), contents); + } + const deny = join(directory, "deny-network.mjs"); + await writeFile( + deny, + ` + import { Socket } from 'node:net'; + function blocked() { throw new Error('The fix evaluation page attempted network access.'); } + Socket.prototype.connect = blocked; + globalThis.fetch = blocked; + `, + ); + const out = join(directory, "out"); + await promisify(execFile)( + process.execPath, + ["--import", deny, mizzen, "build", docs, "--theme", theme, "--out", out, "--workers", "1"], + { maxBuffer: 2 * 1024 * 1024 }, + ); + const html = await readFile(join(out, "fix-evals/index.html"), "utf8"); + assert.match(html, /Outcomes by registered fixer/u); + assert.match(html, /Agent outcomes by verification profile and prompt/u); + assert.match(html, /bar-chart-svg/u); + assert.match(html, /too few cases/u); + assert.match(html, /href="\/offing\/fix-evals\//u); + assert.doesNotMatch(html, /:field\[/u); + }); +}); diff --git a/tests/fix-evals.test.ts b/tests/fix-evals.test.ts index ab525f96..3960a255 100644 --- a/tests/fix-evals.test.ts +++ b/tests/fix-evals.test.ts @@ -193,9 +193,7 @@ test("approved Docker runner isolates the worktree and keeps command arguments l "/work/tree", "unique", "timeout", - "-k", - "5s", - "130s", + "130", "npm", "test", "literal; arg", diff --git a/tools/build-dashboard-data.ts b/tools/build-dashboard-data.ts index 93b16ab5..541c3e87 100644 --- a/tools/build-dashboard-data.ts +++ b/tools/build-dashboard-data.ts @@ -24,6 +24,7 @@ import type { HeldOutResult } from "./dashboard-accuracy.js"; import { corpusCounts, loadCorpusTargets, TARGETS_PATH } from "../benchmarks/corpus-targets.js"; import { renderComparisonCollections } from "../benchmarks/comparison/site.js"; +import { renderFixEvalCollections } from "../benchmarks/fix-evals/site.js"; import type { CorpusTargets } from "../benchmarks/corpus-targets.js"; import { loadPublicCorpus, PUBLIC_CORPUS_DIR } from "../benchmarks/public-corpus.js"; import { countEvidence, earnedLevel, evidenceMinimums } from "../benchmarks/thresholds.js"; @@ -515,6 +516,7 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) .then(async (data) => { const text = `${JSON.stringify(data, null, 2)}\n`; const comparison = await renderComparisonCollections("."); + const fixEvals = await renderFixEvalCollections("."); if (args.includes("--check")) { const expectedDay = today === "run-date" ? data.referenceDay : today; if (!isWellFormedDashboardData(text, expectedDay)) { @@ -526,7 +528,7 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) } await mkdir(dirname(target), { recursive: true }); await writeFile(target, text); - const collections = { ...renderDashboardCollections(data), ...comparison }; + const collections = { ...renderDashboardCollections(data), ...comparison, ...fixEvals }; for (const [path, contents] of Object.entries(collections)) { await writeFile(resolve(path), contents); }