Skip to content

Integrate advanced review gates, coverage and offline report artifacts - #3

Merged
EhsanAzish80 merged 3 commits into
mainfrom
review-tools
Dec 4, 2026
Merged

EhsanAzish80 merged 3 commits into
mainfrom
review-tools

Conversation

@EhsanAzish80

Copy link
Copy Markdown
Owner

Opt-in review: 'true' uses the new CLI review engine to add prioritized changed-file guidance, target-history evidence, package summaries and optional LCOV/Cobertura patch coverage to PR reports. HTML, JSON and Markdown artifacts are retained for seven days; outputs expose their paths and new-warning count. Reports/comments/artifacts are generated before enforcing a new-warning gate, so failed PRs remain reviewable.

fail-on-new only blocks new configured warnings and requires review mode. Package and coverage inputs also require review mode; invalid Boolean values fail setup. The CLI reads gate policy and baseline from the target commit. Coverage requires an asserted commit matching the PR head. Large summaries are bounded without truncating report files, and diagnostic workflow-command delimiters are neutralized in logs.

The development default CLI becomes published 0.2.0; advanced mode pins the tested 0.3.0 source from EhsanAzish80/Devscope#5 until release. Updated examples distinguish released comparison behavior (Action 1.2.0 / CLI 0.2.0) from advanced source-only behavior. No new release/tag is part of this PR.

Validation: six Python tests and six Node tests pass, plus shell integration/option-validation cases and actionlint. CI exercises both modes, artifact transport, the no-new-warning pass path and a real CLI regression gate (exit 2 with persisted JSON) on Ubuntu/macOS/Windows. CLI feature validation includes 175 tests, lint/types, package build/isolated wheel smoke tests and browser verification of HTML layout/filtering.

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Devscope Report

Heuristic grade: A
Risk: Low
Onboarding: Easy
Scan time: 0.01206064224243164s

Devscope: A · Low risk · Easy onboarding

Devscope review checklist

Merge base 10369d7fa9b677bd7bc4b31e7d7a694c9a90dff5 → head 1cc5996a642ffb52d802dca0323aeaf3190e381b

0 new warnings · 2 changed source files · 11 target-history commits analyzed

1. scripts/compare.py

140 lines · touched in 1 analyzed target-history commits

  • Inspect the changed behavior and its tests; no configured warning was triggered.

2. tests/test_comparison.py

175 lines · touched in 1 analyzed target-history commits

  • Inspect the changed behavior and its tests; no configured warning was triggered.

Coverage: not supplied; test-file counts are not coverage.

History-aware hotspots

Ranked by file lines × observed target-history commits (an attention heuristic).

  • tests/test_comparison.py: 175 lines × 1 commits
  • scripts/compare.py: 140 lines × 1 commits

Package summary

Whole repository selected.

All configured findings

None.

Interpretation

  • File size and churn are review heuristics, not defect predictions.
  • Test-file proximity is not measured coverage.
  • Policy and default baseline come from the target commit; renames are treated as remove/add.
  • History excludes merge commits; co-change evidence ignores commits touching more than 30 files.
  • Snapshots omit symlinks and submodules; tracked files remain visible despite ignore/archive attributes.

@EhsanAzish80
EhsanAzish80 merged commit 80de5f4 into main Dec 4, 2026
3 checks passed
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.

1 participant