GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — OpenAgentPack/scripts/pr-evidence.test.ts at main · modelstudioai/OpenAgentPack Expand file tree/ Copy pathpr-evidence.test.tsMore file actions 49 lines (38 loc) · 1.94 KB / Copy pathpr-evidence.test.tsFile metadata and controls49 lines (38 loc) · 1.94 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 import { describe, expect, test } from "bun:test"; import { requiresMaintainerEvidence, validateMaintainerEvidence } from "./pr-evidence.ts"; describe("pull-request maintainer evidence", () => { test("does not add a merge barrier for ordinary contribution paths", () => { expect(requiresMaintainerEvidence(["README.md", "packages/cli/src/program.ts", "bun.lock"])).toBe(false); expect(validateMaintainerEvidence("", ["README.md"])).toBeUndefined(); }); test("uses PR evidence instead of commit-message markers for control-plane changes", () => { const files = [".github/workflows/ci.yml", "scripts/verify.ts"]; expect(requiresMaintainerEvidence(files)).toBe(true); expect(validateMaintainerEvidence("## Summary\nAdjust CI", files)).toContain("## Behavior / risk"); }); test("treats package manifests, but not the generated lockfile alone, as high risk", () => { expect(requiresMaintainerEvidence(["packages/sdk/package.json"])).toBe(true); expect(requiresMaintainerEvidence(["bun.lock"])).toBe(false); }); test("asks for behavior and validation evidence on high-risk paths", () => { const files = ["packages/sdk/src/internal/providers/interface.ts"]; expect(requiresMaintainerEvidence(files)).toBe(true); expect(validateMaintainerEvidence("## Summary\nA change", files)).toContain("## Behavior / risk"); }); test("accepts concrete evidence for high-risk changes", () => { const body = `## Summary Add a provider capability. ## Behavior / risk Existing provider configuration remains unchanged; the new capability is opt-in. ## Validation \`bun test packages/sdk/tests/unit/provider-conformance.test.ts\``; expect(validateMaintainerEvidence(body, [".github/workflows/release.yml"])).toBeUndefined(); }); test("does not treat HTML comments as evidence", () => { const body = `## Behavior / risk <!-- ## Validation <!--`; expect(validateMaintainerEvidence(body, [".github/workflows/release.yml"])).toContain("## Behavior / risk"); }); }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |