-
Notifications
You must be signed in to change notification settings - Fork 1
feat(result): Initial OrtResult code - Analyzer #15
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
Conversation
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
Signed-off-by: Helio Chissini de Castro <[email protected]>
e29048a to
01fd4aa
Compare
There was a problem hiding this 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 introduces the initial implementation of OrtResult code for the Analyzer component, representing a significant expansion of the python-ort library's data model capabilities. The PR adds comprehensive support for parsing and serializing ORT (OSS Review Toolkit) analyzer results.
Changes:
- Adds complete analyzer result data models including OrtResult, AnalyzerRun, AnalyzerResult, Project, Package, DependencyGraph, and supporting classes
- Introduces test data files demonstrating the expected format for analyzer results and ORT configuration
- Updates VCS models to handle empty strings and improve serialization
- Removes deprecated ort_configuration.py file
- Updates dependencies and development tooling to newer versions
- Adds example scripts for parsing ORT result and repository configuration files
Reviewed changes
Copilot reviewed 35 out of 38 changed files in this pull request and generated 17 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/data/analyzer-result.yml | Large test data file (1832 lines) demonstrating analyzer result format with package dependencies |
| tests/data/ort_configuration_reference.yml | Reference configuration file (393 lines) showing all ORT configuration options |
| src/ort/utils/processed_declared_license.py | New utility model for processed license declarations |
| src/ort/utils/environment.py | New model for ORT execution environment information |
| src/ort/severity.py | Enum for issue severity levels (HINT, WARNING, ERROR) |
| src/ort/models/vcstype.py | Updated to serialize as plain string; added model_serializer |
| src/ort/models/vcsinfo.py | Modified url field to accept empty strings; changed type from strict AnyUrl |
| src/ort/models/source_code_origin.py | Added docstring documentation |
| src/ort/models/scope.py | New model for dependency scopes |
| src/ort/models/root_dependency_index.py | New model for root dependency indexing |
| src/ort/models/repository.py | New model for repository information |
| src/ort/models/remote_artifact.py | New model for remote artifact references |
| src/ort/models/project.py | New model for project information with custom hash/equality |
| src/ort/models/package_reference.py | New model for package references in dependency trees |
| src/ort/models/package_linkage.py | New enum for package linkage types |
| src/ort/models/package.py | New model for package information with custom hash/equality |
| src/ort/models/ort_result.py | Main ORT result container model |
| src/ort/models/issue.py | New model for ORT issues |
| src/ort/models/identifier.py | Made frozen/immutable and added str method |
| src/ort/models/dependency_*.py | New models for dependency graph representation (node, edge, reference, graph) |
| src/ort/models/config/analyzer_configuration.py | Updated docstring for clarity |
| src/ort/models/analyzer_*.py | New models for analyzer run and result |
| src/ort/models/ort_configuration.py | Deleted entire file (breaking change) |
| examples/*.py | New example scripts for parsing ORT data |
| pyproject.toml | Version bump to 0.5.0, updated dependencies |
| .pre-commit-config.yaml | Updated tool versions and hook configurations |
| .ort.yml | New ORT configuration file for the project |
| .gitignore | Added patterns for ORT output and requirements.txt |
| .vscode/settings.json | Deleted file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.