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
tpm2-software__tpm2-tss__2916
tpm2-software/tpm2-tss
2,916
defect
d68270b61620050cca89782c6bfaed9ed4a38322
2ec4b241ea827a0acfea6ec704eb1dc61cc54d9f
tcti-msim: Fix call of socket_xmit_buf in send_sim_session_end.
* socket_xmit_buf was not called after successful marshalling. * The result of the write function was not set in the wrapper function for write in the teardown function. Fixes: #2915
diff --git a/src/tss2-tcti/tcti-mssim.c b/src/tss2-tcti/tcti-mssim.c index a358452c6d..5a83dbcbe7 100644 --- a/src/tss2-tcti/tcti-mssim.c +++ b/src/tss2-tcti/tcti-mssim.c @@ -136,7 +136,7 @@ send_sim_session_end ( TSS2_RC rc; rc = Tss2_MU_UINT32_Marshal (TPM_SESSION_END, buf, sizeof (buf), NULL); - if (r...
1
1
0
[{"id": "G0", "claim": "Delete the empty line that the pull request added at the end of tcti_mssim_get_poll_handles_test in test/unit/tcti-mssim.c.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tpm2-software__tpm2-tss__2932
tpm2-software/tpm2-tss
2,932
defect
ea818d1e96366844bedd9781e4b8164ee52618c9
ef07be1dddee11c47cd09c062adb82a0af3f5021
ESYS: Support of Cp and RpHashes from Esys Layer
* The ESYS API is extended with the functions: Esys_GetCpHash, Esys_GetRpHash, and Esys_Abort. The cp hash can computed after the async call of a function. The rp hash after the finish call. If only the async call is executed to to compute the cp hash Esys_Abort has to be called to enable the execution ...
diff --git a/Makefile-test.am b/Makefile-test.am index ecd759d80..229cbcd75 100644 --- a/Makefile-test.am +++ b/Makefile-test.am @@ -238,6 +238,7 @@ ESYS_TESTS_INTEGRATION_MANDATORY = \ test/integration/esys-clockset.int \ test/integration/esys-clockset-audit.int \ test/integration/esys-commit.int \ + ...
3
3
1
[{"id": "G0", "claim": "The Description in lib/tss2-tcti-null.pc.in does not quite fit the null TCTI's purpose and should describe it accurately.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Esys_Abort should execute Tss2_Sys_Abort first and onl...
null
tpm2-software__tpm2-tss__2943
tpm2-software/tpm2-tss
2,943
defect
9bb7ee4404dea973ec6f898978923dafb5df5052
7151f0adc4f70a972fb36ea7fc40a65f624e0f3b
FAPI: Support intermediate certificates stored in NV ram.
* Add reading of intermediate certificates from NV ram. * Add Intel ODCA Root Certificate. * Rework Fapi_GetPlatformCertificates. Addresses: #2934
diff --git a/.cirrus.yml b/.cirrus.yml index 52d4aae4e..f11201bac 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -5,7 +5,7 @@ task: libusb_version: v1.0.26 freebsd_instance: matrix: - image_family: freebsd-14-1 + image_family: freebsd-14-2 install_script: - IGNORE_OSVERSION=yes - pkg ...
7
5
4
[{"id": "G0", "claim": "The change leaves code commented out ('// ifapi_cleanup_ifapi_object(&context->nv_cmd.auth_object);') instead of removing it or restoring it as live code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With the patch appl...
null
tpm2-software__tpm2-tss__2972
tpm2-software/tpm2-tss
2,972
defect
31ed57848a349c7357d608d28de5b65923042dbe
1439afa771214f20d4eac7156d5461c9d2890adb
FAPI: Create FAPI NV objects for existing NV indexes
For every TPM NV index which is currently not stored in the keystore a FAPI object in the appropriate sub directory will be created during provisioning. e.g. a certificate stored at 0x1c00002 will be stored at: /nv/Endorsement_Certificate/1c00002 If provisioning has already been performed it also will be checked wh...
diff --git a/src/tss2-fapi/api/Fapi_Initialize.c b/src/tss2-fapi/api/Fapi_Initialize.c index 46d9dcde1..d6aa25803 100644 --- a/src/tss2-fapi/api/Fapi_Initialize.c +++ b/src/tss2-fapi/api/Fapi_Initialize.c @@ -28,10 +28,28 @@ #include "tss2_tcti.h" // for TSS2_TCTI_CONTEXT #include "tss2_tctildr.h" //...
2
2
0
[{"id": "G0", "claim": "The new `for (size_t i = 0; ...)` loop added in INITIALIZE_CHECK_NV_OBJECTS_INIT declares a variable `i` that hides another variable of the same name (line 206 of Fapi_Initialize.c).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
tpm2-software__tpm2-tss__3066
tpm2-software/tpm2-tss
3,066
defect
e5800fdb78e4678e1f3978ca81566e8d6ce6ec96
3a3554bc1106bf1971962ba17d447901f36160e1
FAPI: Add new FAPI function Fapi_DigestAndSign.
* The function Fapi_DigestAndSign computes a digest using the algorithm defined by the nameAlg of a restricted signing key and subsequently signs the resulting digest. * The capability of Fapi_Sign to use a restricted key was removed. * Addresses #3065
diff --git a/doc/doxygen.dox b/doc/doxygen.dox index d6130b576..a91123ed3 100644 --- a/doc/doxygen.dox +++ b/doc/doxygen.dox @@ -1321,6 +1321,13 @@ and are marked according to the PC Client Profile Revision 01.03 v22: \fn Fapi_Sign_Async(FAPI_CONTEXT *context, char const *keyPath, char const *padding, uint8_t const *...
3
3
2
[{"id": "G0", "claim": "The error message for a restricted key in Fapi_Sign should state that Fapi_DigestAndSign() must be used instead, if that is the case.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The removed data_size > sizeof(TPMU_HA) dige...
null
tpm2-software__tpm2-tss__579
tpm2-software/tpm2-tss
579
defect
3bc96032d4734c4e3eb4cdf317659ff8561a3317
f0201cc4428b5da3903c44f852c51fe68b01ccbe
sysapi: fix Tss2_Sys_GetCommandCode
The spec says: [1] "This function gets the command code for the command. The command code is returned as an array of bytes in big endian order. This array can be used for calculating the cpHash for a command or rpHash for a response." The problem is that our current implementation desn't return the command code ...
diff --git a/include/sapi/tss2_sys.h b/include/sapi/tss2_sys.h index cbd87cdd09..7e359eeacd 100644 --- a/include/sapi/tss2_sys.h +++ b/include/sapi/tss2_sys.h @@ -148,7 +148,7 @@ TSS2_RC Tss2_Sys_Execute( // TSS2_RC Tss2_Sys_GetCommandCode( TSS2_SYS_CONTEXT *sysContext, - UINT8 (*commandCode)[4] + TPM_CC *...
1
1
1
[{"id": "G0", "claim": "Keep the Tss2_Sys_GetCommandCode function prototype as it is (UINT8 (*)[4]) for spec compliance and apply the internal fixes while preserving that existing prototype, rather than changing the parameter to TPM_CC *.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
tpm2-software__tpm2-tss__592
tpm2-software/tpm2-tss
592
defect
3f1828ccb317f4acf1aff964e404fcd6e7df3449
59eac47879e14d3a0a57824b52fb6c837f1901f5
Add support for EncryptDecrypt2 command
This PR adds support for this new function. It also adds a test case for the older EncryptDecrypt command as well as the new one and resolves issue #506
diff --git a/Makefile.am b/Makefile.am index cafa4bba37..597418ac4f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,6 +66,8 @@ TESTS_INTEGRATION = \ test/integration/asymmetric-encrypt-decrypt.int \ test/integration/create-primary-rsa-2048-aes-128-cfb.int \ test/integration/create-keyedhash-sha1-hmac.i...
1
1
1
[{"id": "G0", "claim": "The new Tss2_Sys_EncryptDecrypt2.c should use SYS_CONTEXT->cmdBuffer and SYS_CONTEXT->maxCmdSize instead of SYS_CONTEXT->tpmInBuffPtr and SYS_CONTEXT->maxCommandSize, and the same for all other occurrences in the file (Prepare, Complete, and the calls below).", "category": "correctness", "verdic...
null
tpm2-software__tpm2-tss__638
tpm2-software/tpm2-tss
638
defect
090641a803ae192d169cf438a0c38958ab831149
dc089caacc441b9cfebcacc9c3f8fbd0298403e7
sysapi: Fixes about GetCommandCode
This patch updates the function signature to reflect the latest specification version. Further, it make the GetCommandCode function safe to use with non-aligned arrays. Also it fixes the tests to account for correct endianess. Signed-off-by: Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de> Signed-off-by: Juergen...
diff --git a/include/sapi/tss2_sys.h b/include/sapi/tss2_sys.h index 0ddf9603b..137c1e684 100644 --- a/include/sapi/tss2_sys.h +++ b/include/sapi/tss2_sys.h @@ -148,7 +148,7 @@ TSS2_RC Tss2_Sys_Execute( // TSS2_RC Tss2_Sys_GetCommandCode( TSS2_SYS_CONTEXT *sysContext, - UINT8 (*commandCode)[4] + UINT8 *com...
1
1
0
[{"id": "G0", "claim": "In Tss2_Sys_GetCommandCode the (void *) cast is unnecessary and a direct assignment of the converted command code would be better than copying 4 bytes through a tmp variable with memcpy.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tpm2-software__tpm2-tss__817
tpm2-software/tpm2-tss
817
defect
5e7991e85ed6cbe47eeb69fc39fbff25af258fd0
a76f6e2f3b6fcbe3316cd3bb91ac32c1551535de
Tcti v2 and cleanup
Add the TCTI v2 stuff to the TCTI header, remove the deprecated init functions from the device TCTI and do a bit of cleanup.
diff --git a/include/sapi/tss2_tcti.h b/include/sapi/tss2_tcti.h index 3b4b7bc8aa..14ebddc830 100644 --- a/include/sapi/tss2_tcti.h +++ b/include/sapi/tss2_tcti.h @@ -30,10 +30,6 @@ #ifndef TSS2_TCTI_H #define TSS2_TCTI_H -#ifdef __cplusplus -extern "C" { -#endif - #include <stdint.h> #include <stddef.h> #includ...
3
2
0
[{"id": "G0", "claim": "The man page file man/InitDeviceTcti.3.in should also be renamed to match the new function name (Tss2_Tcti_Device_Init), ideally after rebasing on merged #808 to avoid Makefile conflicts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": ...
null
tpm2-software__tpm2-tss__843
tpm2-software/tpm2-tss
843
defect
36a8e1f54f075dc44d130a047a71cc4b79040c92
0914ba0088ca9e237cd38f5de105f3b218198a50
tcti: don't send MS_SIM_CANCEL_OFF on every receive
TCTI receive sends a platform CANCEL_OFF command on every response read, which isn't necessary. This changes it to only send CANCEL_OFF if a CANCEL_ON command has been sent beforehand.
diff --git a/tcti/tcti.c b/tcti/tcti.c index 5d4881875c..01d2450061 100644 --- a/tcti/tcti.c +++ b/tcti/tcti.c @@ -88,7 +88,8 @@ tcti_receive_checks ( if (rc != TSS2_RC_SUCCESS) { return rc; } - if (tcti_intel->state != TCTI_STATE_RECEIVE) { + if (tcti_intel->state != TCTI_STATE_RECEIVE && + ...
3
2
0
[{"id": "G0", "claim": "The new TCTI_STATE_CANCEL state was added to the state machine with no information about what the state is for, how the state machine gets into it, or how it gets out of it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
tpm2-software__tpm2-tss__846
tpm2-software/tpm2-tss
846
defect
d26239408f432be8f0cdff8ee9ac3985e8313999
e754779278fc27b7780f367954534ca0a38277c8
tcti: refactor PlatformCommand function
Refactor PlatformCommand to make it complient with coding convention. Add tcti prefix to the function name. Rename platformcommand.c to tcti_platform_command.c
diff --git a/Makefile-test.am b/Makefile-test.am index b4cebef64d..1e9ba354bf 100644 --- a/Makefile-test.am +++ b/Makefile-test.am @@ -126,7 +126,7 @@ test_unit_tcti_device_SOURCES = test/unit/tcti-device.c tcti/tcti_device.c log/l test_unit_tcti_socket_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) $(URIPARSER_CFLAGS) test...
1
1
0
[{"id": "G0", "claim": "The tcti_platform_command function should be put directly in the tcti_socket module instead of left as the only function in its own file, since its implementation requires access to the private portions of the socket TCTI context and is tightly coupled to the socket TCTI module.", "category": "d...
null
tpm2-software__tpm2-tss__884
tpm2-software/tpm2-tss
884
defect
6209718064c5ad73debf5a617432172944ec4ac8
b87a476f7392690bbc5d536ed83a65bdba0b8b2c
IPv6 Client Socket Support
Add IPv6 client socket support. This results in dual-stack IPv4/IPv6 support for client socket connections. Fixes #876. Signed-off-by: Dan Anderson <daniel.anderson@intel.com>
diff --git a/src/util/io.c b/src/util/io.c index 7e1e877ff5..27fd47a701 100644 --- a/src/util/io.c +++ b/src/util/io.c @@ -26,6 +26,7 @@ */ #include <errno.h> #include <inttypes.h> +#include <netdb.h> #include <netinet/in.h> #include <string.h> #include <unistd.h> @@ -36,6 +37,8 @@ #define LOGMODULE tcti #incl...
5
4
0
[{"id": "G0", "claim": "Replace the hand-rolled uinttostring() helper with itoa() or snprintf() instead of reinventing the wheel.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Set .ai_family = AF_UNSPEC explicitly in the addrinfo hints for clar...
null
tpm2-software__tpm2-tss__953
tpm2-software/tpm2-tss
953
defect
097cae61dae423819895c477069eea3ff7d09a3f
158c37ab130d4f91082780ac2e5bb280f77cc758
Tpmclient cleanup
- tpmclient: Move session helpers to test/integration - sapi: move TPM2B helpers out from sapi - tpmclient: merge sample.h and tpmclient.h - tpmclient: cleanup tpmclient.h file - tpmclient: remove syscontext functions - test: add common context helpers
diff --git a/Makefile-test.am b/Makefile-test.am index af93dd4e8e..2a5acb2e5d 100644 --- a/Makefile-test.am +++ b/Makefile-test.am @@ -262,8 +262,7 @@ test_tpmclient_tpmclient_int_SOURCES = \ test/tpmclient/DecryptEncrypt.c \ test/tpmclient/Entity.c test/tpmclient/kdfa.c \ test/integration/main.c test/t...
2
1
1
[{"id": "G0", "claim": "The change leaves commented-out debug code and //TODO markers in test/tpmclient/tpmclient.int.c — including the disabled insufficient-context assertion in GetSetDecryptParamTests and the commented-out Startup block in GetContextSizeTests — which should be removed and the disabled checks addresse...
null
tqdm__tqdm__1021
tqdm/tqdm
1,021
defect
7988b2c66d4a6a124cb30c5900588de26c3ceff6
707e1fcba9f263c5d8860c4d116bb6251d0330b7
fix total ETA when using `initial`
This pull request fixes #689. Additionally it also adds a progress bar when using the `initial` parameter where previously there was no progress bar at all. See .gifs below for reference. Before this PR ⬇ ![Anaconda-Prompt-2020-08-10-20-32-50_Trim](https://user-images.githubusercontent.com/34612646/89854865-d9b785...
diff --git a/tqdm/std.py b/tqdm/std.py index 9ad52d0ad..9199691e1 100644 --- a/tqdm/std.py +++ b/tqdm/std.py @@ -24,7 +24,7 @@ from warnings import warn __author__ = {"github.com/": ["noamraph", "obiwanus", "kmike", "hadim", - "casperdcl", "lrq3000"]} + "cas...
2
1
1
[{"id": "G0", "claim": "Setting `self.total = total + initial if total else total` is dangerous because a user would not expect their explicit `total` to be overridden (the linked #689 comment gives the reasoning).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
tqdm__tqdm__1155
tqdm/tqdm
1,155
defect
bcce20f771a16cb8e4ac5cc5b2307374a2c0e535
9385d3a23554bc4be4d6401b747c56a8ee28e9d9
added logging sub-module
this implements a slightly improved version of #786 The solution mainly differs from the one outlined in #786 in the following ways: - multiple `loggers` can be specified (still optional, and probably not needed most of the time) - a `tqdm` class can be passed in - Python 2 support
diff --git a/tests/tests_logging.py b/tests/tests_logging.py new file mode 100644 index 000000000..983b6327b --- /dev/null +++ b/tests/tests_logging.py @@ -0,0 +1,123 @@ +# pylint: disable=missing-module-docstring, missing-class-docstring +# pylint: disable=missing-function-docstring, no-self-use + +from __future__ imp...
1
1
1
[{"id": "G0", "claim": "The new logging submodule should perhaps live in `tqdm.contrib.logging` (or `tqdm.contrib.__init__`) instead of top-level `tqdm.logging`, since the documented stdout/err redirection still lives in `tqdm.contrib`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
tqdm__tqdm__17
tqdm/tqdm
17
defect
d16381a91146c8d9742f3d7674b812335df7da31
7b97027f0878cd114899f8b3390e72b7c95cc894
Unicode
Fallback ascii if not specified and not explicitly supported by stream
diff --git a/README.md b/README.md index 3ba1e84ae..07d3188c2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ pip install -e git+https://github.com/tqdm/tqdm.git#egg=master ```python def tqdm(iterable, desc=None, total=None, leave=False, file=sys.stderr, - ncols=None, mininterval=0.1, miniters=None...
2
2
0
[{"id": "G0", "claim": "Add a proper docstring documenting format_meter's parameters instead of the inline comment-style parameter docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Extract the inline file-encoding detection into a helper func...
null
tqdm__tqdm__270
tqdm/tqdm
270
defect
1167fed5549a4dd95c5144d95027791589df9917
6a1c053350456955d15dde8d1c752cb6ac87d566
Add set_postfix
Add a `postfix` argument and `set_postfix()` method to supply additional stats to display on the bar, as suggested in #266. The method automatically formats the inputs depending on their datatype. This could be useful for machine learning and for data scientists. This is an alternative to `set_description()` which a...
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py index a4bc583d1..4361709ba 100644 --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -15,6 +15,7 @@ from ._utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ _term_move_up, _unicode, WeakSet import sys +from numbers import Number from time import time ...
4
1
0
[{"id": "G0", "claim": "The comment \"# Else if it's a string, don't need to preprocess anything\" is perhaps misplaced and should be indented differently or moved one line before the code.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The postfi...
null
tqdm__tqdm__330
tqdm/tqdm
330
defect
95efb20fae9a56022bde6c7ce8e6f74ba3b9e301
440624621ad286cbc559f0ce64212f2ed5c65a1f
Fix security issue in __version__ extra calculation (fix #328)
and add branch name in ```__version__``` if available. This should fix the security issue reported in #328 (thanks to @jwilk!) alias CVE-2016-10075. TODO (but can be done later, we should merge ASAP a fix for this issue): - [ ] restore 100% coverage (need to virtualize .git folder and create 3 scenarios: no tqdm...
diff --git a/tqdm/_version.py b/tqdm/_version.py index 5414323db..903620ca1 100644 --- a/tqdm/_version.py +++ b/tqdm/_version.py @@ -1,10 +1,6 @@ # Definition of the version number -try: - from ._utils import _sh -except: # pragma: no cover - _sh = None +import os -from subprocess import STDOUT __all__ = ["_...
16
10
1
[{"id": "G0", "claim": "The capitalization of comments in the new block is inconsistent; PEP 8 recommends lowercase comments.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "There are no spaces around the operator in `scriptdir+'/../.git'`, contrary to PEP...
null
tqdm__tqdm__836
tqdm/tqdm
836
defect
69179d8bf877aa8df49324cd59ae44dcc1422fce
ea82ad91d9edd8967fa56a87ef0dc2ed891b978d
Allow hiding progressbar until some time interval has elapsed.
This avoids printing the progressbar for very short loops, i.e. the feature requested in #704. I am not particularly wedded to the kwarg name, alternatives are welcome.
diff --git a/tqdm/std.py b/tqdm/std.py index b5ff064ed..f4df5fec1 100644 --- a/tqdm/std.py +++ b/tqdm/std.py @@ -775,6 +775,7 @@ def __init__(self, iterable=None, desc=None, total=None, leave=True, unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, initial=0, posi...
2
1
0
[{"id": "G0", "claim": "Expose the wait-until-seconds feature through the existing `disable` kwarg (a non-1 float meaning 'wait that many seconds') instead of adding a new `waituntil` kwarg, to stay backward-compatible and avoid kwarg clutter.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "in...
null
tqdm__tqdm__844
tqdm/tqdm
844
defect
49c5e1551729d78d2ffc05de91cf02846df9170c
c032868a8e4f919f3f66ee386469fd63ee0fa155
add `wrapattr`
```python # basic use with tqdm.wrapattr(file_obj, "read", total=file_obj.size) as fobj: while True: chunk = fobj.read(chunk_size) if not chunk: break # more bar control from tqdm.utils import CallbackIOWrapper with tqdm(total=file_obj.size) as t: fobj = CallbackIOWrapper...
diff --git a/tqdm/std.py b/tqdm/std.py index b239e7a2b..fd1caf089 100644 --- a/tqdm/std.py +++ b/tqdm/std.py @@ -16,10 +16,11 @@ Comparable, RE_ANSI, _is_ascii, SimpleTextIOWrapper, FormatReplace from ._monitor import TMonitor # native libraries +from contextlib import contextmanager +from functools import wraps...
10
4
1
[{"id": "G0", "claim": "The stream's read/write should not be monkey-patched in place; the whole file-like object should be wrapped in a new object instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The instance-level method should not have to be na...
null
tqdm__tqdm__947
tqdm/tqdm
947
defect
eb02ef2f913166d67dc9f6d8f2990e2c627de911
ada51e1741ebb33de1255dd4ca2b63afbc2d6832
Bash autocomplete base functionality
Integrated the core CLI options and the extra CLI options Removed options with no CLI support related: #858 #946
diff --git a/.meta/mkcompletion.py b/.meta/mkcompletion.py index 1bc96a369..8fe60d577 100644 --- a/.meta/mkcompletion.py +++ b/.meta/mkcompletion.py @@ -6,13 +6,48 @@ import tqdm.cli from io import open as io_open from os import path +import re + +def doc2opt(doc): + """ + doc : str, document to parse + ""...
1
1
0
[{"id": "G0", "claim": "Arguments (not just the manually coded --log) should auto-complete their accepted values, which would need extra logic to extract the acceptable options from the docstrings; as a first step completion could be switched off when $prv matches an option whose value is a str|int|float|chr|dict|tuple...
null
tqdm__tqdm__960
tqdm/tqdm
960
defect
5e8978909c639bc20f58bf877e66cc6a0b9fb5bf
13c16b03c69858393f7068ea5fb3baa6a1c6c66e
`DummyTqdmFile` line buffering
Only call `tqdm.write` (which inserts a newline) if `DummyTqdmFile.write` is itself called with a string containing a newline; otherwise buffer the rest of the string. See changes in test_tqdm.py for the patterns this allows. - [X] I have marked all applicable categories: + [ ] exception-raising fix +...
diff --git a/tqdm/contrib/__init__.py b/tqdm/contrib/__init__.py index 01312cd05..d6a4a45ad 100644 --- a/tqdm/contrib/__init__.py +++ b/tqdm/contrib/__init__.py @@ -15,10 +15,18 @@ class DummyTqdmFile(ObjectWrapper): """Dummy file-like that will write to tqdm""" + def __init__(self, wrapped): + super(...
1
1
1
[{"id": "G0", "claim": "The rewritten DummyTqdmFile.write lines can fail if x is bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tr7zw__Item-NBT-API__77
tr7zw/Item-NBT-API
77
defect
1b7bf63982f39a87c5b71c0eca51faaa41841eb9
1fb0945f1d20a7a18319e383dd1655000084aaeb
Fix "remove" method in NBTList iterators
This is a follow-up to https://github.com/tr7zw/Item-NBT-API/pull/76
diff --git a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTList.java b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTList.java index df50354d7..0667d5320 100644 --- a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTList.java +++ b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTList.java...
1
1
0
[{"id": "G0", "claim": "The iterator test should replace its assertTrue calls with a normal check and a NbtApiException, since asserts weren't a good idea.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
traPtitech__traQ__1929
traPtitech/traQ
1,929
defect
69170f65862ce00a63d97158980ab28b9a27090a
e4494ee20c6f4c5b89c691e63beaa07b0c009767
レスポンスにサムネイル情報追加
サムネイル情報をGET /api/v3/stamps のレスポンスに載るよう変更しました. "hasThumbnailを含める"っていうのをサムネイル情報が欲しいって解釈したんですけどあってますかね...? 返ってくる情報は以下のようになります. { "id": "68df025e-8260-4a11-bd50-f1bb32692c5a", "name": "test", "creatorId": "52687fda-bc08-470c-83fa-67b0fe5f644d", "fileId": "3ec736ff-857f-420d-889e-911...
diff --git a/router/v3/responses.go b/router/v3/responses.go index 7e09f1375..655805033 100644 --- a/router/v3/responses.go +++ b/router/v3/responses.go @@ -623,3 +623,38 @@ func formatStampPalettes(cfs []*model.StampPalette) []*StampPalette { sort.Slice(res, func(i, j int) bool { return res[i].ID.String() < res[j].I...
1
1
1
[{"id": "G0", "claim": "Fetching file meta per stamp in a loop in GetStamps is an N+1 that adds (DB RTT x ~6800 stamps) to the /stamps response and would slow opening traQ by ~5s, so the thumbnail info should be fetched without a per-stamp loop.", "category": "performance", "verdict": "supported", "priority": "P1", "sc...
null
traPtitech__traQ__1956
traPtitech/traQ
1,956
defect
8a2db60a416f32cf022a74c4bd795d6a4c468b84
ba48c823a80e70761e7ad8f39338b0cc17cd0151
add user-agent bot in ParseMetaForURL
TwitterのOGPが表示されないのを解消する目的です。 手元で試したところ投稿やページ、ユーザーによっては表示されないものもあるようです。 ついでにカクヨムのOGPも表示されるようになったようです。 Twitter.com(x.com)のみに絞るべきか悩んだのですが、上のカクヨムの例があったので、一旦OGPのために飛ばすGETすべてに`user-agent:bot`をつけています。
diff --git a/service/ogp/parser/parser.go b/service/ogp/parser/parser.go index dd65ea905..2f2af23ec 100644 --- a/service/ogp/parser/parser.go +++ b/service/ogp/parser/parser.go @@ -34,7 +34,15 @@ func ParseMetaForURL(url *url.URL) (*opengraph.OpenGraph, *DefaultPageMeta, erro client := http.Client{ Timeout: 5 * ti...
2
2
0
[{"id": "G0", "claim": "ParseMetaForURL should reuse the existing userAgent constant — rewritten to include \"bot\" and commented — instead of hard-coding a separate user-agent string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Writing a tes...
null
traPtitech__traQ__2616
traPtitech/traQ
2,616
defect
08d89ab30451e75e8446e0584b2fed9a76e5c83b
1e4e2753a84ec6f5fdc33fb6e122524af6865af8
✨ DeleteFileThumbnail の定義と実装
- ファイルのサムネイル情報を削除する `FileRepository.DeleteFileThumbnail` メソッドの定義と実装を追加. - `DeleteFileThumbnail` のテストを追加. - モックリポジトリを再生成して更新.
diff --git a/repository/file.go b/repository/file.go index 10e922555..155ead615 100644 --- a/repository/file.go +++ b/repository/file.go @@ -55,4 +55,10 @@ type FileRepository interface { // ファイルもしくはユーザーが存在しない場合は、falseを返します。 // DBによるエラーを返すことがあります。 IsFileAccessible(fileID, userID uuid.UUID) (bool, error) + // Dele...
1
1
0
[{"id": "G0", "claim": "The parameter name 'fileId' in the new DeleteFileThumbnail signature should be renamed to 'fileID' for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
traPtitech__traQ__2970
traPtitech/traQ
2,970
defect
739222b18977e92c28ea3c5c9c6ed103130d1d3c
4dae6456dbe91d93f6bea6dabac65153da8284a1
session store周りでcontextを伝播させるように
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * セッション操作でリクエスト固有のコンテキストを明示的に伝播するように統一し、セッションのDB/キャッシュ操作やハンドラ間のコンテキスト扱いを一貫化しました。 * パスワード変更時のセッション撤回エラーを無視せず適切にエラー応答するよう強化しました。 * **Tests** * テスト群をコンテキスト対応に更新し、セッション発行/照会の呼び出しパターンを整備しました。 注:公開APIや...
diff --git a/router/oauth2/authorization_endpoint_test.go b/router/oauth2/authorization_endpoint_test.go index d6e62c9a2..ca70141b0 100644 --- a/router/oauth2/authorization_endpoint_test.go +++ b/router/oauth2/authorization_endpoint_test.go @@ -137,7 +137,7 @@ func runAuthorizationEndpointTests(t *testing.T, useUUIDV4 ...
5
2
2
[{"id": "G0", "claim": "Session objects returned by getSessionByToken, GetSessionsByUserID and IssueSession keep the context-less ss.db, so subsequent Session.Set()/Delete() lose the request context when save() runs its UPDATE — rebuild the session per request or change the design so the mutators (Set, Delete) also acc...
null
traccar__traccar__2413
traccar/traccar
2,413
defect
534aa00430e507a43b581707a74ab08bce7d5827
a076c67bbdc2ed7d293f6044f4b51493b7e2d3c3
GL200: Handle ACK packets as command result
fix #2408
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 9b215b32f86..e2ddccaa7da 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -37,12 +37,14 @@ public Gl200ProtocolDecoder(Gl2...
2
2
0
[{"id": "G0", "claim": "Move the pattern expression to the next line and add a comment (e.g. \"type\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of the typeIndex-based offset check, simply check sentence.startsWith(\"+ACK\").", "ca...
null
traccar__traccar__3540
traccar/traccar
3,540
defect
06bdcf65a08b233f6c56ddf4774287c0c0232597
6aaa8dd3b3ffff7927325616efb9b9bdd8228a67
Make check for valid in MotionEventHandler optional
fix #3539 Also removed check for valid from `FuelDropEventHandler`
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 340eb742c34..cf857178f79 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -258,7 +258,8 @@ public static TripsConfig initTripsConfig() { config.getLong("report.trip.minimalTripDuration", 300) *...
2
1
0
[{"id": "G0", "claim": "The new config parameter should be renamed from `event.motion.processInvalidPositions` to use the `report.trip.` prefix, to be consistent with the other trip parameters.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the `eve...
null
traccar__traccar__3870
traccar/traccar
3,870
defect
4713a115fbe4a37ddf24e96edeab800843607f90
3639bc6d289fa137d5dc7aaa47b67cd6a6bcc47d
Add basic support of overspeeding inside geofences.
It is basic implementation with some known limits: - Geofence speed limit has priority over device speed limit - Basic selection of speed limit of overlapped geofences, minimal or maximum are selected (according to `event.overspeed.geofenceMinimal` flag) - If device started overspeeding inside a Geofence and conti...
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index ee14eb1f7f..23d0a983e6 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -464,7 +464,8 @@ private static void initEventsModule() { motionEventHandler = new MotionEventHandler(tripsConfig); over...
2
2
1
[{"id": "G0", "claim": "The config parameter `event.overspeed.geofenceMinimal` and the matching handler variable should be renamed (e.g. to `event.overspeed.preferLowest`), since users would always want the lowest value to be safe.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
traccar__traccar__4201
traccar/traccar
4,201
defect
ca2cca9355c3b36b2e7ed9ad808db797fa94cb78
b4a655445b6ad7a0ef96193a616f8bdec182ca54
Implemented FLEX 1.0/2.0 extension support for Navis (NTCB) protocol
The FLEX extension is a customizable NTCB subprotocol to save traffic and transfer of specific fields. Tested on the device "Signal S2551" for most use cases but some messages from device are very difficult to receive without specific sensors and they are programmed according to the documentation.
diff --git a/src/org/traccar/protocol/NavisFrameDecoder.java b/src/org/traccar/protocol/NavisFrameDecoder.java new file mode 100644 index 0000000000..1d77c0d657 --- /dev/null +++ b/src/org/traccar/protocol/NavisFrameDecoder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2019 Anton Tananaev (anton@traccar.org) + * + * License...
24
24
1
[{"id": "G0", "claim": "Use lowerCamelCase for everything including abbreviations, with no all-caps identifiers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Existing test cases must not be removed or reshuffled; revert the unnecessary test-fi...
null
traccar__traccar__4595
traccar/traccar
4,595
defect
9188d67c08f309697fed0f4e452b06ea738a67bf
e67e83731f80d12b86aac91337c9aab94bb6d4e6
Added support for JC400 alarm messages
This is a follow up for #4412, this time supports JC400 (and possibly JC500) devices. Product homepage: https://www.jimilab.com/products/jc400-aivision-cam.html The device uses `gt06` in a similar way as JC100, carries a bit more information in alarm packets. Other changes made: * refactored `decodeGps` metho...
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index c0e9541a4c6..0fc94d15f20 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -222,9 +222,...
5
3
0
[{"id": "G0", "claim": "Instead of extracting a new decodeLocation method, decodeGps should take boolean flags to switch parts of the parsing.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The raw dataLength == 7 check identifies the device model; it sh...
null
traccar__traccar__4657
traccar/traccar
4,657
defect
00ddff42e766e834dee49eb471c0c3aefab022b2
38f4c7ea61c58397ba42e527621bdece88fa472b
Add ignition status to Vt200 Protocol
Ignition status is provided by the VT200 protocol but not currently decoded by Traccar. This PR adds this feature.
diff --git a/src/main/java/org/traccar/protocol/Vt200ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Vt200ProtocolDecoder.java index b1564abd93..f60f6213df 100644 --- a/src/main/java/org/traccar/protocol/Vt200ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Vt200ProtocolDecoder.java @@ -142,6 +14...
4
3
1
[{"id": "G0", "claim": "The PR should not delete the existing verifyNull test for the 0x3089 data payload but instead keep or fix it now that the type is decoded.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new 0x3089 decode block duplicates the ...
null
traccar__traccar__4672
traccar/traccar
4,672
defect
7a4f3f22239cc9b3405387a29819654265e9b345
0d8f2af5ea9bafeec92a54d10b190165fa0b5d91
Add mavlink2 protocol support
Mavlink2 is a common protocol for unmanned vehicles and flight controllers like Pixhawk devices.
diff --git a/setup/default.xml b/setup/default.xml index 8206e99738..2c9cb1042a 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -288,5 +288,6 @@ <entry key='navtelecom.port'>5221</entry> <entry key='startek.port'>5222</entry> <entry key='gs100.port'>5223</entry> + <entry key='mavlink2.port'>...
4
4
1
[{"id": "G0", "claim": "The implementation is not consistent with Traccar's standards and must be reimplemented like the existing binary protocols: the protocol class should use a frame decoder instead of byte-array codec, and the decoder should parse a ByteBuf rather than working on a byte array.", "category": "design...
null
traccar__traccar__4684
traccar/traccar
4,684
defect
d5a391ccb44bb526417d33f1e11fd2540b28103b
b9c27acb7f4d6f81dbc783365ed58d3708f8e7a2
Fix poweroff alarm and extend megastek protocol
Fixed that the poweroff alert would trigger a poweron event. Also added more events for possible alert types. Additionally the external accessories status is now parsed if it exists. While I found a value of "DD" for the external accessories field for the [MT200x](https://drive.google.com/file/d/1mSwMTGcAmvExJpBD...
diff --git a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java index d81cc0eda88..074523a767b 100644 --- a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java...
6
6
3
[{"id": "G0", "claim": "Unit tests should be added covering all the cases of the changed megastek decoding, which at that point had none.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The manual decode-and-assert block in the test should use the existi...
null
traccar__traccar__4702
traccar/traccar
4,702
defect
f2c949998733734543be2ec795b2aa9b909b0044
731b01fcf1ba935a76c4ecd16cfcd45879e28c5c
Make field optional for the Megastek protocol
See: https://www.traccar.org/forums/topic/issue-with-megastek-protocol-missing-field/#post-63050
diff --git a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java index fae73d9316a..f0ff4a4c4db 100644 --- a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java...
3
2
1
[{"id": "G0", "claim": "The CI checks are failing and must be fixed before the pull request can merge.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Align the trailing `// altitude` comment on the changed altitude line with the neighbouring lines.", "c...
null
traccar__traccar__4706
traccar/traccar
4,706
defect
48670633fd49e3ec2bd781f858b11ccd2083878d
c10c4b985002d9b39213f6a4e33466212705f66d
Improve compatibility with megastek devices
Megastek devices send some data which either is not fully compliant with the megastek protocol (by omitting some data) or which is (for our purposes) garbage data, which is only delimited with a single LF (0x0A). Not recognising the garbage data will lead to giving the wrong data to the ProtocolDecoder.
diff --git a/src/main/java/org/traccar/protocol/MegastekFrameDecoder.java b/src/main/java/org/traccar/protocol/MegastekFrameDecoder.java index 347fa24b11c..a4091436c4c 100644 --- a/src/main/java/org/traccar/protocol/MegastekFrameDecoder.java +++ b/src/main/java/org/traccar/protocol/MegastekFrameDecoder.java @@ -46,6 +4...
1
1
0
[{"id": "G0", "claim": "The new guard `if (beginIndex > endIndex)` before the substring is opaque — tananaev asked for an explanation of it (M002), and then requested it be rewritten as `if (endIndex < 0)` so that what it guards against is clear.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
traccar__traccar__4750
traccar/traccar
4,750
defect
c1b406b6fcc442f96f9698774f5544ec9a0588e9
f9823f2763689ee94645385dcd5e3427ec7255b0
Update MobilogixProtocolDecoder.java
We are losing data from the events with two digits like T21 and T22 (ignition on and off). Also included the event code
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java index 8677ba9ec9f..efefaf6279d 100644 --- a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder....
4
4
2
[{"id": "G0", "claim": "The protocol documentation should be provided so it can be kept for reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's parser change should come with a test case.", "category": "testing", "verdict"...
null
traccar__traccar__4790
traccar/traccar
4,790
defect
36202715301e365af212112d22059125adaea92a
0ca865602a9d14004a2385e37af31a8d2976a5d7
Totem - basic support for SMS and GPRS commands
As mentioned in PR #4787 (also contains protocol documentation) I tried my hand at implementing SMS and GPRS commands for the Totem protocol. It's not yet finished, still have to test it on real devices, but basic tests look OK. I opened this pull request as I'm not proficient Java developer and am seeking feedback...
diff --git a/src/main/java/org/traccar/protocol/TotemProtocol.java b/src/main/java/org/traccar/protocol/TotemProtocol.java index 7cf30475bbd..ecf7c858aec 100644 --- a/src/main/java/org/traccar/protocol/TotemProtocol.java +++ b/src/main/java/org/traccar/protocol/TotemProtocol.java @@ -25,7 +25,7 @@ public class TotemPr...
7
5
1
[{"id": "G0", "claim": "Instead of extracting the supported command list into a shared String[] variable used by both setSupportedDataCommands and setSupportedTextCommands, just duplicate the list in each call, since list changes are frequent and a shared variable usually ends up not matching.", "category": "design", "...
null
traccar__traccar__4813
traccar/traccar
4,813
defect
b5b9eb8207f42235f7ed2a52a6424f5629590992
9336e9f77ac101a4b0b061e61dbd43bc9567ef9c
Added support for YP14 from "1903" protocol specification
Hi, this pull requests adds support for the 1903 protocol devices. There are 3 simples changes: - I had to allow more matches for (unused) fields in the otherwise perfectly fitting PATTERN. Strictly according to the 1903 protocol specification. - allowed "YP14" as new condition to be parsed as position informatio...
diff --git a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java index 05312b82098..c72ae98596a 100644 --- a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java @@ -59,7 +59,7 @@ p...
3
3
0
[{"id": "G0", "claim": "Remove the `// (ignored)` comment that the pull request added on the `.number(\"(?:d{3,5})?,\")` pattern line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Undo the removal of the blank line at the end of testDecode so ...
null
traccar__traccar__4828
traccar/traccar
4,828
defect
2c5d65c30159b620eebce8dd7b8a768c06271031
d65a3af95e2877b8f0fcb7f44cbfbd8b4f987622
pass language param to OpenCage Geocoder
follows the same logic as Nominatim which also accepts a language param to allow user to see response in their language
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index d72e045882c..842f7e3ce21 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -181,7 +181,7 @@ public static Geocoder provideGeocoder(Config config) { ...
3
2
0
[{"id": "G0", "claim": "The reviewer questions why the code forces a default '&language=en' onto the URL when the language parameter is not passed, instead of omitting the parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OpenCage test should...
null
traccar__traccar__4910
traccar/traccar
4,910
defect
63dbc22b68d4825dcf36a5c694456c9ea267ebfc
df974772a6cab1f1bdbad4c6b19e150c2ca3ccf6
Update Xexun2ProtocolDecoder.java
[New detailed positioning data (bit 7).pdf](https://github.com/traccar/traccar/files/9162567/New.detailed.positioning.data.bit.7.pdf)
diff --git a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java index a572f8622b9..47d86aeb15a 100644 --- a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java @@ -176...
4
4
2
[{"id": "G0", "claim": "The bit-7 block is parsed with fixed-size skipBytes offsets; the decoder should honor the block's length fields and check the marker instead, since the format is clearly meant to be extendable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
traccar__traccar__4912
traccar/traccar
4,912
defect
14dafcb4191ec25fa22494956cd509708a9e1b5c
1f0965d02081d0257a969927ba58de5b39e051bd
Xexun2 Encoder
Code to validate checksum could be added to Decoder.
diff --git a/src/main/java/org/traccar/protocol/Xexun2Protocol.java b/src/main/java/org/traccar/protocol/Xexun2Protocol.java index 4630a69e06..1d5038a22c 100644 --- a/src/main/java/org/traccar/protocol/Xexun2Protocol.java +++ b/src/main/java/org/traccar/protocol/Xexun2Protocol.java @@ -19,6 +19,7 @@ import org.traccar...
9
9
3
[{"id": "G0", "claim": "The decoder should send a response for every message type except 0x07 (`type != MSG_COMMAND`) instead of only for position messages, so other message ids stay acknowledged as in other protocols.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
traccar__traccar__5037
traccar/traccar
5,037
defect
392f00082faff72c9948ed569e4c883a5fabe7d6
ba6a9d72e62282d64781b856b8e094e1fb612f9e
Better handling of attributes (boolean attributes + setAccuracy special case) for Wialon protocol
Pull request as discussed [here](https://www.traccar.org/forums/topic/motion-attribute-using-wialon-protocol/#post-81534).
diff --git a/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java b/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java index b87ba2b53e7..e2ccfe9d86e 100644 --- a/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/WialonProtocolDecoder.java @@ -39,...
3
3
0
[{"id": "G0", "claim": "Revert all the comment-alignment formatting changes made to WialonProtocolDecoder.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The boolean-truthy check on values should not include t/yes/y/on (and f/no/n/off); sta...
null
traccar__traccar__5064
traccar/traccar
5,064
defect
0f092e6aac198bd7244f8011a61bb22ab56174cf
c56b136a328bc1781ccc74aa27fdecf4a17b9595
Updates to OpenID Implementation
Implements auto endpoint discovery and the ability to restrict access to groups. Discussion in #5057
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 3ff423ad1c..363d4a472f 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -636,11 +636,20 @@ private Keys() { "openid.clientSecret", ...
10
10
1
[{"id": "G0", "claim": "The new OpenID Java key constants should use word-separated names, e.g. OPENID_ISSUER_URL instead of OPENID_ISSUERURL (the config file property names can stay as they are).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
traccar__traccar__5085
traccar/traccar
5,085
defect
553527d9fbe689be243acbf219bed432f15c25e3
6dae98179630a15c5f62899b32ed093e293822e2
Add [Protocol]TranSyncProtocol - AIS 140
Discussion [Traccar forum](https://www.traccar.org/forums/topic/port-identification2/) Protocol Document [Tran Sync](https://drive.google.com/file/d/1Zc__sbGYUqljDnMD6zDvxzM5JlfAuiys/view?usp=sharing) [TranSync AIS 140 Quick Developer Guide V1.3 (4) (2).pdf](https://github.com/traccar/traccar/files/11480037/TranSyn...
diff --git a/src/main/java/org/traccar/protocol/TranSyncProtocol.java b/src/main/java/org/traccar/protocol/TranSyncProtocol.java new file mode 100644 index 0000000000..0634642dfa --- /dev/null +++ b/src/main/java/org/traccar/protocol/TranSyncProtocol.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import org.tr...
20
19
4
[{"id": "G0", "claim": "The decoder should not keep a block of unused instance variables (with getters and setters); the parsing state should be local instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code needs a general cleanup (formatting, n...
null
traccar__traccar__5144
traccar/traccar
5,144
defect
fc3c3ee38bdfd51ed1f56488661becffecceb3ef
103fbde721753b8be65c39e0e9118943c6bebc68
Add rollback command for Gator
**Functionalities Added for Gator protocol** - DeviceId/IMEI Encoding (Tested) - Rollback packet encoding (Tested) - Calibration packet calculation resolves #5140
diff --git a/src/main/java/org/traccar/model/Command.java b/src/main/java/org/traccar/model/Command.java index 99988dd825..e0c1c3976d 100644 --- a/src/main/java/org/traccar/model/Command.java +++ b/src/main/java/org/traccar/model/Command.java @@ -45,6 +45,7 @@ public class Command extends BaseCommand { public stat...
9
9
1
[{"id": "G0", "claim": "The new `rollcall` command type should be explained and, since it does the same as a single position request, the existing generic `TYPE_POSITION_SINGLE` should be used instead of adding a Gator-specific `TYPE_ROLLCALL`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ...
null
traccar__traccar__5172
traccar/traccar
5,172
defect
599494fed9953976d9b27f5319b6bcd8268b2f48
bb46ff66b74731dd7c7b2359017b0cd8c137824c
Add Meitrack WiFi Aps, celltowers and network info
Includes WiFi aps, celltowers and network information. Based on page 8-10 of Meitrack protocol: https://www.meitrack.com/cd-download/Protocols/MEITRACK_P88L_GPRS_Protocol.pdf Closes #5171
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java index 0f0d22021e6..3ee9d97327c 100644 --- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java...
3
3
2
[{"id": "G0", "claim": "The variables introduced by this change (stationMCC, wifiMAC, networkDesc, ...) do not follow the project's naming conventions; the reviewer recommends inlining everything, or at least using lower camel case (e.g. wifiMac).", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
traccar__traccar__5259
traccar/traccar
5,259
defect
29b8caa047b3b1468eb8b21e76f5df8b5c2f6ddb
7577626863a370056169386860a3e8805f45663b
analog input voltage decode
With reference to the protocol, 'd' represents the analog input voltage
diff --git a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java index ed714e46438..2f88d803c82 100644 --- a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java @@ -310,6 +310,...
5
5
4
[{"id": "G0", "claim": "The pull request has to be accompanied by the (accessible) protocol documentation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The build is failing and must be fixed.", "category": "correctness", "verdict": "supported", ...
null
traccar__traccar__5289
traccar/traccar
5,289
defect
b6be94fef718926f5575257ab2724f5e538e215f
2a57c25829fc11c2fcf4d55aa6b866f8fc6305f7
Fix INF message on GV310LAU
include iccid [GV310LAU @Track Air Interface Protocol V2.02.pdf](https://github.com/traccar/traccar/files/14797521/GV310LAU.%40Track.Air.Interface.Protocol.V2.02.pdf)
diff --git a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java index 7a8d67cf92..c0a2a2ea04 100644 --- a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.ja...
3
1
1
[{"id": "G0", "claim": "The GTINF handling should not special-case the GV310LAU model inside decodeInf but reuse the common model/protocol-version identification logic across the decoder, since identifying devices by the protocol version may conflict with other devices.", "category": "design", "verdict": "supported", "...
null
traccar__traccar__5339
traccar/traccar
5,339
defect
e92dea78ebad3f921c031a974378a218c6bd90b1
d856ec4fa6136c54ed03f431175626df26f97e88
Ignition messages not correctly decoded
Ignition messages were not correctly decoded when "Position Append Mask" is configured with value 1 to include "GNSS Satellite Number" I added two test cases that were failing. https://github.com/traccar/traccar/files/14797521/GV310LAU.%40Track.Air.Interface.Protocol.V2.02.pdf ![image](https://github.com/tracc...
diff --git a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java index 8edce934611..33456c48d64 100644 --- a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder....
4
3
0
[{"id": "G0", "claim": "The protocol documentation link should be attached to the pull request (and kept attached for future reference).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The formatting of the newly added GTIGN/GTIGF test lines should...
null
traccar__traccar__5347
traccar/traccar
5,347
defect
bc65eb120807b7c899d3fd95fbb6684934bfa3ef
3a3bc33a35122f8231fb145bd2958876a094e039
Photon Geocoder
This is a basic implementation of the open source Photon Geocoder for reverse geocoding. There isn't much documentation, but [the source](https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/query/ReverseRequestFactory.java) reveals that only the `lang` optional parameter is useful for Traccar. ...
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 66238ab44a3..5df8015d9bc 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -68,6 +68,7 @@ import org.traccar.geocoder.PositionStackGeocoder; import org.tracc...
1
1
0
[{"id": "G0", "claim": "PhotonGeocoder's format is similar to BanGeocoder's and the two should be combined.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
traccar__traccar__5371
traccar/traccar
5,371
defect
4620fc2db16f05bcd3578b4f5a3239b229d7c99f
7df4dce8fa8d1a20fc745d2c99407e2bfd945ac1
geocoder: Implement OlaMaps Reverse geocoder
We have integrated Ola Maps geocoder. Kindly review.
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index c7b74d04970..9811d80f792 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -226,6 +226,7 @@ public static Geocoder provideGeocoder(Config config, Client client...
2
2
2
[{"id": "G0", "claim": "OlaMapsGeocoder duplicates the Google geocoder's URL formatting, so instead of duplicating it the Google geocoder should be modified to allow a custom URL.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's code has...
null
traccar__traccar__5395
traccar/traccar
5,395
defect
fb4d74479f21e99c80df8a6a7775defcf35fce53
17d0f96c656613373697a6b4e9d2b5baa1c46348
Implement temperature on aovx
https://github.com/AOVX-Corporation/AOVX_Share/blob/main/Document/en/01_G%20series/AOVX_G%26A_Series%20Cloud%20Platform%20Protocol.pdf
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 4f912edbe55..8d8ad66331d 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -699...
3
3
3
[{"id": "G0", "claim": "The light value is read unconditionally; it should also be behind a field-mask flag like the temperature read.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The temperature field is read as an unsigned short, so negative tem...
null
traccar__traccar__5396
traccar/traccar
5,396
defect
061de859794801934c767485b73492f875d7e581
9118dbce4c9e88b77f112b077501018910a97121
aovx implement wifi
https://github.com/AOVX-Corporation/AOVX_Share/blob/main/Document/en/01_G%20series/AOVX_G%26A_Series%20Cloud%20Platform%20Protocol.pdf
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 253bf887f8c..6e5ea6ece0c 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -20,...
3
3
2
[{"id": "G0", "claim": "The `Network` object should be created once at the top level of the method rather than inside the switch branches, so that existing local variables named `network` are not accidentally overridden.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
traccar__traccar__5502
traccar/traccar
5,502
defect
a16ad4de29b321386ac0feb2a4a8404b6134b9d9
7883f5089fd512e0dc482ae823c630ac881259fa
Wialon: interpret LBS data from parameters
According to the Wialon protocol specifications, the LBS data is transmitted as parameters. https://wialon.com/hw/files/Wialon%20IPS%20v.2.2%20%28RU%29.pdf Added LBS decoding from the custom parameters Added device-specific temp and battery level readings
diff --git a/src/main/java/org/traccar/model/ExtendedModel.java b/src/main/java/org/traccar/model/ExtendedModel.java index f1183e11a66..12f26cd1220 100644 --- a/src/main/java/org/traccar/model/ExtendedModel.java +++ b/src/main/java/org/traccar/model/ExtendedModel.java @@ -154,4 +154,7 @@ public long getLong(String key)...
7
6
0
[{"id": "G0", "claim": "Adding a new removeAttribute method should come with updating all the existing places that could use it, done in a separate PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Obvious comments like '// interpret accuracy' ...
null
traccar__traccar__5517
traccar/traccar
5,517
defect
ee005164810e4025d20ece06a8cfe76b8da9e6a3
23dc5a2e14601dc2f4fc73aa0215f83f7235eee1
Implement mobilogix commands
[EI_2021_0018__MOBILOGIX__MT2000_PROTOCOL_OVER_THE_AIR__19_08_2021__V1_3_7.pdf](https://github.com/user-attachments/files/18919508/EI_2021_0018__MOBILOGIX__MT2000_PROTOCOL_OVER_THE_AIR__19_08_2021__V1_3_7.pdf)
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocol.java b/src/main/java/org/traccar/protocol/MobilogixProtocol.java index 36d6b5ed25e..d7cb16eb87b 100644 --- a/src/main/java/org/traccar/protocol/MobilogixProtocol.java +++ b/src/main/java/org/traccar/protocol/MobilogixProtocol.java @@ -22,6 +22,7 @@ impo...
3
2
0
[{"id": "G0", "claim": "The separate protected encodeCommand(Command, Date) overload seems unnecessary and should be removed unless it is needed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Put Command.TYPE_CUSTOM as the first item in setSupportedDataCo...
null
traccar__traccar__5538
traccar/traccar
5,538
defect
677ecedd932106dd8f62039ca16ccddd1714863a
665a4131e0f0ebb6793ea0d8d383a2223194fbf1
AOVX devices
Movement alarm in AL300 and GL100 Fix invalid accident alarm in VL300 Motion, light, temp and humidity in AOVX Custom commands in AOVX Engine stop / resume in VL300 [V_Series Protocol.pdf](https://github.com/user-attachments/files/19577356/V_Series.Protocol.pdf) [GA_Series Protocol.pdf](https://github.com/user-...
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index fd6c2e62b0e..0ee5816a23e 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -74,...
4
4
0
[{"id": "G0", "claim": "Set the model override at the bottom of the test so that the reset to null afterwards is not necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Extract the command data length expression and save it in a variable i...
null
traccar__traccar__5543
traccar/traccar
5,543
defect
38580c85909c70df1d668e9f767d32147df3b85e
e7691582303108997703ab379c655d866612b7ab
Implement Getscale RFID reader with AOVX
https://www.getscale.com.br/gs-404 [GS404_protocolo.pdf](https://github.com/user-attachments/files/19676439/GS404_protocolo.pdf) [V_Series Protocol.pdf](https://github.com/user-attachments/files/19676449/V_Series.Protocol.pdf)
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 0b7a1911fe0..b86248a2666 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -122...
4
4
1
[{"id": "G0", "claim": "The newly added 0x40 handler should be the first branch in decodeTransparent rather than appended at the end.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The 0x40 handler should be placed first in the if-chain, not last.", "cat...
null
traccar__traccar__5591
traccar/traccar
5,591
defect
c05dc48b8c2f5d26c638f935fa5afd57f88b388f
7d95ce48012db80ec8c302469f7ef5708168f5d3
# Add JMAK JR11 & JR12 Protocol Decoder (STRING Mode)
**Overview** This PR adds initial support for the JMAK JR11 and JR12 GPS trackers in Traccar’s “STRING” protocol mode by introducing a dedicated decoder. These devices send their location and status messages as ASCII strings; this change enables Traccar to parse those incoming frames correctly. **Key Changes** *...
diff --git a/src/main/java/org/traccar/config/PortConfigSuffix.java b/src/main/java/org/traccar/config/PortConfigSuffix.java index b1ef27395c..6190b26943 100644 --- a/src/main/java/org/traccar/config/PortConfigSuffix.java +++ b/src/main/java/org/traccar/config/PortConfigSuffix.java @@ -281,6 +281,7 @@ public class Port...
17
13
5
[{"id": "G0", "claim": "The pull request has to provide the protocol documentation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The frame decoder should extend BaseFrameDecoder instead of ByteToMessageDecoder.", "category": "design", "verdict":...
null
traccar__traccar__5595
traccar/traccar
5,595
defect
470ff945b23d101aedc8e3fcceb536b52d621b68
26cf0d4485a6e150fd92266ecb77b5fc3d94a100
Extend support for Micodus MV710G and MV810G devices
- Add support for external power voltage (reported directly as additional info, not nested as an extension) - Add handler for door alarm (reported in the status field) Protocol description found at https://www.traccar.org/forums/topic/micodus-mv710g-voltage/ : - https://drive.google.com/file/d/1QliuWpScGtZedV9DBuF...
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index bde07657b1c..076effdc68d 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -423...
3
1
1
[{"id": "G0", "claim": "The reviewer wants to know where the door/status bit-16 handling for MV810G and MV710G comes from, since it appears in no documentation, and asks whether the vendor was asked for up-to-date docs.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"i...
null
traccar__traccar__5610
traccar/traccar
5,610
defect
2ef9afbf64377246135e6a08d48e3b601b8462d8
bd27f7f1925f6fc4729019364c12d8b08dc9836a
Streaming in PositionResource
This does not optimize for the case where only positionIds are used or when we request just latest positions, as those datasets are typically small. I'm slightly concerned about flushing after every record, but I fear that if we don't flush explicitly, the stream will only flush once it's closed.
diff --git a/src/main/java/org/traccar/api/StreamWriter.java b/src/main/java/org/traccar/api/StreamWriter.java new file mode 100644 index 00000000000..f3e97853753 --- /dev/null +++ b/src/main/java/org/traccar/api/StreamWriter.java @@ -0,0 +1,46 @@ +package org.traccar.api; + +import com.fasterxml.jackson.core.JsonGener...
4
4
0
[{"id": "G0", "claim": "The writeTo method could iterate with `for (T element : stream.iterator())` instead of `stream.forEach`, avoiding the try/catch that wraps IOException in UncheckedIOException.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
traccar__traccar__5663
traccar/traccar
5,663
defect
f0c270f6f8bb9678003273159c3b5f464723335a
40cffca732d91bc44955b3bb0f9e1e375836d563
Updated NMEA protocol
Updated NMEA (T55) protocol: - Added the altitude and number of sats to GGA message - Added GLL message parser Updated PositionLogger to be able to show the altitude if it is configured in `logger.attributes`. But the speed, course, altitude any many other parameters in the `Position` structure are not optional...
diff --git a/src/main/java/org/traccar/helper/PositionLogger.java b/src/main/java/org/traccar/helper/PositionLogger.java index 9f149edf4f4..3c0894faed8 100644 --- a/src/main/java/org/traccar/helper/PositionLogger.java +++ b/src/main/java/org/traccar/helper/PositionLogger.java @@ -65,6 +65,11 @@ public void log(ChannelH...
6
4
1
[{"id": "G0", "claim": "The pull request's tests are failing.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Some relevant tests for the new code should be added.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {...
null
traccar__traccar__5708
traccar/traccar
5,708
defect
26cf3c4eadb9ff95da1d595169ef7d6bf1096d88
e359a1e6a8f7249ca8d9a0edcdc6f8f372a07487
Add The Things Network Webhook Decoder
Hi, The Things Network (TTN) provides a webhook to publish messages from LoRaWAN devices on their network, this PR will decode those messages for Traccar. The `decoded_payload` sent by TTN in the webhook must follow the format specified by TTN Mapper: > Make sure you have a Payload decoder function enabled on the ...
diff --git a/src/main/java/org/traccar/config/PortConfigSuffix.java b/src/main/java/org/traccar/config/PortConfigSuffix.java index be7842ed5b7..40d38164eaf 100644 --- a/src/main/java/org/traccar/config/PortConfigSuffix.java +++ b/src/main/java/org/traccar/config/PortConfigSuffix.java @@ -283,6 +283,7 @@ public class Po...
15
14
4
[{"id": "G0", "claim": "The empty sendQueuedCommands override is unnecessary leftover code copied from OsmAnd and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The decode method should invert the content-type check to respond...
null
traccar__traccar__5795
traccar/traccar
5,795
defect
011db125b051bc8a65e7e7d65537381dc1a9bcd5
3fb5ef299145eba6df4807d2a69d3dd3b7d1f53c
Refactor ArnaviBinaryProtocolDecoder constants and methods
As previously recommended, I made it inline. Fixed sendResponse, tags 5 and 9. Fixed message handling — Arnavi can send multiple packets at once. Added CAN and LLS tags. Tested on real data. Protocol description attached. https://docs.google.com/spreadsheets/d/15s-2ZbqOQ1bZvAtFFm9sIEuKy3jbJzxdeynp72sjoYU/edit?pre...
diff --git a/src/main/java/org/traccar/protocol/ArnaviBinaryProtocolDecoder.java b/src/main/java/org/traccar/protocol/ArnaviBinaryProtocolDecoder.java index 8f983296fa..5aeaa4cb2e 100644 --- a/src/main/java/org/traccar/protocol/ArnaviBinaryProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/ArnaviBinaryProtoc...
19
15
2
[{"id": "G0", "claim": "The added readableBytes() < 5 incomplete-tag guard in decodePosition is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Comments written in Russian should be in English.", "category": "ma...
null
traccar__traccar__5818
traccar/traccar
5,818
defect
a2c2c4e2eddcead799d8ffaa6b0294957b6047e0
fc95816c272f956f1dd0fb7cdf2db129aee5202a
Xexun2 Protocol Correction
Corrects an issue where Xexun DDX14 plots about 1 degree east of reality. Math.floor produces the error where (int) corrects it. Test included.
diff --git a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java index 99b5fedfbf7..8c21f185eda 100644 --- a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java @@ -77,...
2
2
0
[{"id": "G0", "claim": "The new negative-longitude test should be written as a standard HEX-based decode test instead of calling convertCoordinate directly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc added above convertCoordinate is too ...
null
traccar__traccar__5862
traccar/traccar
5,862
defect
c0c1fa432349c3e30e3da93c3e2d9fa6279faefd
ed094409f325abef629774ef1a87e74acf89eade
correct battery voltage decoding for gt06 nt devices and add more device models
This PR replaces original idea of creating a separate support for XT40 https://github.com/traccar/traccar/pull/5860 this makes a breaking change for NT devices protocol removing KEY_BATTERY_LEVEL and adding KEY_BATTERY with received battery voltage.
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index 9a54062e107..8381fe68590 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -137,6 +137,...
1
1
0
[{"id": "G0", "claim": "The new GT06 test block is probably more than needed: only power and battery assertions suffice, and the duplicate model coverage (XT40) can be dropped since the decoding logic is exactly the same.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tracel-ai__burn-lm__18
tracel-ai/burn-lm
18
defect
a9ed9c6e4a699cabe1057f2d125edf10c4e51705
35fbdcc4fc35c46a0cc2fee1376bfcce731099e5
Static weights loading
Burn PR: https://github.com/tracel-ai/burn/pull/3410
diff --git a/Cargo.lock b/Cargo.lock index 5e3dc9b..159fb37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -501,8 +501,8 @@ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" [[package]] name = "burn" -version = "0.18.0" -source = "git+https://github.com/tracel-ai/burn?rev=fb1f8a8e662f02de9f...
1
1
0
[{"id": "G0", "claim": "The burn dependency revs pinned in Cargo.toml point at the temporary commit 80384f68 and just need to be updated to the final rev once the burn PR is merged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tracel-ai__burn-onnx__194
tracel-ai/burn-onnx
194
defect
3c589cba34c67ecedbfb639e287b305ca8cc260b
a1466b8b63399a26a8b3d30322b6379dbe9c8001
Fix DTypeMismatch panic by preserving explicit dtypes in codegen
## Summary - Fix runtime `DTypeMismatch` panic when running models with autotune+fusion (reported for RF-DETR) - Root cause: `.int()` and `.float()` in codegen produce the backend's default element type (I32 on WGPU, I64 on NdArray), losing the ONNX-specified dtype. When mixed with burnpack-loaded constants (which pre...
diff --git a/AGENTS.md b/AGENTS.md index af68582b4..7d1765d1a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -79,6 +79,13 @@ Key principles: - Scope temporary variables in block expressions to avoid name collisions - `insta` snapshot tests for ALL codegen branches (inline snapshots only: `assert_snapshot!(code, @r"..."...
2
2
2
[{"id": "G0", "claim": "When the rhs zero-point input is missing, the synthesized `Tensor::zeros_like(&rhs)` keeps the rhs runtime dtype while `rhs_centered` casts `rhs` to `output_dtype` before subtraction, which can cause a runtime `DTypeMismatch`; cast the synthesized zeros to `output_dtype`.", "category": "correctn...
null
tracel-ai__burn-onnx__239
tracel-ai/burn-onnx
239
defect
671fa8f6c55f4922c06ff9bd5a22a6fc84f47f55
62be1a07b47764ad3995000c20d66a07bc79c8e4
Extract shared broadcast/unsqueeze logic from binary op codegen
All binary op codegen files duplicated the same rank-based unsqueeze-for-broadcast pattern across ~19 operators. This PR extracts it into two shared helpers in `broadcast_helpers.rs` and applies them uniformly. ### Changes - **`broadcast_helpers.rs`**: Added two helpers: - `leading_broadcast_rhs(rhs_expr, lhs_rank,...
diff --git a/crates/burn-onnx/src/burn/node/add.rs b/crates/burn-onnx/src/burn/node/add.rs index 6c7fcc822..c67bef589 100644 --- a/crates/burn-onnx/src/burn/node/add.rs +++ b/crates/burn-onnx/src/burn/node/add.rs @@ -22,18 +22,11 @@ impl NodeCodegen for onnx_ir::node::arithmetic::AddNode { (lhs_ty, rhs_ty)...
1
1
1
[{"id": "G0", "claim": "broadcast_helpers.rs glob-imports super::prelude::* while prelude.rs now re-exports broadcast_helpers, importing the module into itself, which typically triggers a Rust duplicate-definition error (E0255) / circular import; prefer removing the prelude glob import and importing only the needed ite...
null
tracel-ai__burn-onnx__340
tracel-ai/burn-onnx
340
defect
6753a079db3df6d59516577661424ef0bf1e157f
15b79a310479f47d7d2d2c7f1dc8f46cd31eebfa
Re-enable tests disabled for now-fixed upstream bugs
## Summary - Upstream Burn fixes for tracel-ai/burn#4771, #4772, and #4776 have landed, so the matching `#[ignore]` attributes and `fail-compare` entries in `expectations.toml` are no longer needed. - Also re-enables two tests with stale local TODOs (`grid_sample_nearest`, `test_reshape_config_runtime`) that now pass u...
diff --git a/crates/onnx-ir/src/node/reshape.rs b/crates/onnx-ir/src/node/reshape.rs index c9e48063d..8bda93f66 100644 --- a/crates/onnx-ir/src/node/reshape.rs +++ b/crates/onnx-ir/src/node/reshape.rs @@ -606,7 +606,6 @@ mod tests { } #[test] - #[ignore] // TODO: Test needs redesign - runtime reshape req...
2
2
2
[{"id": "G0", "claim": "The re-enabled grid_sample_nearest test only asserts the output shape, so it can pass even if nearest-neighbor sampling returns incorrect values; add an assertion against expected output values (like grid_sample_bilinear) so the test actually guards nearest-mode correctness.", "category": "testi...
null
tracel-ai__burn-onnx__386
tracel-ai/burn-onnx
386
defect
6d7326eea5e09383cc22c1f2610d71128892d94f
862157757f572aaba97c783d48db57dc64bb783e
Remove generation of unused constants for Gather (closes #385)
### Checklist - [ ] Confirmed that `cargo xtask validate` command has been executed. => I only ran cargo test and the beginning of xtask validate because cortex-m doesn't compile on my machine - [ ] Confirm relevant documentation has been updated. - [x] For new/modified ONNX operators: verified implementation matc...
diff --git a/crates/burn-onnx/src/burn/node/gather.rs b/crates/burn-onnx/src/burn/node/gather.rs index 81604c38e..a506b74bf 100644 --- a/crates/burn-onnx/src/burn/node/gather.rs +++ b/crates/burn-onnx/src/burn/node/gather.rs @@ -68,15 +68,24 @@ fn forward_shape_gather( // Gathering a single element from a ...
1
1
1
[{"id": "G0", "claim": "Converting the constant scalar indices input to Static via to_static() clears arg.name, so burn-onnx Gather codegen branches that still use the index through an identifier (e.g. Tensor->Scalar / Tensor->ScalarTensor outputs via scope.arg / arg_to_ident) will panic on the empty name (Ident::new(\...
null
tracel-ai__burn-onnx__388
tracel-ai/burn-onnx
388
defect
13cd1f9c5719d93c7fe9919f6dc342bc15ecc339
e4784135f2b83182bcbebc85d7b446f2703c251b
onnx-ir: Update Slice node to compute output tensor static shape
### Checklist - [x] Confirmed that `cargo xtask validate` command has been executed. I got this error but it doesn't look relate to this change. ``` [2026-05-03T11:53:10Z INFO tracel_xtask_utils::process] Command line: typos error: `iz` should be `is` ╭▸ ./crates/onnx-ir/src/node/einsum.rs:990:45 ...
diff --git a/crates/onnx-ir/src/node/slice.rs b/crates/onnx-ir/src/node/slice.rs index 9dd96d0e9..ef4af04a5 100644 --- a/crates/onnx-ir/src/node/slice.rs +++ b/crates/onnx-ir/src/node/slice.rs @@ -66,38 +66,57 @@ fn normalize_axes(axes: &mut [i64], rank: usize, _node_name: &str) { } } -/// Calculate output leng...
4
3
3
[{"id": "G0", "claim": "The type-inference loop indexes starts[i], ends[i] and steps[i] without validating that those vectors have the same length as axes, which extract_config still leaves as a TODO, so a malformed Slice node will now panic during type inference instead of returning a ProcessError.", "category": "corr...
null
tracel-ai__burn-onnx__401
tracel-ai/burn-onnx
401
defect
ad2fcb8a66c51b52a4dc72a8cca5ffd2ddc11102
2de598333ec4e2296628f3df0919052af42001e1
fix: accept rank-1 input in Flatten per ONNX spec
## Summary - Fix Flatten node to accept rank-1 tensors as input, which is valid per the ONNX specification but previously caused a panic - Move axis range validation from `extract_config` to `infer_types` to avoid panic path through `build_node` - Add opset < 11 gate for negative axis values, matching the depth_to_spac...
diff --git a/crates/burn-onnx/src/burn/node/flatten.rs b/crates/burn-onnx/src/burn/node/flatten.rs index c5ba1aec8..e7dfd65be 100644 --- a/crates/burn-onnx/src/burn/node/flatten.rs +++ b/crates/burn-onnx/src/burn/node/flatten.rs @@ -37,10 +37,14 @@ mod tests { use onnx_ir::flatten::{FlattenConfig, FlattenNode, Fla...
5
5
1
[{"id": "G0", "claim": "The out-of-range error reports the axis after normalization (e.g. an input axis of -2 for rank-1 becomes -1 in the message), which can confuse debugging; consider preserving the original attribute value or including both original and normalized axis.", "category": "correctness", "verdict": "supp...
null
tracel-ai__burn__1097
tracel-ai/burn
1,097
defect
40ec289a92c7925fbd7eeb8fe89991537da3e857
8a03fb3165edd0122abc2def6cfd6f86856a390d
Provide Tensor Padding Helpers #960
## Pull Request for Tensor Padding Feature Enhancement ### Checklist - [x] Confirmed that `run-checks all` script has been executed. - [x] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Fixes #960 ### Changes This PR addresses the need for padding functionality in t...
diff --git a/burn-tensor/src/tensor/api/base.rs b/burn-tensor/src/tensor/api/base.rs index 70da56d751b..fd9ad8c62da 100644 --- a/burn-tensor/src/tensor/api/base.rs +++ b/burn-tensor/src/tensor/api/base.rs @@ -15,7 +15,7 @@ use core::{fmt::Debug, ops::Range}; use crate::check::TensorCheck; use crate::tensor::api::chun...
5
5
4
[{"id": "G0", "claim": "Building the padded tensor via Data::full plus from_data_devauto is not efficient; Tensor::full(shape, value) should be used instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pad API should be reshaped: rename Paddi...
null
tracel-ai__burn__1679
tracel-ai/burn
1,679
defect
2140d9b568ac0c43f89d24eb48b63791222e0c11
21a2c6553c7d4df0b3de830112888b39fab6a9d0
Handle ndarray matmul broadcasting
## Pull Request Template ### Checklist - [x] Confirmed that `run-checks all` script has been executed. - [x] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Fixes #1646. Related to #1499 ### Changes - Use strides to map linear batch indices from the output back to the...
diff --git a/crates/burn-ndarray/src/ops/matmul.rs b/crates/burn-ndarray/src/ops/matmul.rs index 4cc60f0194d..47cbedb9f20 100644 --- a/crates/burn-ndarray/src/ops/matmul.rs +++ b/crates/burn-ndarray/src/ops/matmul.rs @@ -1,5 +1,6 @@ use crate::{element::FloatNdArrayElement, tensor::NdArrayTensor, NdArray}; use crate:...
2
2
0
[{"id": "G0", "claim": "The comment should spell \"dimensions\" instead of \"dmensions\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The panic message (and its matching test expectation) should use \"broadcasted\" instead of \"broadcast\".", "...
null
tracel-ai__burn__1739
tracel-ai/burn
1,739
defect
0b919b6a58c448314a375c692720123fa62e0fbf
5d95d1b65ad3e7633c7415817fe949fc5a6b040b
Fix select assign backward
The select assign backward wasn't right for the RHS Fix #1727
diff --git a/crates/burn-autodiff/src/ops/tensor.rs b/crates/burn-autodiff/src/ops/tensor.rs index d8dfe171022..c7ed397f823 100644 --- a/crates/burn-autodiff/src/ops/tensor.rs +++ b/crates/burn-autodiff/src/ops/tensor.rs @@ -1058,7 +1058,7 @@ impl<B: Backend, C: CheckpointStrategy> FloatTensorOps<Self> for Autodiff<B, ...
1
1
0
[{"id": "G0", "claim": "The lhs backward closure only adds zeros to grad and is therefore equivalent to just returning grad, and shape_lhs is badly named and not even needed, so the masking closure and the shape_lhs state should be removed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope":...
null
tracel-ai__burn__2114
tracel-ai/burn
2,114
defect
80cc6d4eb520edfa37a6d05c2a2cbe374e2d5b5f
029c80317f8db686243860b02b8a572a7fe0420f
Fix #2091 bug (in-place after expand)
## Pull Request Template ### Checklist - [x] Confirmed that `run-checks all` script has been executed. ### Related Issues/PRs Fixes #2091 ### Changes 1. Introduce `should_clone_hint` flag to clone 2. Add a regression test ### Testing Recreated the bug using a regression test
diff --git a/crates/burn-tch/src/ops/base.rs b/crates/burn-tch/src/ops/base.rs index a1d62fac009..380662a53f8 100644 --- a/crates/burn-tch/src/ops/base.rs +++ b/crates/burn-tch/src/ops/base.rs @@ -493,8 +493,13 @@ impl<E: tch::kind::Element + Copy + Default> TchOps<E> { tensor: TchTensor<E, D>, shape:...
1
1
1
[{"id": "G0", "claim": "The should_clone_hint flag on the expanded tensor is not the right fix; the storage should know that a tensor cannot be reused (the buffer's size should match the tensor's requirements and elements should not share allocated memory).", "category": "design", "verdict": "supported", "priority": "P...
null
tracel-ai__burn__2903
tracel-ai/burn
2,903
defect
5a74fc1a1e00997dd1e8ffc471e2b604260e0e83
7c1245d52f691f35b7dad5e7c71ab40241ada264
Fix select vectorization
fix #2891
diff --git a/crates/burn-cubecl-fusion/src/elemwise/builder.rs b/crates/burn-cubecl-fusion/src/elemwise/builder.rs index b53cff1ce96..72e977eb300 100644 --- a/crates/burn-cubecl-fusion/src/elemwise/builder.rs +++ b/crates/burn-cubecl-fusion/src/elemwise/builder.rs @@ -27,7 +27,7 @@ impl<R: Runtime> ElementWiseBuilder<R...
1
1
1
[{"id": "G0", "claim": "The select fix on fusion is incomplete: with the current fix, a 3D dim-1 vectorized select over non-uniform data produces wrong output on fusion (the reviewer's shared test fails), and the added all-ones test is not representative, so the test should be changed to that stronger case.", "category...
null
tracel-ai__burn__3061
tracel-ai/burn
3,061
defect
d7527884c0dba2adca682c8d58e5bd0de692b97f
f9f111a59dd34ff2d6f9f2fcba244d749ec4fdae
Improve `tensor.slice(...)` to support multiple range types
### Checklist - [ ] Confirmed that `run-checks all` script has been executed. - [ ] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Fixes #3048 ### Changes - Added more range types (and single index) support for slice - Removed `(i64, i64)` and `Option<i64, i64>` tuples...
diff --git a/crates/burn-core/src/lib.rs b/crates/burn-core/src/lib.rs index d56ebca7f8a..55a8f02600e 100644 --- a/crates/burn-core/src/lib.rs +++ b/crates/burn-core/src/lib.rs @@ -82,8 +82,8 @@ pub mod prelude { module::Module, nn, tensor::{ - Bool, Device, ElementConversion, Floa...
2
1
0
[{"id": "G0", "claim": "Consider covering the homogeneous full-range case with the plain array form `tensor.clone().slice([.., ..])` instead of the `s!` macro.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The slice API does not support stepped ranges,...
null
tracel-ai__burn__3338
tracel-ai/burn
3,338
defect
e7182437482556d2d940c8afd67c32162eb320d4
cdcd4005777927f88e70e8e3f162c280706618a5
Update default strides in `AvgPool1dConfig`, `AvgPool2dConfig`, `MaxPool1dConfig`, and `MaxPool2dConfig` to match kernel sizes
### Checklist - [x] Confirmed that `cargo run-checks` command has been executed. ### Related Issues/PRs Fixes #663 ### Changes - Updated the constructor of `MaxPool2dConfig` to set the default strides equal to the kernel size. - This ensures that Burn’s behavior mirrors PyTorch’s default stride behavi...
diff --git a/Cargo.lock b/Cargo.lock index 62345a749e..bc04433b5e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -597,6 +597,7 @@ dependencies = [ "rand 0.9.1", "regex", "rmp-serde", + "rstest", "serde", "serde_json", "spin 0.10.0", diff --git a/crates/burn-core/Cargo.toml b/crates/burn-core/Cargo.toml index d...
2
2
0
[{"id": "G0", "claim": "The new rstest dependency should use the workspace definition instead of pinning a version inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The other pool modules in burn-core should also be updated (default strides...
null
tracel-ai__burn__4064
tracel-ai/burn
4,064
defect
66b51fc5ebb514c96c874ca25ab109cc9d504749
3e587e525aaa3c27a7c1e5dcda748b96dd6ca211
Fix scatter values backward
Fix the bug described in https://github.com/tracel-ai/burn/issues/4063; `ops::tensor`'s `Scatter.backward()` has a broken autodiff implementation which crashes on backprop when all three arguments are not all the same size, and even if it didn't (by padding with zeros or otherwise), it's mathematically completely wrong...
diff --git a/crates/burn-autodiff/src/ops/tensor.rs b/crates/burn-autodiff/src/ops/tensor.rs index a9f102da1f8..91b635cbbac 100644 --- a/crates/burn-autodiff/src/ops/tensor.rs +++ b/crates/burn-autodiff/src/ops/tensor.rs @@ -994,21 +994,15 @@ impl<B: Backend, C: CheckpointStrategy> FloatTensorOps<Self> for Autodiff<B, ...
3
2
1
[{"id": "G0", "claim": "The backward implementations of float_cat, float_unfold, float_cast and float_cross look like they also have mistakes, which the author says will be addressed in a separate follow-up pull request.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"...
null
tracel-ai__burn__4150
tracel-ai/burn
4,150
defect
196ec1adb8c7eb426d478599ae4132f85fd817d5
ed900e269a07d2f49814a291d73d90ba8eb2e0cc
Add contiguous reindexing for non-contiguous layer indices
Problem When PyTorch models use `nn.Sequential` with mixed layer types (e.g., Conv2d + ReLU), the state_dict keys have non-contiguous indices because only layers with parameters are saved: ```python self.fc = nn.Sequential( nn.Conv2d(...), # fc.0.weight, fc.0.bias nn.ReLU(), # No parameters (index 1...
diff --git a/crates/burn-store/README.md b/crates/burn-store/README.md index 71796b49205..c7ec5182d76 100644 --- a/crates/burn-store/README.md +++ b/crates/burn-store/README.md @@ -120,6 +120,39 @@ let mut store = SafetensorsStore::from_file("for_pytorch.safetensors") burn_model.save_into(&mut store)?; ``` +### Con...
2
2
1
[{"id": "G0", "claim": "The names `contiguous_reindex` and `reindex_contiguous` are not clear, and the functions should be renamed to something like `map_indices_contiguous` or `map_indices_sequential` since they essentially map layer indices.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
tracel-ai__burn__4180
tracel-ai/burn
4,180
defect
ddb8de68aec77b792fdd365b29896d1939403fd6
0c15cdf02cc5cd1ac970e3849b3007767d29e474
Fix quantized tensor storage data length calculation
### Checklist - [x] Confirmed that `cargo run-checks` command has been executed. - [x] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Closes #4179 ### Changes - Fix TensorSnapshot::data_len() to correctly calculate byte size for quantized tensors - Add DType::data_by...
diff --git a/crates/burn-std/src/tensor/dtype.rs b/crates/burn-std/src/tensor/dtype.rs index 1142da93deb..fa6b39927d4 100644 --- a/crates/burn-std/src/tensor/dtype.rs +++ b/crates/burn-std/src/tensor/dtype.rs @@ -2,9 +2,22 @@ use serde::{Deserialize, Serialize}; -use crate::tensor::quantization::{QuantScheme, Quan...
3
3
1
[{"id": "G0", "claim": "Use lazy panic formatting (unwrap_or_else with a closure, or a static message) instead of format! inside expect, which builds the message string even when the Result is Ok.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The q...
null
tracel-ai__burn__4318
tracel-ai/burn
4,318
defect
5e51dfe04f013c53392e8bb81aafb07c9bc84a32
11903805beda6c0337a7b8bbce33cecdfdea4450
Performance tweaks to the lp_norm code.
Refactor vector norm implementations to unify logic, improve accuracy, and add specialized handling for all norm types. - [x] Confirmed that `cargo run-checks` command has been executed. - [ ] Made sure the book is up to date with changes in this PR.
diff --git a/crates/burn-backend-tests/tests/tensor/float/linalg/vector_norm.rs b/crates/burn-backend-tests/tests/tensor/float/linalg/vector_norm.rs index 0d1650e0409..ebb7c65ff71 100644 --- a/crates/burn-backend-tests/tests/tensor/float/linalg/vector_norm.rs +++ b/crates/burn-backend-tests/tests/tensor/float/linalg/ve...
3
3
1
[{"id": "G0", "claim": "The internal helper should not use the unconventional `_`-prefixed name `_lp_norm`; a more descriptive name such as `lp_norm_general` or `lp_norm_impl` should be used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The in...
null
tracel-ai__burn__4476
tracel-ai/burn
4,476
defect
d8eb7d4ffb4c74ae0cdf8e3e43851be9e1394eea
1a9904eeba976ad9a808015e4a84c1189823e66e
feat: enhance attention() with scale, attn_bias, softcap, and is_causal
## Summary Enhances `burn::tensor::module::attention()` with four new capabilities, enabling models like ALiBi, T5, Swin Transformer, and Gemma-2 to use the backend-dispatched attention path instead of falling back to manual tensor ops. - **`AttentionOptions` struct** with `scale: Option<f64>`, `softcap: Option<f64>`...
diff --git a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs b/crates/burn-backend-tests/tests/tensor/float/module/attention.rs index e2b55575496..4040d442d23 100644 --- a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs +++ b/crates/burn-backend-tests/tests/tensor/float/module/attentio...
3
3
2
[{"id": "G0", "claim": "build_causal_mask expands a 2D mask straight to 4D with B::bool_expand, which the reviewer says will panic on backends like burn-ndarray where *_expand expects the same rank, so the mask should be reshaped to [1, 1, seq_q, seq_k] (or built as 4D) before expanding.", "category": "correctness", "v...
null
tracel-ai__burn__4507
tracel-ai/burn
4,507
defect
774875a6757359a71d84592b5d8ea884783d50b1
f006db71683db7347127eb7d150c5bd6b3da2fdd
feat: support padding on arbitrary dimensions
## Summary - Generalize `tensor.pad()` to accept `(before, after)` pairs for any dimension, not just the last two - Add `IntoPadding` trait for backward compatibility: the old `(left, right, top, bottom)` tuple still works alongside the new `&[(before, after)]` slice/array/Vec formats - All existing callers compil...
diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/padding.rs b/crates/burn-backend-tests/tests/tensor/float/ops/padding.rs index e84d551bb89..fa2101dd18a 100644 --- a/crates/burn-backend-tests/tests/tensor/float/ops/padding.rs +++ b/crates/burn-backend-tests/tests/tensor/float/ops/padding.rs @@ -303,3 +303,...
1
1
0
[{"id": "G0", "claim": "Instead of returning a Vec combined with expand_padding, into_padding should return a fixed-size array to avoid vec allocations and provide a fixed-size contract.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tracel-ai__burn__4594
tracel-ai/burn
4,594
defect
91e784e3fb10ee19400707fcd17669a1ba7f2780
c3b8516d02b714b8436799b5ba7fb2b3e6c2fb5a
Add HalfPrecisionAdapter for F32/F16 mixed-precision storage
## Summary - Add `HalfPrecisionAdapter` for F32/F16 mixed-precision model storage - Auto-detects conversion direction from snapshot dtype: same adapter instance works for both save (`F32->F16`) and load (`F16->F32`) - Ships with smart defaults: 14 module types converted (Linear, Embedding, Conv*, LayerNorm, GroupN...
diff --git a/burn-book/src/saving-and-loading.md b/burn-book/src/saving-and-loading.md index 957e1fb780e..15065679138 100644 --- a/burn-book/src/saving-and-loading.md +++ b/burn-book/src/saving-and-loading.md @@ -323,6 +323,40 @@ let mut store = BurnpackStore::from_file("large_model.bpk") model.load_from(&mut store)?;...
6
6
2
[{"id": "G0", "claim": "The `debug_assert!` in `without_module` only fires in debug builds, so in a release build a misspelled module name silently does nothing; use a regular `assert!` or return a `Result`/log a warning so misconfiguration is discoverable in all build profiles.", "category": "correctness", "verdict": ...
null
tracel-ai__burn__4631
tracel-ai/burn
4,631
defect
4e962f9484f866d4c99c205f2f0b7c1ae9bcf696
4b22def6f6e06bb0df9b78b0488e5aebff0d7234
Add HannWindow operator to burn-tensor
## Pull Request Template ### Checklist - [ ] Confirmed that `cargo run-checks` command has been executed. *(Note: Ran targeted checks instead due to local CUDA SDK limitations, see Testing section below for details).* - [x] Made sure the book is up to date with changes in this PR. *(Note: N/A, this is an API add...
diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/hann_window.rs b/crates/burn-backend-tests/tests/tensor/float/ops/hann_window.rs new file mode 100644 index 00000000000..ff888a1a62d --- /dev/null +++ b/crates/burn-backend-tests/tests/tensor/float/ops/hann_window.rs @@ -0,0 +1,62 @@ +use super::*; +use burn...
1
1
0
[{"id": "G0", "claim": "The signal processing operator should perhaps be separated from the tensor API methods and grouped in a `signal` module, similar to how grid operations are grouped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tracel-ai__burn__4655
tracel-ai/burn
4,655
defect
7c3be3be027645026e41c29233d8a089d5a28ef8
6aadcb9cbbec29fd0d3cc8ad1e757530953ff96e
feat: add multinomial (categorical distribution) sampling for 2D tensors
## Pull Request Template ### Checklist - [x] Confirmed that `cargo run-checks` command has been executed. - [ ] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Fixes #1121 ### Changes Add `Tensor<B, 2>::multinomial(num_samples, replacement)` method that samples from categorical di...
diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/mod.rs b/crates/burn-backend-tests/tests/tensor/float/ops/mod.rs index 94c81f18c09..1492ec415a1 100644 --- a/crates/burn-backend-tests/tests/tensor/float/ops/mod.rs +++ b/crates/burn-backend-tests/tests/tensor/float/ops/mod.rs @@ -39,6 +39,7 @@ mod matmul; ...
6
6
3
[{"id": "G0", "claim": "The reviewer would like the sampling method generalized from `Tensor<B, 2>` to `Tensor<B, D>` for any const D, treating the last dimension as categories and all leading dimensions as batch, to support 1D, 2D and 3D use cases.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
tracel-ai__burn__4675
tracel-ai/burn
4,675
defect
fa9f6815d1d03e3e54aaec67786b51a51c8bb55c
9868278cb3c6292de11187366b9326ed40495ef8
Fix fusion kernel vector_size mismatch on f16 output writes
## Pull Request Template ### Checklist - [X] Confirmed that `cargo run-checks` command has been executed. - [ ] Made sure the book is up to date with changes in this PR. ### Changes Fix a bug where fused kernels corrupted memory when writing to output tensors whose `vector_size` differs from the kernel's com...
diff --git a/Cargo.lock b/Cargo.lock index c55dad9309c..75d08c11e35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -903,6 +903,7 @@ dependencies = [ name = "burn-cubecl-fusion" version = "0.21.0-pre.2" dependencies = [ + "burn", "burn-backend", "burn-fusion", "burn-ir", diff --git a/crates/burn-cubecl-fusion/Carg...
3
2
0
[{"id": "G0", "claim": "In `write_output_aligned` the mutable output variable should be named `output` instead of `tensor`, so uses read `output.tensor[...]` and avoid the confusing `tensor.tensor`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
tracel-ai__burn__4687
tracel-ai/burn
4,687
defect
ed72d2b125a364aff18aed2a53396c128e01cb42
9c6712e589a71384157bbaf5c63d867e7bc71ad4
fix: use integer arithmetic for nearest-neighbor coordinate scaling
The WGPU nearest-neighbor interpolation kernel used f32 division to map output coordinates to input coordinates. For certain spatial dimensions, GPU f32 division produces values that land just below an integer boundary, causing the truncation to select the wrong input pixel. Replace with integer arithmetic (y * in_h...
diff --git a/crates/burn-cubecl/src/kernel/interpolate/nearest.rs b/crates/burn-cubecl/src/kernel/interpolate/nearest.rs index 7c7153d4666..03ea6f64f20 100644 --- a/crates/burn-cubecl/src/kernel/interpolate/nearest.rs +++ b/crates/burn-cubecl/src/kernel/interpolate/nearest.rs @@ -28,19 +28,19 @@ fn interpolate_nearest_...
1
1
1
[{"id": "G0", "claim": "Add the test case from the reproduction repo to the PR so the nearest-neighbor scaling issue is captured, using the cubecl backend-test pattern with an ndarray reference implementation.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tracel-ai__burn__4697
tracel-ai/burn
4,697
defect
0f133622abf7bf0348ae478f37836be924c0e1d2
91d29e3e68bfa60100d48892b585382145bdd025
Fix attention_fallback NaN for fully-masked rows
## Summary - Fix NaN output in `attention_fallback` when all positions in a softmax row are masked (`-inf`) - Add two clamps to the softmax computation: floor the max (prevents `-inf - (-inf) = NaN`) and floor the sum (prevents `0 / 0 = NaN`) - Add regression tests for fully-masked rows with bool-mask-only and causal+...
diff --git a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs b/crates/burn-backend-tests/tests/tensor/float/module/attention.rs index 25b5c5e84ae..8d268e2771d 100644 --- a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs +++ b/crates/burn-backend-tests/tests/tensor/float/module/attentio...
3
1
1
[{"id": "G0", "claim": "Clamping max_per_dim with the fixed floor SOFTMAX_MAX_FLOOR = -1e4 can change results for legitimate finite logits whose true max is below -1e4, potentially yielding an all-zero softmax; the fix should instead detect fully-masked (-inf max) rows via float_is_inf and replace only those entries ra...
null
tracel-ai__burn__4703
tracel-ai/burn
4,703
defect
faaf89d3816669eec0ba0453e116b43fabe211cb
d4b46d68a6a7f61363cb42b842b2d8d80c0768be
Fix: make module cloning efficient for CPU devices
## Summary - Fix `Param::clone()` to preserve lazy (uninitialized) state instead of eagerly triggering initialization, which allocated tensor memory unnecessarily on CPU backends - Change `Uninitialized.init` from `Box<dyn FnOnce>` to `Arc<dyn Fn>` so the init function can be cloned without consuming it - Add `Clone` ...
diff --git a/crates/burn-core/src/module/initializer.rs b/crates/burn-core/src/module/initializer.rs index cc25294a366..58348f89c03 100644 --- a/crates/burn-core/src/module/initializer.rs +++ b/crates/burn-core/src/module/initializer.rs @@ -112,6 +112,8 @@ impl Initializer { Param::uninitialized( ...
4
2
1
[{"id": "G0", "claim": "Reintroduce the `alloc::boxed::Box` import (cfg-gated or qualified) because its removal breaks compilation of the `#[cfg(not(target_has_atomic = \"ptr\"))]` branch where `Mapper<T>` is defined as `Arc<Box<dyn Fn...>>`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope...
null
tracel-ai__burn__4704
tracel-ai/burn
4,704
defect
e5bdeef7fc7fcb5092af6d6a53a9382d553f083a
5e4a4808ce018f1b74a207774a01c82a5667976e
Add more checks for quantized tensor reshape
### Checklist - [ ] Confirmed that `cargo run-checks` command has been executed. - [ ] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs #4659 ### Changes - Refactor reshape analysis to use `Shape` and `Strides` + added tests - Added more validation checks to `q_reshape` ...
diff --git a/crates/burn-backend-tests/tests/cubecl/mod.rs b/crates/burn-backend-tests/tests/cubecl/mod.rs index df5c3dfc525..372c008de90 100644 --- a/crates/burn-backend-tests/tests/cubecl/mod.rs +++ b/crates/burn-backend-tests/tests/cubecl/mod.rs @@ -1,4 +1,3 @@ -// #[allow(unused_imports)] // required for re-include...
9
7
2
[{"id": "G0", "claim": "The ignored Q4S packed reshape paths produce incorrect results at runtime with no runtime guard, so the implementation should add `unimplemented!` guards for Q4S packed reshape until the cubecl fix lands so users get a clear error instead of silently wrong data.", "category": "correctness", "ver...
null
tracel-ai__burn__4713
tracel-ai/burn
4,713
defect
21567a3e892aed86a71cca32ee29bf598971c986
1ec0a8841f9fcc9fca7764fe7407eee22a698dcf
feat: support cross-kind tensor casting via .cast()
## Summary - Extend `.cast()` on Float, Int, and Bool tensors to accept dtype enums from other kinds, enabling single-step cross-kind conversions (e.g., `float_tensor.cast(IntDType::I64)`) instead of the two-step `float_tensor.int().cast(IntDType::I64)` - A single generic `Cast<B, K>` trait (parameterized by input ten...
diff --git a/crates/burn-backend-tests/tests/tensor/bool/ops/cast.rs b/crates/burn-backend-tests/tests/tensor/bool/ops/cast.rs new file mode 100644 index 00000000000..27c4b340bad --- /dev/null +++ b/crates/burn-backend-tests/tests/tensor/bool/ops/cast.rs @@ -0,0 +1,24 @@ +use super::*; +use burn_tensor::{DType, FloatDT...
2
2
2
[{"id": "G0", "claim": "When `primitive` is `TensorPrimitive::QFloat`, `primitive.dtype().into()` panics, so calling `.cast(FloatDType::...)` on a quantized float tensor will panic; consider matching on `primitive` and only performing the no-op check for `TensorPrimitive::Float`, otherwise falling through to `B::float_...
null
tracel-ai__burn__4727
tracel-ai/burn
4,727
defect
c3917da4ea1e424e60a9a6d809dab0ef9ef39e14
c154a2183b55f64dbe9b5f4fb39ad6cd2ddd18e3
fix(ndarray): add missing ic_off in conv2d_remainder SIMD path
## Summary Two related fixes for the SIMD convolution path in burn-ndarray when processing grouped convolutions with padding — specifically, convolutions where `groups > 1` AND `padding > 0`. ### Fix 1: Missing `ic_off` in `conv2d_remainder` (line 311) The first loop in `conv2d_remainder` (vertical-padding rows) ind...
diff --git a/crates/burn-ndarray/src/ops/simd/conv.rs b/crates/burn-ndarray/src/ops/simd/conv.rs index 5bbd4633efc..496a1ad1c1c 100644 --- a/crates/burn-ndarray/src/ops/simd/conv.rs +++ b/crates/burn-ndarray/src/ops/simd/conv.rs @@ -187,9 +187,9 @@ unsafe fn conv2d_launch< let oc_b = channels_per_group.min(lanes);...
1
1
1
[{"id": "G0", "claim": "Simple regression tests should be added in crates/burn-backend-tests/tests/tensor/float/module/conv2d.rs to capture the regressions, ideally with expected-output checks and at the very least validating that the operation executes successfully.", "category": "testing", "verdict": "supported", "pr...
null
tracel-ai__burn__4738
tracel-ai/burn
4,738
defect
c3917da4ea1e424e60a9a6d809dab0ef9ef39e14
9a744a6a3be3727d45aa051c49eca48435670909
Optimize and update LU decomposition function
## Pull Request Template ### Checklist - [x] Confirmed that `cargo run-checks` command has been executed. - [x] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Related to [Add native det() (determinant) tensor operation #4609](https://github.com/tracel-ai/burn/issues/4609) ...
diff --git a/burn-book/src/building-blocks/tensor.md b/burn-book/src/building-blocks/tensor.md index e677adc85b5..c46ac8d7024 100644 --- a/burn-book/src/building-blocks/tensor.md +++ b/burn-book/src/building-blocks/tensor.md @@ -428,7 +428,8 @@ strategies. | `linalg::l1_norm(tensor, dim)` | _No dir...
4
4
2
[{"id": "G0", "claim": "The doc examples should be generic over the backend (e.g. `fn example<B: Backend>()`) instead of pinning a concrete backend like `type B = NdArray<f32>`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In `standard_lu_with_p...
null
tracel-ai__burn__4755
tracel-ai/burn
4,755
defect
03175d123628a18f44cf1af870c082907904ee12
32ca346acba5425665d39a84f24c346aa6d3bf89
Fix `unsqueeze_dims` panic
## Pull Request Template ### Checklist - [x] Confirmed that `cargo run-checks` command has been executed. - [x] Made sure the book is up to date with changes in this PR. ### Related Issues/PRs Closes [unsqueeze_dims panic #4754](https://github.com/tracel-ai/burn/issues/4754) ### Changes - Rewrote the...
diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs b/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs index 0aead041c62..6b22aff04b8 100644 --- a/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs +++ b/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs @@ -178,6 +178,...
1
1
0
[{"id": "G0", "claim": "The loop bound in `unsqueeze_dims` should use the const generic `D2` instead of `new_dims.len()`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tracel-ai__burn__4764
tracel-ai/burn
4,764
defect
b7762b07a829a1ce952da322179015d1403d59df
86dc9c0383b48b1169788e74321a429eceb9e4dc
Fix unsqueeze_dims panic on duplicate sorted axes
## Summary The rewrite in #4755 introduced an index-out-of-bounds panic when the input axes produce duplicate values after sorting. The documented semantic for `unsqueeze_dims` is: > the axes can contain duplicates, in which case the number of dimensions inserted at the index is the number of duplicates. but the cur...
diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs b/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs index 6b22aff04b8..7c84645adb3 100644 --- a/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs +++ b/crates/burn-backend-tests/tests/tensor/float/ops/squeeze.rs @@ -186,6 +186,...
1
1
1
[{"id": "G0", "claim": "The duplicate-axis normalization can bump an index past the last valid output position (>= D2), making the copy loop index old_dims out of bounds (panic) and/or silently ignore an insertion; add post-normalization validation ensuring every dim_indices[i] < D2 and fail with a clear TensorCheck er...
null