Skip to content

Conversation

@ezeanyicollins
Copy link
Collaborator

Fixes the workflow silent failure issue where PatchPro reports success even when OpenAI API key is missing and no patches are generated.

Problem:

  • PatchPro logs ERROR: OpenAI API key not provided
  • Workflow still reports success (✓)
  • Generates reports with 'Patches generated: 0'
  • Judges see green checkmarks but no actual AI fixes

Solution:

  • Validate OPENAI_API_KEY exists before running PatchPro
  • Validate patches were generated when security issues found
  • Fail fast with clear error messages
  • Prevent misleading success reports

Result:

  • Workflow will now FAIL when API key missing
  • Clear error messages guide users to fix the issue
  • Only reports success when PatchPro actually works
  • Better reliability for judge demos

- Validate OPENAI_API_KEY exists before running PatchPro
- Validate patches were generated when security issues found
- Fail fast with clear error messages
- Prevent silent failures that report success incorrectly

This ensures judges see actual failures instead of false positives.
@ezeanyicollins ezeanyicollins merged commit 425e91f into main Oct 10, 2025
1 check failed
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