-
Notifications
You must be signed in to change notification settings - Fork 471
test: integration registry versioning #13298
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
test: integration registry versioning #13298
Conversation
|
|
| self, | ||
| integration_name: str, | ||
| is_external_package: bool = True, | ||
| dependency_names: list = [], |
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.
🟠 Code Vulnerability
do not use a list `[]` as a default initializer in the function (...read more)
Developers should not be setting a default argument to an empty list. Instead, use None and check if the value is defined. Using a default list can cause unwanted behavior as the value of the argument is only evaluated once when the function is defined, not when it is run. Because of this, each function call will reference the same underlying memory when the default value is used, which can lead to unwanted behavior.
Learn More
| try: | ||
| os.remove(self.updater_lock_file_path) | ||
| except OSError: | ||
| pass |
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.
🔴 Code Quality Violation
silent exception (...read more)
Using the pass statement in an exception block ignores the exception. Exceptions should never be ignored. Instead, the user must add code to notify an exception occurred and attempt to handle it or recover from it.
The exception to this rule is the use of StopIteration or StopAsyncIteration when implementing a custom iterator (as those errors are used to acknowledge the end of a successful iteration).
| try: | ||
| os.remove(data_file_path) | ||
| except OSError: | ||
| pass |
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.
🔴 Code Quality Violation
silent exception (...read more)
Using the pass statement in an exception block ignores the exception. Exceptions should never be ignored. Instead, the user must add code to notify an exception occurred and attempt to handle it or recover from it.
The exception to this rule is the use of StopIteration or StopAsyncIteration when implementing a custom iterator (as those errors are used to acknowledge the end of a successful iteration).
Bootstrap import analysisComparison of import times between this PR and base. SummaryThe average import time from this PR is: 249 ± 6 ms. The average import time from base is: 248 ± 8 ms. The import time difference between this PR and base is: 0.4 ± 0.3 ms. The difference is not statistically significant (z = 1.16). Import time breakdownThe following import paths have shrunk:
|
BenchmarksBenchmark execution time: 2025-04-30 12:33:12 Comparing candidate commit 7034567 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 499 metrics, 8 unstable metrics. scenario:iast_aspects-swapcase_aspect
|
8820b40
into
conti/integration-registry-versioning
Checklist
Reviewer Checklist