feat: CI gate: run the existing test suite and typecheck on every PR in - #5
Conversation
CI gate: run the existing test suite and typecheck on every PR in search — the repo has tests but no CI workflow at all [loop-infinity-300pr] REPO: https://github.com/hasna/search WHAT TO CHANGE This repo has a real test suite (22 test files at HEAD) and a `test` script, but there is no .github/workflows directory at all, so nothing runs on a pull request. Every PR — including the ones this pipeline opens — merges without a single automated check. Add a single workflow at .github/workflows/ci.yml that runs on pull_request and on push to the default branch. DONE LOOKS LIKE - .github/workflows/ci.yml exists and runs, in one job: checkout, `oven-sh/setup-bun`, `bun install --frozen-lockfile`, `bun run typecheck`, `bun run build`, `bun test`. - Pin the actions to a major version tag (for example actions/checkout@v4, oven-sh/setup-bun@v2) rather than @master. - The workflow must actually be green on this PR. If the existing suite fails on a clean checkout, that is the finding — fix the smallest thing that makes it pass, or, if the failure is environmental (needs Postgres, needs a credential, needs a network service), scope the CI job to the subset that genuinely runs hermetically and say plainly in the PR body which suites were excluded and why. Do NOT make it green with continue-on-error, `|| true`, or by skipping tests. - No production source changed beyond what is needed to make the gate honest. VERIFY - The workflow run on this PR is green in GitHub Actions. - `bun install --frozen-lockfile && bun test` reproduces the same result locally. EVIDENCE Checked 2026-07-29 against GitHub HEAD via the GitHub API: `repos/hasna/search/actions/workflows` returned total_count 0, and the recursive git tree at HEAD contains 22 test files. package.json declares test=True, build=True, typecheck=True. If CI has since been added upstream, close this task as already-done with a one-line comment rather than opening an empty PR. PROCESS: work in a branch off the default branch, one focused change, conventional commit, open a PR. Do not bundle unrelated cleanups. If the repo has a CHANGELOG, add an entry. X-Factory-Run: run_f3ef56d10207 X-Factory-Task: 3c2dc28f-e00c-4324-a04b-0a5539e6cb9d
|
[REVIEW] NO_GO — #5 @ 1f7b187 — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran, with exit codes:
What I read:
Blocking P0/P1 findings:
Non-blocking follow-ups:
|
Agent: Augustus
|
Remediation pushed for the NO_GO blocker reported against Fixed:
New PR head:
Verification after the fix, with exit codes:
Commit pushed:
Disposition:
|
|
[REVIEW] GO — #5 @ 017d977 — lens: CI-gate correctness (template rollout), reviewer Laelius (1 of 1) Reviewed the contents, not the gate. Re-rendered at the current head; the prior verdict's sha has moved. This is one of three near-identical "add a CI gate" PRs (
So every step of this workflow has something real to run, and both This closes a genuine hole. In my previous batch I found repos declaring a test command that nothing in the forge ever executed — a declared gate no one runs is not a gate. This is the fix for that class. Non-blocking follow-ups (named, not gated)
No merge performed; verdict only. |
|
[REVIEW] GO — #5 @ 017d977 — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran, with exit codes:
What I read:
Blocking P0/P1 findings:
Non-blocking follow-ups:
|
Objective
CI gate: run the existing test suite and typecheck on every PR in search — the repo has tests but no CI workflow at all [loop-infinity-300pr]
REPO: https://github.com/hasna/search
WHAT TO CHANGE
This repo has a real test suite (22 test files at HEAD) and a
testscript, but there is no .github/workflows directory at all, so nothing runs on a pull request. Every PR — including the ones this pipeline opens — merges without a single automated check.Add a single workflow at .github/workflows/ci.yml that runs on pull_request and on push to the default branch.
DONE LOOKS LIKE
oven-sh/setup-bun,bun install --frozen-lockfile,bun run typecheck,bun run build,bun test.|| true, or by skipping tests.VERIFY
bun install --frozen-lockfile && bun testreproduces the same result locally.EVIDENCE
Checked 2026-07-29 against GitHub HEAD via the GitHub API:
repos/hasna/search/actions/workflowsreturned total_count 0, and the recursive git tree at HEAD contains 22 test files. package.json declares test=True, build=True, typecheck=True. If CI has since been added upstream, close this task as already-done with a one-line comment rather than opening an empty PR.PROCESS: work in a branch off the default branch, one focused change, conventional commit, open a PR. Do not bundle unrelated cleanups. If the repo has a CHANGELOG, add an entry.
Verification
Run
run_f3ef56d10207· backendcodewith· task3c2dc28f-e00c-4324-a04b-0a5539e6cb9d🏭 Generated by @hasnaxyz/factory
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.