Skip to content

test: avoid database loading in language package tests - #6178

Open
MMVonnSeek wants to merge 1 commit into
ossf:mainfrom
MMVonnSeek:test/4321-optimize-slow-tests
Open

MMVonnSeek wants to merge 1 commit into
ossf:mainfrom
MMVonnSeek:test/4321-optimize-slow-tests

Conversation

@MMVonnSeek

Copy link
Copy Markdown

Summary

This PR improves the performance of language package tests by avoiding unnecessary CVE database initialization and checker loading.

Changes

  • Moved language package manifest tests into a separate test class.
  • Removed the unnecessary CVEDB dependency from parser PURL generation.
  • Configured VersionScanner with no_scan=True and checkers={} to avoid loading unnecessary checkers and the CVE database.

Validation

  • All 11 language package manifest tests passed.
  • pytest --collect-only successfully collected the tests.
  • git diff --check passed.

Related issue

Related to #4321.

This branch has not been deployed

No deployments
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