Skip to content

Handle empty validation run PR associations - #24

Merged
allancascante merged 2 commits into
mainfrom
fix/validation-run-pr-association
Nov 30, 2026
Merged

allancascante merged 2 commits into
mainfrom
fix/validation-run-pr-association

Conversation

@allancascante

@allancascante allancascante commented Nov 30, 2026 •

Copy link
Copy Markdown

Description

Fixes the admission failure observed in PR #2 when GitHub returns an empty pull_requests array for its successful validation run. Match the current PR head repository, branch and SHA; continue to reject conflicting nonempty associations and require all SHA-, run-, attempt- and PR-bound evidence before inference.

When GitHub supplies no association, PR-controlled manifests cannot independently authenticate which PR triggered the run. Human approval and branch protection remain essential; the limitation is documented.

The foundation gate requires at least 234 tests, all passing without skips, instead of rejecting added tests. The suite remains unfiltered; the count alone cannot guarantee test identity.

Validation:

  • dotnet test adversarial-review/tests/AdversarialReview.Tests/AdversarialReview.Tests.csproj -c Debug --no-restore -v minimal — passed, 234 tests.
  • PowerShell gate boundary cases — passed: 233 rejected, 234 and 235 accepted, failures and skipped tests rejected.
  • Full SqlDom suite not rerun: this change does not modify ScriptDOM.

Code Changes

allancascante and others added 2 commits November 29, 2026 21:04
Co-authored-by: Copilot <223556219+Copilot@users.nureply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@gcastroceCENFOTEC gcastroceCENFOTEC left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Se realiza la revision y no hay hallazgos

@allancascante
allancascante merged commit 00e5b69 into main Nov 30, 2026
9 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.

2 participants