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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
triton-inference-server__server__8097 | triton-inference-server/server | 8,097 | defect | 6afaed7c4f0dbd83d59627a7f546baaf527fb856 | 4a3bebb338b4d1e0cd0be161426813ec454d2a48 | test: Add tests cancelling BLS decoupled request in Python backend | #### What does the PR do?
Add tests cancelling BLS decoupled request in Python backend.
#### Checklist
- [x] PR title reflects the change and is of format `<commit_type>: <Title>`
- [x] Changes are described in the pull request.
- [x] Related issues are referenced.
- [x] Populated [github labels](https://docs.g... | diff --git a/qa/L0_backend_python/decoupled/decoupled_test.py b/qa/L0_backend_python/decoupled/decoupled_test.py
index 45ce370fb1..49fa5d2101 100755
--- a/qa/L0_backend_python/decoupled/decoupled_test.py
+++ b/qa/L0_backend_python/decoupled/decoupled_test.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright 2022-2... | 11 | 10 | 2 | [{"id": "G0", "claim": "The 'asyncio' import added at the top of qa/L0_backend_python/decoupled/models/decoupled_bls_async_cancel/1/model.py is never used.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add two more tests in addition to the two ... | null |
triton-inference-server__server__8170 | triton-inference-server/server | 8,170 | defect | ff4bd4ef56ca431d39e7618b866ebb57458eb98e | 44870d2ce0cdafc7a4c19f528ae80ab6dd5eede0 | Fix: Update handling of shared mem integer values | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
Added an additional check to prevent the value of byte_size and offset from overflowing and passing the following memory bounds check.
#### Checklist
- [x] PR title refl... | diff --git a/qa/L0_shared_memory/shared_memory_test.py b/qa/L0_shared_memory/shared_memory_test.py
index 8f3c2fbb52..d73973139e 100755
--- a/qa/L0_shared_memory/shared_memory_test.py
+++ b/qa/L0_shared_memory/shared_memory_test.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright 2019-2024, NVIDIA CORPORATION & AF... | 1 | 1 | 0 | [{"id": "G0", "claim": "The integer-overflow error message should include the values of byte_size + offset and SIZE_MAX.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
triton-inference-server__server__8174 | triton-inference-server/server | 8,174 | defect | 5a2aaba23d87bd2411a093fa5aa659249378b10f | a96f0e18916688b0c5f3dab558ddd7ee2d37e4ee | fix: Update handling of large array sizes | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds an additional parameter to customize the maximum size allocatable by incoming requests. This can be useful in limiting very large input arrays
#### Checklist
... | diff --git a/src/command_line_parser.cc b/src/command_line_parser.cc
index 577f6a50d5..3c39277892 100644
--- a/src/command_line_parser.cc
+++ b/src/command_line_parser.cc
@@ -298,6 +298,7 @@ enum TritonOptionId {
OPTION_HTTP_ADDRESS,
OPTION_HTTP_THREAD_COUNT,
OPTION_HTTP_RESTRICTED_API,
+ OPTION_HTTP_MAX_INPU... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request's new large-array/size-limit handling needs a test case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new --http-max-input-size option should be validated so negative and zero values are rejected.", "catego... | null |
triton-inference-server__server__8220 | triton-inference-server/server | 8,220 | defect | 550f64b21f039fd88fb3041ebb419c7edde9679e | 7b4972fd708b0602c516de95f76d68015fb9a53e | fix: Improve cancellation handling for gRPC non-decoupled inference | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR is intended to fix the following issue:
- In gRPC inference for a non-decoupled model, where the response and final flag are sent separately, if the client cancels t... | diff --git a/qa/L0_decoupled/decoupled_test.py b/qa/L0_decoupled/decoupled_test.py
index d7bc59f5c7..edb5d8c48a 100755
--- a/qa/L0_decoupled/decoupled_test.py
+++ b/qa/L0_decoupled/decoupled_test.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright 2020-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "The local boolean tracking the FINAL flag should be named is_final_response instead of is_complete.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Revert the change that moved EraseInflightState out of the cancellation bl... | null |
triton-inference-server__server__8226 | triton-inference-server/server | 8,226 | defect | b343cc0a6c895385331717cb00f5b075c112da06 | ccc5033df2f2fe718e83c60099f92d7307bb3c89 | fix: Support max_completion_tokens option in OpenAI frontend | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
- Added support for `max_completion_tokens`.
- Did not remove `max_tokens` support for the time being to maintain backward compatibility.
- Added test cases.
#### Ch... | diff --git a/python/openai/README.md b/python/openai/README.md
index 08d1780c84..6bc9e79a26 100644
--- a/python/openai/README.md
+++ b/python/openai/README.md
@@ -216,7 +216,7 @@ completion = client.chat.completions.create(
},
{"role": "user", "content": "What are LLMs?"},
],
- max_tokens=256,... | 3 | 3 | 1 | [{"id": "G0", "claim": "The parametrize key `param_key` should be renamed to something more intuitive like `max_tokens_key`, since `payload[param_key] = 1` is not clear at a glance about which kind of param it is for.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
triton-inference-server__server__8264 | triton-inference-server/server | 8,264 | defect | 30e20cb9084233e1d87267d7c5c6f8a15cc57a99 | 498ad7abdc4dbec9793db20ee3c3d2310a766e07 | feat: Add support for `usage` in the OpenAI frontend vLLM backend | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
- Enabled `usage` support by default for non-streaming requests
- Added support for `streaming options` and `usage` in streaming requests
- Implemented test cases to valida... | diff --git a/python/openai/README.md b/python/openai/README.md
index 3d770caa2e..c5e05cee90 100644
--- a/python/openai/README.md
+++ b/python/openai/README.md
@@ -98,7 +98,7 @@ curl -s http://localhost:9000/v1/chat/completions -H 'Content-Type: application/
```json
{
- "id": "cmpl-6930b296-7ef8-11ef-bdd1-107c6149c... | 4 | 3 | 1 | [{"id": "G0", "claim": "The vLLM restriction on `stream_options.include_usage` should be enforced in request validation so that the TRT-LLM backend gets a raised exception instead of a silent backend check inside the streaming iterator.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
triton-inference-server__server__8267 | triton-inference-server/server | 8,267 | defect | 30e20cb9084233e1d87267d7c5c6f8a15cc57a99 | 54b7c45b1c88369ed8845ce1e27d5eb976b4f016 | fix: Improve data type validation for classification | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR is intended to avoid division by zero when `TRITONSERVER_DataTypeByteSize(datatype)` returns zero for `BYTES` data type.
#### Checklist
- [x] PR title reflects th... | diff --git a/qa/L0_parameters/class_count_test.py b/qa/L0_parameters/class_count_test.py
new file mode 100755
index 0000000000..9e49ae4ae2
--- /dev/null
+++ b/qa/L0_parameters/class_count_test.py
@@ -0,0 +1,105 @@
+#!/usr/bin/env python3
+
+# Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+#
+# R... | 2 | 1 | 0 | [{"id": "G0", "claim": "The model files in qa/L0_parameters/test.sh should be copied without hardcoded relative paths, ideally via a variable (e.g. SOME_DIR/PYTHON_MODELS_DIR) holding a default location that can be overwritten if needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
triton-inference-server__server__8273 | triton-inference-server/server | 8,273 | defect | 152eb3190c9b05c365e2fc3956823f930c1482f9 | 92ecad0acd54f288b00e6a8909dd833d8010ac76 | fix: Improve validation for system shared memory register | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR aims to prevent users from registering SHM keys that start with the prefix `triton_python_backend_shm_region_` thereby blocking their access to the internal SHM.
#... | diff --git a/qa/L0_shared_memory/shared_memory_test.py b/qa/L0_shared_memory/shared_memory_test.py
index 146025cf26..6bae7b6aa8 100755
--- a/qa/L0_shared_memory/shared_memory_test.py
+++ b/qa/L0_shared_memory/shared_memory_test.py
@@ -509,6 +509,24 @@ def test_python_client_leak(self):
"client memory usage... | 2 | 2 | 1 | [{"id": "G0", "claim": "The invalid-key error message should read \"as the key contains the reserved prefix\" instead of \"as it uses the reserved prefix\", in both the server error in src/shared_memory_manager.cc and the regex asserted in the test.", "category": "documentation", "verdict": "supported", "priority": "P3... | null |
triton-inference-server__server__8330 | triton-inference-server/server | 8,330 | defect | e672c28586265dc7d77ded8474285db489c5a137 | 8e07abf8b5e4d49d215b3b91b211198cf7abd5f3 | fix: Proper handling of system shm register offset | #### What does the PR do?
When calling `mmap` system call, the returned starting address is starting at the shm register offset (must be multiples of page size) already. Later the register offset is added to the starting address again and raises out-of-bound write issue.
#### Checklist
- [x] PR title reflects the ... | diff --git a/qa/L0_shared_memory/shared_memory_test.py b/qa/L0_shared_memory/shared_memory_test.py
index 35667aacfa..097efe15c9 100755
--- a/qa/L0_shared_memory/shared_memory_test.py
+++ b/qa/L0_shared_memory/shared_memory_test.py
@@ -113,10 +113,6 @@ def _configure_server(
shm_op1_handle,
]
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The magic number 1023 in register_offset = page_size * 1023 should be defined as a named constant or documented with a comment explaining why this specific multiplier is used for testing large offsets.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
triton-inference-server__server__8374 | triton-inference-server/server | 8,374 | defect | 3e5215477372d39dd2456bb690240dd1215b3086 | f0b3d9c14a19fb55de3e4c1cf5161ae9254ddf5c | feat: Static key authentication for OpenAI frontend | #### What does the PR do?
A similar feature to Triton [limit-endpoint-access](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/customization_guide/inference_protocols.html#limit-endpoint-access-beta).
### Limit Endpoint Access
The OpenAI-compatible server supports restricting access t... | diff --git a/python/openai/README.md b/python/openai/README.md
index 915dbd923b..bdcba6c63d 100644
--- a/python/openai/README.md
+++ b/python/openai/README.md
@@ -644,4 +644,57 @@ Example output:
function name: get_n_day_weather_forecast
function arguments: {"city": "Dallas", "state": "TX", "unit": "fahrenheit", num_... | 6 | 3 | 1 | [{"id": "G0", "claim": "The method name \"RestritionDict\" is misspelled and should be \"RestrictionDict\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks that arg-parsing be handled by argparse itself (e.g. nargs) rather than ... | null |
triton-inference-server__server__8427 | triton-inference-server/server | 8,427 | defect | d2746071897f724f02152efb95affb903071cb98 | b625826169431128901c7d3d144eb2e06d6ea6ee | fix: Validate `model_name` when Loading Model from Repository | This change adds additional validation of user input `model_name` prior to using to load a model from the repository.
[TRI-46](https://linear.app/nvidia/issue/TRI-54/os-access-violation-via-path-access)
| diff --git a/python/openai/openai_frontend/engine/utils/triton.py b/python/openai/openai_frontend/engine/utils/triton.py
index 3b0f04e3d9e..74727e875a4 100644
--- a/python/openai/openai_frontend/engine/utils/triton.py
+++ b/python/openai/openai_frontend/engine/utils/triton.py
@@ -28,9 +28,11 @@
import os
import re
f... | 5 | 4 | 1 | [{"id": "G0", "claim": "The `model` import the change adds to python/openai/openai_frontend/engine/utils/triton.py is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The pull request should also add the tests missing... | null |
triton-inference-server__server__8458 | triton-inference-server/server | 8,458 | defect | ebf8bffc50165b3e262fccb1ce631be93bfef74b | 337e0a72cd1d103116eb53acee799d895e0f5558 | ci: Add support for `max_inflight_requests` parameter to prevent unbounded memory growth in ensemble models | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds testing for a new parameter `max_inflight_requests`.
Added `ensemble_backpressure_test.py` with custom decoupled producer and slow consumer models to validate t... | diff --git a/qa/L0_simple_ensemble/ensemble_backpressure_test.py b/qa/L0_simple_ensemble/ensemble_backpressure_test.py
new file mode 100644
index 0000000000..e2919e5da5
--- /dev/null
+++ b/qa/L0_simple_ensemble/ensemble_backpressure_test.py
@@ -0,0 +1,233 @@
+#!/usr/bin/env python3
+
+# Copyright 2025, NVIDIA CORPORATI... | 11 | 8 | 1 | [{"id": "G0", "claim": "Extra whitespace at the end of the '# Verify invalid string was rejected' comment line in test.sh should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bare except in the test's client-cleanup block direct... | null |
triton-inference-server__server__8483 | triton-inference-server/server | 8,483 | defect | ebf8bffc50165b3e262fccb1ce631be93bfef74b | 9878606eee34982c5eaff9ecfab84258afe06133 | feat: OpenAI-compatible API Endpoints for Embedding Models (vLLM) | #### What does the PR do?
- Enable `/v1/embeddings` inference request for OpenAI API frontend in vLLM container
#### Checklist
- [x] PR title reflects the change and is of format `<commit_type>: <Title>`
- [x] Changes are described in the pull request.
- [ ] Related issues are referenced.
- [x] Populated [gith... | diff --git a/python/openai/README.md b/python/openai/README.md
index 5dda869bab..39aa8f9666 100644
--- a/python/openai/README.md
+++ b/python/openai/README.md
@@ -655,6 +655,8 @@ Use the `--openai-restricted-api` command-line argument to configure endpoint re
- **inference**: Chat completions and text completions en... | 7 | 4 | 1 | [{"id": "G0", "claim": "Mixing implicit and explicit returns in _get_embedding may indicate an error, as the implicit fall-through always returns None.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The import `from this import d` in test_embedd... | null |
triton-inference-server__server__8514 | triton-inference-server/server | 8,514 | defect | 212eb070d32dddc87763c56983b9907a96ea642a | 047c9d18f9a6f2eebb6454ff6145b4e501b9647d | ci: L0_openai_vllm--base | #### What does the PR do?
Update StructuredOutputsParams call
#### Checklist
- [x] PR title reflects the change and is of format `<commit_type>: <Title>`
- [x] Changes are described in the pull request.
- [x] Related issues are referenced.
- [x] Populated [github labels](https://docs.github.com/en/issues/using-... | diff --git a/python/openai/openai_frontend/engine/utils/triton.py b/python/openai/openai_frontend/engine/utils/triton.py
index 725c0b0624..fd0d806535 100644
--- a/python/openai/openai_frontend/engine/utils/triton.py
+++ b/python/openai/openai_frontend/engine/utils/triton.py
@@ -109,17 +109,15 @@ def _create_vllm_genera... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing nvcr.io/nvidia/tritonserver:25.10-py3 from deploy/aws/values.yaml looks unintended; the reviewer believes the pull request was meant to merge into the r25.11 branch instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
triton-inference-server__server__8570 | triton-inference-server/server | 8,570 | defect | 8a23c8c4018957c3b06c019833ba3322bc8dc22d | 7926a8235203715a36ef623f99293e7f2cef1389 | fix: Set memory decompression limit | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds additional size validation to compressed inputs.
#### Checklist
- [x] PR title reflects the change and is of format `<commit_type>: <Title>`
- [x] Changes a... | diff --git a/qa/L0_http/http_input_size_limit_test.py b/qa/L0_http/http_input_size_limit_test.py
index ca650e7fe3..f0ee35649b 100755
--- a/qa/L0_http/http_input_size_limit_test.py
+++ b/qa/L0_http/http_input_size_limit_test.py
@@ -29,6 +29,8 @@
sys.path.append("../common")
+import gzip
+import io
import json
imp... | 5 | 4 | 0 | [{"id": "G0", "claim": "The trailing \": \" in the RETURN_MSG_IF_ERR error messages (which already append a colon) produces a doubled colon in the emitted error text.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The variable \"current_buffer_size\... | null |
triton-inference-server__server__8672 | triton-inference-server/server | 8,672 | defect | 22fd79ea3271fe64e34746995986dc046ad02af1 | b729fab878d7add22413756c36ba0f8a8294d16b | ci: Add model name validation for model management requests | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds comprehensive test coverage for model name validation in model management operations (load/unload). The tests verify that the server properly rejects malicious m... | diff --git a/qa/L0_input_validation/input_validation_test.py b/qa/L0_input_validation/input_validation_test.py
index e3524247aa..946dfd2f66 100755
--- a/qa/L0_input_validation/input_validation_test.py
+++ b/qa/L0_input_validation/input_validation_test.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (c) 2024-2025... | 4 | 3 | 1 | [{"id": "G0", "claim": "The traversal test list is missing security edge cases such as URL-encoded traversal sequences, mixed separators, trailing separators, whitespace variations, and null bytes that would give more comprehensive security coverage.", "category": "testing", "verdict": "supported", "priority": "P2", "s... | null |
triton-inference-server__server__8676 | triton-inference-server/server | 8,676 | defect | 22fd79ea3271fe64e34746995986dc046ad02af1 | 3a4e12fe88cac446419113a11c40c0b476368e36 | fix: Avoid overflows when reading json inputs | Check input from HTTP+JSON sizes before allocating memory for them.
Protect against integer overflows while we're at it.
| diff --git a/src/http_server.cc b/src/http_server.cc
index cce57ee254..cc28524cc8 100644
--- a/src/http_server.cc
+++ b/src/http_server.cc
@@ -3593,7 +3593,48 @@ HTTPAPIServer::GenerateRequestClass::ExactMappingInput(
if (dtype == TRITONSERVER_TYPE_BYTES) {
RETURN_IF_ERR(JsonBytesArrayByteSize(tensor_data, ... | 5 | 3 | 2 | [{"id": "G0", "claim": "Because max_input_size_ is checked per input rather than cumulatively, a single request can allocate up to 4x the configured memory limit.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change is a bit of over-engineering.",... | null |
triton-inference-server__server__8721 | triton-inference-server/server | 8,721 | defect | e0f0ae8512034d29bb375efecd01b97ae00b8964 | ce93199c17ee3493b310bc53103cfc74657143af | feat: Add server option "--allow-client-shm" (default false) controling client shared memory register/unregister | #### What does the PR do?
Introduces server option "--allow-client-shm=<bool>" (default false) to control client shm registration explicitly.
For example, if `--allow-client-shm=false` or unset (default)
:white_check_mark: GET v2/systemsharedmemory[/region/${REGION_NAME}]/status
:x: POST v2/systemsharedmemory/regi... | diff --git a/qa/L0_batcher/test.sh b/qa/L0_batcher/test.sh
index dae31d5aa6..53ca012ed7 100755
--- a/qa/L0_batcher/test.sh
+++ b/qa/L0_batcher/test.sh
@@ -103,6 +103,9 @@ else
fi
SERVER_ARGS_EXTRA="--backend-directory=${BACKEND_DIR}"
+if [ "$TEST_CUDA_SHARED_MEMORY" -eq 1 ]; then
+ SERVER_ARGS_EXTRA="${SERVER_AR... | 5 | 5 | 1 | [{"id": "G0", "claim": "Add an explicitly deleted default constructor (`SharedMemoryManager() = delete;`) alongside the new parameterized constructor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The class should explicitly delete its copy constructor ... | null |
triton-inference-server__server__8722 | triton-inference-server/server | 8,722 | defect | e0a6a1e62cf8302eb1ef53b46b49009b32a84a1d | dfeafda5e6a9ec9399f99076b1e3f0048f1d1717 | test: Add test case for RequestTracker counter mismatch | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
Adds an `L0_simple_ensemble` regression test for parallel failed enqueue. The test verifies that a queue-full failure is raised without impacting separate requests.
#### C... | diff --git a/qa/L0_simple_ensemble/ensemble_backpressure_test.py b/qa/L0_simple_ensemble/ensemble_backpressure_test.py
index fdbe00d028..d693a2a0bf 100755
--- a/qa/L0_simple_ensemble/ensemble_backpressure_test.py
+++ b/qa/L0_simple_ensemble/ensemble_backpressure_test.py
@@ -30,6 +30,7 @@
sys.path.append("../common")... | 2 | 1 | 1 | [{"id": "G0", "claim": "The Python test file has a syntax error in Python 3, caused by unresolved merge conflict markers (<<<<<<< HEAD / ======= / >>>>>>>) left in the added code.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new test never ass... | null |
triton-inference-server__server__8741 | triton-inference-server/server | 8,741 | defect | 546a78766fb112128aa0b10a70c55f4f39c3b1df | 5031822f560486f65ad371b05991c70f33a373bb | test: Add validation to reject duplicate output names in HTTP and gRPC inference requests | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds HTTP + gRPC tests that assert duplicate output names return an error and the server remains healthy.
#### Checklist
- [x] PR title reflects the change and is... | diff --git a/qa/L0_grpc/python_unit_test.py b/qa/L0_grpc/python_unit_test.py
index 9591d4274c..67615aaa7b 100755
--- a/qa/L0_grpc/python_unit_test.py
+++ b/qa/L0_grpc/python_unit_test.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# Copyright 2023-202... | 8 | 5 | 2 | [{"id": "G0", "claim": "std::unordered_set is used without including <unordered_set> in infer_handler.cc (or a shared header), which may fail to compile on toolchains that do not indirectly include it; add the missing include.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
triton-inference-server__server__8745 | triton-inference-server/server | 8,745 | defect | 0fbbb8b2895fd8fc6668a0a5d63b30f569c06fc2 | 6fdf6a27b4303174f90d508210f7d4de194b4b42 | test: Add HTTP test for deep JSON in repository index requests | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR adds a new HTTP QA regression test intended to ensure Triton’s `/v2/repository/index` request handling remains robust (and the server stays live) when presented with ... | diff --git a/qa/L0_http/http_test.py b/qa/L0_http/http_test.py
index 48ef1728f4..f554f81bc2 100755
--- a/qa/L0_http/http_test.py
+++ b/qa/L0_http/http_test.py
@@ -423,6 +423,34 @@ def create_nested_json(depth, value):
except ValueError:
self.fail("Response is not valid JSON... | 2 | 2 | 2 | [{"id": "G0", "claim": "The test only asserts that the repository index request does not return HTTP 500, so it would still pass if the server incorrectly accepted the payload with 200; it should assert the request is rejected (e.g. status_code == 400 / != 200) and optionally validate the error payload/message.", "cate... | null |
triton-inference-server__server__8763 | triton-inference-server/server | 8,763 | defect | 8cce7bb9de57fde7bcf6c52d7e88c83f68ebd7d3 | 49613522c2c4c16c0f518c69d002461d0a23e5e5 | fix: Reject Triton reserved keys in parameters and forward headers | #### What does the PR do?
Reject Triton reserved keys in parameters and forward headers in HTTP and gRPC.
#### Checklist
- [x] PR title reflects the change and is of format `<commit_type>: <Title>`
- [x] Changes are described in the pull request.
- [ ] Related issues are referenced.
- [x] Populated [github labe... | diff --git a/docs/protocol/extension_parameters.md b/docs/protocol/extension_parameters.md
index eef7aeb11b..17edcf2776 100644
--- a/docs/protocol/extension_parameters.md
+++ b/docs/protocol/extension_parameters.md
@@ -42,11 +42,12 @@ The following parameters are reserved for Triton's usage and should not be
used as c... | 2 | 2 | 0 | [{"id": "G0", "claim": "The assertion assertFalse(result is InferenceServerException) in send_request_and_verify should be replaced with assertIsNot(result, InferenceServerException) to get more informative failure messages.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
triton-inference-server__server__8764 | triton-inference-server/server | 8,764 | defect | 8cce7bb9de57fde7bcf6c52d7e88c83f68ebd7d3 | 7389e3e66b2782bec085cd2519c91156588f2884 | fix: Prevent memory retention on failed compressed HTTP requests | #### What does the PR do?
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.-->
This PR updates the HTTP inference path to release decompressed request buffers automatically on early failures, so malformed compressed requests do not retain server memory.... | diff --git a/qa/L0_http/http_input_size_limit_test.py b/qa/L0_http/http_input_size_limit_test.py
index 25f08071ab..0378283eac 100755
--- a/qa/L0_http/http_input_size_limit_test.py
+++ b/qa/L0_http/http_input_size_limit_test.py
@@ -33,9 +33,11 @@
import gzip
import io
import json
+import os
import unittest
import... | 5 | 4 | 1 | [{"id": "G0", "claim": "The helper mixes implicit and explicit returns, so paths with no return yield None; the tested fall-through paths should use explicit returns.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test suite now imports psutil b... | null |
trivago__cluecumber__235 | trivago/cluecumber | 235 | defect | fa22689fb33c5066387c1811e8eccd7c47f7d487 | 990384e8a008252e4c48162f2f889b16c35248ef | Add two css parameter and keyword allowing customisation | IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Please provide enough information so that others can review your pull request:
Explain the details for making thi... | diff --git a/plugin-code/src/main/java/com/trivago/cluecumber/json/pojo/Step.java b/plugin-code/src/main/java/com/trivago/cluecumber/json/pojo/Step.java
index 7ac4ddb6..795e0ec5 100644
--- a/plugin-code/src/main/java/com/trivago/cluecumber/json/pojo/Step.java
+++ b/plugin-code/src/main/java/com/trivago/cluecumber/json/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not introduce the two custom (non-standard) HTML tags <parameter> and <keyword>; CSS classes or data attributes should be used instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trivago__prettier-plugin-sort-imports__186 | trivago/prettier-plugin-sort-imports | 186 | defect | df8d10d91042843283c05f9ec911ee24e19daabe | f3d887f188c1d7be6adee67c47c81c76452ced3c | keep script directives at top of file, fixes #185 | This [hopefully] fixes #185 by extracting `Directive` nodes before processing the AST, and then re-injecting them as part of the `file()` generation used to create the import section of the script... which should preserve them at top-of-file.
Includes a new test case. Compiles cleanly, all tests pass. | diff --git a/src/preprocessors/preprocessor.ts b/src/preprocessors/preprocessor.ts
index db559ffc..7443047c 100644
--- a/src/preprocessors/preprocessor.ts
+++ b/src/preprocessors/preprocessor.ts
@@ -1,6 +1,6 @@
import { ParserOptions, parse as babelParser } from '@babel/parser';
import traverse, { NodePath } from '@b... | 4 | 3 | 0 | [{"id": "G0", "claim": "If a comment precedes a directive, the comment ends up on a new line above the directive, which is most probably incompatible with RSC, so no comments explaining \"use client\"; a solution would be keeping comments in front for directives.", "category": "correctness", "verdict": "uncertain", "pr... | null |
trivago__prettier-plugin-sort-imports__43 | trivago/prettier-plugin-sort-imports | 43 | defect | a113960538781af1daacae0c207fcf243d7c0453 | c6df75b4c8aa5a17c6847cdf52b7a084cc11cb50 | [#34] add support for shebang | Closes #34 | diff --git a/src/preprocessor.ts b/src/preprocessor.ts
index 567304ac..e5fd50d3 100644
--- a/src/preprocessor.ts
+++ b/src/preprocessor.ts
@@ -26,6 +26,10 @@ export function preprocessor(code: string, options: PrettierOptions) {
const ast = babelParser(code, parserOptions);
+ const {
+ program: { int... | 2 | 2 | 0 | [{"id": "G0", "claim": "The getCodeFromAst signature should declare the interpreter parameter as optional (`interpreter?: InterpreterDirective`) since it may be undefined, rather than `InterpreterDirective | null | undefined`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
tronbyt__pixlet__239 | tronbyt/pixlet | 239 | defect | 20f78b25f70c7c74e31dcc3bfd140371aba816fb | f2ab06a4f7a05c562f3f8cfe2c6a648217ab716b | feat: optionally pass config to schema handlers | Adds an optional second parameter to schema handlers which will help us phase out secrets.
Fixes #233 | diff --git a/library/library.go b/library/library.go
index ca2f5c26..2b088fb9 100644
--- a/library/library.go
+++ b/library/library.go
@@ -97,14 +97,26 @@ func get_schema(pathPtr *C.char) (*C.char, C.int) {
//export call_handler
func call_handler(pathPtr, handlerName, parameter *C.char) (*C.char, C.int) {
+ return ... | 7 | 5 | 2 | [{"id": "G0", "claim": "The legacy call_handler passes a nil configPtr, so C.GoString yields an empty string, json.Unmarshal fails on it, and call_handler always returns an error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The configMap building... | null |
tronbyt__pixlet__241 | tronbyt/pixlet | 241 | defect | 20f78b25f70c7c74e31dcc3bfd140371aba816fb | f59def2403de017bb113893cfe4be717dd43c1c0 | feat(schema): add secret text field | Adds `secret` field to `schema.Text()`. I considered adding a whole new type `schema.Secret()`, but decided to add a field since it's less of a breaking change for tools that read the schema.
Fixes #240 | diff --git a/schema/schema.go b/schema/schema.go
index 29760c93..1fa17fdf 100644
--- a/schema/schema.go
+++ b/schema/schema.go
@@ -54,6 +54,8 @@ type SchemaField struct {
ClientID string `json:"client_id,omitempty" validate:"required_for=oauth2"`
AuthorizationEndpoint string `json:"authorization_en... | 1 | 1 | 0 | [{"id": "G0", "claim": "Extract the is-set check duplicated between the new allowedFor validator and the existing requiredFor/forbiddenFor validators into a shared helper (e.g. isFieldSet(field reflect.Value) bool) used by all three, to improve maintainability.", "category": "maintainability", "verdict": "supported", "... | null |
tronbyt__pixlet__261 | tronbyt/pixlet | 261 | defect | 077108f75facf0cc505147966bca401b875f42aa | a3cde5f8674fe3bc7fad90e3eb536669fb2dd8c5 | fix(runtime): enforce app filesystem sandbox | Migrates `os.DirFS` calls to `os.OpenRoot`, which prevents breaking out of an app's directory. Filesystem access is currently pretty limited, but this will be more important once #259 is implemented.
For example, this will disallow any attempt to symlink an app:
```
❯ mv examples/hello_world/hello_world.star .
❯ ... | diff --git a/cmd/community/loadapp.go b/cmd/community/loadapp.go
index 09714053..da76d301 100644
--- a/cmd/community/loadapp.go
+++ b/cmd/community/loadapp.go
@@ -23,9 +23,11 @@ func LoadApp(cmd *cobra.Command, args []string) error {
runtime.InitHTTP(cache)
runtime.InitCache(cache)
- if _, err := runtime.NewApple... | 2 | 2 | 2 | [{"id": "G0", "claim": "If loader.NewLoader returns an error in NewServer, the root file descriptor opened by os.OpenRoot is not closed, leaking a resource on that error path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "On the success path of New... | null |
tronbyt__pixlet__267 | tronbyt/pixlet | 267 | defect | 7add116ef0f95eb7dbf22ca76a3dc467164e4b82 | 5148c8c255ce3619f651c2b3158ee6e838b0cab4 | feat(render): change default 2x font to `terminus-16` | Changes the default font to `terminus-16` when rendering to 2x. There are a lot of small changes in this PR, but it's because I had to change the `Init()` function to `Init(*starlark.Thread)` so that it can check whether the render is 2x or not. Also changes a couple of the default text values from `var` to `const`.
... | diff --git a/cmd/profile.go b/cmd/profile.go
index 4df1f7b8..9c2ad711 100644
--- a/cmd/profile.go
+++ b/cmd/profile.go
@@ -11,10 +11,10 @@ import (
pprof_driver "github.com/google/pprof/driver"
pprof_profile "github.com/google/pprof/profile"
"github.com/spf13/cobra"
+ "github.com/tronbyt/pixlet/runtime/modules/re... | 1 | 1 | 0 | [{"id": "G0", "claim": "To avoid code duplication between render/text.go and render/wrappedtext.go, the default-font selection logic should be extracted into a shared helper function (e.g. getDefaultFont) used by both Init methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
tronbyt__pixlet__299 | tronbyt/pixlet | 299 | defect | c031f87ccf8690dbba4e970b94ddf181fe0e2c54 | 957473ec5e0654886cbe6e12c57edcbef3165bd3 | fix(runtime): add range check when casting to an int | Adds `starlarkutil.AsInt64` and `starlarkutil.AsUint64` which casts a `starlark.Int` to `int64`/`uint64` with range checks. Migrate all calls to `x.BigInt().Int64()` to these functions.
This prevents undefined behavior if a value larger than 64 bits is provided.
Fixes #298 | diff --git a/runtime/cache.go b/runtime/cache.go
index 3d688f23..5582b0cc 100644
--- a/runtime/cache.go
+++ b/runtime/cache.go
@@ -8,6 +8,7 @@ import (
"time"
"github.com/redis/go-redis/v9"
+ "github.com/tronbyt/pixlet/starlarkutil"
"go.starlark.net/starlark"
"go.starlark.net/starlarkstruct"
)
@@ -176,9 +177... | 3 | 3 | 0 | [{"id": "G0", "claim": "The ttl_seconds error wrapping in setStandardHeaders should use the %w format verb instead of %s so the error chain is preserved and inspectable with errors.Is.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestAsInt64 shoul... | null |
tronbyt__pixlet__315 | tronbyt/pixlet | 315 | defect | 8606484b943b549c50bb8aee454a0af9b7b807c3 | 89bac3c6d63cd07686a9e6a70e4430d4f23d5a14 | render: add wordbreak option to WrappedText widget | This adds a 'wordbreak' boolean parameter to the WrappedText widget. When enabled, this allows words that are wider than the available width to be broken across multiple lines, preventing them from being clipped. | diff --git a/docs/widgets.md b/docs/widgets.md
index 707f45f5..1ae2f623 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -503,6 +503,7 @@ Alignment of the text is controlled by passing one of the following `align` valu
| `linespacing` | `int` | Controls spacing between lines | N |
| `color` | `color` | Desired f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The force-break inner loop builds lines with repeated string concatenation, which is inefficient for long lines because Go strings are immutable, and should use a strings.Builder instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tronbyt__pixlet__322 | tronbyt/pixlet | 322 | defect | 005f71845aa7977f93c3cc198dd130e57c732557 | 228fb81e8b93231a04c15344971f611b6c30c7d8 | feat(webp): Add option to use native Go WebP for encoding and decoding | Add an option to use pure Go alternatives to reduce C dependencies instead of go-libwebp.
- Adopt `github.com/HugoSmits86/nativewebp` for WebP animation and static image encoding.
- Utilize `github.com/gen2brain/webp` for animated and static WebP decoding, as it provides animation decoding support. | diff --git a/Dockerfile b/Dockerfile
index 53554761..4e2526d0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,13 +38,13 @@ ARG TARGETPLATFORM
RUN --mount=type=cache,target=/var/lib/apt/lists,sharing=private <<EOT
set -eux
apt-get update
- xx-apt-get install -y --no-install-recommends gcc g++ libwebp-dev
+ xx-a... | 4 | 3 | 2 | [{"id": "G0", "claim": "encode/encode_test.go uses webp.DecodeAll but the removed go-libwebp import is not replaced with an import of github.com/gen2brain/webp, so the file will not compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The test he... | null |
tronbyt__pixlet__327 | tronbyt/pixlet | 327 | defect | a62fb34133d9fc0389db44526d3ccdb46f72668b | 2a43c52885140ee1796afecb0c892653ca5f7cc7 | fix: allow config values to be any type | Values will still be converted to a string during render so this is not a breaking change, but it will simplify config JSON and data passed from Tronbyt server.
A small breaking change is included here, but it will prevent future app bugs. Currently, calling `config.bool(...)` is dangerous because parse errors are i... | diff --git a/cmd/api.go b/cmd/api.go
index 9ccd5329..d0c38ae1 100644
--- a/cmd/api.go
+++ b/cmd/api.go
@@ -60,14 +60,14 @@ func NewAPICmd() *cobra.Command {
}
type renderRequest struct {
- Path string `json:"path"`
- Config map[string]string `json:"config"`
- Width int `js... | 1 | 1 | 1 | [{"id": "G0", "claim": "The getBoolean function only handles bool and string, so boolean flags represented as numbers (which JSON unmarshals into map[string]any as float64) would not be handled correctly and would instead return the default value; it would be more robust to handle numeric types as well.", "category": "... | null |
tronbyt__pixlet__388 | tronbyt/pixlet | 388 | defect | 69c6fa591804556c60cad16acf1ed93359f12cd6 | 8630aebacc35817a2fa9484625f345eefc6a93de | feat(render): add hard-edged stroke rendering for line primitives | Updates `render.Line`, `render.Arc`, and `render.Polygon` to use hard-edge lines by default. Each widget has a new `antialias` parameter which enables the previous behavior.
Comparison:

<details>
<summary>exampl... | diff --git a/docs/widgets.md b/docs/widgets.md
index 53c174c4..b4828d11 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -79,6 +79,7 @@ Arc draws an arc. The arc is centered at (x, y).
| `end_angle` | `float / int` | The ending angle of the arc, in radians. | **Y** |
| `color` | `color` | The color of the arc. |... | 1 | 1 | 1 | [{"id": "G0", "claim": "The assertBinaryAlpha, assertHasIntermediateAlpha and assertHasPaintedPixels helpers assume the image's bounding box starts at (0,0), making them brittle for sub-images; they should iterate over the image's actual bounds instead.", "category": "correctness", "verdict": "supported", "priority": "... | null |
tronbyt__pixlet__394 | tronbyt/pixlet | 394 | defect | f342a3ae093fbf88ac353c8be2935687782b327b | e35caf9f830deeb82d5eb3300649995ca00a20e4 | perf(starlarkhttp): fix memory leak; optimize string parsing | Fixes a memory leak in starlarkhttp if an applet makes an HTTP request, then returns before running `.text()` or `.json()`. Many apps do this if the response code is not 200, but this currently results in the body being kept open indefinitely. This PR makes the response body get buffered earlier so that the body can ne... | diff --git a/runtime/httpcache.go b/runtime/httpcache.go
index 331a82b3..2dade9da 100644
--- a/runtime/httpcache.go
+++ b/runtime/httpcache.go
@@ -7,6 +7,7 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
+ "iter"
"log/slog"
"math/rand/v2"
"net/http"
@@ -212,23 +213,25 @@ func jitterDuration(duration time.D... | 1 | 1 | 1 | [{"id": "G0", "claim": "Pre-allocating the response buffer by growing it to the untrusted Content-Length value could lead to excessive memory usage and OOM (a DoS vector) when a server sends a very large value, and the pre-allocation should be capped at the max response size (e.g. 20MB).", "category": "security", "verd... | null |
tronbyt__pixlet__432 | tronbyt/pixlet | 432 | defect | 4c022b7cc8da0bb4140e2e9f5b9c72d7c32e2a2c | 3258ca51f2adc9ae71cc6d0ad64795d583f2eed4 | feat(render): support passing bytes to render.Image | Adds support for passing `starlark.Bytes` to `render.Image`.
Also fixes a small issue I caught when loading files in binary mode. I previously optimized `readall` in `r` mode to convert the `[]byte` to `string` without a copy using `unsafe`. Since `starlark.Bytes` is also a `string`, the `rb` mode needs this same ... | diff --git a/bundle/write.go b/bundle/write.go
index 3f0c6031..bcb56c92 100644
--- a/bundle/write.go
+++ b/bundle/write.go
@@ -69,7 +69,7 @@ func (ab *AppBundle) WriteBundle(ctx context.Context, out io.Writer, opts ...Wri
// since it could contain a lot of extraneous files. instead, run the
// applet and interrog... | 2 | 2 | 1 | [{"id": "G0", "claim": "The bytes.tmpl template hardcodes the variable name `src` in the type conversions, which will cause a compilation error if the template is used for any attribute not named `src`; it should use the dynamic variable name `{{ .StarlarkName }}` instead.", "category": "correctness", "verdict": "suppo... | null |
tronbyt__server__561 | tronbyt/server | 561 | defect | 5786676ef755e05af4968929b6fcf0a2c8aaf82c | 596a0ec8181205a572665d495f43004997eec827 | Add WebSocket client tests and fix pushed app rendering | - Add `TestWebsockets_Client` to verify WebSocket protocol interactions including handshake, message types (dwell, brightness, image), and client info updates.
- Update `possiblyRender` to check for `Pushed` status before validating `Path`, enabling pushed apps to be served correctly without a local path.
- Update `T... | diff --git a/internal/server/metrics_test.go b/internal/server/metrics_test.go
index ca9e2d443..030896ec6 100644
--- a/internal/server/metrics_test.go
+++ b/internal/server/metrics_test.go
@@ -20,7 +20,7 @@ func TestMetricsEndpoint(t *testing.T) {
if err != nil {
t.Fatalf("Failed to open DB: %v", err)
}
- if err... | 2 | 2 | 0 | [{"id": "G0", "claim": "Using time.Sleep to wait for a concurrent database update can make the test flaky or slow it down; use polling (assert.Eventually) instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test uses t.Errorf for assertions whil... | null |
tronbyt__server__563 | tronbyt/server | 563 | defect | 55bcc65d6a1ad0051bc5be48208511eba2b4a933 | 3309d5abe5e38f2a9a78824f18baf1eefb7f93cf | Fix: Handle HH:MM:SS time format in app schedule | This commit addresses an issue where app schedule time inputs (Start Time, End Time) were not correctly handled when browsers or API clients sent values including seconds (HH:MM:SS format). This could lead to configuration saving failures and incorrect display.
Changes include:
- Modified `parseTimeInput` in `inter... | diff --git a/internal/server/handlers_app.go b/internal/server/handlers_app.go
index a5c2ac56c..f661f1fff 100644
--- a/internal/server/handlers_app.go
+++ b/internal/server/handlers_app.go
@@ -315,12 +315,24 @@ func (s *Server) handleConfigAppPost(w http.ResponseWriter, r *http.Request) {
// Handle optional string ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The duplicated StartTime/EndTime parsing and error-handling logic in handleConfigAppPost could be extracted into a shared helper function to improve maintainability.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inte... | null |
tronbyt__server__569 | tronbyt/server | 569 | defect | 54a898350160b336b4af3c038ee86d547c638430 | 3fc4b4937fc99bfc24fa671e02df0101fc7af61e | feat(server): add gzip middleware for HTTP responses | Implemented a custom GzipMiddleware to compress HTTP responses when the client supports it. This improves performance by reducing the size of transferred data, especially for JSON API responses and static assets. Included tests to verify behavior with and without Accept-Encoding header. | diff --git a/internal/server/middleware.go b/internal/server/middleware.go
index 72b15760b..46fe0fe87 100644
--- a/internal/server/middleware.go
+++ b/internal/server/middleware.go
@@ -1,6 +1,7 @@
package server
import (
+ "compress/gzip"
"context"
"errors"
"log/slog"
@@ -278,3 +279,69 @@ func RecoverMiddlewa... | 7 | 7 | 3 | [{"id": "G0", "claim": "Creating a new gzip.Writer for every request causes allocation and GC overhead under high load; a sync.Pool should be used to reuse gzip.Writer instances.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "gzipResponseWriter shou... | null |
tronbyt__server__574 | tronbyt/server | 574 | defect | 07ef8d9e598fcaadbb1b302aa6349d7a63ab61b3 | e2e3a5f04f83016dff5240c241e5250a4d764c98 | feat: implement brightness and interval update endpoints | - Add `handleUpdateBrightness` and `handleUpdateInterval` handlers.
- Register routes for brightness and interval updates.
- Update frontend to use new endpoints and handle `device_updated` WS events.
- Add unit tests for the new handlers. | diff --git a/internal/server/handlers_device.go b/internal/server/handlers_device.go
index fa6ccf05d..1467283ff 100644
--- a/internal/server/handlers_device.go
+++ b/internal/server/handlers_device.go
@@ -586,3 +586,72 @@ func (s *Server) handleImportDeviceConfig(w http.ResponseWriter, r *http.Request
slog.Info("Devi... | 6 | 4 | 0 | [{"id": "G0", "claim": "The handleUpdateInterval function updates DefaultInterval in the database but does not notify the connected device via websocket, so the device keeps using the old interval until it reconnects, and a notification like handleUpdateBrightness sends should be added.", "category": "correctness", "ve... | null |
tronbyt__server__586 | tronbyt/server | 586 | defect | 8c8feec4c1b8fec11969de26b7b764b703037fc5 | 30321e6aa575963286ae17e1b1fc8b31a13ac8cf | refactor: delegate config normalization to Pixlet | Pixlet supports any types as config values as of https://github.com/tronbyt/pixlet/pull/327. | diff --git a/go.mod b/go.mod
index 9bdd7e88b..4a1c66d35 100644
--- a/go.mod
+++ b/go.mod
@@ -15,7 +15,7 @@ require (
github.com/prometheus/client_golang v1.23.2
github.com/quic-go/quic-go v0.57.1
github.com/stretchr/testify v1.11.1
- github.com/tronbyt/pixlet v0.49.6
+ github.com/tronbyt/pixlet v0.49.7-0.20251217... | 2 | 2 | 1 | [{"id": "G0", "claim": "RenderApp mutates the original app.Config map when configOverrides is nil (config aliases app.Config and later config[\"$tz\"] is set), so it should work on a copy of the configuration map.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
tronbyt__server__587 | tronbyt/server | 587 | defect | 8c8feec4c1b8fec11969de26b7b764b703037fc5 | e8fffe9e7a2b2d0044e9e69dbeb839619084a2d3 | feat: Add custom app zip upload functionality | This commit introduces the ability for users to upload custom applications as .zip files. The server will now:
- Accept .zip files in addition to .star and .webp for app uploads.
- Securely extract the contents of the zip file to a temporary directory.
- Parse `manifest.yaml` (if present) within the zip to determine... | diff --git a/internal/server/handlers_app.go b/internal/server/handlers_app.go
index b4513a81..6e53b2e6 100644
--- a/internal/server/handlers_app.go
+++ b/internal/server/handlers_app.go
@@ -1,12 +1,14 @@
package server
import (
+ "archive/zip"
"encoding/json"
"fmt"
"html/template"
"io"
"log/slog"
"maps... | 13 | 12 | 4 | [{"id": "G0", "claim": "The `if err := os.MkdirAll(appDir, 0755)` statement is mis-indented inside the new zip-upload block, which is a syntax error that will prevent the project from compiling; it should sit at the same level as the preceding RemoveAll error check.", "category": "correctness", "verdict": "supported", ... | null |
tronbyt__server__594 | tronbyt/server | 594 | defect | d150a883240437e8bc8a28beb4cb71cdc5ff3a9e | 8f7958448450b0b800073822c167ae18e9ad950f | fix: reset app IDs on user config import to prevent sequence duplicate key errors | Fixes #592 | diff --git a/internal/server/handlers_user.go b/internal/server/handlers_user.go
index 8eb1d49b..774d00d3 100644
--- a/internal/server/handlers_user.go
+++ b/internal/server/handlers_user.go
@@ -321,6 +321,11 @@ func (s *Server) handleImportUserConfig(w http.ResponseWriter, r *http.Request)
for _, dev := range imp... | 3 | 3 | 0 | [{"id": "G0", "claim": "The error returned by the db.Preload(...).First(&updatedUser, ...) query in TestHandleImportUserConfig_AppIDReset should be checked, since an unchecked failure would make the test panic later instead of failing clearly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": ... | null |
tronbyt__server__596 | tronbyt/server | 596 | defect | e5d406a7d269f81e5fea8a5dd60d8ecd6e9e6eed | eeae3a7dd514f6559c84d4496de8c34bc9707650 | Fix Night Mode app rotation logic | Prioritize Night Mode app (and pinned apps) exclusively when Night Mode is active, preventing other apps from being displayed. Includes regression test in internal/server/rotation_test.go.
Fixes #595 | diff --git a/internal/server/handlers_app_test.go b/internal/server/handlers_app_test.go
index 9772083eb..03a57962a 100644
--- a/internal/server/handlers_app_test.go
+++ b/internal/server/handlers_app_test.go
@@ -286,7 +286,7 @@ func TestHandleUploadAppPost_Zip_EdgeCases(t *testing.T) {
{
name: "Invalid PackageN... | 2 | 2 | 0 | [{"id": "G0", "claim": "The display-decision logic in determineNextApp should be restructured into a single if-else if chain that prioritizes the isPinned check, then the nightModeActive case, then the standard rotation logic, to make it flatter and remove the duplicated isPinned checks.", "category": "maintainability"... | null |
tronbyt__server__604 | tronbyt/server | 604 | defect | 513b60020bb2177285f3a39bc792457541bc2f22 | 5d703c139aa30ba95776015a50132e370b3c8532 | feat: show app summary in config page and refactor app metadata lookup | Fixes #539 | diff --git a/internal/server/handlers_api.go b/internal/server/handlers_api.go
index 788ebfde2..31df69488 100644
--- a/internal/server/handlers_api.go
+++ b/internal/server/handlers_api.go
@@ -231,14 +231,12 @@ func (s *Server) handlePushApp(w http.ResponseWriter, r *http.Request) {
var appPath string
// 1. Check... | 4 | 3 | 2 | [{"id": "G0", "claim": "The AppMetadata struct built in the manifest.yaml fallback omits the manifest's RecommendedInterval (which handleAddAppPost relies on to set the update interval), and could also populate fields like Author and PackageName.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
tronbyt__server__622 | tronbyt/server | 622 | defect | aa1c2c76445218ff0b167168eae33ebee8e1311f | 0b3d63772ed0a2367aa964c1c21ecfe2de07556a | feat(auth): allow users to change their email address | - internal/server/auth.go: Update handleEditUserPost to support email changes.
- web/templates/auth/edit.html: Add email address input to profile settings.
- web/templates/auth/register.html: Use type="email" for consistency.
- web/i18n: Add English and German translations for new profile strings.
- Add uniqueIndex... | diff --git a/internal/data/models.go b/internal/data/models.go
index 08ba1f16..18735c3b 100644
--- a/internal/data/models.go
+++ b/internal/data/models.go
@@ -403,9 +403,9 @@ func (s *StringSlice) Scan(value any) error {
type User struct {
Username string `gorm:"primaryKey" json:"username"`
P... | 1 | 1 | 0 | [{"id": "G0", "claim": "The email-changed detection logic in handleEditUserPost, while functionally correct, is too complex and hard to follow and should be simplified to improve readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tronbyt__server__629 | tronbyt/server | 629 | defect | 7f88250680fe6c97336e8c5dc80ecb5e97a443ea | 545c86c0873bb9403d591ef675ac7001f5bb0408 | fix: Refactor user import to explicitly insert apps individually | Might fix an error reported by a user who was unable to deactivate apps after user import on render.com | diff --git a/internal/server/handlers_user.go b/internal/server/handlers_user.go
index d8358c89..ded61e60 100644
--- a/internal/server/handlers_user.go
+++ b/internal/server/handlers_user.go
@@ -333,14 +333,22 @@ func (s *Server) handleImportUserConfig(w http.ResponseWriter, r *http.Request)
for _, dev := range im... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test should use the testify assertion library (require for setup steps, assert for checks) instead of t.Errorf/t.Fatalf, for consistency with other tests in the project, more declarative assertions, and to stop ignoring errors during test setup.", "category": "testing", "verdict": "suppo... | null |
tronbyt__server__644 | tronbyt/server | 644 | defect | e79e22b9ac653aeb80f3a8836c9dc7ea25cac76c | 02f3bd1d45edb96fdfacc4bb3037a0eba2c0f5e3 | refactor: Make DeviceType a proper Go enum | This pull request refactors the `DeviceType` from a string to an integer-based enum with `iota`, improving type safety and aligning with Go best practices. The persistence format is unchanged. The PR removes the need to hardcode a specific order in the templates.
---
*PR created automatically by Jules for task [179... | diff --git a/cmd/server/main.go b/cmd/server/main.go
index 931cc311..3222d3e1 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -240,6 +240,12 @@ func main() {
}
}
+ // Run Database Migrations
+ if err := migration.Migrate(db); err != nil {
+ slog.Error("Database migration failed", "error", err)
+ os... | 5 | 5 | 2 | [{"id": "G0", "claim": "The migration's stringToDeviceType map should use the DeviceType enum constants from the data package instead of hardcoded integer values, so that changing the iota order in models.go cannot silently corrupt the type column for all devices.", "category": "correctness", "verdict": "supported", "p... | null |
tronbyt__server__671 | tronbyt/server | 671 | defect | 9cab8d3c5fbc89758f882a5663b8602fb1c32e07 | c6515021072d4cb3f67e968239f80ac83d8c13ba | refactor: refactor GORM usages to use Generic API and fix issues | Adopt the new GORM Generics API `gorm.G[T]` across the codebase for improved type safety and clarity, replacing older interface-based calls.
Key changes:
- Refactor `Count`, `Update`, `Updates`, `Delete`, and `Scan` calls in `cmd/server`, `internal/server`, and test files to use `gorm.G[T]`.
- Fix a race condition... | diff --git a/GEMINI.md b/GEMINI.md
index 8e36d0b2..f658e2ba 100644
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -74,5 +74,6 @@ The core functionality involves serving WebP images to devices, generated by ren
* **Logging:** Use `log/slog` for structured logging.
* **Templates:** Use `{{ t .Localizer "MessageID" }}` for tran... | 3 | 3 | 1 | [{"id": "G0", "claim": "In handleRegisterGet and handleRegisterPost the error from the user Count query is ignored (count, _), so a database failure yields count 0 and could let registration proceed even when it is disabled and users already exist; the error should be handled explicitly (log and return 500).", "categor... | null |
tronbyt__server__672 | tronbyt/server | 672 | defect | 6709649aac9a8aa85d42eb607f78fe95b38dd096 | 2044c855e536400e88d9935ce6c9725c743f94d7 | feat: add reboot API and update device info fields | - Sync DeviceInfo in handlers_api.go with models.go, making optional fields pointers.
- Add POST /v0/devices/{id}/reboot API endpoint.
- Move handleDots to server.go.
- Consolidate reboot logic into sendRebootCommand helper.
- Update tests. | diff --git a/internal/data/models.go b/internal/data/models.go
index f80eb9ff..cbdcf580 100644
--- a/internal/data/models.go
+++ b/internal/data/models.go
@@ -398,13 +398,13 @@ type DeviceInfo struct {
ProtocolVersion *int `json:"protocol_version"`
MACAddress string `json:"mac_address"`
P... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test setup should use the existing stringPtr helper (and similar intPtr/boolPtr helpers) for the new Info fields instead of intermediate variables.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The boolean-field asse... | null |
tronbyt__server__673 | tronbyt/server | 673 | defect | cf18bc47ef9e8e222bd24f954760a5bd79eddfd4 | fe65c764db495da45d90e0f978fcab999b10493c | feat: add update_firmware_settings api endpoint | - Add POST /v0/devices/{id}/update_firmware_settings API endpoint.
- Implement handleUpdateFirmwareSettingsAPI to handle JSON payload.
- Update tests. | diff --git a/internal/server/handlers_api.go b/internal/server/handlers_api.go
index f9e0ab2a..0c091b77 100644
--- a/internal/server/handlers_api.go
+++ b/internal/server/handlers_api.go
@@ -657,12 +657,72 @@ func (s *Server) handleRebootDeviceAPI(w http.ResponseWriter, r *http.Request) {
}
}
+// FirmwareSettingsU... | 2 | 1 | 1 | [{"id": "G0", "claim": "The handler manually constructs the payload map, which is verbose and error-prone if FirmwareSettingsUpdate changes, so the translation logic should be moved into a method on the struct (e.g. ToPayload() map[string]any).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", ... | null |
tronbyt__server__681 | tronbyt/server | 681 | defect | be00e7260c8a98d17c847c47f44fdcbc223037ad | eeb1a4a7b36ce3184cd2209b81a3aae0ad11ff8e | feat: add optional Hostname field to DeviceInfo | Adds an optional Hostname field to DeviceInfo models (DB, Websocket, API) and updates handlers to support setting and retrieving it via websocket and API. | diff --git a/internal/data/gorm_logger.go b/internal/data/gorm_logger.go
index 2139d927..5d9535d1 100644
--- a/internal/data/gorm_logger.go
+++ b/internal/data/gorm_logger.go
@@ -74,8 +74,8 @@ func (l *GORMSlogLogger) Trace(ctx context.Context, begin time.Time, fc func() (
// NewGORMSlogLogger creates a new GORM logge... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use CSS classes instead of inline styles for the firmware-settings input and button in web/templates/manager/update.html, and apply the same classes to the Image URL section above for consistency and easier future changes.", "category": "maintainability", "verdict": "supported", "priority": "P2"... | null |
tronbyt__server__697 | tronbyt/server | 697 | defect | b802bd53a375b3da0d4fb32f18d2f5cc54323ef1 | 055a02ac6a816626db5bbd2c2bad8e78819961d0 | feat: windows build | ### Standalone windows builder
- Simply run `./build.ps1`
- Run `tronbyt-server.exe` | diff --git a/build.ps1 b/build.ps1
new file mode 100644
index 00000000..c98dd83e
--- /dev/null
+++ b/build.ps1
@@ -0,0 +1,50 @@
+# build.ps1
+
+Write-Host "Checking dependencies..." -ForegroundColor Cyan
+if (-not (Get-Command "gcc" -ErrorAction SilentlyContinue)) {
+ Write-Error "GCC not found. Please ensure MSYS2 ... | 10 | 8 | 6 | [{"id": "G0", "claim": "The error returned by os.Executable() is ignored, so a failure silently makes filepath.Dir(ex) resolve to the current working directory and the data folder is created in the wrong place; the error should be handled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
tronbyt__server__707 | tronbyt/server | 707 | defect | d33447cdd05e44faa7cead48d1a374e56c6ccfcd | 4d357ad48349791afa1d736593bc483449aeed62 | feat: add ENABLE_UPDATE_CHECKS and migrate ETag storage to database | - Add ENABLE_UPDATE_CHECKS configuration option (defaulting to "1")
- Disable update checks globally in tests to avoid GitHub API rate limits
- Refactor firmware downloader to store ETag in the database settings instead of a local file
- use ETag for system update checks to reduce GitHub API quota usage | diff --git a/internal/config/config.go b/internal/config/config.go
index 7d0b54e8..c5762bd9 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -26,6 +26,7 @@ type Settings struct {
SSLCertFile string `env:"TRONBYT_SSL_CERTFILE"`
TrustedProxies string `env:"TRONBYT_TRUSTED_P... | 2 | 2 | 1 | [{"id": "G0", "claim": "Loading persisted version info should retrieve both system_update_latest_tag and system_update_latest_url successfully before using them, otherwise an 'Update available' message can appear without a valid download link.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
tronbyt__server__726 | tronbyt/server | 726 | defect | 846c43008f44fc06d367292128a70e4a13144f37 | c29958afaf555f266005f665016232662597cb7b | implement device api key usage | allow device be set to require api key to access /next and /ws endpoint
fixes #724 | diff --git a/internal/data/models.go b/internal/data/models.go
index d7f44020..bf96153a 100644
--- a/internal/data/models.go
+++ b/internal/data/models.go
@@ -592,6 +592,7 @@ type Device struct {
// OTA
SwapColors bool `json:"swap_colors"`
+ RequireAPIKey bool `json:"require_api_key"`
PendingUpdate... | 6 | 1 | 0 | [{"id": "G0", "claim": "The device API key is transmitted as a query parameter in URLs (in server-generated image/websocket URLs, in the device-update handler's URLs, and in the client-side JavaScript), which exposes the secret in server/proxy logs, browser history and the Referer header; the reviewer recommends header... | null |
tronbyt__server__729 | tronbyt/server | 729 | defect | 02938599cfd582d1ea964b23fa766fe3c75b45aa | 026b6fb52812486ad0b9b09654513e6f7bdeb4af | actually detect if zero is the set recommendedInterval | recommendedInterval = 0 was not working because 0 was considered no metadata. | diff --git a/internal/server/handlers_app.go b/internal/server/handlers_app.go
index 15e8face..4a4e8f60 100644
--- a/internal/server/handlers_app.go
+++ b/internal/server/handlers_app.go
@@ -120,11 +120,13 @@ func (s *Server) handleAddAppPost(w http.ResponseWriter, r *http.Request) {
}
// 1. Find App Details (Rec... | 2 | 2 | 1 | [{"id": "G0", "claim": "The interval-calculation logic in handleAddAppPost lets uinterval end up non-positive (0 or negative) from a user-submitted value or from metadata, with no explicit validation before it is used for scheduling, which could panic schedulers such as time.NewTicker and potentially lead to a denial-o... | null |
tronbyt__server__784 | tronbyt/server | 784 | defect | 085847b4e938d567c2a4133211799fc15aa789f2 | 842bee54b76e5579daf880c6dccf64deb92174e6 | Fix: generate unique numeric iname for pushed apps | When a device pushes an image to the server, the external installationID was being used directly as the app's iname. This caused issues when duplicate app operations tried to find the maximum numeric iname:
ERROR: invalid input syntax for type integer: "hasssolarlocal1"
This SQL error occurred because:
1. ... | diff --git a/internal/server/handlers_api.go b/internal/server/handlers_api.go
index e7beed1f..5ec41086 100644
--- a/internal/server/handlers_api.go
+++ b/internal/server/handlers_api.go
@@ -443,8 +443,9 @@ func (s *Server) savePushedImage(deviceID, installID string, data []byte) error
}
func (s *Server) ensurePush... | 2 | 1 | 1 | [{"id": "G0", "claim": "The existing-app check should use an exact match on the stored path instead of a LIKE wildcard search, since one installID being a substring of another (or containing SQL wildcard characters) can produce incorrect matches.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
tronbyt__server__801 | tronbyt/server | 801 | defect | 230d60e8a4b2812c14aa7a94296859567628d3e6 | 07d6514cbd3b7a2331cfe3e07d64034960ed9853 | allow for API pushed app deletion based on installationID | Currently pushed apps with installationID cannot be deleted without looking up the iname generated by the server. This PR allows for deletion of a pushed app based on installationID | diff --git a/internal/server/handlers_api.go b/internal/server/handlers_api.go
index 7d50a476..c94d5a94 100644
--- a/internal/server/handlers_api.go
+++ b/internal/server/handlers_api.go
@@ -822,22 +822,35 @@ func (s *Server) handlePatchInstallation(w http.ResponseWriter, r *http.Request)
}
func (s *Server) handleD... | 2 | 1 | 1 | [{"id": "G0", "claim": "Deleting an app should also remove the original pushed image stored in the `pushed` subdirectory (webp/{device_id}/pushed/{installationID}.webp), since the current cleanup only removes `*-<iname>.webp` rendered images and leaves orphaned files on disk.", "category": "correctness", "verdict": "su... | null |
tronprotocol__java-tron__4386 | tronprotocol/java-tron | 4,386 | defect | 3c26fe46b64c132bb9a737d5139f716d8fd2ae66 | 59feb3d16471ec132c4bc0905221530ea095d233 | feat(stable-coin): add oracle module | **What does this PR do?**
1. add sr feed price contract to the protocol
2. periodically calculate trx exchange rates
**Why are these changes required?**
support for stable coin exchange market
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/actuator/src/main/java/org/tron/core/actuator/DelegateFeedConsentActuator.java b/actuator/src/main/java/org/tron/core/actuator/DelegateFeedConsentActuator.java
new file mode 100644
index 00000000000..035b06a3f65
--- /dev/null
+++ b/actuator/src/main/java/org/tron/core/actuator/DelegateFeedConsentActuator.j... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add an assertion that the asset is the same between the ExchangeRateData entries compared in compareTo (which currently compares only votes).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tronprotocol__java-tron__5378 | tronprotocol/java-tron | 5,378 | defect | 9a65bb648022e85ea78bffb8bd5c6a78253e3952 | 5201ddbe78d63f89cc374bed9984b146504706d0 | feature(db): optimize properties query frequency | close #5375
| diff --git a/chainbase/src/main/java/org/tron/core/db2/core/AbstractSnapshot.java b/chainbase/src/main/java/org/tron/core/db2/core/AbstractSnapshot.java
index 496a0fd09ac..ba6c77d43a2 100644
--- a/chainbase/src/main/java/org/tron/core/db2/core/AbstractSnapshot.java
+++ b/chainbase/src/main/java/org/tron/core/db2/core/A... | 8 | 7 | 2 | [{"id": "G0", "claim": "Reformat the code style of the new nested `if (isOptimized) { if (root == previous) ...` block in SnapshotImpl's constructor — put the white space in the right place and combine the two if statements.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced... | null |
tronprotocol__java-tron__5394 | tronprotocol/java-tron | 5,394 | defect | 10223ccf44124b0ac2429354fc693b6d0d5f9563 | 00fac097d00bc0c60f5e47be32aba0a629c906c8 | feat(db/trans-cache): optimize for bloomFilter initialization | close https://github.com/tronprotocol/java-tron/issues/5355
| diff --git a/chainbase/src/main/java/org/tron/core/ChainBaseManager.java b/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
index adf66527499..d94d52f168b 100644
--- a/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
+++ b/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
@@ -28,6 +28,7 ... | 7 | 4 | 2 | [{"id": "G0", "claim": "Since the OS does not flush to disk immediately, the properties file may be durable while part of the bloom filters is still in the OS cache, so the data could be corrupted if the OS crashes; the reviewer asks whether to add StandardOpenOption.SYNC or write all data into one file with atomic met... | null |
tronprotocol__java-tron__5407 | tronprotocol/java-tron | 5,407 | defect | 10223ccf44124b0ac2429354fc693b6d0d5f9563 | 3f17ec2e87c78b038b6a9257cff72121da3f3b71 | feat(net): get external IPv4 from libp2p | **What does this PR do?**
- get external IPv4 from llibp2p instead of external url
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/common/src/main/java/org/tron/common/parameter/CommonParameter.java b/common/src/main/java/org/tron/common/parameter/CommonParameter.java
index 0c8e6f74ee3..e89c512eb5e 100644
--- a/common/src/main/java/org/tron/common/parameter/CommonParameter.java
+++ b/common/src/main/java/org/tron/common/parameter/Comm... | 5 | 5 | 0 | [{"id": "G0", "claim": "The tests added in this PR should cover the PR's changes; a test that only increases coverage (testHelpMessage) is recommended to be submitted as a separate PR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Commenting out the no... | null |
tronprotocol__java-tron__5412 | tronprotocol/java-tron | 5,412 | defect | 1a33965c569c3b9ba568410270fbda79dd9fff76 | acd7bea6d6e2ea8602dc9317d3dcdc96aa43618b | feat(api): add gRPC implementation for certain interfaces | **What does this PR do?**
add gRPC implementation for certain interfaces, close https://github.com/tronprotocol/java-tron/issues/5379
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/framework/src/main/java/org/tron/core/Wallet.java b/framework/src/main/java/org/tron/core/Wallet.java
index 3560a7032bc..c7110556b7b 100755
--- a/framework/src/main/java/org/tron/core/Wallet.java
+++ b/framework/src/main/java/org/tron/core/Wallet.java
@@ -87,6 +87,7 @@
import org.tron.api.GrpcAPI.PrivateS... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request's changes lack tests and CI is failing; tests should be added to fix CI.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "After changing the return type in Wallet, the reviewer asks whether the reply can ever be nu... | null |
tronprotocol__java-tron__5419 | tronprotocol/java-tron | 5,419 | defect | f33c169ab65a5ac0782a37fbc087b173a2bac6e8 | 87f9cea622a105db0fa78f8d741114f5c11e297e | feat(mechanism): optimize address parsing of stake interfaces | **What does this PR do?**
optimize address parsing of stake interfaces, close #5411
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/framework/src/main/java/org/tron/common/logsfilter/capsule/TransactionLogTriggerCapsule.java b/framework/src/main/java/org/tron/common/logsfilter/capsule/TransactionLogTriggerCapsule.java
index 8600cb6ef8c..58600f01d27 100644
--- a/framework/src/main/java/org/tron/common/logsfilter/capsule/TransactionLogTr... | 3 | 3 | 1 | [{"id": "G0", "claim": "The repeated if-statements setting addresses in each new contract case appear too often and should be encapsulated into a function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new stake-related contract cases (e.g.... | null |
tronprotocol__java-tron__5429 | tronprotocol/java-tron | 5,429 | defect | a9c4f4324c895f2f3c74eb7d7fb13add719419fe | 2c076f9940aab3bac14c4e9b945461f610cc7202 | feat(db):tune the databases closure | close #5428 .
| diff --git a/chainbase/src/main/java/org/tron/core/ChainBaseManager.java b/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
index dad76041777..e43d442534a 100644
--- a/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
+++ b/chainbase/src/main/java/org/tron/core/ChainBaseManager.java
@@ -29,7 +29,6 ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The FullNode.shutDownSign assignment at the end of ApplicationImpl.shutdown() should be moved into dbManager.stopValidateSignThread(), which the PR adds immediately before it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sn... | null |
tronprotocol__java-tron__5441 | tronprotocol/java-tron | 5,441 | defect | f20e11b893f5735ae5256c92bf9793224387c9e2 | 6a1e001ea34ae5f993c7fc66e75cd3ec53fe1dbc | feat(net): delete four unused paramaters in Args | **What does this PR do?**
- delete four unused config items in CommonParameter. include:
1. node.discovery.public.home.node
2. node.discovery.ping.timeout
3. node.p2p.pingInterval
4. p2pNodeId
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow ... | diff --git a/common/src/main/java/org/tron/common/parameter/CommonParameter.java b/common/src/main/java/org/tron/common/parameter/CommonParameter.java
index 0c8e6f74ee3..e89c512eb5e 100644
--- a/common/src/main/java/org/tron/common/parameter/CommonParameter.java
+++ b/common/src/main/java/org/tron/common/parameter/Comm... | 3 | 3 | 1 | [{"id": "G0", "claim": "The NODE_P2P_PING_INTERVAL constant should also be deleted, since the pull request disabled its usages elsewhere.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The addition of the P2pConfig field and import in CommonPara... | null |
tronprotocol__java-tron__5688 | tronprotocol/java-tron | 5,688 | defect | f02d6bfcd2adb64cf94c9d3b6215bdc7864c60f4 | 0c6365ebf24fcd46650b5e95927aeabc628861ab | fix(api): enhance contract trigger success criteria | **What does this PR do?**
- fix the bug of determine if triggerConstantContract succeeds in two shielded api.
**Why are these changes required?**
- If given a random parameter contractAddress to getShieldedContractScalingFactor, transaction's result of triggerConstantContract will be revert, upon that, getShie... | diff --git a/framework/src/main/java/org/tron/core/Wallet.java b/framework/src/main/java/org/tron/core/Wallet.java
index cd2e26aa6f7..1a6521af0bb 100755
--- a/framework/src/main/java/org/tron/core/Wallet.java
+++ b/framework/src/main/java/org/tron/core/Wallet.java
@@ -226,6 +226,7 @@
import org.tron.protos.Protocol.Tr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The success-criteria fix applied to getShieldedContractScalingFactor should also be applied to isShieldedTRC20NoteSpent, which has the same pattern (are no fixes needed for it?).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
tronprotocol__java-tron__6368 | tronprotocol/java-tron | 6,368 | defect | 1e35f79a165424bbae319799d9aca92948b8f5c2 | 945271ab415b5069a595c538d1bf9410f409dca0 | fix(crypto): resolve the invalid witness | **What does this PR do?**
Closes #6281
| diff --git a/build.gradle b/build.gradle
index 14b095b1795..20ebd253eca 100644
--- a/build.gradle
+++ b/build.gradle
@@ -47,7 +47,7 @@ subprojects {
implementation group: 'org.apache.commons', name: 'commons-math', version: '2.2'
implementation "org.apache.commons:commons-collections4:4.1"
im... | 5 | 2 | 0 | [{"id": "G0", "claim": "witnessAddress may be null, so that null case should also be considered in the isActiveWitness method.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks how the case privateKeys.size() == 0 is handled now that the witness bra... | null |
tronprotocol__java-tron__6371 | tronprotocol/java-tron | 6,371 | defect | 1e35f79a165424bbae319799d9aca92948b8f5c2 | c7b80411b294e512eed07abaedd2dca6134a3f18 | feat(crypto): optimize zksnark config | **What does this PR do?**
Close #6334
| diff --git a/actuator/src/main/java/org/tron/core/actuator/ShieldedTransferActuator.java b/actuator/src/main/java/org/tron/core/actuator/ShieldedTransferActuator.java
index 2773dc07d26..338e948f304 100644
--- a/actuator/src/main/java/org/tron/core/actuator/ShieldedTransferActuator.java
+++ b/actuator/src/main/java/org/... | 2 | 1 | 1 | [{"id": "G0", "claim": "The change leaves it unclear how shielded transactions can be supported through the `committee.xxx` config item, since the committee-proposal path's enabling code is (per the author) commented out.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "... | null |
tronprotocol__java-tron__6373 | tronprotocol/java-tron | 6,373 | defect | f9a454436dda532e2e7b66f27a572f0e256d69d9 | e9795877a91cf58d8b976b28924013ffaa35bd66 | feat(API): return witness list with latest vote count in desc order | **What does this PR do?**
Close https://github.com/tronprotocol/java-tron/issues/6339
Added 4 API endpoints:
- HttpFullNode, `/wallet/getpaginatednowwitnesslist`
- HttpFullNodeSolidity,` /walletsolidity/getpaginatednowwitnesslist`
- RpcFullNode, `protocol.Wallet/GetPaginatedNowWitnessList `
- RpcFullNodeSolidit... | diff --git a/chainbase/src/main/java/org/tron/core/store/WitnessStore.java b/chainbase/src/main/java/org/tron/core/store/WitnessStore.java
index 9f444d3333d..9c30df195af 100644
--- a/chainbase/src/main/java/org/tron/core/store/WitnessStore.java
+++ b/chainbase/src/main/java/org/tron/core/store/WitnessStore.java
@@ -55,... | 8 | 2 | 0 | [{"id": "G0", "claim": "The new constant should be named WITNESS_COUNT_LIMIT_MAX instead of WITNESS_LIST_LIMIT_MAX.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getPaginatedNowWitnessList should return an empty list instead of null.", "categor... | null |
tronprotocol__java-tron__6399 | tronprotocol/java-tron | 6,399 | defect | 15e8c0e33c16cead94bd45ce233862af0d9b5fec | 2bcda334552170a57e317e750f8df22c7a4d9a76 | feat(consensus): convert the local proposal expire time configuration to a chain parameter | **What does this PR do?**
Close [#767](https://github.com/tronprotocol/tips/issues/767)
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/actuator/src/main/java/org/tron/core/actuator/ProposalCreateActuator.java b/actuator/src/main/java/org/tron/core/actuator/ProposalCreateActuator.java
index a3639cca07f..41c501bfff0 100755
--- a/actuator/src/main/java/org/tron/core/actuator/ProposalCreateActuator.java
+++ b/actuator/src/main/java/org/tron/c... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new PARAMETER.proposalVotingWindow set in setParam should also be restored to its default in Args.clearParam, as the other parameters are.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment to the new proposalVo... | null |
tronprotocol__java-tron__6421 | tronprotocol/java-tron | 6,421 | defect | 2dcdb4537a243c5f48136bb9e80591e5edeaafd3 | 4782b4136cce8f5b453eb16841a0e9133c1582bf | refactor(db): unify database engine initialization |
**What does this PR do?**
Unify database engine initialization.
**Why are these changes required?**
- Consolidate duplicate engine initialization logic from two separate classes into a single unified method
- Enhance LevelDB/RocksDB compatibility detection with clearer error messages
- Improve erro... | diff --git a/chainbase/src/main/java/org/tron/common/storage/leveldb/LevelDbDataSourceImpl.java b/chainbase/src/main/java/org/tron/common/storage/leveldb/LevelDbDataSourceImpl.java
index 72bdd80d64e..54cdbf96ca1 100644
--- a/chainbase/src/main/java/org/tron/common/storage/leveldb/LevelDbDataSourceImpl.java
+++ b/chainb... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the unsupported-architecture error message, \":unsupported on \" should be \": unsupported on \" — add a space after the colon.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the Arch helpers to the throwIf... pattern: th... | null |
tronprotocol__java-tron__6433 | tronprotocol/java-tron | 6,433 | defect | 6d4e244c76f9e289b22e562a4068f23821d6832c | 1980f0b2cf5d06aee390ccdf05f73f4fdeff671e | fix(jsonrpc): support blockHash param and genesis block process for eth_getBlockReceipts | **What does this PR do?**
eth_getBlockReceipts api : 1. return null for genesis block 2. support blockHash param
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/framework/src/main/java/org/tron/core/services/jsonrpc/TronJsonRpcImpl.java b/framework/src/main/java/org/tron/core/services/jsonrpc/TronJsonRpcImpl.java
index f681a94fe9f..7e9b886224d 100644
--- a/framework/src/main/java/org/tron/core/services/jsonrpc/TronJsonRpcImpl.java
+++ b/framework/src/main/java/org... | 2 | 2 | 1 | [{"id": "G0", "claim": "The comment '//energy price at the block timestamp' should be written as '// energy price at the block timestamp'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "eth_getBlockReceipts should support blockHash as a paramete... | null |
tronprotocol__java-tron__6505 | tronprotocol/java-tron | 6,505 | defect | cdd720a7b66f3950c04d5377cb97e38f05fdccf8 | d0923d13afbf943a50b0a5b7a38e0c7f9e4f3b67 | feat(db): optimize the logic for obtaining transactions that require signature verification | **What does this PR do?**
Optimize the logic for obtaining transactions that require signature verification.
**Why are these changes required?**
**This PR has been tested by:**
- Unit Tests
- Manual Testing
**Follow up**
**Extra details**
| diff --git a/framework/src/main/java/org/tron/core/db/Manager.java b/framework/src/main/java/org/tron/core/db/Manager.java
index 586c3d83857..5bdb3ff00cc 100644
--- a/framework/src/main/java/org/tron/core/db/Manager.java
+++ b/framework/src/main/java/org/tron/core/db/Manager.java
@@ -21,6 +21,7 @@
import java.util.Col... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test block builds t2Bak (same transaction id as t1Bak but with an extra signature) but never adds it to pendingTransactions, so the `dbManager.getPendingTransactions().add(t2Bak);` line appears to be missing and the final getVerifyTxs case does not exercise the intended scenario.", "cate... | null |
trpc-group__trpc-java__54 | trpc-group/trpc-java | 54 | defect | a41c9aaaaf939e995739a5af227f1855f199394e | de307775574015d410d4480b5f1a6a28c74ff661 | fix TcpDecoder memory leak | **reproduce code**
```
@Test
public void testTcpDecodeIllegalPacket1() {
Codec codec = mock(Codec.class);
doThrow(TRpcException.newFrameException(ErrorCode.TRPC_CLIENT_DECODE_ERR, "the request protocol is not trpc"))
.when(codec).decode(any(), any());
Protocol... | diff --git a/trpc-transport/trpc-transport-netty/src/main/java/com/tencent/trpc/transport/netty/NettyChannel.java b/trpc-transport/trpc-transport-netty/src/main/java/com/tencent/trpc/transport/netty/NettyChannel.java
index 72c96efeed..753a2c5e91 100644
--- a/trpc-transport/trpc-transport-netty/src/main/java/com/tencent... | 3 | 1 | 0 | [{"id": "G0", "claim": "The two new tests are near-identical duplicates and should be extracted into a single function with batchDecoder controlled by a parameter.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Netty may already release the inpu... | null |
trpc-group__trpc-java__71 | trpc-group/trpc-java | 71 | defect | a3dda78b3a7e743dbcef823b57351ae4e9d19be7 | ae461af0a1560ed299f8d0cca4bd8ad529547367 | WIP: ThreadWorkerPool支持newVirtualThreadPerTaskExecutor方式使用虚拟线程 | 用Executors.newVirtualThreadPerTaskExecutor()的方式使用虚拟线程,用ThreadPerTaskExecutor代替,用完立即销毁
使用ExecutorServiceWrapper去实现ThreadPoolMXBean临时使用反射实现,只简单统计了提交和完成的任务数量,近似替代相关数据监控。[JEP#444](https://openjdk.org/jeps/444#JDK-Flight-Recorder-JFR)建议使用JFR来监控虚拟线程。 | diff --git a/trpc-core/src/main/java/com/tencent/trpc/core/management/BaseThreadPoolMXBean.java b/trpc-core/src/main/java/com/tencent/trpc/core/management/BaseThreadPoolMXBean.java
new file mode 100644
index 0000000000..4780e94a3d
--- /dev/null
+++ b/trpc-core/src/main/java/com/tencent/trpc/core/management/BaseThreadPo... | 10 | 7 | 3 | [{"id": "G0", "claim": "The new files added by this pull request should carry the standard Tencent copyright/license header (all five of them).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Wildcard imports (e.g. java.util.concurrent.*) should be... | null |
trpc__trpc__3973 | trpc/trpc | 3,973 | defect | 783f9bcae31ef788962a4417bda15f190598ecb7 | d24cb966c65c6387575970b64f85ad98d78976ed | feat(`client`): add ability to call `TRPCProxyClient`-methods with `.apply()` |
Closes #3964
## 🎯 Changes
This PR allow the client to be call as :
```client.myrouter.myresolver.query.apply(undefined, [input])```
instead of :
```client.myrouter.myresolver.query(input)```
It allows to use tools where you pass the function, and the tool call it using apply on the function object itself... | diff --git a/packages/server/src/shared/createProxy/index.ts b/packages/server/src/shared/createProxy/index.ts
index 04f7f8fe841..bafb18e0d03 100644
--- a/packages/server/src/shared/createProxy/index.ts
+++ b/packages/server/src/shared/createProxy/index.ts
@@ -19,9 +19,10 @@ function createInnerProxy(callback: ProxyCal... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new `.apply()` behaviour needs tests asserting it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should handle `call` and `bind` too, since they all \"apply\" (invoke the target function) here.", "category": "design",... | null |
trpc__trpc__4403 | trpc/trpc | 4,403 | defect | 8a9bda69ca2b50f0b005acfb0012209ba88aa880 | cadb44ff0c9b1e6fbc661fb93214357f2cc63fbb | feat(`httpBatchLink`): alternative DX `streamRequester` for batch streaming | Proposal for https://github.com/trpc/trpc/pull/4347
## 📰 Update
The `requester` option proposal was rejected, but this PR is still better for code-sharing between regular batch link and stream batch link, so I used it as a base to refactor into 2 separate links `httpBatchLink` and `unstable_httpBatchStreamLink` ... | diff --git a/examples/next-minimal-starter/src/utils/trpc.ts b/examples/next-minimal-starter/src/utils/trpc.ts
index 38ecfd02023..d5e1a2ccc44 100644
--- a/examples/next-minimal-starter/src/utils/trpc.ts
+++ b/examples/next-minimal-starter/src/utils/trpc.ts
@@ -1,4 +1,4 @@
-import { unstable_httpBatchStreamLink } from '... | 1 | 1 | 0 | [{"id": "G0", "claim": "The batch-mode header should simply be named `trpc-xxx` (e.g. `trpc-batch-mode`) rather than the `X-Trpc-Batch-Mode` form used by the new streaming batch mode.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trpc__trpc__4793 | trpc/trpc | 4,793 | defect | c03a88ae91d368dbaf4c5c9bbf0f40fd7b00f0ec | 25c12f6a8272c0bc8c634b2167bf71fbeb40ea44 | docs: Update docs and tests for Valibot >= v0.13.0 | Closes #4737
## 🎯 Changes
- Upgrade Valibot to v0.15.0
- Add `@decs/typeschema` package
- Update Valibot docs using `wrap`
- Update Valibot tests using `wrap`
> Currently there is still a [problem](https://github.com/trpc/trpc/issues/4737#issuecomment-1716305966) with `wrap` so this is only a draft.
## ... | diff --git a/packages/server/src/core/internals/getParseFn.ts b/packages/server/src/core/internals/getParseFn.ts
index f4fb19d2e8b..95033d50b2b 100644
--- a/packages/server/src/core/internals/getParseFn.ts
+++ b/packages/server/src/core/internals/getParseFn.ts
@@ -17,7 +17,7 @@ export function getParseFn<TType>(procedu... | 6 | 3 | 2 | [{"id": "G0", "claim": "Add a link on \"TypeSchema\" in the Valibot tab of the quickstart docs pointing to https://typeschema.com.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using the newly released typeschema version in this PR's setup fails ... | null |
trpc__trpc__4819 | trpc/trpc | 4,819 | defect | fbad52bb1a1141d2c7aae4a62165a35168445cd3 | d1597bd20e4a5b64927183aa8223554321e883ce | feat(`server`): lazy `rawInput` getter | Closes #
## 🎯 Changes
Make input a lazy getter to prepare for better content type support
| diff --git a/.wip/changes.md b/.wip/changes.md
index 8b1ea05fb9b..3da0d725075 100644
--- a/.wip/changes.md
+++ b/.wip/changes.md
@@ -17,3 +17,5 @@
Check their migration guide: https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5
FIXME: Update our docs where applicable
+
+## `rawInput` in middleware is no... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `await opts.getRawInput()` call should be moved outside the try block, since adapter errors it may throw would otherwise be caught and swallowed by the parse error handling that never saw them before.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
trpc__trpc__4986 | trpc/trpc | 4,986 | defect | 43e0da13073c8e5426c4c4fb6c3fb09e598fc6fe | 7c5da8de57e518424fb2befeb9200fc449ed968c | fix(server + client): fix some issues with inferring Record types as procedure outputs | …utputs
Closes #4985
## 🎯 Changes
What changes are made in this PR? Is it a feature or a bug fix?
Fixes some issues with inferring Record types as procedure outputs. See linked issue.
## ✅ Checklist
- [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/m... | diff --git a/packages/server/src/shared/internal/serialize.ts b/packages/server/src/shared/internal/serialize.ts
index 08c4919007c..3a6cb09a3e4 100644
--- a/packages/server/src/shared/internal/serialize.ts
+++ b/packages/server/src/shared/internal/serialize.ts
@@ -18,9 +18,10 @@ type IsAny<T> = 0 extends T & 1 ? true :... | 2 | 2 | 1 | [{"id": "G0", "claim": "The Record-detection check added to `Serialize` could probably use a helper like `type IsRecord<T> = Record<never, never> extends T ? true : false` to make the check simpler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
trpc__trpc__5150 | trpc/trpc | 5,150 | defect | 62a28a6ebbb59da4e28c7f36d1dbd06b7d3e0c7a | 6b94d71f2cf5a5704174fe10a2e354c47888fb56 | feat: allow trpc with fastify to use only one path | ## 🎯 Changes
`@fastify/websocket` create a single `WebSocketServer` for the `fastify` instance.
In the `fastify` documentation they suggest that if you want to use multiple websocket endpoint you should do like this :
```
fastify.get('/', { websocket: true }, (connection /* SocketStream */, req /* FastifyR... | diff --git a/packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts b/packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts
index 569b0d29f33..24146c6821f 100644
--- a/packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts
+++ b/packages/server/src/adapters/fastify/fastifyTRPCPlugin.ts
@@ -47,6 +47,7 @@ expor... | 2 | 2 | 2 | [{"id": "G0", "claim": "The strict equality check `req.url !== prefix` is too strict because `req.url` can contain query params, so prefixed websocket connections with a query string may be wrongly rejected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
trpc__trpc__5155 | trpc/trpc | 5,155 | defect | c4d0c3113a1e807104d92ae65f520dd0960c6f9a | 833a4c5fe3680c82c7cb0605ce68a5b7912943a9 | feat: Add React Query Utils helper | Closes #5129
Closes #4974
Closes #4773
## 🎯 Changes
Add typed react-query client utility methods for use outside React context.
This is well explained in #4974
[RQ v4 SSR](https://tanstack.com/query/v4/docs/react/guides/ssr#using-nextjs)
[RQ v4 React Router](https://tanstack.com/query/v4/docs/react/e... | diff --git a/.vscode/settings.json b/.vscode/settings.json
index 3af0a8a5ea2..a45d02cc4eb 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,7 +2,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
- "source.fixAll.eslint": t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The proxy-building block duplicated in createQueryUtilsProxy reuses logic that already exists in createReactQueryUtils above it, so one copy should be removed/reused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trpc__trpc__5654 | trpc/trpc | 5,654 | defect | 62b378ae69907db634f02d3b7be87440f062e4a5 | 4f1b14494dfb09ee7e4808dcd2dd0a6ec560c2e8 | chore: better error for mismatched content-type | Closes #5653
- improves error by providing the received content type to the error
- uses `Headers` (Node18+) whose `.get()` is case-insensitive | diff --git a/packages/server/src/adapters/aws-lambda/content-type/json/index.ts b/packages/server/src/adapters/aws-lambda/content-type/json/index.ts
index e318643901e..6348125ed1e 100644
--- a/packages/server/src/adapters/aws-lambda/content-type/json/index.ts
+++ b/packages/server/src/adapters/aws-lambda/content-type/j... | 3 | 2 | 0 | [{"id": "G0", "claim": "MinimalHandlerOpts.req.headers could take only Headers, with the HTTPHeaders-to-Headers conversion done higher up.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The UNSUPPORTED_MEDIA_TYPE TRPCError is constructed on every request... | null |
trpc__trpc__5715 | trpc/trpc | 5,715 | defect | ee3b26553f84643290bca4ea928622596acb88af | 6040f4cf31d07ba9fe2628ea6aae0f4a6ddcf924 | feat(server): websocket keep alive | Closes #2822
## 🎯 Changes
Heartbeat logic is implemented to keep connection alive.
## ✅ Checklist
- ✅ I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md).
- ✅ If necessary, I have added documentation related to the changes made.
- ✅ I ha... | diff --git a/packages/server/src/adapters/ws.ts b/packages/server/src/adapters/ws.ts
index e98fc7bc466..637add8fddd 100644
--- a/packages/server/src/adapters/ws.ts
+++ b/packages/server/src/adapters/ws.ts
@@ -62,6 +62,23 @@ export type WSSHandlerOptions<TRouter extends AnyRouter> =
WSConnectionHandlerOptions<TRouter... | 4 | 3 | 0 | [{"id": "G0", "claim": "Use fake timers instead of real waiting in the keep-alive tests so the test is snappy and the suite does not take over 3 seconds to run.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use unref() on the keep-alive interval so the... | null |
trpc__trpc__5724 | trpc/trpc | 5,724 | defect | 3dc8f3be2d5848a3c7b54da357c74b0db146b32d | a2d4111ac2d21a6c21146e8c16acb3ecf903f6c5 | fix(server): handle large POST bodies in node-http | Closes #5725
## 🎯 Changes
Fixes a bug where node-http server would truncate POST bodies.
## ✅ Checklist
- [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md).
- [x] If necessary, I have added documentation related to the changes made.
-... | diff --git a/packages/server/src/adapters/node-http/incomingMessageToRequest.test.ts b/packages/server/src/adapters/node-http/incomingMessageToRequest.test.ts
index 4b283c2f185..2d71bfcee9c 100644
--- a/packages/server/src/adapters/node-http/incomingMessageToRequest.test.ts
+++ b/packages/server/src/adapters/node-http/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use req.once('end', ...) instead of req.on('end', ...) since it is tidier.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
trpc__trpc__5814 | trpc/trpc | 5,814 | defect | 7984d892d5f279a137fdf1e482881271cd1e1658 | f7860caeeee2a72a0171a12d918bee47050ef5f2 | feat(react-query): add support for mutations to `createTRPCQueryUtils` and improve offline support | Closes #5800
## 💡 Motivation
This PR is largely motivated by the need to improve offline support in tRPC. According to my research, there were two main missing pieces:
- a type-safe way to call `utils.anyRouter.anyMutationProcedure.setMutationDefaults()`
- a type-safe way to call the canonical mutation funct... | diff --git a/packages/react-query/src/internals/context.tsx b/packages/react-query/src/internals/context.tsx
index 3c1e3e2d74e..3eeac00430f 100644
--- a/packages/react-query/src/internals/context.tsx
+++ b/packages/react-query/src/internals/context.tsx
@@ -5,6 +5,7 @@ import type {
InfiniteData,
InvalidateOptions... | 6 | 5 | 1 | [{"id": "G0", "claim": "The `mutationKey` type of the new mutation utilities in `TRPCQueryUtils` should be more precise than `string[][]`, and its relationship to `TRPCQueryKey` clarified.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `case 'setMuta... | null |
trpc__trpc__5856 | trpc/trpc | 5,856 | defect | 775af00cc25f1a2397e3f5d7f811f6a8a4b0aa82 | 7bb2a7b2433ee680ccabe8378cb4e574e74a4607 | fix(server): re-add proxy memo | Closes #5808
## 🎯 Changes
- Re-adds proxy memorization with more defensive handling - a mutation of the arguments caused an issue
- Adds `readonly` prefix on a bunch of places to prevent mutation of arguments' arrays
| diff --git a/packages/react-query/src/rsc.tsx b/packages/react-query/src/rsc.tsx
index c612ee20a48..1670a219778 100644
--- a/packages/react-query/src/rsc.tsx
+++ b/packages/react-query/src/rsc.tsx
@@ -90,6 +90,9 @@ export function createHydrationHelpers<TRouter extends AnyRouter>(
) as unknown as DecorateProcedure... | 1 | 1 | 0 | [{"id": "G0", "claim": "The debugging console.log in the prefetch proxy makes the test log out its output, cluttering the test run.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trpc__trpc__5862 | trpc/trpc | 5,862 | defect | 18aad16142282eb159b683b08e485692d739c38b | 05d600ac34c0402b72a6e7f3dcf31e2b6c80180d | Add `usePrefetchQuery ` | ## 🎯 Changes
Adding `usePrefetchQuery`, `usePrefetchInfiniteQuery` from Tanstack Query into `@trpc/react-query`
These hooks are mostly useful for doing component level prefetching near the top of a component tree above a Suspense boundary. I've added the documentation in a `Prefetching` sub-section under the Sus... | diff --git a/packages/react-query/src/createTRPCReact.tsx b/packages/react-query/src/createTRPCReact.tsx
index aefefa8848e..246f2427df7 100644
--- a/packages/react-query/src/createTRPCReact.tsx
+++ b/packages/react-query/src/createTRPCReact.tsx
@@ -16,7 +16,7 @@ import type {
TRPCUseQueries,
TRPCUseSuspenseQuerie... | 3 | 3 | 1 | [{"id": "G0", "claim": "The existing TRPCFetchQueryOptions interface lacks the trpc property, so the new usePrefetchQuery implementation drops it, and an extension of that interface may be needed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs e... | null |
trpc__trpc__5875 | trpc/trpc | 5,875 | defect | 324ac7fa49800e4d82649539e2ea2eb025144961 | b964f7afa430c3913882a28093b29af122e6b619 | feat(websockets): add support for `lastEventId` | Closes #
Adds support for lastEventId for WebSockets, the same way we have in SSE
Basically, it allows the client to automatically track the latest sent event id and it'll send it to the server on any disconnection
**📚 Docs:** https://www-git-07-06-lasteventid-trpc.vercel.app/docs/websockets#automatic-tracki... | diff --git a/packages/client/src/links/wsLink.ts b/packages/client/src/links/wsLink.ts
index 089b316aacb..e5a34ff7079 100644
--- a/packages/client/src/links/wsLink.ts
+++ b/packages/client/src/links/wsLink.ts
@@ -103,7 +103,7 @@ export function createWSClient(opts: WebSocketClientOptions) {
* pending outgoing reque... | 2 | 2 | 0 | [{"id": "G0", "claim": "Mixing SSE envelope handling into the WebSocket adapter and tests feels off, and the common parts should get a unified name/abstraction.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sse({id, data}) helper's shape duplicates ... | null |
trpc__trpc__5961 | trpc/trpc | 5,961 | defect | 9965adc2bddc7e8ba0288a88262bf7926ded9300 | 57545ae87573e5d78a50d2ab1bbad82e1789eaef | feat(client): wsClient onError | ## 🎯 Changes
So far WebSocket connection errors where not being made known to a trpc client. While the wsClient keeps trying to reconnect in the background, there was no way for the application to be notified or make any decisions.
What was possible already:
- onError callback for subscriptions which react to T... | diff --git a/packages/client/src/links/wsLink.ts b/packages/client/src/links/wsLink.ts
index e5a34ff7079..55546337e06 100644
--- a/packages/client/src/links/wsLink.ts
+++ b/packages/client/src/links/wsLink.ts
@@ -37,6 +37,10 @@ type WSCallbackObserver<TRouter extends AnyRouter, TOutput> = Observer<
const exponentialBa... | 2 | 2 | 1 | [{"id": "G0", "claim": "The onError option should not return a boolean to control reconnection; simplify it to (evt?: Event) => void, since the error event carries no useful information and reconnection is already handled by the retryDelayFn.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
trpc__trpc__5999 | trpc/trpc | 5,999 | defect | 22c9b97003fd90ab1625a5a6b3676de353458d11 | 4723b9ba2405010cb5d2762451fd444ac0ea1a4e | fix: Websocket Reconnection on React Native | Closes #5998
## 🎯 Changes
- Makes a small change in the websocket client that always sets the connection state to `connecting` when `tryReconnect` is called so that `pendingRequests` can not be deleted when the connection is closed for an unexpected reason
## ✅ Checklist
- [x] I have followed the steps lis... | diff --git a/packages/client/src/links/wsLink.ts b/packages/client/src/links/wsLink.ts
index d526611de43..f140fa39ec1 100644
--- a/packages/client/src/links/wsLink.ts
+++ b/packages/client/src/links/wsLink.ts
@@ -178,11 +178,10 @@ export function createWSClient(opts: WebSocketClientOptions) {
});
}
function ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The maintainer doubts the PR as it stands actually fixes the outlined reconnection problem — if there is a connectTimer it will eventually reconnect anyway, so the change may make no real difference.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {... | null |
trpc__trpc__6047 | trpc/trpc | 6,047 | defect | 270055d352faf6665e726fd0060506e9f5555ab7 | 89e14feb1ec407081c45e7306e94a6cf42c0c2a7 | feat(sse): ability to reconnect with new headers | Closes #6046
## 🎯 Changes
What changes are made in this PR? Is it a feature or a bug fix?
<!--
Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch
-->
## ✅ Checklist
- [ ] I have followed the steps listed in the [Contributing guide](https://github.c... | diff --git a/packages/client/src/links/httpSubscriptionLink.ts b/packages/client/src/links/httpSubscriptionLink.ts
index 5b2742fbe95..6588382f837 100644
--- a/packages/client/src/links/httpSubscriptionLink.ts
+++ b/packages/client/src/links/httpSubscriptionLink.ts
@@ -11,7 +11,6 @@ import {
import { TRPCClientError } ... | 10 | 8 | 5 | [{"id": "G0", "claim": "The restart path should probably prevent the old EventSource from emitting any events, e.g. by removing its listeners before closing it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The object variant of `eventSourceOptions... | null |
trpc__trpc__6079 | trpc/trpc | 6,079 | defect | ec4a5c780957e00784b6bbf73bc0de50b4b61b82 | a9034f6f703bdcc62bfa9e9150f2c2c785770209 | feat(server): add Standard Schema support | ## 🎯 Changes
An union of schema library authors (Zod, Valibot, ArkType, ...) collaborating on a standard interface for schema libraries called [Standard Schema](https://github.com/standard-schema/standard-schema). This simplifies implementation and prevents vendor lock-in. So far Valibot v1 supports this spec and Z... | diff --git a/packages/server/package.json b/packages/server/package.json
index 5843945982c..573f4d24eba 100644
--- a/packages/server/package.json
+++ b/packages/server/package.json
@@ -117,6 +117,7 @@
},
"devDependencies": {
"@fastify/websocket": "^10.0.1",
+ "@standard-schema/spec": "^1.0.0-beta.0",
... | 8 | 5 | 3 | [{"id": "G0", "claim": "Remove the console.error('Schema issues:', ...) debug logging added before throwing the parse error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Throwing a generic Error with only the first issue's message makes custom... | null |
trpc__trpc__6149 | trpc/trpc | 6,149 | defect | 290a117b356059934a2192731395e521854e3f70 | 0cf752c79d3262d2023aedc1f4c9d3ef1170e410 | feat(client): supply operation to the `httpSubscriptionLink`'s `eventSourceOptions` | Closes #6148
## 🎯 Changes
What changes are made in this PR? Is it a feature or a bug fix?
A new feature to supply the operation that initialises an EventSource in httpSubscriptionLink.
<!--
Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch
-->
## ✅ C... | diff --git a/packages/client/src/links/httpSubscriptionLink.ts b/packages/client/src/links/httpSubscriptionLink.ts
index 2807e28a68e..3a4c6d6a554 100644
--- a/packages/client/src/links/httpSubscriptionLink.ts
+++ b/packages/client/src/links/httpSubscriptionLink.ts
@@ -16,12 +16,11 @@ import { TRPCClientError } from '..... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please supply a test for the new operation-aware eventSourceOptions callback and update the docs as well.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trpc__trpc__6361 | trpc/trpc | 6,361 | defect | 4275ac796890fb0379cb31c7895a24c59355258b | 360585ec5a91f172e1cf801975d0ad724efd347c | fix(server): encode the SSE messages as bytes instead | This makes it closer to the HTTP wire format and compatible with Cloudflare Workers.
Closes #6360
## 🎯 Changes
- Updated SSE to encode as bytes to play well with the Cloudflare Workerd runtime
- Updated SSE tests to handle binary chunks while maintaining human-readable output. Added TextDecoder to convert Ui... | diff --git a/packages/server/src/unstable-core-do-not-import/stream/sse.test.ts b/packages/server/src/unstable-core-do-not-import/stream/sse.test.ts
index c4570605c64..a8ce91807e6 100644
--- a/packages/server/src/unstable-core-do-not-import/stream/sse.test.ts
+++ b/packages/server/src/unstable-core-do-not-import/stream... | 2 | 2 | 0 | [{"id": "G0", "claim": "Replace the manual textEncoder.encode calls inside the SSE producer's TransformStream with another pipethrough of a TextEncoderStream.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use TextDecoderStream instead of the manual text... | null |
trpc__trpc__6484 | trpc/trpc | 6,484 | defect | 88a0d9531aae841a9800b58cf23cfc7bc414e984 | 03dc7bd16af1e16f452bf241eda8482f4d8c01eb | feat(client): allow any procedure name | - Closes #6477
- Closes #3710
## 🎯 Changes
Remove intersection checks for the client proxy - we don't expose anything but the procedures themselves when we decorate it
## ✅ Checklist
- [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md... | diff --git a/packages/client/src/createTRPCClient.ts b/packages/client/src/createTRPCClient.ts
index 1ed4f745e2d..fc9f43bfbf2 100644
--- a/packages/client/src/createTRPCClient.ts
+++ b/packages/client/src/createTRPCClient.ts
@@ -5,8 +5,8 @@ import type {
AnyRouter,
inferClientTypes,
inferProcedureInput,
+ Inf... | 5 | 2 | 0 | [{"id": "G0", "claim": "The untyped-client lookup relies on a module-scoped Symbol plus a description comparison, which may not identify the same symbol when a monorepo bundles two copies of tRPC; use Symbol.for() and the global symbol registry instead.", "category": "correctness", "verdict": "supported", "priority": "... | null |
trpc__trpc__6489 | trpc/trpc | 6,489 | defect | f1a99e824de6f63c8659765cfa1ae0bf30ad473e | 0cc21cd60bfc27895f0d06022f38a9f4916939ba | fix: grab call expression deeper than 2 calls | moves up the tree to find the actuall call expression and use the correct replace helper
Closes #
## 🎯 Changes
Backward compatible change to make sure the correct call expression is picked in a nested expression.
Old code picked `utils.x.helper()` but wouldn't do it for `utils.x.y.z.helper()`, this fixes... | diff --git a/packages/upgrade/src/transforms/hooksToOptions.ts b/packages/upgrade/src/transforms/hooksToOptions.ts
index 82504311121..d5972d37547 100644
--- a/packages/upgrade/src/transforms/hooksToOptions.ts
+++ b/packages/upgrade/src/transforms/hooksToOptions.ts
@@ -205,7 +205,18 @@ export default function transform(... | 1 | 1 | 1 | [{"id": "G0", "claim": "The codemod does not preserve the full path of a proxy call nested deeper than two member levels (e.g. utils.post.list.invalidate() must become queryClient.invalidateQueries(trpc.post.list.queryFilter())), as shown by the failing test the reviewer pushed.", "category": "correctness", "verdict": ... | null |
trpc__trpc__6517 | trpc/trpc | 6,517 | defect | 9158020f4df8877873e81b3149a4ce40ba860a64 | a688e7b697779e7fa0188ebdfe87647a12f8bc38 | Add type inference doc | Closes #
## 🎯 Changes
What changes are made in this PR? Is it a feature or a bug fix?
<!--
Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch
-->
## ✅ Checklist
- [ ] I have followed the steps listed in the [Contributing guide](https://github.com/tr... | diff --git a/www/docs/client/tanstack-react-query/usage.mdx b/www/docs/client/tanstack-react-query/usage.mdx
index 642fae952a9..fd849db485b 100644
--- a/www/docs/client/tanstack-react-query/usage.mdx
+++ b/www/docs/client/tanstack-react-query/usage.mdx
@@ -225,3 +225,31 @@ function SubscriptionExample() {
return <>{... | 6 | 3 | 1 | [{"id": "G0", "claim": "The new doc section tells users to `import type { InferInput, InferOutput } from '@trpc/tanstack-react-query'` — confirm these exports actually exist.", "category": "documentation", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The section description mis... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.