Skip to content

Conversation

@w-javed
Copy link
Contributor

@w-javed w-javed commented Jan 8, 2026

Copilot AI review requested due to automatic review settings January 8, 2026 19:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes package verification logic by changing the package name normalization from uppercase to lowercase, which aligns with Python packaging standards (PEP 503). It also improves error handling to prevent KeyError exceptions when packages are completely missing.

Key changes:

  • Changed package name normalization from .upper() to .lower() for both installed and expected package dictionaries
  • Updated error logging to use .get() with a default value instead of direct dictionary access

@w-javed
Copy link
Contributor Author

w-javed commented Jan 8, 2026

/check-enforcer override

Copy link
Member

@mccoyp mccoyp left a comment

Choose a reason for hiding this comment

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

The casing change is consistent for both sets being compared, and seems like it would possibly prevent the issue in your pipeline run. Change looks good to me

@w-javed w-javed enabled auto-merge (squash) January 9, 2026 01:23
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.

3 participants