Skip to content

ci(cora): exclude the changelog, docs and lockfiles from the reviewed diff (#705) - #883

Merged
ajianaz merged 2 commits into
developfrom
ci/705-cora-review-exclude
Nov 17, 2026
Merged

ajianaz merged 2 commits into
developfrom
ci/705-cora-review-exclude

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Configures review.exclude in .cora.yaml now 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, and ignore.files only 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 above review.max_chunk_chars is reviewed in chunks of whole files, review.exclude removes 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: new review.exclude with CHANGELOG.md, docs/**, *.lock, Cargo.lock; the stale 0.20 note on ignore.files is replaced by a pointer to review.exclude. ignore.files is 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/latest lookup gets a 403 through the container proxy, checksum-only without cosign); cora review --staged --no-llm runs the deterministic checks without a key.
  • No code change.

Testing

  • cora 0.21.1 installed from the release archive (checksum verified). cora config validate accepts the file (the only complaints are the missing LLM provider and key of this container). cora review --staged --no-llm on this very diff reports "No issues found" and prints Excluded by review.exclude (1): docs/epics.md, which shows the exclude is applied to the reviewed diff.
  • The CI Cora Review on this PR (the LLM review itself, which cannot run locally) completed in about 3 minutes with "No issues found" on the final head, and all 19 checks are green after merging develop (fix(test): write the fake reporter's argv and env atomically and clean the shared delegate dir at exit (#702) #884).
  • The attribution grep over the branch commits prints nothing.

Not covered: the other two Cora tracking issues (#670, #669) are handled separately.

… 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
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 1d557f3 into develop Nov 17, 2026
23 checks passed
@ajianaz
ajianaz deleted the ci/705-cora-review-exclude branch November 20, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(cora): Cora Review fails or takes 12+ minutes on larger PRs ("could not complete", empty result)

2 participants