instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
spec-first__connexion__1673
spec-first/connexion
1,673
defect
cd64611747288e340c91b4dbb1ec21594089478e
69fad2b2fd9a9846b3a17e62e1b777b56df5602f
Pass through lifespan events
Fixes #1672 Lifespan events were being intercepted by the swagger UI middleware. We should let them pass through.
diff --git a/connexion/middleware/swagger_ui.py b/connexion/middleware/swagger_ui.py index baba18293..b157e9b2a 100644 --- a/connexion/middleware/swagger_ui.py +++ b/connexion/middleware/swagger_ui.py @@ -212,6 +212,10 @@ def add_api( self.router.mount(api.base_path, app=api.router) async def __call__(s...
1
1
1
[{"id": "G0", "claim": "The new test_lifecycle test fails on Python 3.7 because AsyncMock is only available from Python 3.8, and other tests relying on AsyncMock are skipped for 3.7 — so this test should get a skipif for Python versions below 3.8 as suggested.", "category": "correctness", "verdict": "supported", "prior...
null
spec-first__connexion__1678
spec-first/connexion
1,678
defect
8cebebc3a447cbec84b98e96512686a6a8f812aa
dce826238a7da0741e1733a674cbdb43d2841de5
Fix stream replay in validators
The current implementation of replaying the stream will always replay the first message. This PR fixes this by progressing through the messages with each call.
diff --git a/connexion/validators/abstract.py b/connexion/validators/abstract.py index d911fc947..8d31b1720 100644 --- a/connexion/validators/abstract.py +++ b/connexion/validators/abstract.py @@ -99,11 +99,14 @@ def _insert_messages( receive: Receive, *, messages: t.Iterable[t.MutableMapping[str, t.Any]] ...
4
4
0
[{"id": "G0", "claim": "The added comment should read \"Ensure that messages is an iterator\" instead of the typo \"Ensure that messages in an iterator\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code calls iter() twice (on line 103 and ...
null
spec-first__connexion__1686
spec-first/connexion
1,686
defect
8cebebc3a447cbec84b98e96512686a6a8f812aa
0689f962e896730c407a913ed636736db5ab91de
Inspect middleware parameters before passing in lifespan
Fixes #1682 This PR inspects the parameters of a Middleware class before passing in the `lifespan` keyword argument. I was doubting to check the class instead (`isinstance(LifespanMiddleware)`), but that's less flexible if users want to write custom middleware to handle the lifespan.
diff --git a/connexion/apps/abstract.py b/connexion/apps/abstract.py index 641e3b9fb..2f7e60a2d 100644 --- a/connexion/apps/abstract.py +++ b/connexion/apps/abstract.py @@ -7,10 +7,10 @@ import typing as t from starlette.testclient import TestClient -from starlette.types import Receive, Scope, Send +from starlette....
1
1
0
[{"id": "G0", "claim": "The variable `has_kwargs` is assigned but never used in `_build_middleware_stack` and should be removed or renamed to `_`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
spec-first__connexion__1712
spec-first/connexion
1,712
defect
55f3c5904416a01d2980ca43d79ac1575ae20fdd
c2d0d23084a214a81722ad76858c7234ac041606
Feature/get delete body
Fixes #1689 Changes proposed in this pull request: - Pass through request body in case of `GET` and `DELETE` requests
diff --git a/connexion/decorators/parameter.py b/connexion/decorators/parameter.py index 8aab04f5c..a5a24ba70 100644 --- a/connexion/decorators/parameter.py +++ b/connexion/decorators/parameter.py @@ -211,7 +211,7 @@ def get_arguments( ) ) - if operation.method.upper() in ["PATCH", "POST", "PUT"]: + ...
4
4
3
[{"id": "G0", "claim": "The body (an empty dict) is passed into the view function's kwargs even when the operation defines no request body; only pass the body when the spec defines one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Add a specific test f...
null
spec-first__connexion__1716
spec-first/connexion
1,716
defect
55f3c5904416a01d2980ca43d79ac1575ae20fdd
51982a5b3230cede1b442d89f3f4c9b12ce84a24
Bugfix/basepath
Working towards #1709 I think we're almost there, some tests I did are now working properly. Would love to get some feedback/ideas on the implementation and the tests :)
diff --git a/connexion/middleware/main.py b/connexion/middleware/main.py index b0e1a682b..4b5d84225 100644 --- a/connexion/middleware/main.py +++ b/connexion/middleware/main.py @@ -308,6 +308,9 @@ def _build_middleware_stack(self) -> t.Tuple[ASGIApp, t.Iterable[ASGIApp]]: app = middleware(app) # type:...
2
2
1
[{"id": "G0", "claim": "There might also be an issue with the ordering of routes inside an API when the operations of a spec are added to it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The sorting does not order paths without path parameters c...
null
spec-first__connexion__1819
spec-first/connexion
1,819
defect
004f12f88c25c5ce5594e356e61ff5d8e81b8baf
f1d1b3ebab0a14c5537b7e6a6f69112c1642fb71
Only instantiate specification once
Fixes #1801 I had to make quite a few additional changes to satisfy mypy.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25e4ef40c..ba54705e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: args: ["tests"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.961 + rev: v0.981 hooks: - id...
2
2
0
[{"id": "G0", "claim": "The `from_operation` signature's widened `operation` parameter that can now also be a `Specification` is confusing (and its variable name misleading) without an explanation of why it can be a Specification as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
spec-first__connexion__1821
spec-first/connexion
1,821
defect
bbd085bd390721cdd48a492b8a57a1bb1b99c4f2
46e71912343110febf520f96b56bf5aa619303f5
Fix CORS headers not set on exceptions
Fixes #1820. Correct error handling in response to CORS. Changes proposed in this pull request: - Add a MiddlewarePosition before Exception handling so CORS is always returned - Add ServerError Middleware to handle unhandled errors between the ServerError- and ExceptionMiddleware - Update corresponding do...
diff --git a/connexion/middleware/main.py b/connexion/middleware/main.py index c3079aad6..1c09e6cdb 100644 --- a/connexion/middleware/main.py +++ b/connexion/middleware/main.py @@ -21,6 +21,7 @@ from connexion.middleware.response_validation import ResponseValidationMiddleware from connexion.middleware.routing import ...
5
5
1
[{"id": "G0", "claim": "Add `:meta hide-value:` to the new BEFORE_EXCEPTION enum member's docstring so its value is not shown in the rendered docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the misspelling 'Usefull' to 'Useful' in the BEF...
null
spec-first__connexion__1830
spec-first/connexion
1,830
defect
dbca0485f1f58d01e42163540ee6b2da134917fb
3e4f12a11e034432218505ef98361328fd7c5dd2
Specification use raw spec on clone
Fixes #1829. Changes proposed in this pull request: - Use _raw_spec when cloning
diff --git a/connexion/spec.py b/connexion/spec.py index 91ff3cd93..be5d653e5 100644 --- a/connexion/spec.py +++ b/connexion/spec.py @@ -196,7 +196,7 @@ def enforce_string_keys(obj): return OpenAPISpecification(spec, base_uri=base_uri) def clone(self): - return type(self)(copy.deepcopy(self._spec...
1
1
0
[{"id": "G0", "claim": "Rename the newly added `swagger_app` fixture to `swagger_ui_app` and update its usage in the tests accordingly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spec-first__connexion__1837
spec-first/connexion
1,837
defect
f8f461c5240f6d01b0d8c7104387993ce811b2c7
5a95751960aabe82bfc05de0362110d7b55717da
Add API-key scope checking
Fixes # N/A The current documentation mentions that API-key security supports scopes: " The function should accept the following arguments: - apikey - required_scopes (optional) " However, the scopes were not passed to the checker. Changes proposed in this pull request: - Add missing parameter routing ...
diff --git a/connexion/security.py b/connexion/security.py index ddfd14b16..41d3c568e 100644 --- a/connexion/security.py +++ b/connexion/security.py @@ -243,9 +243,10 @@ def get_fn(self, security_scheme, required_scopes): apikey_info_func, security_scheme["in"], security_scheme["n...
4
2
1
[{"id": "G0", "claim": "Supporting scopes on apiKey security schemes may not be spec-compliant — the OpenAPI docs define scopes only for oauth2/OpenID schemes and adding them to an apiKey block does not validate for 2.X specs — so it is unclear whether this support should be added at all.", "category": "design", "verdi...
null
spec-first__connexion__186
spec-first/connexion
186
defect
26efe77547ee5045a2fdedf0999ad69ec8ff20d7
259adb5d7e8e6d26d1a60432391583e7014571a7
Better error handling for non-conforming responses
Fixes #153 . # Description Changes proposed in this pull request: - let the validation error be a validation error - catch the validation error when validating the response - create exceptions for nonconforming body and headers and use them to differentiate between the different validation errors and to populate a pro...
diff --git a/connexion/decorators/response.py b/connexion/decorators/response.py index 9ff07f3de..fe35eb37e 100644 --- a/connexion/decorators/response.py +++ b/connexion/decorators/response.py @@ -14,10 +14,11 @@ # Decorators to change the return type of endpoints import functools import logging -from ..exceptions i...
4
4
1
[{"id": "G0", "claim": "The pull request's unit tests are failing and must be fixed before the PR can be merged.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Use six.reraise instead of the bare raise when re-raising the ValidationError, so the behavio...
null
spec-first__connexion__1871
spec-first/connexion
1,871
defect
3e64fe46e9b8f63f605bdd5a77ad06704c4805b3
27e753cfe5498c45b3d4d3125fbffc66974b1928
Allow the specification to be specified as a URL.
Changes proposed in this pull request: - Allow a specification to be specified as a URL that is downloaded when the App runs. In combination with the existing mock features, this makes it a single command to run a mock server for any published API.
diff --git a/connexion/middleware/main.py b/connexion/middleware/main.py index 641576634..6bba35c5f 100644 --- a/connexion/middleware/main.py +++ b/connexion/middleware/main.py @@ -408,7 +408,11 @@ def add_api( if self.middleware_stack is not None: raise RuntimeError("Cannot add api after an appli...
4
4
1
[{"id": "G0", "claim": "The pull request has no tests for loading the specification from a URL; a few tests should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider including the URL-spec support in the CLI instead, if the library is not...
null
spec-first__connexion__1891
spec-first/connexion
1,891
defect
ee399fbfe627f86c461b353132e4d710f7127440
e9f06cbcb04233723a88cac1a8f18bd06486c2e0
Generate examples with jsf
Fixes https://github.com/spec-first/connexion/issues/1719 . Builds on work of https://github.com/spec-first/connexion/pull/1718, pulling in external library to provide the fake data from JSON schema. Changes proposed in this pull request: * Use JSF library to generate sample data for mocking APIs without examp...
diff --git a/connexion/mock.py b/connexion/mock.py index 9e69e3130..150bc5d09 100644 --- a/connexion/mock.py +++ b/connexion/mock.py @@ -51,4 +51,9 @@ def mock_operation(self, operation, *args, **kwargs): resp, code = operation.example_response() if resp is not None: return resp, code - ...
1
1
0
[{"id": "G0", "claim": "The docs should say that example generation requires installing connexion with the `mock` extra (`pip install connexion[mock]`), and that when no examples are specified an example is generated based on the provided schema.", "category": "documentation", "verdict": "supported", "priority": "P2", ...
null
spec-first__connexion__1918
spec-first/connexion
1,918
defect
823fa6c00a54e32b1edabc23fb288d34ab3f50c7
b7ec3da9aa599037041f43e0de5039f5f9f2aad7
Can return HTTPStatus member when default response is declared
Fixes #1917 . Changes proposed in this pull request: - Look at enum value for return status code if given - -
diff --git a/connexion/decorators/response.py b/connexion/decorators/response.py index 160ace61c..97662c3a9 100644 --- a/connexion/decorators/response.py +++ b/connexion/decorators/response.py @@ -138,7 +138,7 @@ def _unpack_handler_response( elif len(handler_response) == 2: data, status_code_or_h...
2
2
1
[{"id": "G0", "claim": "The fix was implemented in the response-validation middleware, which only runs when response validation is enabled (or a validator exists for the content type), so the HTTPStatus handling should instead be implemented in the response decorator.", "category": "correctness", "verdict": "supported"...
null
spec-first__connexion__197
spec-first/connexion
197
defect
5e5d97ec1c7c6b644acceda6bf87f282f0e57725
795dc6ed540410c5663f974eb2846e5370244ed5
Support nullable parameters
Partially solves #182. Add support to `x-nullable` vendor extension in Connexion. It is a [ongoing discussion](https://github.com/OAI/OpenAPI-Specification/issues/229) in OpenAPI spec, but requested by users of Connexion and acknowledged as a valid use case. Changes proposed in this pull request: - Add support for at...
diff --git a/connexion/decorators/parameter.py b/connexion/decorators/parameter.py index d82b4557e..275736cc0 100644 --- a/connexion/decorators/parameter.py +++ b/connexion/decorators/parameter.py @@ -6,7 +6,7 @@ import logging import six -from ..utils import boolean +from ..utils import boolean, is_nullable, is_nu...
1
1
0
[{"id": "G0", "claim": "A note should be added to the docs saying that the x-nullable vendor extension will be deprecated if/when a future version of OpenAPI defines an official option for it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spec-first__connexion__2023
spec-first/connexion
2,023
defect
1844a2fb3f1d09a37edfeab7a7200d52e97abbd9
ee04d60b03338b110964d91e554a15fcfb946151
Replace deprecated `jsonschema.RefResolver` with `referencing.Registry`
Fixes #1786 (which was closed prematurely as pointed out in https://github.com/spec-first/connexion/issues/1786#issuecomment-2474017122) Fixes the following deprecation warnings: ``` connexion/json_schema.py:18 /home/randy/connexion/connexion/json_schema.py:18: DeprecationWarning: jsonschema.RefResolver is depr...
diff --git a/connexion/json_schema.py b/connexion/json_schema.py index f2d67a39b..90da6d9c3 100644 --- a/connexion/json_schema.py +++ b/connexion/json_schema.py @@ -4,6 +4,7 @@ import contextlib import io +import json import os import typing as t import urllib.parse @@ -13,9 +14,11 @@ import requests import ...
3
1
0
[{"id": "G0", "claim": "The imports in connexion/json_schema.py should be sorted within the third-party category.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added function should get a pydoc/docstring.", "category": "documentation"...
null
spec-first__connexion__205
spec-first/connexion
205
defect
5e7c94669befdd14a871e8739190c40f8349d7ee
a2fc4a834387395c66e14f4839e136b0580480a3
Validate accordingly with content-type defined in spec
Fixes #203 Connexion should validate the schema of responses that have content-type as JSON. Changes proposed in this pull request: - Validate using json-schema only responses of operations that produces JSON. - Makes it possible for Connexion applications to return binary data in operations.
diff --git a/connexion/decorators/produces.py b/connexion/decorators/produces.py index 6f7e52617..7a2541694 100644 --- a/connexion/decorators/produces.py +++ b/connexion/decorators/produces.py @@ -88,7 +88,6 @@ def wrapper(*args, **kwargs): logger.debug('Endpoint returned a Flask Response', extra={'url...
2
2
0
[{"id": "G0", "claim": "The multi-line if condition in validate_response should use parentheses instead of backslash line continuations for readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The default mimetype string should be a modul...
null
spec-first__connexion__278
spec-first/connexion
278
defect
6697dc334f54d912bde89f0c21f5b7cf7b234577
70d9d9dabc4e7cf7b684d435341e3d42d36098a9
Bad operationId to error status code
Adds the ability to turn bad or missing operationIds into run time errors returning a defined status code, e.g. 501 ("Not Implemented"). This change is largely useful for testing purposes. When (black-box) testing implementations, it is not yet know whether a given implementation matches the given Swagger/OpenAPI spe...
diff --git a/connexion/api.py b/connexion/api.py index 71fb92cac..d36947819 100644 --- a/connexion/api.py +++ b/connexion/api.py @@ -32,6 +32,8 @@ SWAGGER_UI_PATH = MODULE_PATH / 'vendor' / 'swagger-ui' SWAGGER_UI_URL = 'ui' +RESOLVER_ERROR_ENDPOINT_RANDOM_DIGITS = 6 + logger = logging.getLogger('connexion.api') ...
4
1
0
[{"id": "G0", "claim": "Restore the tox envlist that the pull request cut down to py27,py34, as the change looks accidental.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The resolver-error status-code behaviour should be offered as an option, idea...
null
spec-first__connexion__314
spec-first/connexion
314
defect
5892feb471a9f4757151fabfac25dbabf7073174
5a6cdb51a24691429e39c440cb0d2f6baa13a8d5
Support app.add_api() with API-dictionary as an alternative to file path
Fixes #296 Changes proposed in this pull request: - Add support for an API-dictionary argument to app.add_api() as an alternative to a file path. - test case creating app and using add_api() with an API-dictionary - Currently the param is still called swagger_file, this and other params should probably change I am ju...
diff --git a/connexion/api.py b/connexion/api.py index 476e0616c..373fbec9d 100644 --- a/connexion/api.py +++ b/connexion/api.py @@ -81,7 +81,6 @@ def __init__(self, swagger_yaml_path, base_url=None, arguments=None, """ self.debug = debug self.resolver_error_handler = resolver_error_handler -...
3
3
3
[{"id": "G0", "claim": "Rename the add_api parameter (and identifiers containing 'file' or 'yaml') to `specification` because the argument may be the specification dict itself rather than a file path, so the naming is misleading.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
spec-first__connexion__334
spec-first/connexion
334
defect
10a0c15f6fb3208ae4de9b59b1ff82058af55b6c
dd6dbea9aaf5bf63afd9b9ff5e413c54074e1c69
Parameter names are not sanitized
### Description Parameters that are not valid Python names are not handled gracefully at the moment. E.g. OData query parameters (`$skip`, `$top`, `$filter`) are only passed to the controller if it uses `**kwargs`. ### Expected bahaviour Parameter names should be sanitized by stripping invalid characters. #...
diff --git a/connexion/decorators/parameter.py b/connexion/decorators/parameter.py index cc730d1e4..a86ff04d0 100644 --- a/connexion/decorators/parameter.py +++ b/connexion/decorators/parameter.py @@ -2,6 +2,7 @@ import functools import inspect import logging +import re import flask import six @@ -58,6 +59,10 @@...
5
5
1
[{"id": "G0", "claim": "The new parameter-sanitization behaviour should come with tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to document the parameter-name sanitation, since it might otherwise puzzle readers of the code.", "c...
null
spec-first__connexion__368
spec-first/connexion
368
defect
80dd8ea10655e9a661c451568e9bbca071a5577f
17c69e30d4f0c3c93fb063357f94e7be70e3bed4
Problem exceptions
Fixes #366 . Changes proposed in this pull request: - Adds in a base problem exception class which allows better customisation of responses - Demonstration of use for oAuth 2 Decorator
diff --git a/connexion/app.py b/connexion/app.py index c299f5cd9..cf9e68a52 100644 --- a/connexion/app.py +++ b/connexion/app.py @@ -5,6 +5,7 @@ import werkzeug.exceptions from connexion.decorators.produces import JSONEncoder as ConnexionJSONEncoder +from connexion.exceptions import ProblemException from connexion...
6
6
0
[{"id": "G0", "claim": "The extra isinstance check against werkzeug HTTPException appears unnecessary; checking that the exception is an instance of ProblemException alone should be enough.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "OAuthProblem dupl...
null
spec-first__connexion__379
spec-first/connexion
379
defect
552d1b57b0d4c89c0f0d5e35bef5c074dc0976d9
3481d70d33d6dbea3edd6f8b9e107609b2785d73
Support the flask url variable converter "path"
The Flask variable converter "path" allows url variables to include forward slashes in their values. This PR adds support for that feature if the Swagger specification indicates that a route parameter's format is "path". Example: parameters: - name: name in: path required: true ...
diff --git a/connexion/operation.py b/connexion/operation.py index c55bfa1e4..9b8ed360b 100644 --- a/connexion/operation.py +++ b/connexion/operation.py @@ -326,7 +326,8 @@ def resolve_parameters(self, parameters): yield param def get_path_parameter_types(self): - return {p['name']: p.get('ty...
3
3
0
[{"id": "G0", "claim": "Add a small section to the Routing docs (docs/routing.rst) describing this new path-converter feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Link to the relevant Flask documentation from the new Parameter Variable ...
null
spec-first__connexion__477
spec-first/connexion
477
defect
e0118810b94cf0d9462fe316cf18fb26149b7c19
ebee26eb88a64ca01eff7556db5f4348939c1b06
Split tokeninfo scope if it is a string
Fixes #475. I couldn't find a relevant test.
diff --git a/connexion/decorators/security.py b/connexion/decorators/security.py index 2a044f279..7c9bc7bf9 100644 --- a/connexion/decorators/security.py +++ b/connexion/decorators/security.py @@ -71,7 +71,10 @@ def wrapper(request): token_response=token_request ) toke...
4
1
1
[{"id": "G0", "claim": "The reviewer questions what the new scope handling is doing and suggests the scope string might need to be split by comma instead of whitespace.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The current split does not split th...
null
spec-first__connexion__491
spec-first/connexion
491
defect
6668835420231c15095a71e264b2e2b0e1a68bf3
bc7b566a644620b357f7ef6563ecec9108a82483
Fix for Issue #308: MockResolver: support "example" in definitions
Fixes #308 . Adding support for "example" in definitions to be returned from the mock server instead of "No example response was defined." for more robust mocking. Changes proposed in this pull request: - If response example is not provided, use "example" defined in response type schema - If no response exa...
diff --git a/connexion/mock.py b/connexion/mock.py index 355d13e07..7134aca22 100644 --- a/connexion/mock.py +++ b/connexion/mock.py @@ -64,4 +64,14 @@ def mock_operation(self, operation, *args, **kwargs): if examples: return list(examples.values())[0], status_code else: - retu...
2
1
1
[{"id": "G0", "claim": "The PR does not completely fix #308, because examples can be defined for individual object properties rather than a complete schema, and hjacobs asks whether the author is willing to work towards full support for example properties in nested objects.", "category": "design", "verdict": "opposed",...
null
spec-first__connexion__497
spec-first/connexion
497
defect
d51e9c8a4c1daac450070b467b14ed25e9ce82b0
ee7232534570f402de3719a7a41892864fa79d86
Fix KeyError if no Content-Type was provided in request
At the moment if no `Content-Type` is provided in the request the validation wrapper raises a `KeyError`. Can we expect a fix to make it into a release soon or should we look for a temporary workaround until that happens?
diff --git a/connexion/decorators/validation.py b/connexion/decorators/validation.py index e45212d3d..612add09d 100644 --- a/connexion/decorators/validation.py +++ b/connexion/decorators/validation.py @@ -111,7 +111,7 @@ def wrapper(request): return problem(415, ...
3
3
2
[{"id": "G0", "claim": "The pull request should add a test covering the case where no Content-Type header is provided in the request, as hjacobs requested (suggesting an artificial manual HTTP request instead of the test client), since the existing test only covers a wrong but present Content-Type.", "category": "testi...
null
spec-first__connexion__523
spec-first/connexion
523
defect
f846126d42fb97d1526da0cc62e6e7a2d716840c
44140de018407e482c027c7d2f8dd3000ac4f860
FIX a typo causing an ERROR log
A small bug was introduced in #500 when sanitizing the request query parameters. Instead of fetching the arguments from `request.query`, the parameters were sanitized from the `request.form`. This causes an error log to be printed, as the parameters are not expected for the query (for example in the case of a POST ...
diff --git a/connexion/decorators/parameter.py b/connexion/decorators/parameter.py index 3b9674446..128429605 100644 --- a/connexion/decorators/parameter.py +++ b/connexion/decorators/parameter.py @@ -119,7 +119,7 @@ def make_request_query(request): else: request_query[k] = v[0] ...
2
2
2
[{"id": "G0", "claim": "hjacobs asks the PR author to add a test covering the behaviour this pull request changes (the fix for the spurious ERROR log on form-data/query parameters).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Listing testfixtures in ...
null
spec-first__connexion__600
spec-first/connexion
600
defect
ee07865b780f40db3c8c73aeb27cae086e226db9
044e3f0514988c5dfb7973f5f113ca096f227bab
fix on utils.has_coroutine function
Fixed coroutinefunction verification when has async def. It is necessary because there's no @asyncio.coroutine decorator to validate Fixes # . Changes proposed in this pull request: - - -
diff --git a/connexion/utils.py b/connexion/utils.py index 9190710e9..e0e94d8c2 100644 --- a/connexion/utils.py +++ b/connexion/utils.py @@ -148,12 +148,20 @@ def loads(self, data): def has_coroutine(function, api=None): if six.PY3: # pragma: 2.7 no cover import asyncio + + def iscorofunc(func): ...
1
1
0
[{"id": "G0", "claim": "Add a docstring explaining the logic of has_coroutine, whose complexity this PR increased; dtkav offers to add the comments himself if the PR is merged as-is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spec-first__connexion__610
spec-first/connexion
610
defect
1fbb1ff941dee089dcf881ef46bcb079ac52502a
c4bc1e3eda611c880839ea9d115896da5875c3a3
Correct validator response on bad JSON
Right now request validator returns 415 Unsupported Media Type "Invalid Content-type (application/json), expected JSON data" when Content-Type is set to "application/json" (correctly) but the payload itself is not valid JSON. This error message is misleading into thinking that there is something wrong with Content-Type...
diff --git a/connexion/decorators/validation.py b/connexion/decorators/validation.py index 612add09d..931b3d674 100644 --- a/connexion/decorators/validation.py +++ b/connexion/decorators/validation.py @@ -10,7 +10,7 @@ from ..exceptions import ExtraParameterProblem from ..problem import problem -from ..utils import...
3
3
1
[{"id": "G0", "claim": "The test test_post_wrong_content_type should be updated to match the new behaviour of returning 400 when the Content-Type is JSON but the body is not valid JSON.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bare `except:` a...
null
spec-first__connexion__613
spec-first/connexion
613
defect
0b19ed489a8e701df94ec995c17c5abc931e1b63
aa9ae609057dbeed5f73e8b2232189e214f66b68
URI parsing decorator
Fixes #608 Supersedes #587 Changes proposed in this pull request: - array logic refactored into one place. - validation.py and parameter.py no longer try to join the array, and the split it again. - validation of defaults now works, because the validator is given the correct type. - some additional classe...
diff --git a/connexion/decorators/parameter.py b/connexion/decorators/parameter.py index 128429605..aad997e8a 100644 --- a/connexion/decorators/parameter.py +++ b/connexion/decorators/parameter.py @@ -61,12 +61,8 @@ def get_val_from_param(value, query_param): if is_nullable(query_param) and is_null(value): ...
2
2
1
[{"id": "G0", "claim": "The first parameter of test_uri_parser_query_params should be renamed from \"cls\" to something like \"parser_class\" because \"cls\" conventionally implies a classmethod.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ho...
null
spec-first__connexion__627
spec-first/connexion
627
defect
fea261133b5e47e3093281c4c687445019dbde0b
f39081a7c4a6d508acd78d4c8e8c427923c7cbeb
resolve json references earlier, generically
relates to #624 This branch factors out reference resolution, and applies it to the spec immediately after it is validated. Previously this behavior was (1) in operation.py, and (2) tied to the swagger spec implementation. Changes proposed in this pull request: - make reference resolver general purpose - re...
diff --git a/connexion/apis/abstract.py b/connexion/apis/abstract.py index b6705c0ca..10e2b3fea 100644 --- a/connexion/apis/abstract.py +++ b/connexion/apis/abstract.py @@ -11,6 +11,7 @@ from swagger_spec_validator.validator20 import validate_spec from ..exceptions import ResolverError +from ..jsonref import resolv...
1
1
1
[{"id": "G0", "claim": "deep_get can only resolve basic paths and misses specific JSON reference scenarios, so resolve_refs should instead use jsonschema's RefResolver, which needs to receive the full path starting from '#/', to resolve all references.", "category": "correctness", "verdict": "supported", "priority": "P...
null
spec-first__connexion__629
spec-first/connexion
629
defect
ee07865b780f40db3c8c73aeb27cae086e226db9
63bba23f28ab3bc45ea0610777a53c338c0412c8
Fix body validator different error codes for bad Content-Types.
Fixes #628 . Changes proposed in this pull request: - Added a test for this bug. - Fixed it by checking for non-empty HTTP POST payload by considering request.body, request.form and request.files (only request.body was checked)
diff --git a/connexion/decorators/validation.py b/connexion/decorators/validation.py index 1a2e2d27b..8be0757e1 100644 --- a/connexion/decorators/validation.py +++ b/connexion/decorators/validation.py @@ -101,7 +101,8 @@ def wrapper(request): if all_json(self.consumes): data = request.json...
2
1
0
[{"id": "G0", "claim": "Connexion lets formData parameters through even when the operation's `consumes` block does not list form content types, and if such requests were to be rejected the check would probably belong in a spec validator.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre...
null
spec-first__connexion__642
spec-first/connexion
642
defect
212820bf350f8300b269471dfa210e790f140676
d7b71bbb328d06f7a1fa2daa2a48c7b7251d559a
Add x-nullable support for body validators
Closes #439 Add `x-nullable` support in properties by adding property validator to default `Draft4Validator`. It skips null-property with `"x-nullable": true` and then adds it back.
diff --git a/connexion/decorators/validation.py b/connexion/decorators/validation.py index 1a2e2d27b..584aa56b8 100644 --- a/connexion/decorators/validation.py +++ b/connexion/decorators/validation.py @@ -5,7 +5,7 @@ import sys import six -from jsonschema import Draft4Validator, ValidationError, draft4_format_check...
4
2
2
[{"id": "G0", "claim": "The new nullable-support validator breaks the build by not throwing the right exception (a ValidationError) when the function is given an integer as input.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's imp...
null
spec-first__connexion__653
spec-first/connexion
653
defect
e56ff62052f26b6c7e35d957934e78442b0f49b0
cbfda504ae222231ab33d73102852123cffe11d6
Switch from swagger_spec_validator to openapi_spec_validator library
related to #420 and #639 , this switches to a library that can validate both swagger 2.0 and openapi 3 specs. Changes proposed in this pull request: - Change validation library from swagger_spec_validator to openapi_spec_validator
diff --git a/README.rst b/README.rst index 864b525a0..0a37439c6 100644 --- a/README.rst +++ b/README.rst @@ -83,6 +83,7 @@ New in Connexion 2.0: - Array parameter deserialization now follows the Swagger 2.0 spec more closely. In situations when a query parameter is passed multiple times, and the collectionFormat is...
3
3
2
[{"id": "G0", "claim": "The 'Using Swagger 2.0 specification' message should not be logged at info level, as info is too verbose for this.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should note that the exceptions changed (Swagger...
null
spec-first__connexion__697
spec-first/connexion
697
defect
7e8435aea58a405310b8fcee35418b9296eadc06
486d810e5869a32407d79bcbc3a400e6565c48f8
Fix bad parsing of query params for AioHttp
Fixes #696 . Changes proposed in this pull request: - do not join query parameters values with `,` for AioHttpApi. `connexion.decorators.uri_parsing.AbstractURIParser` requires those to be an array, given the code (i.e. `{'queryParam': ['aValue']}`). However the dictionary that reaches the parses always have single...
diff --git a/connexion/apis/aiohttp_api.py b/connexion/apis/aiohttp_api.py index 106f46626..4eb589d6f 100644 --- a/connexion/apis/aiohttp_api.py +++ b/connexion/apis/aiohttp_api.py @@ -167,7 +167,7 @@ def get_request(cls, req): logger.debug('Getting data and status code', extra={'has_body...
3
2
1
[{"id": "G0", "claim": "The minimal required versions of `aiohttp` and the other aio-ish libraries in `requirements-aiohttp.txt` should perhaps be bumped, since the latest available `aiohttp` is 3.4.4.", "category": "dependencies", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim"...
null
spec-first__connexion__698
spec-first/connexion
698
defect
62582643cbfca65b0cf0d54755f81f0e1a7d1f82
75de28f105a8533a7e08da98330b42cc5588ca13
Setting base_path updates served spec
Fixes #692 This is very much a WIP, I just wanted to push it to show approximately what needs to be done (for the sake of discussion). Sorry for the low quality PR.
diff --git a/connexion/apis/abstract.py b/connexion/apis/abstract.py index 6db762f1e..2a2353b26 100644 --- a/connexion/apis/abstract.py +++ b/connexion/apis/abstract.py @@ -9,7 +9,7 @@ import six import yaml from openapi_spec_validator.exceptions import OpenAPIValidationError -from six.moves.urllib.parse import urlp...
2
2
2
[{"id": "G0", "claim": "Add a unit test for the new base_path-update behaviour to prevent regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The for/else construct raising RuntimeError (flagged by Codacy) should be restructured, e.g. by embeddi...
null
spec-first__connexion__713
spec-first/connexion
713
defect
069c59bbb2f4e4451f9c7f09720b6c45ddac8396
577451fee369bea569aac7b7150b77fef3dc27cf
Introduce Specification classes
This is a proof of concept for a discussion with @cziebuhr in #703 Changes proposed in this pull request: - factor out spec version switching - introduce Specification, Swagger2Specification, and OpenAPISpecification classes
diff --git a/connexion/apis/abstract.py b/connexion/apis/abstract.py index db49d0512..621833693 100644 --- a/connexion/apis/abstract.py +++ b/connexion/apis/abstract.py @@ -18,6 +18,11 @@ from ..resolver import Resolver from ..utils import Jsonifier +try: + import collections.abc as collections_abc # python 3.3...
3
2
0
[{"id": "G0", "claim": "The Specification classmethod from_file is misleadingly named because it also accepts a dict, so it should be renamed (cziebuhr proposes load).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The specification object shoul...
null
spec-first__connexion__735
spec-first/connexion
735
defect
0545ad18005648875812e5a0f0fa9c1d596fc4e1
78c7975e8749abb8808f1340ecf368f76bfd84ea
Add App(resolver=...) for app-wide default resolver
Fixes #729 Changes proposed in this pull request: - explicitly allow setting 'resolver' in the App NB - This only worked pre connexion 2.0 because `old_style_options**` passed all kwargs from `App` to `Api`.
diff --git a/connexion/apps/abstract.py b/connexion/apps/abstract.py index dec53b866..f1ead987a 100644 --- a/connexion/apps/abstract.py +++ b/connexion/apps/abstract.py @@ -14,7 +14,7 @@ class AbstractApp(object): def __init__(self, import_name, api_cls, port=None, specification_dir='', host=Non...
1
1
0
[{"id": "G0", "claim": "The test should assert that api.resolver is resolver (identity) rather than that they are merely equal.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spec-first__connexion__815
spec-first/connexion
815
defect
b6530d32aaee92ebbdfef501540d642a26185174
1c46e4a1e6a7336f7edea282a5103f647a74d0a7
Fix passing empty object body
Having a json request with an empty object body `{}` resulted in having `None` passed as body argument. I'm not quite sure about the fix for openapi 3, probably the whole funtion there needs some reworking. Why is this whole body argument sanitizing needed which is not needed for swagger 2? Is it because of form-dat...
diff --git a/connexion/operations/openapi.py b/connexion/operations/openapi.py index 993328c40..248da1e3c 100644 --- a/connexion/operations/openapi.py +++ b/connexion/operations/openapi.py @@ -256,7 +256,8 @@ def _get_body_argument(self, body, arguments, has_kwargs, sanitize): # see: https://github.com/OAI/Ope...
2
2
1
[{"id": "G0", "claim": "The default body assigned when body is None should be deep-copied - move the deepcopy code (lines 267-268) up to that assignment, since the shared schema default may need the deepcopy.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
spec-first__connexion__847
spec-first/connexion
847
defect
a5dfbb8984c29da5e678efdc2055e17aaba43532
e50fd48ad30a53f3496bd63601328e6b10ae4152
Added MethodViewResolver
This PR proposes a solution for #359 By subclassing RestyResolver and modifying its `resolve_function_from_operation_id` method, it is now possible to use automatic routing functionality with Flask's MethodView together with MethodViewResolver. Changes proposed in this pull request: - modified `resolve_functio...
diff --git a/connexion/resolver.py b/connexion/resolver.py index e8162496a..bca3b2519 100644 --- a/connexion/resolver.py +++ b/connexion/resolver.py @@ -127,3 +127,66 @@ def get_function_name(): return self.collection_endpoint_name if is_collection_endpoint else method.lower() return '{}.{}'.for...
5
5
4
[{"id": "G0", "claim": "The new MethodViewResolver behaviour should be covered by tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add an example showing how to use MethodViewResolver.", "category": "documentation", "verdict...
null
spec-first__connexion__849
spec-first/connexion
849
defect
1bda0659d5f4e6d1f4f30135fea241768bdae28b
b8cd718908ff885c1e94c8e0a96290279a701f19
Return tuple for aiohttp
First step of #828 Changes proposed in this pull request: - Support tuples as return values for aiohttp handlers
diff --git a/.gitignore b/.gitignore index 48a3e5daa..916e23e41 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ htmlcov/ *.swp .tox/ .idea/ +.vscode/ +venv/ +src/ diff --git a/connexion/apis/abstract.py b/connexion/apis/abstract.py index 05a5745c9..f465033ef 100644 --- a/connexion/apis/abstract.py +++ b/c...
10
9
3
[{"id": "G0", "claim": "Handler-response validation and conversion should be handled by one central, well-tested piece of code shared by all apps (with a shared test base), as in #828, rather than being done per framework.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
spec-first__connexion__980
spec-first/connexion
980
defect
890fe9a17181a7bbb08638cdc476a339a711e10f
0797f3631910ae31bae9461b7df7bf0c8638d139
[#935] supporting application/json within multipart/form-data request body
adding support to automatically decode json when a multipart/form-data request body contains a field with an application/json content-type Fixes #935. Changes proposed in this pull request: Fills in a decode step where there's already a TODO (I think) saying it needs to be done for a variety of types.
diff --git a/connexion/decorators/uri_parsing.py b/connexion/decorators/uri_parsing.py index 7ee9e344c..7bf15324e 100644 --- a/connexion/decorators/uri_parsing.py +++ b/connexion/decorators/uri_parsing.py @@ -2,6 +2,7 @@ import abc import functools import logging +import json import six @@ -174,6 +175,8 @@ def ...
4
2
1
[{"id": "G0", "claim": "Would an empty string be a safer default for the contentType value than the current comparison against None?", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reuse connexion's own utilities instead of hardcoding the JSON check:...
null
specklesystems__speckle-server__4121
specklesystems/speckle-server
4,121
defect
5dbbe7f78a58aa0aeeb573dc0c771fd5cd0bd98e
c9fff01dbf6ac4eac886edae7a54998f9204e4a1
refactor(server/file upload): avoid extra http call
## Description & motivation The fileupload module and blobstorage module is refactored to avoid the extra overhead of an http call between the two services. The blobstorage module has been refactored into REST and service directories, allowing the fileupload module to use the required blobstorage service directly. ...
diff --git a/packages/server/modules/blobstorage/domain/operations.ts b/packages/server/modules/blobstorage/domain/operations.ts index 8b90d3c012d..853cf58b4b7 100644 --- a/packages/server/modules/blobstorage/domain/operations.ts +++ b/packages/server/modules/blobstorage/domain/operations.ts @@ -21,6 +21,11 @@ export t...
2
2
2
[{"id": "G0", "claim": "The PR replaces the 'file_import_update' database-notification listener with a listenFor(FileImportSubscriptions.ProjectFileImportUpdated) GQL subscription, which the reviewer believes is never published to and is not a GQL subscription, so it does not belong here.", "category": "correctness", "...
null
specklesystems__speckle-server__4260
specklesystems/speckle-server
4,260
defect
4371945b719d46531d0193dda05dc3252dc132db
a371024e39f61970019eed488205a0f1a687fd04
chore(automate): improve error message
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation - There's a technically-correct but hard to understand error when you try t...
diff --git a/packages/server/modules/automate/services/trigger.ts b/packages/server/modules/automate/services/trigger.ts index a979875e2f7..9480ec78f94 100644 --- a/packages/server/modules/automate/services/trigger.ts +++ b/packages/server/modules/automate/services/trigger.ts @@ -522,7 +522,7 @@ export const manuallyTr...
1
1
0
[{"id": "G0", "claim": "The new error message should read \"so it cannot\" instead of \"and cannot\" in packages/server/modules/automate/services/trigger.ts.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
specklesystems__speckle-server__4287
specklesystems/speckle-server
4,287
defect
3d6fff31a31014a81ffe259860de390788d85273
94faea23e8de29d97bca34ef14bf349c34d120ba
fix(file import): garbage collect failed file imports if taking too long
## Description & motivation We have a long-standing, and often-complained-about, issue where file imports that fail during conversion remain in a forever-pending (queued or converting) state. This PR introduces a periodic scheduled task (once every 5 minutes), which queries all databases for queued & converting f...
diff --git a/packages/server/modules/fileuploads/domain/consts.ts b/packages/server/modules/fileuploads/domain/consts.ts new file mode 100644 index 00000000000..ae355c39bdf --- /dev/null +++ b/packages/server/modules/fileuploads/domain/consts.ts @@ -0,0 +1,4 @@ +export const FILE_UPLOAD_DB_EVENTS = { + Update: 'file_i...
3
2
0
[{"id": "G0", "claim": "ProjectFileImportUpdatedMessageType is used but not imported; an appropriate import statement should be added.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FILE_UPLOAD_DB_EVENTS should be named in PascalCase like Enums usua...
null
specklesystems__speckle-server__4292
specklesystems/speckle-server
4,292
defect
3d6fff31a31014a81ffe259860de390788d85273
6c99ddb215cd0c83adb654b9a57beee2b3eb96a8
Alessandro/web 2906 list invitable workspace members in a project
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/server/assets/workspacesCore/typedefs/projects.graphql b/packages/server/assets/workspacesCore/typedefs/projects.graphql new file mode 100644 index 00000000000..cfbd240f4df --- /dev/null +++ b/packages/server/assets/workspacesCore/typedefs/projects.graphql @@ -0,0 +1,11 @@ +input InvitableCollabor...
6
6
1
[{"id": "G0", "claim": "The count and get-items functions duplicate the same base query, which should be extracted out into its own function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The whereNotIn clause's async subquery doesn't need to b...
null
specklesystems__speckle-server__4432
specklesystems/speckle-server
4,432
defect
593cfa9c8064b1b5adceeadc29dd6d85565a2529
22bc27e0cf7f2366df3556cc4a0e0b5c5cb3e236
fix(shared): fix sso session expiration date too low in tests
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/server/modules/multiregion/regionConfig.ts b/packages/server/modules/multiregion/regionConfig.ts index c0cc3c4c902..36a07c3cd6a 100644 --- a/packages/server/modules/multiregion/regionConfig.ts +++ b/packages/server/modules/multiregion/regionConfig.ts @@ -33,19 +33,23 @@ const getMultiRegionConfig ...
1
1
0
[{"id": "G0", "claim": "The hardcoded millisecond arithmetic `1000 * 60 * 60 * 24` in the SSO session expiry should use the shared `TIME` constant (e.g. `TIME.day`) instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
specklesystems__speckle-server__4588
specklesystems/speckle-server
4,588
defect
23e1ebeaf64f3c6b822b3b9ef9a968e963aa0c63
48c8e38f3b995e7262a985b61fbfdb010c4084ee
feat(core): add project field on invites
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/frontend-2/lib/common/generated/gql/graphql.ts b/packages/frontend-2/lib/common/generated/gql/graphql.ts index d763fb617d6..abfb6387e04 100644 --- a/packages/frontend-2/lib/common/generated/gql/graphql.ts +++ b/packages/frontend-2/lib/common/generated/gql/graphql.ts @@ -1955,7 +1955,10 @@ export t...
2
2
1
[{"id": "G0", "claim": "The new unauthenticated `project: Project!` field must not replace `projectId`/`projectName` (which exist because users may lack access to the full Project entity), and the new field must be wrapped with an auth check so only users who can access the project can resolve it.", "category": "securi...
null
specklesystems__speckle-server__4665
specklesystems/speckle-server
4,665
defect
d0d8658ae94a6f25de1aa33dcb20e293f1d446fd
644e95fba4ef919c7765f1fafa994e37207f415d
feat(workspaces): added cron job to delete stale workspaces
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation When a workspace creation fails for whatever reason, we leave it in an inco...
diff --git a/packages/server/modules/workspaces/domain/operations.ts b/packages/server/modules/workspaces/domain/operations.ts index 32db43bd76d..de25dee9515 100644 --- a/packages/server/modules/workspaces/domain/operations.ts +++ b/packages/server/modules/workspaces/domain/operations.ts @@ -72,6 +72,8 @@ export type G...
2
1
1
[{"id": "G0", "claim": "There is a risk that the cron job deletes workspaces whose creation state has `completed: false` while the user is still in the process of checking out (creating) the workspace.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "...
null
specklesystems__speckle-server__4739
specklesystems/speckle-server
4,739
defect
6b14f5d33c88f1572ae1b2cb8313a201893431b3
1df1e88a6a4af359f818404f912b7ca7af072e20
feat(workspaces): added GQL fitlering capabilities to activeUser work…
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation - For the registration flow to properly work it need to be able to specify ...
diff --git a/packages/server/assets/workspacesCore/typedefs/workspaces.graphql b/packages/server/assets/workspacesCore/typedefs/workspaces.graphql index b7895469e52..0d0ec0dc001 100644 --- a/packages/server/assets/workspacesCore/typedefs/workspaces.graphql +++ b/packages/server/assets/workspacesCore/typedefs/workspaces...
8
6
0
[{"id": "G0", "claim": "The `completed` argument name does not provide enough context and could be renamed to something more descriptive like `workspaceCreationCompleted`.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out `// filter: { com...
null
specklesystems__speckle-server__4749
specklesystems/speckle-server
4,749
defect
1004a210677698083c7c813960b6bf2156db5cd8
99a4e11b4558301681761fa667d29d00384ebbf1
feat(workspaces): backfill workspace tracking
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation - Some data gets obsolete, as for a workspace sync to happen there is only ...
diff --git a/packages/server/modules/shared/test/hepers/creation.ts b/packages/server/modules/shared/test/hepers/creation.ts new file mode 100644 index 00000000000..9eb8d2f98dd --- /dev/null +++ b/packages/server/modules/shared/test/hepers/creation.ts @@ -0,0 +1,53 @@ +/* eslint-disable camelcase */ +import { Mixpanel ...
5
4
1
[{"id": "G0", "claim": "The all-workspaces pagination should follow the codebase's convention of wrapping queries in generator functions (see queryAllWorkspaceProjects) rather than the hand-rolled do/while batching loop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
specklesystems__speckle-server__4761
specklesystems/speckle-server
4,761
defect
3d3a74009e4667786408f13f092d34269fa566ab
29c7e538cbc8f6c2122d5f0814475aa6bfc8b7e5
fix(server/workspaces): gracefully handle duplicate workspace join requests
## Description & motivation We encountered an error `insert into "workspace_join_requests" ("status", "userId", "workspaceId") values ($1, $2, $3) returning * - duplicate key value violates unique constraint "workspace_join_requests_pkey"` in production. This was due to user sending duplicate workspace join reque...
diff --git a/packages/server/modules/workspaces/services/workspaceJoinRequests.ts b/packages/server/modules/workspaces/services/workspaceJoinRequests.ts index 1be5235b36d..d69ba35f2d4 100644 --- a/packages/server/modules/workspaces/services/workspaceJoinRequests.ts +++ b/packages/server/modules/workspaces/services/work...
2
2
1
[{"id": "G0", "claim": "Duplicate workspace join requests should be handled idempotently (answering 201 without re-inserting) rather than returning a 400 error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The insert function should handle the duplicat...
null
specklesystems__speckle-server__4796
specklesystems/speckle-server
4,796
defect
7b72968fd75592ebba377e1c9c4b0d82b94cfa7b
dbb85926cd46cc011aa5367a20c77ee41d9eba3b
feat(embed): expose embed feature access at project level
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/server/assets/gatekeeperCore/typedefs/gatekeeper.graphql b/packages/server/assets/gatekeeperCore/typedefs/gatekeeper.graphql index ea396e427a6..5da6a529970 100644 --- a/packages/server/assets/gatekeeperCore/typedefs/gatekeeper.graphql +++ b/packages/server/assets/gatekeeperCore/typedefs/gatekeeper...
1
1
0
[{"id": "G0", "claim": "Refactor the Project.hasAccessToFeature resolver to use a switch statement with a `hideSpeckleBranding` case and a `default` case, and reference a constant instead of the 'hideSpeckleBranding' magic string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
specklesystems__speckle-server__4832
specklesystems/speckle-server
4,832
defect
11153701e4829b02599e774da9e7fd7d5e8d58bf
29fdf60cbe998093b9116084e4d0d0af7478207b
feat(workspaces): more mixpanel events to Backend
## Description & motivation Events in the FE are proven to be a bit unreliable ## Changes: - Moved Workspace Delete event to Backend - Added Events for Subscription: Cancelation and CancelationScheduled, for when we recieve the stipe event - Refactored event for `previousPlan` - Added basic tests around eve...
diff --git a/packages/frontend-2/components/settings/workspaces/General/DeleteDialog.vue b/packages/frontend-2/components/settings/workspaces/General/DeleteDialog.vue index 563d3b44eb8..7f6397b5648 100644 --- a/packages/frontend-2/components/settings/workspaces/General/DeleteDialog.vue +++ b/packages/frontend-2/compone...
4
1
0
[{"id": "G0", "claim": "The author is not comfortable that the new 'Subscription Updated' gatekeeper event carries workspace-plan information (workspaceId, status) instead of scoping the payload to subscription info only, conflating subscription occurrences with workspace-plan status.", "category": "design", "verdict":...
null
specklesystems__speckle-server__4843
specklesystems/speckle-server
4,843
defect
fedcf05497351830ef1d3c94ea0d78e287d850fc
a4a667303a2851e2b985e8e83916662167054bb1
feat: fileupload events
## Description & motivation We do not track any information in mixpanel regarding files that get uploaded from the viewer ## Changes: - added event bus to fileuploads
diff --git a/packages/server/modules/fileuploads/domain/events.ts b/packages/server/modules/fileuploads/domain/events.ts new file mode 100644 index 00000000000..fb5fa1e5d31 --- /dev/null +++ b/packages/server/modules/fileuploads/domain/events.ts @@ -0,0 +1,20 @@ +import { FileUploadRecordV2 } from '@/modules/fileupload...
2
2
0
[{"id": "G0", "claim": "The new fileuploads events module builds on FileUploadRecordV2, and there should not be two different types for the same DB schema definition.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The near-duplicate V2 file-upload insert...
null
specklesystems__speckle-server__4865
specklesystems/speckle-server
4,865
defect
9ec2554d25ff94fabc76f1195c17c5e3975490dc
48985d66ef205f42d11a0297e2347237ceffa0d8
feat(gatekeeper): track seat updates
## Description & motivation Improve mixpanel metrics around seat changes and user actions over them ## Changes: - Add metrics with more granual metrics around Editor seats: - *Seat purchases*: when customers start paying for them + how many - *Seat downscales*: when customers stop paying for them + how m...
diff --git a/packages/server/modules/gatekeeper/graph/resolvers/index.ts b/packages/server/modules/gatekeeper/graph/resolvers/index.ts index 14d9368b809..58ace84b6ac 100644 --- a/packages/server/modules/gatekeeper/graph/resolvers/index.ts +++ b/packages/server/modules/gatekeeper/graph/resolvers/index.ts @@ -44,7 +44,8 ...
1
1
1
[{"id": "G0", "claim": "The raw subscription data should not be leaked into the gatekeeper events; create an event payload that contains only the data the app really cares about, which are the paid/editor seat numbers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
specklesystems__speckle-server__5037
specklesystems/speckle-server
5,037
defect
cf6d997b93e36131a6f060f88ddcf5e3c7eb2360
bc8a0582e5a7b9086a0fb981d5658f149336bbad
feat(file imports): large file uploads now work on docker compose
## Description & motivation The S3 compatible blob storage may be addressed differently by the server and the user's browser, e.g. when running the server and blob storage in a docker network. For example, the server running in the docker network expects the blob storage to be at the docker compose service addres...
diff --git a/docker-compose-speckle.yml b/docker-compose-speckle.yml index 18d16e9316c..e8fb2b8c51c 100644 --- a/docker-compose-speckle.yml +++ b/docker-compose-speckle.yml @@ -32,6 +32,7 @@ services: NUXT_PUBLIC_BACKEND_API_ORIGIN: 'http://speckle-server:3000' NUXT_PUBLIC_LOG_LEVEL: 'warn' NUXT_RE...
3
1
1
[{"id": "G0", "claim": "Bucket existence is only ensured against the private storage; ensureStorageAccessFactory should also run on publicStorage to validate the public endpoint and avoid runtime errors when clients connect.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
specklesystems__speckle-server__5112
specklesystems/speckle-server
5,112
defect
add942f36df58e6ad6b1008060d1957c1747f1a8
feb1379ab3f8bbdce60ebb12d5436c730c99cfd7
fix: getting all user projects on deletion and user filter
## Changes - Created new repo method for iterating over projects via userId or workspaceId _(filtering them)_ - This fixes iterating over all projects on user delete and hitting the timeout
diff --git a/packages/server/modules/core/domain/streams/operations.ts b/packages/server/modules/core/domain/streams/operations.ts index e11205f83ae..7075e6ea6d1 100644 --- a/packages/server/modules/core/domain/streams/operations.ts +++ b/packages/server/modules/core/domain/streams/operations.ts @@ -103,6 +103,16 @@ ex...
2
1
0
[{"id": "G0", "claim": "The new GetExplicitProjects params should nest workspaceId and userId under a `filter` object so the type makes their purpose as a filter clearer, possibly as a pattern going forward.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
specklesystems__speckle-server__5165
specklesystems/speckle-server
5,165
defect
e3d0c5aab311c83fc60c2d7a221772cfc7da736c
28fef03f4bc6c88bf3228cdc8a8d3fa155765e9e
OL2(fix) Use BatchingQueue instead of BatchedPool as parsing download happens on main thread asap anyway
This pull request refactors the `ServerDownloader` class in the ObjectLoader2 module to improve logging, simplify the batching mechanism, and remove unused code. The key changes include replacing the `BatchedPool` implementation with a more streamlined `BatchingQueue`, adding a logger for better debugging, and removing...
diff --git a/packages/objectloader2/src/core/objectLoader2Factory.ts b/packages/objectloader2/src/core/objectLoader2Factory.ts index fc5f950d3ad..5cf5d71a706 100644 --- a/packages/objectloader2/src/core/objectLoader2Factory.ts +++ b/packages/objectloader2/src/core/objectLoader2Factory.ts @@ -66,7 +66,8 @@ export class ...
3
1
1
[{"id": "G0", "claim": "Verify the BatchingQueue.add() interface because calling it with two identical parameters (id, id) may be a misunderstanding of the API, and consider dropping the second parameter.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
specklesystems__speckle-server__5267
specklesystems/speckle-server
5,267
defect
685363292453ba50fd2f6ec222d9ab0325f6d653
54c10b36179c19b6f2b194918cb017acafa41924
feat: improved replicate_query logic
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/server/modules/multiregion/tests/e2e/serverAdmin.graph.spec.ts b/packages/server/modules/multiregion/tests/e2e/serverAdmin.graph.spec.ts index 818936ea3dc..915a8674fd2 100644 --- a/packages/server/modules/multiregion/tests/e2e/serverAdmin.graph.spec.ts +++ b/packages/server/modules/multiregion/tes...
1
1
0
[{"id": "G0", "claim": "Stop adding debug console.log statements to the code and default to a logger (logger.err or similar) instead, so console.logs are not left behind when testing or accidentally merged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
specklesystems__speckle-server__5303
specklesystems/speckle-server
5,303
defect
9e808b48ccf17b184805fabda9c308130c88df05
8e4367f67a38200607b4c26e7911595826d76eb9
feat(gatekeeper): add per workspace feature flags
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit will this have to...
diff --git a/packages/frontend-2/lib/common/generated/gql/graphql.ts b/packages/frontend-2/lib/common/generated/gql/graphql.ts index 3efda92a27f..a50b4889484 100644 --- a/packages/frontend-2/lib/common/generated/gql/graphql.ts +++ b/packages/frontend-2/lib/common/generated/gql/graphql.ts @@ -135,6 +135,11 @@ export typ...
2
2
2
[{"id": "G0", "claim": "The new workspace-plan upsert paths (cancelationScheduled/canceled/paymentFailed, and valid without a subscription) hard-code featureFlags to WorkspaceFeatureFlags.none, so a paymentFailed or similar Stripe callback would erase all per-workspace feature flags granted via the admin API — behaviou...
null
specklesystems__speckle-server__5308
specklesystems/speckle-server
5,308
defect
6982023dcaa0617324e568dca242f45ffb53d1d2
af4e0d8644989318def2704d8234709acfd71515
move acc integration to a per workspace feature access
in tandem with workspace feature flags. existing enterprise customers have been given access already to this feature.
diff --git a/packages/server/modules/gatekeeper/graph/resolvers/index.ts b/packages/server/modules/gatekeeper/graph/resolvers/index.ts index 61f4238bafd..8a87f5a8754 100644 --- a/packages/server/modules/gatekeeper/graph/resolvers/index.ts +++ b/packages/server/modules/gatekeeper/graph/resolvers/index.ts @@ -130,6 +130,...
1
1
0
[{"id": "G0", "claim": "The leftover '// TODO: move this to be a feature flag, once the feature flags have rolled out.' comment above the accIntegration case is no longer relevant now that this PR moves ACC integration to a per-workspace feature flag, and asks whether it should be removed.", "category": "documentation"...
null
specklesystems__speckle-server__5365
specklesystems/speckle-server
5,365
defect
73ae62eb981067fc2ad3ace0eb2f3710f2f44f90
0f8b278cfadc485d68d491b42522114f2bb05d21
feat(ci): reinstate multiregion tests
Reinstated multiregion tests Blocked by https://github.com/specklesystems/speckle-server/pull/5322
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a4f8a2965ca..452b431ba64 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -254,27 +254,8 @@ jobs: path: /tmp/**/*.log retention-days: 5 - docker-build-postgres-container: - runs-on: blac...
2
1
1
[{"id": "G0", "claim": "The pull request removed the `--health-retries 5` option from the postgres service containers in .github/workflows/tests.yml, leaving them without the configured health-check retries.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
specklesystems__speckle-server__5366
specklesystems/speckle-server
5,366
defect
3950a2ca2a25e55dc14e9bc5d9efcb1162eb5db0
94707874a6f2b2d0b76c84add8566250291976d0
feat: show ungrouped saved view group as disclosure
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/packages/frontend-2/components/viewer/saved-views/panel/Groups.vue b/packages/frontend-2/components/viewer/saved-views/panel/Groups.vue index 98c884eb413..b6ff95df47c 100644 --- a/packages/frontend-2/components/viewer/saved-views/panel/Groups.vue +++ b/packages/frontend-2/components/viewer/saved-views/pane...
1
1
1
[{"id": "G0", "claim": "When no ungrouped views exist yet, a newly appearing Ungrouped group shows up at the bottom of the All views tab panel (until a hard refresh) while it appears at the top in the My views panel.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
specklesystems__speckle-server__5401
specklesystems/speckle-server
5,401
defect
79ef564e1b6f9dce2f01df738a8fd223f3d01d67
86a71b3c4731c0014dceb5fdadb50ed1297656c9
fix(server/fileuploads): garbage collector should collect queued jobs which have reached max attempts
## Description & motivation Queued jobs which had reached max attempts were neither being picked up by a worker nor garbage collected. In this case they should be garbage collected, as they have already had sufficient attempts. ## Changes: <!--- - Item 1 - Item 2 --> ## To-do before merge: <!--- ...
diff --git a/packages/server/modules/backgroundjobs/repositories/backgroundjobs.ts b/packages/server/modules/backgroundjobs/repositories/backgroundjobs.ts index 2243f2ea230..1d934f2f9db 100644 --- a/packages/server/modules/backgroundjobs/repositories/backgroundjobs.ts +++ b/packages/server/modules/backgroundjobs/reposi...
1
1
1
[{"id": "G0", "claim": "In the new queued-jobs query, referencing attempt via BackgroundJobs.withoutTablePrefix.col.attempt does not get double quoted and is bound as an invalid value ($6); using the with-table-prefix accessor should make the column reference work.", "category": "correctness", "verdict": "supported", "...
null
specklesystems__speckle-server__5432
specklesystems/speckle-server
5,432
defect
770dc97d3c47cd6ff8f4540b3fda62cfb7af5208
55d1876a83a68b88710a27455b8e0b75557c6590
feat: basic notification listener structure
TODO: - [x] looping with tsx w/ for update - [x] paginated query - [x] comment seen multation - [x] take into account preferences - [x] move stream request as delayed handlers - [x] indexes - [x] add types - [x] add basic gql mutations and queries - [ ] add specs
diff --git a/packages/server/modules/accessrequests/index.ts b/packages/server/modules/accessrequests/index.ts index 2f536c31690..59e546bf246 100644 --- a/packages/server/modules/accessrequests/index.ts +++ b/packages/server/modules/accessrequests/index.ts @@ -2,7 +2,7 @@ import { db } from '@/db/knex' import { module...
3
3
1
[{"id": "G5", "claim": "The migration's timestamp columns should be set to lower precision (as in other migrations), because the default precision is too precise for JS and causes sorting issues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G7", "claim": "For bo...
null
specklesystems__speckle-server__5468
specklesystems/speckle-server
5,468
defect
b1df9e7a407d063d2f406303f2b40d9dde212926
b93e53e8f9a5e8007631f14a731d27f2e5625d10
feat(dashboards): create new dashboard share api
<!--- Provide a short summary in the Title above. Examples of good PR titles: * "Feature: adds metrics to component" * "Fix: resolves duplication in comment thread" * "Update: apollo v2.34.0" --> ## Description & motivation <!--- Describe your changes, and why you're making them. What benefit w...
diff --git a/mise.toml b/mise.toml index d4d178d5e63..1dc48f01272 100644 --- a/mise.toml +++ b/mise.toml @@ -3,3 +3,4 @@ node = "22.19.0" [env] SHARP_IGNORE_GLOBAL_LIBVIPS = 1 +FF_DASHBOARDS_MODULE_ENABLED=true diff --git a/packages/objectloader2/src/test/e2e.spec.ts b/packages/objectloader2/src/test/e2e.spec.ts in...
1
1
1
[{"id": "G0", "claim": "Fix the `dasbboardId` typo in the newly added DeleteDashboardShareInput GraphQL schema type - a misspelled field in the public schema should be corrected before it ships.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
specklesystems__speckle-server__5523
specklesystems/speckle-server
5,523
defect
a65ab90e6fc3c0c94f90c3a2858a15c67070f3e8
ba40b7b38566a6c61b02aa8c2b2e98a0049a2fa8
feat(savedViews): share presentations
## Description & motivation GQL mutation for presentation mode sharing embedding **_Pending_** - [x] delete flow - [x] canCreateToken query - [x] mutations for creating and revoking
diff --git a/packages/frontend-2/lib/common/generated/gql/graphql.ts b/packages/frontend-2/lib/common/generated/gql/graphql.ts index 8d1d8d81363..15205ff8a7c 100644 --- a/packages/frontend-2/lib/common/generated/gql/graphql.ts +++ b/packages/frontend-2/lib/common/generated/gql/graphql.ts @@ -3695,6 +3695,23 @@ export t...
4
4
3
[{"id": "G0", "claim": "The saved_view_group_api_tokens table does not need the projectId column, since it can be joined via the saved view group id.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Enable and disable mutations should be added for the save...
null
speechbrain__speechbrain__1739
speechbrain/speechbrain
1,739
defect
64c8fa951bdade7e28c81b37452331c61af7b548
33f783486f58b4f5f37d3ebaa1839e45c4a2e1f1
[FIX] Flush gradients and save memory for validation.
When `fit_train` is done we should call optimizer.zero_grad(set_to_none=True) , which should force to clear the gradients from memory. In the current version of the code, the `optimizer.zero_grad()` is the last call, which however store zeros in memory. This minor change should allow to use bigger batch during `_fit_...
diff --git a/recipes/AISHELL-1/ASR/CTC/train_with_wav2vec.py b/recipes/AISHELL-1/ASR/CTC/train_with_wav2vec.py index 89aa560721..f5f3b9c1ed 100644 --- a/recipes/AISHELL-1/ASR/CTC/train_with_wav2vec.py +++ b/recipes/AISHELL-1/ASR/CTC/train_with_wav2vec.py @@ -109,9 +109,7 @@ def fit_batch(self, batch): ...
3
3
1
[{"id": "G0", "claim": "Calling the new zero_grad helper in the recipes' fit_batch is unnecessary (gradients likely only need clearing at the end of a training epoch, and per-batch clearing might slow things down), so those calls in the recipes should be removed.", "category": "design", "verdict": "supported", "priorit...
null
speechbrain__speechbrain__1944
speechbrain/speechbrain
1,944
defect
e353e95ecc4580b4a79248d00bbb53850017cbf0
66867a1598b5ae9e0f07259f8afd98a83d5456e1
Add `parallel_map`, parallelize CommonVoice data preparation
Supersedes #1602. This adds a `speechbrain.utils.parallel` import which provides `parallel_map`. Its main goal is to allow transforming elements from a list using a function, in a way that is executed in parallel. Elements are guaranteed to be returned in order, which makes this generally fairly usable. By default, a p...
diff --git a/recipes/CommonVoice/common_voice_prepare.py b/recipes/CommonVoice/common_voice_prepare.py index c7583e3082..6cf0d6d0bc 100644 --- a/recipes/CommonVoice/common_voice_prepare.py +++ b/recipes/CommonVoice/common_voice_prepare.py @@ -8,13 +8,16 @@ Pooneh Mousavi 2022 """ +from dataclasses import dataclass ...
3
3
1
[{"id": "G0", "claim": "The queue-refill loop could use the same `if not _enqueue_job(): break` early-exit pattern as the initial queue fill above it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of the hardcoded 'magic' tqdm parameter...
null
speechbrain__speechbrain__1947
speechbrain/speechbrain
1,947
defect
edff43ddcd2b826a3b22bcd4c1071a56b1833872
bb846846b1af603facd584816efd5433020f798e
Add torch compilation features (torch.compile, and more!)
This is a very WIP proof-of-concept for compiling specific modules in a model through a `compile_module_keys` hyperparameter, which functions similarly to `compile_jit_keys` but uses PyTorch 2.0's `torch.compile` instead. **This is not intended to be reviewed at the moment,** but people can experiment with it. A ...
diff --git a/recipes/CommonVoice/ASR/transformer/train.py b/recipes/CommonVoice/ASR/transformer/train.py index 00f1f24b16..e069ac232c 100644 --- a/recipes/CommonVoice/ASR/transformer/train.py +++ b/recipes/CommonVoice/ASR/transformer/train.py @@ -249,7 +249,7 @@ def on_fit_start(self): """ # Run this ...
2
1
0
[{"id": "G0", "claim": "In interfaces.py the module dict is called self.mods while core.py calls it self.modules, and if there is no technical reason it should be renamed to match core.py.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "When bo...
null
speechbrain__speechbrain__2132
speechbrain/speechbrain
2,132
defect
dc0ec02d7df2f813e6b1e5ad063cc097aea526df
2fb247f2edd8a85c20fef78f62483210712f6086
Save the checkpoint folder and meta only on the main process
PR #2059 has an issue where checkpoint folders are created on all processes, this PR fixes the issue by saving them only on the main process.
diff --git a/speechbrain/utils/checkpoints.py b/speechbrain/utils/checkpoints.py index cc62de5f89..adfbb08dec 100644 --- a/speechbrain/utils/checkpoints.py +++ b/speechbrain/utils/checkpoints.py @@ -60,7 +60,7 @@ import warnings from packaging import version import speechbrain.utils._workarounds as __wa -from speech...
6
3
2
[{"id": "G0", "claim": "The broadcast of the checkpoint folder may not work when using multiple machines; process groups might be needed to communicate only within the group.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring for save_chec...
null
speechbrain__speechbrain__2158
speechbrain/speechbrain
2,158
defect
e3a859482f291d82122c9ff1b254cf76075704c0
525b74a204bbb36b7c6653d154f3b98fc966d1e4
Use torchrun instead of torch.distributed.launch
`torch.distributed.launch` is deprecated, `torchrun` is recommended. This simple change updates to make speechbrain compatible with `torchrun`. In addition, this PR removes the `--distributed_launch` flag by assuming if environment variables `RANK` and `LOCAL_RANK` arguments are set, the user wants to run the experi...
diff --git a/speechbrain/core.py b/speechbrain/core.py index 9ded4c0ce3..9bb42b26f5 100644 --- a/speechbrain/core.py +++ b/speechbrain/core.py @@ -208,13 +208,6 @@ def parse_arguments(arg_list=None): type=str, help="A file storing the configuration options for logging", ) - # if use_env = Fals...
2
2
2
[{"id": "G0", "claim": "The documentation in docs/multigpu.md should also be updated to match the switch from torch.distributed.launch to torchrun.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The command line flag distributed_launch should be r...
null
speechbrain__speechbrain__2404
speechbrain/speechbrain
2,404
defect
8c6f8ef9c8fb15ebced52bccd83bc42f1dde4550
1570ec0f6cb91dd7d14b99ae7882bb71d003c6d9
Make a ddp broadcast clone that handles main-process-only
Checkpointing with DDP uses a torch.distributed broadcast to communicate the folder for saving to all procs. However, this broadcast causes a freeze if checkpointing is called in a main-process-only section of the code. This PR addresses this by adding a `ddp_broadcast` function that should correctly handle the main-pr...
diff --git a/speechbrain/utils/checkpoints.py b/speechbrain/utils/checkpoints.py index c22b15616e..39fe6eba26 100644 --- a/speechbrain/utils/checkpoints.py +++ b/speechbrain/utils/checkpoints.py @@ -64,6 +64,7 @@ main_process_only, if_main_process, ddp_barrier, + ddp_broadcast, ) logger = logging....
1
1
0
[{"id": "G0", "claim": "The new ddp_broadcast function should have the standard SpeechBrain docstring sections documenting its arguments and return value.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
speechbrain__speechbrain__2426
speechbrain/speechbrain
2,426
defect
81484bab744af564f7a97fb864dd3412ad637284
6a4068c9a26074a89e2028336b89a9f7e3d2bd9a
Optimise masking for streaming (code from Samsung AI Center Cambridge)
## What does this PR do? This PR does two things: 1. divides by 10x 50x the time taken to generate masks for streaming training. The optimization is done by turning the loop over timesteps into a loop over chunk.s 2. Create unit tests for all the masking functions of the transformer. We had none, which is ... no ...
diff --git a/recipes/VoxPopuli/ASR/transducer/hparams/conformer_transducer.yaml b/recipes/VoxPopuli/ASR/transducer/hparams/conformer_transducer.yaml new file mode 100644 index 0000000000..ed91594f7b --- /dev/null +++ b/recipes/VoxPopuli/ASR/transducer/hparams/conformer_transducer.yaml @@ -0,0 +1,361 @@ +# #############...
3
3
1
[{"id": "G0", "claim": "The voxpopuli conformer_transducer.yaml hparams file should not be in this pull request (suspected leftover mistake from #2421).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 1539-line unittest file is far too long and s...
null
speechbrain__speechbrain__2464
speechbrain/speechbrain
2,464
defect
a61a0dd7659b9ffcc7e2bf55d12af51e2d4b8ab0
a95986e1da527fb95a6a6b750e2f1aabd5583030
Quaternion Networks - Bug Fixes & Improvements
## What does this PR do? This PR fixes several bugs which prevented the use of the quaternion network modules, and completes the collection by implementing avg and max pooling. No tests existed for quaternion networks. This PR introduces a minimum (and incomplete) set of tests. Several bugs were present in the exis...
diff --git a/speechbrain/nnet/quaternion_networks/q_CNN.py b/speechbrain/nnet/quaternion_networks/q_CNN.py index ec128b570a4..1d03e598b34 100644 --- a/speechbrain/nnet/quaternion_networks/q_CNN.py +++ b/speechbrain/nnet/quaternion_networks/q_CNN.py @@ -2,6 +2,7 @@ Authors * Titouan Parcollet 2020 + * Drew Wagner 2...
4
4
1
[{"id": "G0", "claim": "Renorming each quaternion component individually with torch.renorm may not be strictly equivalent to renorming the quaternion by its overall magnitude.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The QConv2d docstring typo...
null
speechbrain__speechbrain__2508
speechbrain/speechbrain
2,508
defect
cf1b0cf1d50facc0038cf3a101d5051c2dfb2c1f
65d320fe333b3cd6e956268526745a84cefa1396
Skip lazy imports when the caller is inspect.py
## What does this PR do? This avoids having certain inspect functions import our lazy modules when we don't want them to. `getframeinfo` in particular appears to do it, and this gets called by PyTorch at some point. IPython might also be doing it but autocomplete still seems to work. This does not appear to break...
diff --git a/speechbrain/utils/importutils.py b/speechbrain/utils/importutils.py index e0cdafabde..088171db38 100644 --- a/speechbrain/utils/importutils.py +++ b/speechbrain/utils/importutils.py @@ -6,6 +6,7 @@ """ import importlib +import inspect import os import sys import warnings @@ -43,9 +44,45 @@ def __ini...
1
1
0
[{"id": "G0", "claim": "Please also add a RAISES section to the `_ensure_module` docstring documenting the raised exception.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
speechbrain__speechbrain__2799
speechbrain/speechbrain
2,799
defect
5403c777c44c4b9734ca548ca7008bb946229975
522a629531a4fe9f9a6757ad3bcad231070c6352
Rotary Position Embedding (RoPE) for ASR (code from Samsung Cambridge)
## What does this PR do? This PR implements Rotary Position Embedding (RoPE) https://arxiv.org/pdf/2104.09864. It improves the training speech of LibriSpeech by 13%, while giving slightly better ASR results. RoPE is also useful for other datasets. We have tested it with Lirbiheavy, CommonVoice, and Voxpopuli. ...
diff --git a/recipes/LibriSpeech/ASR/transformer/README.md b/recipes/LibriSpeech/ASR/transformer/README.md index 4f6e37c963..7591993dbe 100644 --- a/recipes/LibriSpeech/ASR/transformer/README.md +++ b/recipes/LibriSpeech/ASR/transformer/README.md @@ -37,6 +37,7 @@ Following table contains whisper-finetuning results for...
13
11
1
[{"id": "G0", "claim": "Set the recipe's default precision to fp16 instead of fp32.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RoPE should be adopted in the main conformer_large.yaml recipe rather than adding a separate conformer_large_rope.yaml.", "...
null
speechbrain__speechbrain__2828
speechbrain/speechbrain
2,828
defect
31e007e9a5de7a2d36d586d970deec95ff949514
3f6fa3a2e3678352a6dce20414f1b73709610589
Create `FetchConfig` for standardizing use of `fetch`
Code for calling `fetch` uses a variety of subsets of the actual available options for `fetch`. This simplifies and standardizes the use of `fetch` by putting the configuration options in a single place, a `FetchConfig` dataclass. This should probably sit in `develop` for awhile before releasing a new version to ensure...
diff --git a/speechbrain/inference/interfaces.py b/speechbrain/inference/interfaces.py index 3ee74981ac..0c449b406c 100644 --- a/speechbrain/inference/interfaces.py +++ b/speechbrain/inference/interfaces.py @@ -30,7 +30,7 @@ from speechbrain.utils.data_pipeline import DataPipeline from speechbrain.utils.data_utils im...
6
5
2
[{"id": "G0", "claim": "The mutable default `fetch_config=FetchConfig()` is evaluated once at definition time, so calls that do not pass `fetch_config` share one instance whose mutated attributes would propagate everywhere; the reviewer asks to default to `None` and build a fresh `FetchConfig()` inside the function ins...
null
speechbrain__speechbrain__2853
speechbrain/speechbrain
2,853
defect
77242168bb34eb1cba7c242a34ffcc2933a990b6
29fbe54e365982004b4e03d9b2018aa640f6ac50
Better documentation and test bleu metric
This PR documents better our BLEU metric class and also adds a unit test for it.
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 889cbc1fc2..7557602fe4 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -29,7 +29,7 @@ jobs: - name: Full dependencies run: | pip install uv - ...
1
1
0
[{"id": "G0", "claim": "The docstring should not describe max_ngram_order as \"(optional)\" since optional implies None is a valid input; it should state the default value instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
speechbrain__speechbrain__2855
speechbrain/speechbrain
2,855
defect
77242168bb34eb1cba7c242a34ffcc2933a990b6
c437a81f17494cc48f03cbd2bcaa2e93d4a0cde1
Solves #2846 Refactor run_opts into a @dataclass
## What does this PR do? <!-- Convert `run_opts` dict to dataclass for easier maintanance --> Fixes #2846
diff --git a/speechbrain/__init__.py b/speechbrain/__init__.py index a4859491b8..d0fe2c778f 100644 --- a/speechbrain/__init__.py +++ b/speechbrain/__init__.py @@ -3,14 +3,15 @@ import os -from .core import Brain, Stage, create_experiment_directory, parse_arguments +from .core import Brain, Stage, create_experiment...
5
5
4
[{"id": "G0", "claim": "Brain and Pretrained should accept a RunOptions object as an argument instead of calling RunOptions.from_command_line_args() inside their __init__.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "from_command_line_args() should be ...
null
speechbrain__speechbrain__2867
speechbrain/speechbrain
2,867
defect
309130b8c3bdc120c177ccdb75785601eb4c1a33
e23d8beb0cb3ac6023bc8a6c4b89d12bd94ab14b
Update requirements.txt
It looks like there is an incompatibility in the binary of numpy and scipy (if we restrict scipy to be <1.13.0). I'm not sure why that was introduced, but it is now causing issues. To replicate: https://colab.research.google.com/drive/11-6UBSSCjMOKJNJuCY2AwOtj8cnZ9A8F?usp=sharing
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 7557602fe4..7e07772969 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ...
5
1
0
[{"id": "G0", "claim": "Since transformers pins scipy<1.13, the temporary solution should be to ignore all the transformers tests in CI.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The torch minimum version in requirements.txt should be pinned to 2...
null
speechbrain__speechbrain__2894
speechbrain/speechbrain
2,894
defect
9e068c4ef065aea1f9e9858f92d5c0052766f6af
6eb68282324557a6773e11aecd23580a340cc944
Add test for various length mask functions (code from Samsung, AI Center, Cambridge)
This tests five different functions in SpeechBrain that do essentially the same thing. ## What does this PR do? Test functions that turn a list of lengths into a mask: * speechbrain.dataio.dataio.length_to_mask * speechbrain.lobes.models.transformer.Transformer.get_mask_from_lengths * speechbrain.nnet.losses.g...
diff --git a/speechbrain/nnet/losses.py b/speechbrain/nnet/losses.py index cfefd4da99..5e78646344 100644 --- a/speechbrain/nnet/losses.py +++ b/speechbrain/nnet/losses.py @@ -917,7 +917,7 @@ def compute_length_mask(data, length=None, len_dim=1): mask = torch.ones_like(data) if length is not None: len...
2
2
0
[{"id": "G0", "claim": "The default eps of the length-mask functions was changed from 1e-8 to 1e-5 without a well-argued choice, and 1e-5 may be too large a margin for long tensors (e.g. a length around 1e5), so a better-justified value should be chosen.", "category": "correctness", "verdict": "supported", "priority": ...
null
speechbrain__speechbrain__2922
speechbrain/speechbrain
2,922
defect
f769926131439d90113869d31146be27a57f0f7f
e9102803192736afc9ce65c2768f08d4190ef5de
Replace deprecated torch.cuda.amp.custom_fwd with torch.amp.custom_fw
## What does this PR do? This pull request updates the `fwd_default_precision` decorator in `autocast.py` to replace the deprecated `torch.cuda.amp.custom_fwd` with the recommended `torch.amp.custom_fwd`, including the required argument `device_type='cuda'`. This change prevents future compatibility issues and su...
diff --git a/speechbrain/utils/autocast.py b/speechbrain/utils/autocast.py index 070fadc680..71c9ea97ef 100644 --- a/speechbrain/utils/autocast.py +++ b/speechbrain/utils/autocast.py @@ -137,7 +137,7 @@ def fwd_default_precision( ): """Decorator for forward methods which, by default, *disables* autocast and ...
1
1
1
[{"id": "G0", "claim": "The PR should be adapted to support other devices such as cpu, so that fwd_default_precision works for both cpu and cuda instead of only cuda.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
speechbrain__speechbrain__2937
speechbrain/speechbrain
2,937
defect
c75ab5489431fd0a2a7d21160bc37677801cb506
ea44129f1a4527007d4a16822eb9f7b095a002a4
Saveable Generator: initial import
## What does this PR do? This PR improves reproducibility for scenarios where training or inference can be highly non-deterministic, especially in cases where the selection of data, layers to train, etc is done randomly and it is unreasonable to expect training to complete in a single run. It provides an opt-in w...
diff --git a/speechbrain/utils/repro.py b/speechbrain/utils/repro.py new file mode 100644 index 0000000000..b196bdcb9a --- /dev/null +++ b/speechbrain/utils/repro.py @@ -0,0 +1,130 @@ +"""Reproducibility tools + +Author: + * Artem Ploujnikov 2025 +""" + +import re + +import torch + +import speechbrain as sb +from sp...
2
2
1
[{"id": "G0", "claim": "The SaveableGenerator docstring is incomplete: the 'If not provided,' sentence is unfinished, there is no example, and the generators argument should be documented as a Mapping[str, Generator] (or similar) explaining how the mapping is defined rather than 'list'.", "category": "documentation", "...
null
speechbrain__speechbrain__2994
speechbrain/speechbrain
2,994
defect
c6d2a8b1836dd86d06404c67d211e518a82fc407
a81d0792f084ffa74733b43cd6f9dcec39d7cf88
fix speed perturb inversion
## What does this PR do? This PR fixes the inverted speed perturb logic, updates the unit tests, and replaces the incorrect "expected" output for the integration tests. <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies...
diff --git a/speechbrain/augment/time_domain.py b/speechbrain/augment/time_domain.py index da7ab9b1b9f..e528fa1da96 100644 --- a/speechbrain/augment/time_domain.py +++ b/speechbrain/augment/time_domain.py @@ -8,6 +8,7 @@ Authors: - Peter Plantinga (2020) - Mirco Ravanelli (2023) +- Gianfranco Dumoulin Bertucci (2025...
1
1
1
[{"id": "G0", "claim": "Computing new_freq as int(self.orig_freq / (speed / 100)) can produce a wrong frequency through floating-point truncation (e.g. orig_freq=44100, speed=112 gives 39374.99999999999 -> 39374 instead of 39375), and the reviewer asks to prevent these rounding errors, suggesting round(self.orig_freq *...
null
speechbrain__speechbrain__2999
speechbrain/speechbrain
2,999
defect
b7afd0350a9f6acaf8aa6dcd7dcffec25fa82e30
fe39082e1c5c528be4cfd6d4aceb1c3eca9c549c
fix issue with --arg value and --arg=value
Refactor argument handling to support both '--arg=value' and '--arg value' formats. Current SB does not support overriding arg by doing `--arg value`, it does only works when doing `--arg=value` which is a regression from before.
diff --git a/speechbrain/utils/run_opts.py b/speechbrain/utils/run_opts.py index b6444a4ca3..43cd182bc2 100644 --- a/speechbrain/utils/run_opts.py +++ b/speechbrain/utils/run_opts.py @@ -259,17 +259,23 @@ def from_command_line_args(cls, arg_list=None): if action.dest != "help": for opt in ...
1
1
1
[{"id": "G0", "claim": "The PR's changed argument-handling logic for both --arg=value and --arg value formats is untested; add a test (or at least a doctest check) covering both formats.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
speechbrain__speechbrain__3005
speechbrain/speechbrain
3,005
defect
637f0a5556b9f8c88ecca3cf14ecb10b6ac0463f
df25c865b6c5877ca842040b82920429990280ad
Caching: add compression + filename + closing/loading
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR adds the support of a compression backend for HD5, as well as the possibility of modifying ...
diff --git a/speechbrain/integrations/hdf5/cached_item.py b/speechbrain/integrations/hdf5/cached_item.py index e4947ef1ed..8ef0e2703c 100644 --- a/speechbrain/integrations/hdf5/cached_item.py +++ b/speechbrain/integrations/hdf5/cached_item.py @@ -1,7 +1,8 @@ """A pipeline for caching data transformations into hdf5 fil...
6
5
1
[{"id": "G0", "claim": "The new pickle/unpickle functionality (__getstate__ and __setstate__) is not covered by tests; tests should verify pickling, closing during pickling, reopening with the correct mode, and reading cached data after unpickling.", "category": "testing", "verdict": "supported", "priority": "P2", "sco...
null
speechbrain__speechbrain__3008
speechbrain/speechbrain
3,008
defect
fac03671bf9c3a8706eaf82d850be9bb987ccf97
e64a7e4645173ffd33a0cee12232214bbecc4fbb
Implement per-key padding configuration in PaddedBatch
Added support for per-key padding configuration in PaddedBatch. ## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Allow keys to have specific padd...
diff --git a/speechbrain/dataio/batch.py b/speechbrain/dataio/batch.py index 4923309ccf..90cc8ff7fb 100644 --- a/speechbrain/dataio/batch.py +++ b/speechbrain/dataio/batch.py @@ -45,6 +45,12 @@ class PaddedBatch: two tensors: the padded data, and another tensor for the data lengths. padding_kwargs : dict ...
2
2
1
[{"id": "G0", "claim": "Mutable default arguments (empty dicts) for padding_kwargs and per_key_padding_kwargs can lead to unexpected behavior if modified, since the same dict instance would be shared across calls; use None as default and initialize inside the function.", "category": "correctness", "verdict": "supported...
null
speechbrain__speechbrain__3025
speechbrain/speechbrain
3,025
defect
0202ec539e63ec66240aa726fabeb09f1d90071a
7b8f4ffa899f5acd702b201c846974c81e2f9e96
add tests + doc + fix recipes + new get_available_cpu_count fn
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Based on @asumagic's suggestion: fixes #2972. We now can get a more reliable CPU device count. <...
diff --git a/docs/experiment.md b/docs/experiment.md index 75f807d8f1..5c5b872698 100644 --- a/docs/experiment.md +++ b/docs/experiment.md @@ -128,6 +128,22 @@ These changes are applied in a standardized location, [`quirks.py`](https://gith The `SB_DISABLE_QUIRKS` environment variable lets you disable quirks easily....
5
4
2
[{"id": "G0", "claim": "The Python 3.13+ branch calling os.process_cpu_count() should be wrapped in try-except AttributeError so the code falls through to the next detection method if the function is unavailable in some Python builds.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "intr...
null
speechbrain__speechbrain__3028
speechbrain/speechbrain
3,028
defect
39ef3587c9573e2649376a867164b279e5d68b3f
199b654de6d29fb9ef9af84bee8af61ba2f2b9a7
Remove CTC CUDA + Move transducer loss in integrations
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR aims at: 1. removing the CTC CUDA beam searcher support within speechbrain as the `torcha...
diff --git a/conftest.py b/conftest.py index 12dac5e901..2de1abca7e 100644 --- a/conftest.py +++ b/conftest.py @@ -21,7 +21,3 @@ def pytest_generate_tests(metafunc): "speechbrain/lobes/models/fairseq_wav2vec.py", "speechbrain/lobes/models/kmeans.py", ] -try: - import numba # noqa: F401 -except ModuleNotF...
9
4
0
[{"id": "G0", "claim": "The new `ImportError` in `speechbrain/integrations/numba/__init__.py` is raised without chaining the original exception, which makes debugging missing/partial numba installs harder; it should be `raise ImportError(MSG) from e`.", "category": "maintainability", "verdict": "supported", "priority":...
null
spegel-org__spegel__1003
spegel-org/spegel
1,003
defect
35144d99a0c0d5f52fee63ae72d619c1cde546a9
bf5b7c0001ae990daecb4b017e1820196d57d596
feat: add support for filtering registries and tags
fixes #997
diff --git a/.gitignore b/.gitignore index 0f2b7e91b..110025566 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ go.work # Added by goreleaser init: dist/ + +# IDEs +.vscode/ +.idea/ \ No newline at end of file diff --git a/charts/spegel/README.md b/charts/spegel/README.md index b9e121f5f..fa44eb8ea 10064...
4
4
2
[{"id": "G0", "claim": "Keep the original resolve-latest-tag behavior for the time being so that existing use cases do not break, and have it run first before any registry filter.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Compile the filter reg...
null
spegel-org__spegel__1036
spegel-org/spegel
1,036
defect
bf5c9af8a17fbea622a79df9d1a96e6219708c4c
af93ac70700e48731f7d7f226ffeaf792aa0448e
Remove is latest check in favor of registry filter
This change removes the is latest check from both the state and registry. It leaves the flag which will instead add a filter. The flag will also be removed after the next release.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a8ab91..6435cac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +- [#1036](https://github.com/spegel-org/spegel/pull/1036) Remove is latest check in favor of...
1
1
1
[{"id": "G0", "claim": "Removing registry.WithResolveRetries(args.MirrorResolveRetries) from registryCommand means the --mirror-resolve-retries flag is no longer honored, and this removal does not seem to be related to removing the latest check.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
spegel-org__spegel__1054
spegel-org/spegel
1,054
defect
d9e1e2eceb6352145c3772a3120bee2f7e3798ed
4b4f24bb5b47bb98d0ad3bd89ec10201685b48f4
Extended the debug web ui to provide more info
Added more support to the debug stats handler to provide more information to the UI including the current peers address, list of peers and their addresses and the available images on the current peer. <img width="1494" height="752" alt="Screenshot 2025-10-23 at 10 41 07 PM" src="https://github.com/user-attachments/a...
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 58b0ef2b9..ee8846c6f 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -110,6 +110,15 @@ button:hover { background-color: #164577; } + + a { + color: #1d5a9a; + text-decoration...
3
3
1
[{"id": "G0", "claim": "The Local Address stat value sets a different font size (18px) than the other stat values for no explained reason, and should not.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The debug web should be passed the p2p rout...
null
spegel-org__spegel__1196
spegel-org/spegel
1,196
defect
cb0feb05a7f65ca33f87cdf2f877df6e471d34fa
87b68ab75b25a7a3b3631496db6d3a9f51fa1f58
Persist Peer ID between restarts when running in Kubernetes
## Summary Add optional persistent storage for the P2P peer identity, allowing the peer ID to remain stable across pod restarts on the same node. Closes #20 ## Problem Currently, every time a Spegel pod restarts, it generates a new `libp2p` private key, resulting in a new peer ID. This causes unnecessary churn in...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a2271e8de..8f43113a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic ...
8
7
0
[{"id": "G0", "claim": "Remove the newly added CHANGELOG.md entry, since the changelog has been removed upstream and rebasing will drop it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Set the data directory with a --data-dir flag instead of the...
null
spegel-org__spegel__306
spegel-org/spegel
306
defect
f6d612a98231379e6c8a0479cfd49a048231493f
b82752913acf33d844bc001893d3ed7078148ca4
Realign the structs in attempt to minimise memory usage.
Results: ``` spegel/internal/routing/bootstrap.go:20:29: struct with 88 pointer bytes could be 64 spegel/internal/routing/mock.go:8:17: struct with 32 pointer bytes could be 8 spegel/pkg/oci/containerd.go:371:15: struct with 24 pointer bytes could be 16 spegel/internal/registry/registry.go:38:15: struct with 64 po...
diff --git a/.golangci.yaml b/.golangci.yaml index 30860e8d..44341a5e 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -8,4 +8,5 @@ linters: - staticcheck - unused - misspell - - testifylint \ No newline at end of file + - testifylint + - fieldalignment \ No newline at end of file diff --git ...
3
2
0
[{"id": "G0", "claim": "fieldalignment should be enabled as a govet setting under linters-settings instead of being added as a standalone linter in .golangci.yaml.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "fieldalignment should be enabled in th...
null
spegel-org__spegel__424
spegel-org/spegel
424
defect
2537c996d9f49b6af3d050bc7e9fafdffa51bf2f
28ee1d221ee058789ae6909ff5d281e8eb993372
Add option to append mirror configuration instead of overwriting
This change adds a new option to append to existing mirror configuration, which is useful when using Spegel together with other mirrors. The appending will be done to the contents in the backup directory. As files are only backed up the first time Spegel runs it means that the original mirror configuration will be p...
diff --git a/charts/spegel/README.md b/charts/spegel/README.md index 385f0bf88..fbc960b07 100644 --- a/charts/spegel/README.md +++ b/charts/spegel/README.md @@ -83,6 +83,7 @@ spec: | serviceMonitor.labels | object | `{}` | Service monitor specific labels for prometheus to discover servicemonitor. | | serviceMonitor.s...
2
2
0
[{"id": "G0", "claim": "Log when an existing Containerd mirror configuration is appended to instead of created, to make the two cases clear to the end user.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restructure the backup loading in AddMirr...
null
spencerwi__Either.java__10
spencerwi/Either.java
10
defect
5f305853f8d225ad684c36a9184ae841fb76aa86
2b0aec718b4a55aa9283ade5fc7f889b546db15e
Added EitherCollectors
Hi - perhaps you'd be interested in pulling this addition of Collectors to your Either project. Basically the EitherCollectors class adds a left and a right biased collectors for streams of Either<> objects: ``` List<Either<String,Integer>> listOfEithers = ...; Either<List<String>,List<Integer>> eitherList = li...
diff --git a/src/main/java/com/spencerwi/either/EitherCollectors.java b/src/main/java/com/spencerwi/either/EitherCollectors.java new file mode 100644 index 0000000..e9c4901 --- /dev/null +++ b/src/main/java/com/spencerwi/either/EitherCollectors.java @@ -0,0 +1,100 @@ +package com.spencerwi.either; + +import java.util.*...
2
2
0
[{"id": "G0", "claim": "Move an explanation of what a left-biased or right-biased list is into the factory-method javadoc blocks, since those are the entry points for library users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should in...
null
spencerwi__Either.java__7
spencerwi/Either.java
7
defect
b54cf5941e62239bca542f8de484c57f203cb3ba
272b0921724ffa1beeabf281a7f274a5586aed19
Either map and flatmap implementation
I wish I could chain multiple either transformation Example: ``` Input i = new Input(); Either<Error, Final> result = eitherTransformation1(input) .flatMap(this::eitherTransformation1) .map(this::transformation2) ... .flatMap(this::eitherTransformationN) ``` Why that? I would like have code which ...
diff --git a/src/main/java/com/spencerwi/either/Either.java b/src/main/java/com/spencerwi/either/Either.java index e1f5197..112b490 100644 --- a/src/main/java/com/spencerwi/either/Either.java +++ b/src/main/java/com/spencerwi/either/Either.java @@ -29,6 +29,18 @@ public static <L,R> Either<L,R> either(Supplier<L> leftS...
4
4
2
[{"id": "G0", "claim": "The PR should split the single-branch `map`/`flatMap` into `mapLeft`/`mapRight` methods and give `flatMap` both/left/right variations.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests in EitherFlatMapTest should be moved i...
null
spencerwi__Either.java__9
spencerwi/Either.java
9
defect
224fe46d3ff784b0a6754a2d99af5026be45ee8e
8064c55cff95ab4e789d8b05d8720ba65ffb4e57
OrElse family function
Modeled on Vavr I started to use the library in my application and I realized that `Either.getRight()` cannot throw detailed exception. Then I implemented `getRightOrElseThrow()` and finally whole family **\*OrElse\*** methods. BTW, comparing to Vavr, killer feature is method `run()` - Vavr Either does not have ...
diff --git a/src/main/java/com/spencerwi/either/Either.java b/src/main/java/com/spencerwi/either/Either.java index 112b490..d9d5951 100644 --- a/src/main/java/com/spencerwi/either/Either.java +++ b/src/main/java/com/spencerwi/either/Either.java @@ -41,6 +41,22 @@ public <R2> Either<L,R2> mapRight(Function<R,R2> transfo...
4
4
2
[{"id": "G0", "claim": "Accepting a Function<R,X>/Function<L,X> to build the thrown exception is weird and confusing; the Function-based getLeftOrElseThrow and getRightOrElseThrow overloads should be dropped so only the Supplier-based ones remain.", "category": "design", "verdict": "supported", "priority": "P1", "scope...
null
spesmilo__electrum__10011
spesmilo/electrum
10,011
defect
bbac398d1b6c1be2f26448467ca275bc7b98b8e3
f2ab72a29b70a4bdc91e4b78bcb7fc475eb89c6e
i18n: syntax-check translations at runtime
We often call str.format() on translated strings. E.g. `_("time left: {} seconds").format(t1)` If the translated string has a different format syntax, this can raise at runtime. This PR adds some runtime checks that try to ensure the source string and the translated string have a similar format syntax. If the chec...
diff --git a/electrum/i18n.py b/electrum/i18n.py index fc2e68e6adee..80e8a7baf0fe 100644 --- a/electrum/i18n.py +++ b/electrum/i18n.py @@ -22,7 +22,9 @@ # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import functools...
1
1
0
[{"id": "G0", "claim": "A log message would be useful when a translation is rejected as a malformed format string, so the incorrect string can be searched for and fixed on crowdin.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spesmilo__electrum__10016
spesmilo/electrum
10,016
defect
250fdaefceae7b28d2976540383ee0037532d8fb
3cb0edefa0ebf1f976e43a80e427bc1059a6f080
wizard: qml: separate passphrase input from seed input
* Separates the passphrase input from the seed input in the qml gui (similar to the Qt GUI) * Only show the infotext in `WCHaveSeed` if seed format is not electrum, and remove a sentence from the bip39 infotext to make the screen less filled * move the passphrase input flow from the Qt wizard to the Abstract Wizard s...
diff --git a/electrum/gui/qml/components/wizard/WCConfirmExt.qml b/electrum/gui/qml/components/wizard/WCConfirmExt.qml new file mode 100644 index 000000000000..783e2601d14a --- /dev/null +++ b/electrum/gui/qml/components/wizard/WCConfirmExt.qml @@ -0,0 +1,85 @@ +import QtQuick +import QtQuick.Layouts +import QtQuick.Co...
7
6
0
[{"id": "G0", "claim": "The Flickable's two-column GridLayout in the new WCConfirmExt.qml and WCEnterExt.qml wizard pages can be simplified to a ColumnLayout, since the fields span the full width anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null