-
Notifications
You must be signed in to change notification settings - Fork 24
[SP-2991] feat: add recursive search support for folder hashing #141
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
Open
matiasdaloia
wants to merge
9
commits into
main
Choose a base branch
from
feature/mdaloia/SP-2991-SCANOSS-PY-Add-hfh-recursive-search-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8254685
[SP-2991] feat: add depth and min-cutoff-threshold arguments to folde…
matiasdaloia b749eb8
[SP-2991] chore: update papi
matiasdaloia b5fc3c7
[SP-2991] chore: update grpc definitions
matiasdaloia 22e2af2
[SP-2991] chore: update dockerfile, scanoss.json and setup.cfg
09cd2ba
remove file extension filters to match go-minr criteria
c785e16
[SP-3040] fix: remove unused code
matiasdaloia 64ca0d3
[SP-2991]: chore: update changelog and bump version
matiasdaloia aed0fe7
[SP-2991] chore: update version
matiasdaloia 39c7aa2
fix hfh extension filter bug
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
|
||
import builtins | ||
import google.protobuf.descriptor | ||
import google.protobuf.descriptor_pb2 | ||
import google.protobuf.internal.extension_dict | ||
import protoc_gen_swagger.options.openapiv2_pb2 | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
||
OPENAPIV2_SWAGGER_FIELD_NUMBER: builtins.int | ||
OPENAPIV2_OPERATION_FIELD_NUMBER: builtins.int | ||
OPENAPIV2_SCHEMA_FIELD_NUMBER: builtins.int | ||
OPENAPIV2_TAG_FIELD_NUMBER: builtins.int | ||
OPENAPIV2_FIELD_FIELD_NUMBER: builtins.int | ||
openapiv2_swagger: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, protoc_gen_swagger.options.openapiv2_pb2.Swagger] | ||
"""ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project. | ||
|
||
All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
different descriptor messages. | ||
""" | ||
openapiv2_operation: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, protoc_gen_swagger.options.openapiv2_pb2.Operation] | ||
"""ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project. | ||
|
||
All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
different descriptor messages. | ||
""" | ||
openapiv2_schema: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, protoc_gen_swagger.options.openapiv2_pb2.Schema] | ||
"""ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project. | ||
|
||
All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
different descriptor messages. | ||
""" | ||
openapiv2_tag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.ServiceOptions, protoc_gen_swagger.options.openapiv2_pb2.Tag] | ||
"""ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project. | ||
|
||
All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
different descriptor messages. | ||
""" | ||
openapiv2_field: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, protoc_gen_swagger.options.openapiv2_pb2.JSONSchema] | ||
"""ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project. | ||
|
||
All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
different descriptor messages. | ||
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
import warnings | ||
|
||
|
||
GRPC_GENERATED_VERSION = '1.73.0' | ||
GRPC_VERSION = grpc.__version__ | ||
_version_not_supported = False | ||
|
||
try: | ||
from grpc._utilities import first_version_is_lower | ||
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) | ||
except ImportError: | ||
_version_not_supported = True | ||
|
||
if _version_not_supported: | ||
raise RuntimeError( | ||
f'The grpc package installed is at version {GRPC_VERSION},' | ||
+ f' but the generated code in protoc_gen_swagger/options/annotations_pb2_grpc.py depends on' | ||
+ f' grpcio>={GRPC_GENERATED_VERSION}.' | ||
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' | ||
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Verification agent
🧩 Analysis chain
Verify gRPC version compatibility across the codebase.
The update from
grpcio>1.42.0
togrpcio>=1.70.0
is a significant version bump. This change aligns with the protobuf runtime validation added throughout the codebase, but requires verification that all gRPC-related code is compatible with the new minimum version.🏁 Script executed:
Length of output: 110731
Ensure grpcio requirement matches generated‐code version checks
The generated gRPC stubs in
*.pb2_grpc.py
perform runtime guards against the embeddedGRPC_GENERATED_VERSION
(1.73.0 inprotoc_gen_swagger
stubs and 1.73.1 in Scanoss API stubs). Withrequirements.txt
currently set to:installations of grpcio 1.70.x–1.72.x will trigger a
RuntimeError
on import sincefirst_version_is_lower('1.72.0','1.73.1')
is true. To resolve this critical mismatch:• Update
requirements.txt
(line 5) togrpcio>=1.73.1
to satisfy the highestGRPC_GENERATED_VERSION
.• Optionally, if you prefer to lock to 1.73.0 instead, regenerate the Swagger stubs so their
GRPC_GENERATED_VERSION
matches (but note Scanoss API stubs require 1.73.1).Please confirm that moving to grpcio ≥1.73.1 is acceptable for all environments and downstream consumers.
📝 Committable suggestion
🤖 Prompt for AI Agents