[TEST] AI Release Notes Reviewer with v24.1.29 (Clean)#23295
Conversation
Introduces a GitHub Action that automatically reviews PRs touching release notes files using schema validation, technical accuracy checks, and OpenAI GPT-4o content quality analysis. - Copies core reviewer logic into .github/scripts/release_review/ - Adds standalone runner script (.github/scripts/run_release_review.py) - Adds workflow that triggers on PRs to main touching releases.yml or _includes/releases/** - Posts results as a neutral (advisory) check run and updatable PR comment - Never blocks merge; requires OPENAI_API_KEY repository secret
This commit adds only the v24.1.29 release notes (YAML + Markdown) to test the AI-powered release notes reviewer from PR #23174. Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
Files changed:
|
|
Release Notes Advisory (AI) — No issues found. Release notes look good! High: 0 · Medium: 0 · Low: 0 Links Posted by docs-fast-agent — advisory only, does not block merge. |
❌ Deploy Preview for cockroachdb-docs failed. Why did it fail? →
|
The parse_yaml_diff() and parse_markdown_diff() methods were matching any line containing "releases.yml" or ".md", which caused them to incorrectly parse Python code that contained these strings in comments, docstrings, or string literals. This fix ensures we only start parsing when we encounter the actual diff header (lines starting with "diff --git"), making the parsing more robust and preventing false matches. Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
e75cb23 to
21f3d62
Compare
Changes the workflow path filter from 'releases/**' to 'releases/**/v*.md' to prevent triggering on support files that are not release notes. This ensures the workflow only runs on actual release note files (which follow the naming convention vX.Y.Z.md) and excludes support files like: - backward-incompatible.md - cluster-setting-changes.md - deprecations.md - upgrade-finalization.md - whats-new-intro.md Prevents wasted workflow minutes and reduces noise on PRs that aren't adding release notes. Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
|
Example output This shows what an automated PR comment would look like if the 'AI Release Notes Reviewer' (name TBD) found issues across all three check types. We are not yet able to test the actual flow against ChatGPT, so until that test is set up, this is Claude's approximation of what the output would look like. Release Notes Advisory (AI) — Found 12 issue(s): 5 HIGH, 6 MEDIUM, 1 LOW High: 5 · Medium: 6 · Low: 1 HIGH (5)
MEDIUM (6)
LOW (1)
Links Posted by docs-fast-agent — advisory only, does not block merge. |
Purpose
This is a clean test PR to validate the AI-powered release notes reviewer (from PR #23174) against actual WIP release notes (from PR #23291).
What's in this PR
This PR contains:
ai/release-notes-reviewer)Unlike PR #23294, this PR contains only the release notes changes in the diff, not all the Python code from the AI reviewer implementation.
Changes in this PR
src/current/_data/releases.yml- Added v24.1.29, v24.1.28, v24.1.27 entriessrc/current/_includes/releases/v24.1/v24.1.29.md- Release notes contentExpected Behavior
When this PR is created, it should trigger the
release-notes-review.ymlworkflow, which will:Comparison
Note
This PR is for testing only and should NOT be merged. The original PRs (#23174 and #23291) should be handled separately.
Supersedes #23294.