Repository navigation
ci(cora): exclude the changelog, docs and lockfiles from the reviewed diff (#705) - #883
Merged
Merged
Conversation
… diff (#705) cora-code 0.21 chunks a large diff by whole files, retries an unanswered review in smaller pieces, adds review.exclude (globs removed from the reviewed diff, never sent to the model) and fails the job on an incomplete review. The CI action runs the latest cora, so configure review.exclude in .cora.yaml for CHANGELOG.md, docs/** and the lockfiles, update the size guidance in CONTRIBUTING and the epics note, and record in AGENTS.md how to install the cora release binary in a container. Closes #705
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Configures
review.excludein.cora.yamlnow that cora-code 0.21 ships it, and updates the guidance that said the config could not exclude paths from the reviewed diff. Closes #705.Why
#705: the CI Cora Review failed ("could not complete", empty result) or ran 12 minutes and more on larger PRs, partly because a PR's own
CHANGELOG.md,docs/and lockfile lines counted toward what the reviewer read, andignore.filesonly scopes the symbol index and the context chain. cora-code#720 landed in 0.21.0 (released 2026-11-16, 0.21.1 on 2026-11-17): a diff abovereview.max_chunk_charsis reviewed in chunks of whole files,review.excluderemoves globs from the reviewed diff (never sent to the model, never a finding), and an incomplete review now exits 1 (review.fail_on_incomplete, default true) instead of passing. The CI action (codecoradev/cora-review-action@v1,cora-version: latest) already runs the latest release.Changes
.cora.yaml: newreview.excludewithCHANGELOG.md,docs/**,*.lock,Cargo.lock; the stale 0.20 note onignore.filesis replaced by a pointer toreview.exclude.ignore.filesis unchanged (it still scopes the index and the context chain).CONTRIBUTING.md: the PR size paragraph no longer says docs and the changelog count toward what Cora reads; it states the chunking, the exclude and the failing-on-incomplete behaviour, and keeps the advice to keep the code part small.docs/epics.md: the ci(cora): Cora Review fails or takes 12+ minutes on larger PRs ("could not complete", empty result) #705 line is resolved.AGENTS.md(infra facts, dated 2026-11-17): cora 0.21.1 is what CI runs; how to install the release binary in a container (CORA_VERSION=v0.21.1 CORA_INSTALL_DIR=<dir> sh install.sh, the/releases/latestlookup gets a 403 through the container proxy, checksum-only without cosign);cora review --staged --no-llmruns the deterministic checks without a key.Testing
cora config validateaccepts the file (the only complaints are the missing LLM provider and key of this container).cora review --staged --no-llmon this very diff reports "No issues found" and printsExcluded by review.exclude (1): docs/epics.md, which shows the exclude is applied to the reviewed diff.Not covered: the other two Cora tracking issues (#670, #669) are handled separately.