Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusty: Refactor alternative classification, add tests #3336

Merged
merged 2 commits into from
May 16, 2024

Conversation

puerco
Copy link
Contributor

@puerco puerco commented May 15, 2024

Summary

This commit refactors the alternative dependency classification logic and makes it testable. I've added more tests to check the classification behavior and to verify the score matrix we pass to the PR template.

Change Type

  • Bug fix (resolves an issue without affecting existing features)
  • Feature (adds new functionality without breaking changes)
  • Breaking change (may impact existing functionalities or require documentation updates)
  • Documentation (updates or additions to documentation)
  • Refactoring or test improvements (no bug fixes or new functionality)

Testing

Review Checklist:

  • Reviewed my own code for quality and clarity.
  • Added comments to complex or tricky code sections.
  • Updated any affected documentation.
  • Included tests that validate the fix or feature.
  • Checked that related changes are merged.

Signed-off-by: Adolfo García Veytia (puerco) <puerco@stacklok.com>
This commit breaks the classification logic into more specialized
functions to make it testable, it also adds tests for some of the
new functions.

Signed-off-by: Adolfo García Veytia (puerco) <puerco@stacklok.com>
@puerco puerco requested a review from a team as a code owner May 15, 2024 18:18
Copy link
Contributor

@stacklokbot stacklokbot left a comment

Choose a reason for hiding this comment

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

✅ No Invisible Unicode Characters Detected.

@coveralls
Copy link

Coverage Status

coverage: 49.973% (+0.6%) from 49.385%
when pulling a4b2365 on puerco:retemplate
into f1e2219 on stacklok:main.

@puerco puerco merged commit f55887b into mindersec:main May 16, 2024
22 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.

4 participants