Repository navigation
ci(lore): stop pull request runs posting into main - #300
Conversation
A pull request's checkout is a detached merge commit, so lore-code-trace reports branch HEAD and lore-api reads that as main. The run wrote the PR's results into main's graph and moved main's recorded commit to a merge commit that never lands on main. Branch pushes name their branch, so they stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Lore is reviewing this PR — 05d37b3d-caf7-44f7-960a-c8fc6878ad7e. Submit a review that requests changes to have Lore push a fix for it. Comment |
|
Nothing blocks this PR from merging now. Lore updates this comment when the reason changes. |
🔍 Lore Spec ImpactExamined 1 changed file(s): 0 had graph data (no coupling found), 1 had none — no ingested test run covers them, so this check cannot speak for them. Deterministic · graph @ |
There was a problem hiding this comment.
Lore review — Approved
Removing the pull_request trigger from lore-tests.yml cleanly stops detached PR merge commits from being ingested into main's graph while keeping push-triggered branch and main test ingestion.
Must fix (0) · Consider (0) · Nits (0)
Reviewed by gemini-4-argon
Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.
Posted by floor, visit 57d32af8-8a7f-4568-b726-4b2b79c2ff70.
Pull Request
Why
A pull request's Lore test run writes into
main's graph.lore-tests.ymlrunslore-code-trace --postonpull_request. That checkout is a detached merge commit, so the binary reports branchHEAD, and lore-api deliberately readsHEADas the default branch (overlayBranchOf). From Lore's code, each such run therefore:main's graphmain's recorded ingest commit to a merge commit that never lands onmain, so the next push tomaincan't reach it and uploads the whole reportIt shows in this repo's logs. Run 40962161541 checked out
1a9af90("Merge 518ef0c… into b8b3881…") and loggedposted incremental test report for re-cinq/HALEngine@1a9af90.Lore's data model says "
mainitself is never written by a branch". re-cinq/lore#3603 dropped this trigger from Lore's own job on 2026-10-26 and told its onboarding agent never to use it. Its description says repositories already onboarded keep their workflow until someone edits it, and this is one of them. bowman-ui'slore-tests.ymlrecords the same damage and doesn't post from a pull request.This job only takes about a minute here, so the cost isn't time. The problem is wrong data in
main's graph.What Changed
.github/workflows/lore-tests.yml: removes thepull_requesttrigger, and a one-line comment says why.pushstays, with no branch filter.Alternatives Considered
pushtomainas well, which Lore's onboarding instruction now asks for. I've left that as a separate decision, because it isn't what causes this damage. A branch push checks out a real branch (run 40962100407:git checkout --progress --force -B build/check-audit-declared-dependents), so its report names that branch, and lore-api puts it in the branch's overlay and leavesmainalone. Removing it would also take away the coverage thatquery_tracereads for a branch.ADRs & Architecture
None.
Testing
pushas its only trigger, andscripts/check-action-pins.mjspasses.bash scripts/check-changelog.sh origin/mainreports no shipped source changed.npx re-lint-reanchor --checkreports stale: 0, and no spec, test or doc refers to this workflow.lore-tests-jestisn't one, so nothing waits for its pull request run. The required ones areVerify,Build chainandSmoke (packed tarball), andlore-tests-jeststill reports on a PR's head commit through its branch push.Build chainis red here for an unrelated reason: a new advisory, GHSA-mrwp-f3q8-3g9p infollow-redirects. This PR changes no dependency and can't merge until that fix lands and this branch picks it up.lore-tests-jestshould appear once, from the push, instead of twice.npm run verify, because nothing it covers changed. CI runs it.mainmay upload the whole report once if the recorded commit is offmain. I can't read that commit from here.Code Quality Checklist
.tsheresrc/Related Issues
None. Follows re-cinq/lore#3603.
🤖 Generated with Claude Code