Skip to content

fix(ci): remove duplicate python-ci call from pr-validation.yml - #96

Merged
williaby merged 1 commit into
mainfrom
claude/remove-duplicate-python-ci-0
Sep 5, 2026
Merged

fix(ci): remove duplicate python-ci call from pr-validation.yml#96
williaby merged 1 commit into
mainfrom
claude/remove-duplicate-python-ci-0

Conversation

@williaby

@williaby williaby commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

What

Removes the core-validation job from .github/workflows/pr-validation.yml.
That job re-invoked the shared python-ci.yml reusable workflow at the same
pinned SHA (7d12f5486ab5c856397ebaa4acd3c99ca385227c) already called by the
ci job in .github/workflows/ci.yml.

Before/after

  • Before: the reusable ran twice per pull request, once from ci.yml (line 33)
    and once from pr-validation.yml (line 36), duplicating quality checks, unit
    tests, integration tests, security tests, coverage combine, LLM governance,
    and the Python matrix.
  • After: the reusable runs once per pull request, from ci.yml only.

Files changed

  • .github/workflows/pr-validation.yml: removed the core-validation job;
    updated the validation-summary job (an informational aggregator, not
    itself a required status check) to drop the needs.core-validation
    reference, the CORE_RESULT env var, its result-based summary lines, and
    the failure condition that tested it.

Verification

  • Confirmed the org ruleset's four required status checks and their
    producers before editing: CI Gate (ci.yml ci-gate job), Security Gate Validation (security-analysis.yml), Check REUSE Compliance (reuse.yml),
    Dependency & Standards Validation (pr-validation.yml
    dependency-standards-validation job, a normal job with its own steps,
    untouched by this change). None of these depend on core-validation.
  • actionlint .github/workflows/pr-validation.yml: no new findings; the
    pre-existing shellcheck info/style notices in unrelated script blocks
    actually decreased (22 to 20) since a script block was removed.
  • python -c "import yaml; yaml.safe_load(...)": parses cleanly.
  • pre-commit run --files .github/workflows/pr-validation.yml: all hooks
    passed cleanly, no skips needed.

Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated internal pull request validation checks.
    • End-user functionality and application behavior remain unchanged.

The core-validation job in pr-validation.yml re-invoked the shared
python-ci.yml reusable at the same pinned SHA already called by
ci.yml's ci job, roughly doubling PR CI cost (quality checks, unit
tests, integration tests, security tests, coverage combine, LLM
governance, and the Python matrix all ran twice per PR).

Remove the core-validation job and its reusable call. Keep ci.yml's
call as the single source of truth. Update validation-summary to drop
the needs.core-validation reference, the CORE_RESULT env var, its
result-based echo block, and the failure condition that tested it;
leaving that reference in place after deleting the job would have
caused the workflow to fail to parse.

The dependency-standards-validation job, a normal job with its own
steps that produces the required Dependency & Standards Validation
status check, is untouched.

#CRITICAL validation-summary is not itself a required status check in
this repo (it is named Validation Summary); the four required contexts
were verified against the org ruleset
(gh api repos/ByronWilliamsCPA/rag-processor/rules/branches/main)
before this change: CI Gate from ci.yml's ci-gate job, Security Gate
Validation from security-analysis.yml, Check REUSE Compliance from
reuse.yml, and Dependency & Standards Validation from the
dependency-standards-validation job kept in this file.
#VERIFY re-run the ruleset query after merge to confirm all four
required contexts still report on the next PR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 5, 2026 17:20
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/pr-validation.yml

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: d04992dd-82cd-43ec-ae5d-271d7fd0bd08

📥 Commits

Reviewing files that changed from the base of the PR and between d9aae58 and 4953289.

📒 Files selected for processing (1)
  • .github/workflows/pr-validation.yml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The pull request workflow no longer runs or reports the core-validation job. The summary job now waits for the remaining checks, and the failure gate checks only dependency standards validation.

Changes

Pull request validation

Layer / File(s) Summary
Validation workflow and result handling
.github/workflows/pr-validation.yml
Removes the core-validation job and its dependency from validation-summary. Removes core result reporting. The failure gate now checks only dependency-standards-validation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 49532

Pull request validation no longer runs the duplicate core validation workflow, while remaining validation checks and their failure reporting continue to run. The change is ready to merge.

Suggested labels: ci

Suggested reviewers: byronwilliamscpa

Poem

I checked the workflow with whiskers held high
Core validation now hops from the sky
Dependency gates guard the way
Dead-code and links still have their say
The summary stays tidy today

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the duplicate python-ci call from pr-validation.yml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/remove-duplicate-python-ci-0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot added the ci label Sep 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The validation summary step can still report “All validation checks passed!” despite non-success optional results and only treats failure (not other non-success states) as required-check failure, which can produce misleading output.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes the redundant org-level python-ci.yml reusable workflow invocation from pr-validation.yml so the shared Python CI runs only once per PR (via ci.yml), reducing duplicated checks and CI time.

Changes:

  • Removed the core-validation job that re-invoked the shared python-ci.yml reusable workflow.
  • Updated validation-summary to drop needs.core-validation, remove CORE_RESULT, and adjust summary output and failure logic accordingly.
File summaries
File Description
.github/workflows/pr-validation.yml Removes the duplicate reusable workflow call and updates the summary job dependencies and reporting to match.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 214 to 218
# Fail if required checks failed
if [ "$CORE_RESULT" == "failure" ] || [ "$DEP_RESULT" == "failure" ]; then
if [ "$DEP_RESULT" == "failure" ]; then
echo ""
echo "Required validation checks failed. Please review and fix issues." >> $GITHUB_STEP_SUMMARY
exit 1
@williaby
williaby added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 33ed5de Sep 5, 2026
38 checks passed
@williaby
williaby deleted the claude/remove-duplicate-python-ci-0 branch September 5, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants