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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tue-bmd__zea__123 | tue-bmd/zea | 123 | defect | 72a242663a09df94b4548955f7834a4694895873 | 23dc6aba56a471febca1592ea5922ae8622ba0e7 | Simplified phase rotation and improved documentation | # Changes
- The code in the beamformer that performs phase rotation would rotate by a difference between the delay and the z-coordinate. As I understand it, this is not correct and should just be the total delay. I removed the z-coordinate part.
- The tof_correction function and `Operation` have a parameter `apply_ph... | diff --git a/configs/config_carotid.yaml b/configs/config_carotid.yaml
index 96f63116a..72766b7e7 100644
--- a/configs/config_carotid.yaml
+++ b/configs/config_carotid.yaml
@@ -17,7 +17,6 @@ data:
# The frame number to load when running the UI (null, int, 'all')
frame_no: all
-
# The scan section contains the ... | 5 | 1 | 0 | [{"id": "G0", "claim": "The shape-based checks this change introduces (the newly enabled shape assert in complex_rotate and the shape-based IQ auto-detection that replaced the parameter once added for jittability) may cause jitting errors as shape checking did before, so jittability should be confirmed before merge.", ... | null |
tue-bmd__zea__133 | tue-bmd/zea | 133 | defect | 6acd5f27e0b2fee30003a8bbcf514039a9ccb41f | 02fdc6a1e6c9e00d133ac8dfd3202165cfc3d719 | Attributes of Parameters can be updated in-place now | Fixes #122
I have fixed the issue by hashing the values of all leaf parameters. Whenever a cached property is accessed it will check if the leaves that it depends on have changed.
I have added the `zea.internal.dummy_scan` module, which previously mainly lived in `tests/test_transmit_schemes.py`, but I found it ... | diff --git a/tests/test_scan.py b/tests/test_scan.py
index 57b0748af..7e5c28dcd 100644
--- a/tests/test_scan.py
+++ b/tests/test_scan.py
@@ -160,3 +160,39 @@ def test_scan_pickle():
assert scan == scan_unpickled, "Unpickled Scan object does not match the original"
assert scan is not scan_unpickled, "Unpickl... | 4 | 2 | 2 | [{"id": "G0", "claim": "Line 294 looks up the stored hash with `value` instead of `key` (`self._hashed_params.get(value, None)`), which breaks the in-place change detection mechanism; the lookup should use `key`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1",... | null |
tue-bmd__zea__136 | tue-bmd/zea | 136 | defect | cf84c6db20a3f75a46dc20e26bdd335bfdd8135e | d1bcdcfacf94e90f1a5a09a0b68fb6bbb17682c0 | Map coordinates func dtype fix for higher order interpolation | Added a fix and test for the case where you would run mixed precision float 16 dtype with order > 1. This originally failed as scipy interpolate (which is used for higher order interpolation) does not support float16 type.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRa... | diff --git a/tests/test_display.py b/tests/test_display.py
index f7c728e19..14458ad50 100644
--- a/tests/test_display.py
+++ b/tests/test_display.py
@@ -199,3 +199,69 @@ def test_converting_to_image(size, dynamic_range):
_data = display.to_8bit(data, dynamic_range, pillow=False)
assert np.all(np.logical_and(_... | 4 | 1 | 1 | [{"id": "G0", "claim": "The dtype behavior change introduced for order > 1 (float16 input yields float32 output) should be documented in map_coordinates' docstring.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should optionally add ... | null |
tue-bmd__zea__137 | tue-bmd/zea | 137 | defect | 4b8a9668fa23e875b811bb4be282dd1fe2d8c235 | c802ddf35c36029fbdbc223651aa590ac9c73b47 | Plot frustum vertices extended visualization options and improved tests |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Image-grid display with titles, per-image vmin/vmax, cmap and flexible aspect handling
* Matplotlib style helper to apply consistent plot styles
* Matrix visualization with configurable colo... | diff --git a/tests/test_visualize.py b/tests/test_visualize.py
index f65adbfa5..2ae590c58 100644
--- a/tests/test_visualize.py
+++ b/tests/test_visualize.py
@@ -1,97 +1,539 @@
-"""Tests for the zea.visualize module."""
+"""Tests for the visualize module."""
+import matplotlib
import matplotlib.pyplot as plt
import ... | 12 | 5 | 0 | [{"id": "G0", "claim": "The type hint `Optional[Union[str, List[int]]]` for `aspect` is narrower than what the implementation accepts (int, float, str, or lists of these), which can mislead users and type checkers, so it should be broadened.", "category": "documentation", "verdict": "supported", "priority": "P2", "scop... | null |
tue-bmd__zea__159 | tue-bmd/zea | 159 | defect | 1baf37ef4e21907a9ea37ce44260c3616ed0e442 | 4eaeff27f253607e419e4d2de1482b5b2999e0cd | Additions RandomCircleInclusion augmentation | Added width and height ranges to confine inclusion location
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Elliptical inclusion support: radius accepts scalar or (rx,ry); optional width/height ranges constrain center sampling.
* **Improvemen... | diff --git a/zea/data/augmentations.py b/zea/data/augmentations.py
index 1cdbc88ae..b72551996 100644
--- a/zea/data/augmentations.py
+++ b/zea/data/augmentations.py
@@ -30,7 +30,7 @@ class RandomCircleInclusion(layers.Layer):
def __init__(
self,
- radius: int,
+ radius: int | tuple[int, in... | 9 | 5 | 4 | [{"id": "G0", "claim": "The JAX backend seed validation should either support jax.random.key() or throw a more intuitive error; the current message confusingly recommends the legacy jax.random.PRNGKey() API and fires for any non-PRNGKey seed, not just jax.random.key() results.", "category": "design", "verdict": "suppor... | null |
tue-bmd__zea__176 | tue-bmd/zea | 176 | defect | ccb9bac6c62b50e2032cb1e6a1d6657fac045b3a | f7b8b461a0b7111ad132f5072c8d3b72405c6825 | Generalize `zea.ops.PatchedGrid` to `zea.ops.Map` | Introducing `zea.ops.Map` -- this is a type of Pipeline, that maps its operations over specified input arguments. This generalizes `PatchedGrid`, which I have kept that for backwards compatibility, but it is implement as a subclass of `zea.ops.Map`.
You can now specify any keys (together with `in_axes` and `out_axes... | diff --git a/tests/test_ops_infra.py b/tests/test_ops_infra.py
index c67b7ed71..da6759e4b 100644
--- a/tests/test_ops_infra.py
+++ b/tests/test_ops_infra.py
@@ -125,6 +125,7 @@ def default_pipeline_config():
{"name": "tof_correction"},
{"name": "pfield_weighting"},
{"name": "delay... | 14 | 3 | 1 | [{"id": "G0", "claim": "Fix the syntax error: `self._valid_keys = set(...) + {self.key}` uses the `+` operator on sets, which is unsupported and raises a TypeError at runtime.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "ReshapeGrid.call depends o... | null |
tue-bmd__zea__180 | tue-bmd/zea | 180 | defect | ccb9bac6c62b50e2032cb1e6a1d6657fac045b3a | e5d3e533f2bf12bbaebe6ca976eac5f5d8b5f415 | Align `zea.File` indexing with `numpy` and `h5py` | Previously, we had the `File._prepare_indices` function that added some features such as supporting `range` as input to `File.load_data`. This function is removed because it introduced problems where indexing was not equivalent to `numpy` in some cases. For example: `file["data"][(0, 1)] != file["data"][[0, 1]]`. The f... | diff --git a/docs/source/common/file_indexing.rst b/docs/source/common/file_indexing.rst
new file mode 100644
index 000000000..d9568bb93
--- /dev/null
+++ b/docs/source/common/file_indexing.rst
@@ -0,0 +1,16 @@
+The indices parameter can be used to load a subset of the data. This can be
+
+- ``'all'`` or ``None`` to lo... | 4 | 3 | 1 | [{"id": "G0", "claim": "load_transmits should pass a tuple of indexers, not the list [slice(None), np.array(selected_transmits)], since _prepare_indices no longer casts lists to tuples and the documented multi-axis interface requires a tuple.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
tue-bmd__zea__218 | tue-bmd/zea | 218 | defect | 50d1f6bd5848b35ba319965f6e02bd88ef765059 | fdd1452abb7e9b5f99d0d65f4e744597dc9960a6 | Implemented windowing operation | This PR implements a new operation windowing operation to clip and transition the start and/or end of a signal. I implemented this to prevent edge artefacts.
When there is strong signal at the start of the channel data and none at the end, the IQ demodulation step introduces artefacts that show up in the beamformed ... | diff --git a/tests/test_operations.py b/tests/test_operations.py
index 6a9a6d12d..c539cad64 100644
--- a/tests/test_operations.py
+++ b/tests/test_operations.py
@@ -552,3 +552,26 @@ def test_beamformers(beamformer, expected_shape):
with pytest.raises(ValueError):
data = keras.ops.zeros((1, 3, 7, 4... | 12 | 7 | 5 | [{"id": "G0", "claim": "Cast the pre-computed float32 window to the input data's dtype before building the mask, since the other mask components use the input dtype and concatenating mismatched dtypes (e.g. float16/float64 input) could cause issues.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
tue-bmd__zea__225 | tue-bmd/zea | 225 | defect | 84f7aa6228bcc830fe4a3a8b14b80be59f801b35 | d46f77ac5edfbee1737f320446f83fbf1310fe93 | Optimize EchoNet-LVH conversion | Some minor tweaks to EchoNet-LVH conversion script to ensure that the GPU is being used where possible and optimizing conversion back to numpy. This results in a 60x speedup.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Device initialization n... | diff --git a/zea/data/convert/__main__.py b/zea/data/convert/__main__.py
index 8837f88e9..05d7a9d35 100644
--- a/zea/data/convert/__main__.py
+++ b/zea/data/convert/__main__.py
@@ -1,5 +1,7 @@
import argparse
+from zea import init_device
+
def _add_parser_args_echonet(subparsers):
"""Add Echonet specific arg... | 2 | 2 | 1 | [{"id": "G0", "claim": "Device initialization does not propagate to the ProcessPoolExecutor worker processes, so JAX operations in _process_file_worker may run without device configuration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When cone_pa... | null |
tue-bmd__zea__235 | tue-bmd/zea | 235 | defect | 6f96a6df0b2fa368a50e74110f6d2937aca0b456 | 50b2b7de66e31da43437dc48c09f7a489fd24808 | Add option to jit metrics (on by default) | When using the `Metrics` class, there is now an option `jit_compile=True`. The benefits are obvious :)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Optional JIT compilation for metrics (configurable, enabled by default).
* Metrics (includ... | diff --git a/tests/test_metrics.py b/tests/test_metrics.py
index ba31ea3ce..692617424 100644
--- a/tests/test_metrics.py
+++ b/tests/test_metrics.py
@@ -75,9 +75,12 @@ def test_metrics(metric_name):
@backend_equality_check(decimal=2)
def test_metrics_class():
"""Test Metrics class"""
+ batch_size = 2
+ img... | 6 | 1 | 1 | [{"id": "G0", "claim": "fwhm cannot be safely JIT-compiled because ops.nonzero produces data-dependent output shapes, so with jit_compile=True by default it will fail at runtime on the JAX backend; mark it jittable=False or rewrite it with static-size operations.", "category": "correctness", "verdict": "supported", "pr... | null |
tue-bmd__zea__241 | tue-bmd/zea | 241 | defect | 492c9f8d04aa5afb49356f7adb3b11af3751fd7f | 7b7e0507a57ac2c58b33c487968e9b56c314f22c | Add batch_dim to simulate | Previously `simulate_rf` had an output shape of
```
(1, n_tx, n_ax, n_el, 1)
```
where the first dim was a batch dimension that was appended.
This does not work with the zea `Operations` format, as it uses `ops.map()` which adds another batch dim.
This only worked because batch simulations were not implement... | diff --git a/tests/test_ops_infra.py b/tests/test_ops_infra.py
index 80dde3ac7..eb3da33c2 100644
--- a/tests/test_ops_infra.py
+++ b/tests/test_ops_infra.py
@@ -687,24 +687,33 @@ def ultrasound_scatterers():
return get_scatterers()
-def test_simulator(ultrasound_probe, ultrasound_scan, ultrasound_scatterers):
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The simulate_rf docstring still documents the old output shape (1, n_tx, n_ax, n_el, 1) although the function now returns (n_tx, n_ax, n_el, 1).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tue-bmd__zea__242 | tue-bmd/zea | 242 | defect | 890673a0b4ed9abd28a127dbb0ad201baf56d80a | 29358c5ef0c9f264a5ff24ad12bb9b9b66719eff | Keep `selected_transmits` on `scan.copy` | Closes #183
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Tests**
* Expanded tests for transmit selection covering many input types (None, strings, numbers, lists, slices, arrays), copying/isolation of selections, and validation of invalid inputs.
* **Refa... | diff --git a/tests/test_scan.py b/tests/test_scan.py
index d681ffaf7..81a5ffdc0 100644
--- a/tests/test_scan.py
+++ b/tests/test_scan.py
@@ -54,6 +54,29 @@ def test_scan_copy():
assert scan != scan_copy
+@pytest.mark.parametrize(
+ "selection",
+ [
+ None,
+ "all",
+ "center",
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The parametrized test replaces None with n_tx // 2, so the \"None means all\" branch in set_transmits is never exercised; pass selection through directly to validate the intended behavior.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tue-bmd__zea__277 | tue-bmd/zea | 277 | defect | 9aaa0c37ce4315d6433c8acd7ca89ad7498b3246 | 82bd931c49c2b780fd99c726ec0a02ff64ddd886 | CETUS dataset | Added [CETUS dataset](https://humanheart-project.creatis.insa-lyon.fr/database/#collection/62eb991b73e9f0048c3a6c45) from the [MICCAI 2014 challenge](https://www.creatis.insa-lyon.fr/Challenge/CETUS/databases.html).
- conversion script (automatically downloads from source and uploads to [Hugging Face](https://huggi... | diff --git a/zea/data/convert/__main__.py b/zea/data/convert/__main__.py
index 0b5e0296e..327b51406 100644
--- a/zea/data/convert/__main__.py
+++ b/zea/data/convert/__main__.py
@@ -1,3 +1,18 @@
+"""CLI for converting common open-source ultrasound datasets to the zea format.
+
+Usage::
+
+ python -m zea.data.convert ... | 14 | 9 | 3 | [{"id": "G0", "claim": "The urllib.request.urlopen calls (and the urlretrieve on line 379) have no timeout, which could cause the process to hang indefinitely if the Girder server is unresponsive; add a timeout to the network requests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
tue-bmd__zea__290 | tue-bmd/zea | 290 | defect | baf6590635b419e6a37c7979c09856459744b777 | b5f1e31f408eca0f4703ba11a7a330fae7a15c8e | Clean up some agent code | Found some inconsistencies after the updates in #266 in the docstrings and decided to clean it up a bit.
- We have the function `indices_to_k_hot` but this was not used by some `zea.agent.selection` classes, which used their own implementation (which was actually better).
- `compute_pixelwise_entropy` is simplified... | diff --git a/tests/test_agent.py b/tests/test_agent.py
index 6f872f6af..f8bd5e01f 100644
--- a/tests/test_agent.py
+++ b/tests/test_agent.py
@@ -135,8 +135,11 @@ def test_greedy_entropy():
correct_selected_lines = ops.convert_to_tensor([correct_selected_lines])
assert ops.all(selected_lines == correct_selecte... | 8 | 3 | 1 | [{"id": "G0", "claim": "indices_to_k_hot ignores the requested dtype because ops.any always returns bool, so callers like make_line_mask that pass dtype=\"float32\" get a bool tensor instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Return... | null |
tue-bmd__zea__340 | tue-bmd/zea | 340 | defect | 2bf24b5641521c81be9fc172918c3bab1a0a7848 | ff4e1c7c550317d42d6c1fd657de3c26799dc540 | Refactor ProbeOrientation to ProbePose and offset description | Replaces the old ProbeOrientation spec (single pose array of shape (T, 6)) with a new ProbePose class that separates translation and rotation into explicit fields:
translation: (T, 3) in meters
rotation: (T, 3) or (T, 4) depending on rotation_representation (euler_xyz, quaternion_wxyz, quaternion_xyzw)
Validation ... | diff --git a/docs/source/_spec_ref.rst b/docs/source/_spec_ref.rst
index 683f010fa..053a8b885 100644
--- a/docs/source/_spec_ref.rst
+++ b/docs/source/_spec_ref.rst
@@ -824,38 +824,38 @@ Fields marked :bdg-secondary:`optional` may be absent; all others are
* - ``credit``
- ``str``
- sc... | 2 | 1 | 1 | [{"id": "G0", "claim": "The line added at tests/data/test_spec.py:651 is too long (115 > 100) and fails the ruff E501 linter check; wrap the pytest.raises call.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ProbePose.__post_init__ should valida... | null |
tue-bmd__zea__95 | tue-bmd/zea | 95 | defect | 87ed0765cc693d1ab3598aecd9c32c25304387ee | 5c4be01fe4ce2f30c385be1801d23f98fc83217c | Improve loading scan parameters from file | Fixes #64 and adds a test for this case
Generally improves the code around loading scan parameters from file.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- File loading now returns data plus Scan and Probe objects and supports selecting frame... | diff --git a/tests/data/test_file.py b/tests/data/test_file.py
index a551ba471..3b5d76f73 100644
--- a/tests/data/test_file.py
+++ b/tests/data/test_file.py
@@ -3,7 +3,7 @@
import numpy as np
import pytest
-from zea.data.file import File
+from zea.data.file import File, load_file
from zea.probes import Probe
from... | 15 | 6 | 3 | [{"id": "G0", "claim": "The second Scan.merge attempt in File.scan is unprotected and the outer handler only logs, so a failure can raise uncaught or return None from a method documented to return Scan; use safe=True on the fallback and re-raise.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
tukl-msd__DRAMPower__34 | tukl-msd/DRAMPower | 34 | defect | 902a00a1797c48a9df97ec88868f20e847680ae6 | 1e439a8f56025e945d1f6db7f1b11d3335870150 | Improvement of the DRAMPower library | ## CommandAnalysis:
A self-refresh command is modelled as an auto-refresh command followed by the trigger of the DRAM internal self-timed refresh, disabling the clock pin, if the self-refresh period is greater than a refresh period. The DRAMPower uses mainly three variables to calculate the energy consumed during a se... | diff --git a/.gitignore b/.gitignore
index d8919f27..23964426 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@ drampower
*.o
*.a
test/libdrampowertest/library_test
+test/libdrampowertest/window_example
*.gcno
*.gcda
traces/*
diff --git a/README.md b/README.md
index 5d6eb6e8..4ccf3cdd 100644
--- a/README.m... | 6 | 5 | 2 | [{"id": "G0", "claim": "The README's list of compilation output messages is fairly pointless and should be dropped in the next iteration of the readme.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The line 'energy.window_energy = 0.0;' ... | null |
tulios__kafkajs__1012 | tulios/kafkajs | 1,012 | defect | addcd6f8bd1169b053fb633ee11c8cc3b9ae608e | 9514382fa4b2ffb3a7f6736f80d1c6e48de6c39d | Dont commit on consumer seek | This changes the behavior of `consumer.seek` so that when the consumer is running with `autoCommit: false`, the offsets that are seeked to are not committed. Instead, the previous offset is just resolved.
I opted for using `autoCommit` instead of an explicit flag in `consumer.seek` because I figured if you are using... | diff --git a/docs/Consuming.md b/docs/Consuming.md
index 3564ff597..a6fa47a28 100644
--- a/docs/Consuming.md
+++ b/docs/Consuming.md
@@ -329,6 +329,17 @@ consumer.seek({ topic: 'example', partition: 0, offset: 12384 })
Upon seeking to an offset, any messages in active batches are marked as stale and discarded, makin... | 2 | 2 | 0 | [{"id": "G0", "claim": "With autoCommit=true, consumer.seek() remains awkward because the synchronous call can succeed without throwing while the actual commit may still fail later in the fetch loop, so the API should be cleaned up by introducing a seekTo() that never commits and deprecating the current seek() (or maki... | null |
tulios__kafkajs__1026 | tulios/kafkajs | 1,026 | defect | e1a9d9eecd4cfd29e719f1c02cae6e544df0894a | 8dea5f29fb3fa18f5e1b50754f26871b3e581610 | Shared concurrent heartbeat() promise | All concurrent heartbeat() calls will return the same promise object. Proposed solution to https://github.com/tulios/kafkajs/issues/1025
Added a test that reproduces https://github.com/tulios/kafkajs/issues/1025 but more tests needed. | diff --git a/src/consumer/__tests__/consumeMessages.spec.js b/src/consumer/__tests__/consumeMessages.spec.js
index ba092569e..f72e13fbd 100644
--- a/src/consumer/__tests__/consumeMessages.spec.js
+++ b/src/consumer/__tests__/consumeMessages.spec.js
@@ -147,6 +147,64 @@ describe('Consumer', () => {
expect(hitConcur... | 4 | 3 | 0 | [{"id": "G0", "claim": "The sharedPromiseTo utility should drop the unused defaultFunc parameter and be written less densely (curly braces, expanded lines) so it is easier to grasp.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "heartbeat() can ... | null |
tulios__kafkajs__1050 | tulios/kafkajs | 1,050 | defect | 813cbfdfae6107f428befc376457d4af208fe921 | ab3f96c768beb5745e2da09ee266691551555131 | Concurrent produce() sequence number fix | Read and update sequence numbers immediately before the produce request.
Fixes #1005 Maybe #598
Putting this up for review and input but I'm still unsure as to the failure modes. I'm wondering whether we should decrement the sequence numbers if the broker.produce() call fails.
| diff --git a/src/producer/__tests__/concurrentIdempotent.spec.js b/src/producer/__tests__/concurrentIdempotent.spec.js
new file mode 100644
index 000000000..3da9bd461
--- /dev/null
+++ b/src/producer/__tests__/concurrentIdempotent.spec.js
@@ -0,0 +1,64 @@
+const {
+ secureRandom,
+ newLogger,
+ createCluster,
+ tes... | 4 | 1 | 0 | [{"id": "G0", "claim": "There are unresolved questions around concurrent invocations of produce() with inflight requests > 1 in idempotent mode, especially how errors are dealt with (per KAFKA-5494), though the author does not think the full implementation is needed.", "category": "design", "verdict": "opposed", "prior... | null |
tulios__kafkajs__1067 | tulios/kafkajs | 1,067 | defect | 9566ca8afe234e4f34a85a8acf807d1f3b80d2ad | 59a96706163747498f8a2242aeded35267ba4b65 | Add a new consumer level event which fires on a rebalance | ### Description
I have added a `rebalancing` event on the consumer so that applications using KafkaJS have an easy interface they can use in order to be notified a rebalance is going on.
### Reason
Currently there is no simple way to know when a rebalance has occurred. We encountered an issue where we had metrics ... | diff --git a/docs/InstrumentationEvents.md b/docs/InstrumentationEvents.md
index 9735c4ea8..1c895aaea 100644
--- a/docs/InstrumentationEvents.md
+++ b/docs/InstrumentationEvents.md
@@ -43,6 +43,7 @@ Instrumentation Event:
| DISCONNECT | ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should assert the correct groupId (the test's local variable) and the memberId (obtainable from the GROUP_JOIN event) instead of only expect.any matchers.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Emitting REBAL... | null |
tulios__kafkajs__110 | tulios/kafkajs | 110 | defect | dbab65682b9b507a49cc56075946b3f959525cbf | 750f6d6f5bf35c4e8f2629c52817f0b20c532e18 | Add connection events for consumer, producer and admin | Fixes #107 | diff --git a/README.md b/README.md
index de11d8884..8a1347a1c 100644
--- a/README.md
+++ b/README.md
@@ -826,7 +826,7 @@ await admin.setOffsets({
> Experimental - This feature may be removed or changed in new versions of KafkaJS
-Some operations are instrumented using the `EventEmitter`. To receive the events use ... | 2 | 2 | 2 | [{"id": "G0", "claim": "In src/admin/index.js the generated event name list is built with `consumer.events.${key}` but it should say `admin.events.${key}`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In src/producer/index.js the generated event n... | null |
tulios__kafkajs__1241 | tulios/kafkajs | 1,241 | defect | f443fc5f61fa09110bde7e9cee55c96d358a52ad | 6fa64a4e188cbd4cdd8490cfd3ec8b8fb40cb3a5 | authenticate on every request to broker when needed | Fixes #1240 | diff --git a/src/broker/index.js b/src/broker/index.js
index 4036a99f6..62641a23d 100644
--- a/src/broker/index.js
+++ b/src/broker/index.js
@@ -74,14 +74,21 @@ module.exports = class Broker {
this.lookupRequest = notInitializedLookup
}
+ /**
+ * @public
+ * @returns {boolean}
+ */
+ isAuthenticated()... | 3 | 3 | 3 | [{"id": "G0", "claim": "Re-authentication should not be limited to heartbeats: sendRequest should re-authenticate before any request that needs it, except apiVersions which happens before authentication.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
tulios__kafkajs__136 | tulios/kafkajs | 136 | defect | bfa4a500114c555ef2d3ade0fca0ef889ee2ffe5 | 81b2e1f5479f93c63b9a87f5eaf3b2e9a22188f2 | Make consumers detect that a topic was updated | Consumers can now detect that their assignment is old and force the group to rebalance. The consumers will now verify that they are aware of the assigned partitions after the rebalance and perform a refresh if necessary.
Fixes #133 | diff --git a/README.md b/README.md
index a2884425a..1305ce06c 100644
--- a/README.md
+++ b/README.md
@@ -888,7 +888,7 @@ List of available events:
payload: {`groupId`, `memberId`, `groupGenerationId`, `topics`}
* consumer.events.GROUP_JOIN
- payload: {`groupId`, `memberId`, `leaderId`, `isLeader`, `duration`}
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The exported error class name is misspelled as `KafkaJSStaleTopicMetadataAssigment` (Assignment misspelled).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The group leader should always refresh metadata at group sync, so it ... | null |
tulios__kafkajs__1364 | tulios/kafkajs | 1,364 | defect | 068067e36d9f9aa3b7139518a9ebe2814d4b0fa7 | ba09ef110a35c0ffcc865cb19a1ee325ce5183ab | Provide a `pause()` helper to eachMessage/eachBatch | This function will take care of pausing (and optionally, resuming) message consumption on the current topic/partition when processing messages either within the `eachMessage` or `eachBatch` handler functions.
| diff --git a/docs/Consuming.md b/docs/Consuming.md
index 558b25463..a47c187af 100644
--- a/docs/Consuming.md
+++ b/docs/Consuming.md
@@ -56,7 +56,7 @@ Be aware that the `eachMessage` handler should not block for longer than the con
## <a name="each-batch"></a> eachBatch
-Some use cases require dealing with batches... | 10 | 9 | 4 | [{"id": "G0", "claim": "Pausing by throwing a special KafkaJSPauseConsumerError leaks a control-flow error into users' error handling (e.g. Sentry); flow control should instead be tracked in a closure ('did the user pause') so the loop can break without communicating via an error.", "category": "design", "verdict": "su... | null |
tulios__kafkajs__1408 | tulios/kafkajs | 1,408 | defect | ad9abd1c1dc80d19c3aac564c645c882ddb489a7 | 4625d85cdf5ce7c72bf9314946b659f325449649 | Fix consumer connection issue | In the #1382 PR, I made a mistake that has performance implications.
When a `KafkaJSConnectionError` (ex. Connection timeout) is thrown during the fetching + processing, the consumer restarts. I think it is not supposed to restart but retry the fetch.
Based on the tests it's only supposed to restart when there are ... | diff --git a/src/consumer/fetchManager.js b/src/consumer/fetchManager.js
index 309a0986e..6b5cf65e4 100644
--- a/src/consumer/fetchManager.js
+++ b/src/consumer/fetchManager.js
@@ -2,7 +2,7 @@ const seq = require('../utils/seq')
const createFetcher = require('./fetcher')
const createWorker = require('./worker')
cons... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test name misspells 'available' as 'avaiblae' and should read 'should throw an error when there are no brokers available'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Even after using release 2.2.4, which conta... | null |
tulios__kafkajs__209 | tulios/kafkajs | 209 | defect | 8be87514ec202a0e76572f40993214265a40151c | d6e634081af42d0328f082fce956b3f1b336799b | Eos 201 list offsets v2 | Resolves #201
Implement protocol `ListOffsets` `v2`, so that we can now provide an isolation level. For now continue with the default of "read_comitted".
The v2 response format is divergent from v0, as it returns a single offset rather than an array. AFAIK there's no pattern for normalizing responses (I'm unsure... | diff --git a/src/broker/__tests__/listOffsets.spec.js b/src/broker/__tests__/listOffsets.spec.js
index 46674614d..c6bd297f2 100644
--- a/src/broker/__tests__/listOffsets.spec.js
+++ b/src/broker/__tests__/listOffsets.spec.js
@@ -1,4 +1,5 @@
const Broker = require('../index')
+const apiKeys = require('../../protocol/re... | 2 | 1 | 1 | [{"id": "G0", "claim": "ListOffsets response normalization (offsets array vs single offset) should be done in the broker rather than in the cluster, to keep the protocol true to the Kafka protocol without letting normalization bleed into higher layers.", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
tulios__kafkajs__216 | tulios/kafkajs | 216 | defect | f716e6d9ce1f28db15a82a9333e04cadb1f85916 | 172f35a4e2a18d9dd39b391838010d7941ba32ca | Accept max in-flight requests on the connection | This PR adds support to max in-flight requests. The option is set to `null` now so we can test it out, I want to understand the impact of more or less concurrent requests before we commit to a default value. | diff --git a/src/cluster/connectionBuilder.js b/src/cluster/connectionBuilder.js
index 30220036c..a8290ce5c 100644
--- a/src/cluster/connectionBuilder.js
+++ b/src/cluster/connectionBuilder.js
@@ -1,6 +1,15 @@
const Connection = require('../network/connection')
-module.exports = ({ brokers, ssl, sasl, clientId, conn... | 5 | 4 | 2 | [{"id": "G0", "claim": "The silently-ignoring non-matching state checks in socketRequest (send/completed/rejected) should be error conditions instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SocketRequest should have a line of documentation explai... | null |
tulios__kafkajs__221 | tulios/kafkajs | 221 | defect | 6faebb3f8a9bb83ce66d3df7700cb8bd9fdb394c | f49cf735cb236a850d0d6eb27cab3a2ddbdff2ca | Handle receiving assignments for unsubscribed topics | If a consumer re-uses a group id from a consumer group with a different topic configuration we may receive member assignments for a topic that we're not subscribed to. We already attempted to handle this, but I don't think it was tested properly. #83
This also adds a new instrumentation event for the consumer, `con... | diff --git a/README.md b/README.md
index 8389c75aa..4ac0b0b6d 100644
--- a/README.md
+++ b/README.md
@@ -1165,6 +1165,9 @@ List of available events:
* consumer.events.STOP
+* consumer.events.CRASH
+ payload: {`error`, `groupId`}
+
### <a name="instrumentation-producer"></a> Producer
* producer.events.CONNECT
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Assign keys(currentMemberAssignment) to a named variable such as safeAssignedTopics instead of inlining it in the for loop, to help readability in the future.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tulios__kafkajs__333 | tulios/kafkajs | 333 | defect | fc6681b57b2e6c17937585f26bbf1530ffd1063c | c096ec8bf20282d1afb2e3cdcfdee26b4647c862 | fetchTopicOffsets should return low watermarks | enhances the admin client's `fetchTopicOffsets` function to return the low + high watermarks for the topic. this is related to #316
I kept the existing `offset` field so it's backwards compatible and added `high` + `low` (offset and high are equivalent) | diff --git a/docs/Admin.md b/docs/Admin.md
index 64564a5eb..f3dc7587a 100644
--- a/docs/Admin.md
+++ b/docs/Admin.md
@@ -119,10 +119,10 @@ await admin.fetchTopicMetadata()
```javascript
await admin.fetchTopicOffsets(topic)
// [
-// { partition: 0, offset: '31004' },
-// { partition: 1, offset: '54312' },
-// {... | 1 | 1 | 0 | [{"id": "G0", "claim": "The low offsets should be assigned inside the map that builds the offset objects instead of mutating `offsets` in a separate loop afterwards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tulios__kafkajs__346 | tulios/kafkajs | 346 | defect | 1029c4b93375b61f55d9271bf5eed83c03efc1ba | 17dc8dbe88724cd4c92b1eb0598a3c41d4f69c3c | Add consumer pattern subscribe | Update `consumer#subscribe` to support regexp, e.g.:
```javascript
await consumer.subscribe({ topic: /topic-(eu|us)-.*)/i })
```
@terebentina I decided to create a new PR since the code would change 100%, from `patternSubscribe` to `subscribe`.
This PR is the outcome of the discussions in PR #327 and fixes #... | diff --git a/docs/Consuming.md b/docs/Consuming.md
index ca07d5730..d8661fe27 100644
--- a/docs/Consuming.md
+++ b/docs/Consuming.md
@@ -24,6 +24,15 @@ await consumer.subscribe({ topic: 'topic-B' })
// await consumer.subscribe({ topic: 'topic-C', fromBeginning: true })
```
+Alternatively, you can subscribe to multi... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new method should be named `addTargetTopics` instead of `addMultipleTargetTopics`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`addTargetTopic` should delegate to `addMultipleTargetTopics`, since the implementation i... | null |
tulios__kafkajs__38 | tulios/kafkajs | 38 | defect | 3942b3c2456cf7b0214fe9e72a2d88e07b49894d | 52e77f330696783220a7a584cd3385d671499921 | Only retry failed brokers | This PR fixes #22
This is hard to simulate with integration tests, so I've written a regular unit test with a lot of mocks (which I don't like, but it's the best solution for now) | diff --git a/src/producer/sendMessages.js b/src/producer/sendMessages.js
index fe6d60f09..1b0f80663 100644
--- a/src/producer/sendMessages.js
+++ b/src/producer/sendMessages.js
@@ -1,36 +1,51 @@
+const createRetry = require('../retry')
const flatten = require('../utils/flatten')
const groupMessagesPerPartition = requ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The retry count used by the internal producer retrier (createRetry in src/producer/sendMessages.js) should be configurable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tulios__kafkajs__397 | tulios/kafkajs | 397 | defect | 104cb32a4eb2df9ce29543420cf19c858dfe66d8 | e25f31c24b11ffa99f98a6210672a1444aed6997 | Prevent the consumption of messages for topics paused while fetch is in-flight | We ran into this bug, where if you pause a topic in the time between a requesting a fetch and receiving a response for it, the received messages are consumed, despite being the topic having been paused. A classic race condition, easily fixed by filtering for paused topics once again at response time. | diff --git a/src/consumer/__tests__/consumeMessages.spec.js b/src/consumer/__tests__/consumeMessages.spec.js
index 133107aea..7efd48137 100644
--- a/src/consumer/__tests__/consumeMessages.spec.js
+++ b/src/consumer/__tests__/consumeMessages.spec.js
@@ -609,6 +609,57 @@ describe('Consumer', () => {
})
})
+ it... | 3 | 3 | 2 | [{"id": "G0", "claim": "The test is likely to be extremely flaky and a new instrumentation event should be added so the test does not depend on arbitrary timing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rather than sleeping an arbitrary amount (aw... | null |
tulios__kafkajs__567 | tulios/kafkajs | 567 | defect | 1d20842499b439648ef6fc4339be691570115718 | 743a569c542ca7e11769b1b65583309cb2a68376 | Handle receiving empty member assignment | Fixes #550.
This is a slightly different approach than #551 because I wanted to make sure that the MemberAssignment decoder could handle receiving a buffer with insufficient data, instead of expecting the caller to do the checking for it. | diff --git a/src/consumer/__tests__/assignerProtocol.spec.js b/src/consumer/__tests__/assignerProtocol.spec.js
index 60319ee87..2cc93aca4 100644
--- a/src/consumer/__tests__/assignerProtocol.spec.js
+++ b/src/consumer/__tests__/assignerProtocol.spec.js
@@ -44,5 +44,9 @@ describe('Consumer > assignerProtocol', () => {
... | 3 | 2 | 1 | [{"id": "G0", "claim": "Since decode can now return null, the JSDoc hint on MemberAssignment.decode should be updated to @returns {Object|null} so callers know about the null return value.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Returning n... | null |
tulios__kafkajs__570 | tulios/kafkajs | 570 | defect | 51010746905ce730beee9c27bf94acc43c0dd6f1 | 643fbd992b35b28fbc48bf7cd6e71002e1de5efb | Replace fetch promise all with async generator | This PR fixes issue #370, and it can improve the overall performance of KafkaJS (pending benchmark).
## Explaining the problem:
The fetch operation has its responsibility split into two modules: `runner` and `consumerGroup`. The runner is responsible for managing the consumer life-cycle and feeding the data to th... | diff --git a/src/consumer/__tests__/consumeMessages.spec.js b/src/consumer/__tests__/consumeMessages.spec.js
index 5bbe8f90f..86ad9bbc6 100644
--- a/src/consumer/__tests__/consumeMessages.spec.js
+++ b/src/consumer/__tests__/consumeMessages.spec.js
@@ -1,3 +1,5 @@
+jest.setTimeout(30000)
+
const createProducer = requi... | 5 | 3 | 1 | [{"id": "G0", "claim": "The variable expectednumberOfExecutions should be renamed to expectedNumberOfExecutions because the mis-capitalized N reads worse.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The promise notifier in createPromiseNotifi... | null |
tulios__kafkajs__604 | tulios/kafkajs | 604 | defect | 67c71927e9c649ff00a88eda8c752849b2eda864 | 0db387c0138c6e2a05def773f31242ae6323479a | Add the functionality to fetch topic offsets by timestamp | Fixed #329, similar to #525 but with different naming and tests.
~~Supports `consumer.subscribe({ topic: 'test-topic', fromTimestamp: 1576731939876 })`.~~
Edited: reverted `consumer.subscribe` changes and limits the functionality within `admin`.
| diff --git a/src/admin/__tests__/fetchTopicOffsets.spec.js b/src/admin/__tests__/fetchTopicOffsets.spec.js
index 96ce39591..d620d73fe 100644
--- a/src/admin/__tests__/fetchTopicOffsets.spec.js
+++ b/src/admin/__tests__/fetchTopicOffsets.spec.js
@@ -1,5 +1,6 @@
const createAdmin = require('../index')
const createProdu... | 10 | 9 | 4 | [{"id": "G0", "claim": "The sleeps in the new offset-by-timestamp tests may introduce flakiness; the timestamp should be usable right after the send completes, without waiting.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fetching topic offsets with a... | null |
tulios__kafkajs__648 | tulios/kafkajs | 648 | defect | 68630752768fe29dcb74f91528542c0419e98232 | 0a96054f2ad3285d63b334570b7511c1cd0cc235 | Add Admin.describeCluster | Returns metadata for all brokers in the cluster.
The API is roughly based on the Java `Admin.describeCluster` API. The big differences are:
1. I'm exposing the nodes under a `brokers` property instead of `nodes`. The id is still called a `nodeId`, but I don't think we really use the `Node` terminology anywhere, s... | diff --git a/docs/Admin.md b/docs/Admin.md
index 430932655..a9703aede 100644
--- a/docs/Admin.md
+++ b/docs/Admin.md
@@ -184,6 +184,21 @@ await admin.setOffsets({
})
```
+## <a name="describe-cluster"></a> Describe cluster
+
+Allows you to get information about the broker cluster.
+
+```javascript
+await admin.desc... | 3 | 2 | 1 | [{"id": "G0", "claim": "The describeCluster documentation example lacks context on when and why you would use it, and should indicate that the API is mostly useful for monitoring/ops rather than essential to control flow.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
tulios__kafkajs__650 | tulios/kafkajs | 650 | defect | 728a32556a4a9dc50578e7d47c1421030f9599b2 | c8b0f0b1663266ec8e7d7edd73bd40db414802a5 | Add single requestTimeout runner instead of setTimeout per request | WIP, open for discussions
Propose change to `requestTimeout` logic to have separate runner which will check every inflight request every `x` ms. This is more performant than previous implementation and allow to enable requestTimeout for every single request without sacrificing performance much | diff --git a/src/admin/index.spec.js b/src/admin/index.spec.js
index d15c6ae61..88aac7e58 100644
--- a/src/admin/index.spec.js
+++ b/src/admin/index.spec.js
@@ -66,7 +66,6 @@ describe('Admin', () => {
const emitter = new InstrumentationEventEmitter()
const cluster = createCluster({
requestTimeout: 1,
-... | 5 | 5 | 5 | [{"id": "G0", "claim": "The RequestQueue starts a setInterval but nothing ever calls clearInterval on it, so a destroy() method is needed and must be called at the one place the queue is instantiated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
tulios__kafkajs__657 | tulios/kafkajs | 657 | defect | 728a32556a4a9dc50578e7d47c1421030f9599b2 | ddadc7bcd869bc0a1fbd16783e5d1632f4069622 | Always return an iterator from ConsumerGroup.fetch | I have no idea why I was having issues with this before, but now it works just fine.
Fixes #656 | diff --git a/src/consumer/consumerGroup.js b/src/consumer/consumerGroup.js
index 8e26291c8..c77f5ae8b 100644
--- a/src/consumer/consumerGroup.js
+++ b/src/consumer/consumerGroup.js
@@ -26,6 +26,8 @@ const STALE_METADATA_ERRORS = [
'UNKNOWN_TOPIC_OR_PARTITION',
]
+const EMPTY_FETCH_RESULT = BufferedAsyncIterator([... | 1 | 1 | 1 | [{"id": "G0", "claim": "Returning the shared EMPTY_FETCH_RESULT instance is unsafe because iterators have internal state, so a new instance should be returned here.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tulios__kafkajs__680 | tulios/kafkajs | 680 | defect | c7ed777f2f213ef0317872ec0dad0603a2115c01 | 8311476d5fa13da062deda8f60008b358ac38c0c | Oauthbearer support | #674
Implemented the SASL OAUTHBEARER request, the reauthentication mechanism seems to be handled automatically by already present `isConnected()` check in `src/broker/index.js`, as it evalueates the sessionLifetime that is replied back from Kafka when proper options (connections.max.reauth.ms) are configured in th... | diff --git a/src/broker/saslAuthenticator/index.js b/src/broker/saslAuthenticator/index.js
index f558fbe2f..97813ceb8 100644
--- a/src/broker/saslAuthenticator/index.js
+++ b/src/broker/saslAuthenticator/index.js
@@ -4,6 +4,7 @@ const PlainAuthenticator = require('./plain')
const SCRAM256Authenticator = require('./scr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The oauthBearer spec should also include a success-case test, not only the failure cases.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The success-case test should be included but run conditionally (skipped unless an env var en... | null |
tulios__kafkajs__719 | tulios/kafkajs | 719 | defect | cfbb49d2133719683babe07c9e3d33068a3dae4a | 679d2332ba7401c6959eff202a4d1b9f0ff3f5c1 | fix default retry for consumer | closes https://github.com/tulios/kafkajs/issues/709 | diff --git a/src/admin/index.js b/src/admin/index.js
index 06f664e39..3126762d5 100644
--- a/src/admin/index.js
+++ b/src/admin/index.js
@@ -47,7 +47,7 @@ const findTopicPartitions = async (cluster, topic) => {
module.exports = ({
logger: rootLogger,
instrumentationEmitter: rootInstrumentationEmitter,
- retry =... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the Admin's local retry default looks suspicious — the reviewer asks whether createRetry will fall back to its own default, which would have made the removed `retry = { retries: 5 }` default pointless.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introd... | null |
tulios__kafkajs__721 | tulios/kafkajs | 721 | defect | a67ca64c048635d8f1d7507cb0315479708b70c9 | f31c0864b27b98670f0e310fae2f13ba34a7e5f5 | improved docs - fixing typos | Consumer docs are missing some params in the example. I have also added ~async~ `: Promise<void>` with methods that return Promise. Let me know if that is okay.
Also fixed some typos. | diff --git a/README.md b/README.md
index 0f6ef427a..6e160b0f5 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ Learn more about using [KafkaJS on the official site!](https://kafka.js.org)
## <a name="contributing"></a> Contributing
-KafkaJS is an open-source project where development takes place in the ope... | 1 | 1 | 0 | [{"id": "G0", "claim": "In docs/Consuming.md the `async` prefix on the heartbeat bullet should be replaced with a TypeScript-esque type definition (e.g. `heartbeat(): Promise<void>`), since that is a standard way of expressing it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
tulios__kafkajs__740 | tulios/kafkajs | 740 | defect | 21077385b2b502deb6bc98dbf33dcf7db954d6d0 | aad52147754106ebc363ff357f7996238ce423b0 | Make Array shuffle test pass in Node >= 11.0.0 | Due to a change in how array sorting works, the shuffle test would fail in Node >= 11.0.0.
```
FAIL src/utils/shuffle.spec.js
● Utils > shuffle › shuffles
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- 1,
- 3,
2,
... | diff --git a/src/utils/shuffle.js b/src/utils/shuffle.js
index 27526596c..9ea387c99 100644
--- a/src/utils/shuffle.js
+++ b/src/utils/shuffle.js
@@ -1 +1,19 @@
-module.exports = array => [...array].sort(() => Math.random() - 0.5)
+const shuffle = array => array.sort(() => Math.random() - 0.5)
+
+module.exports = array ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The shuffle loop's `shuffled.every(...)` condition could be replaced with the simpler equivalent `!shuffled.some((value, index) => value !== array[index])`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The requirement t... | null |
tulios__kafkajs__801 | tulios/kafkajs | 801 | defect | 762a603ac0e1aed3534c87e3ad61d2881405f57c | d5687ee4fd3388b61b06a708e8fcce0e26d38ebe | Add JoinGroup protocol v3 and v4 | This will add protocol support for JoinGroup v3 and v4, based on https://cwiki.apache.org/confluence/display/KAFKA/KIP-394%3A+Require+member.id+for+initial+join+group+request v4 protocol we need to retry join with provided member id if we get MEMBER_ID_REQUIRED | diff --git a/src/broker/index.js b/src/broker/index.js
index 7cdaece17..db0b79618 100644
--- a/src/broker/index.js
+++ b/src/broker/index.js
@@ -349,7 +349,8 @@ module.exports = class Broker {
groupProtocols,
}) {
const joinGroup = this.lookupRequest(apiKeys.JoinGroup, requests.JoinGroup)
- return await... | 5 | 5 | 2 | [{"id": "G0", "claim": "broker.joinGroup should let the MEMBER_ID_REQUIRED error surface as a KafkaJSProtocolError and retry the request with the new memberId in a catch, rather than manually inspecting response.errorCode.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
tulios__kafkajs__847 | tulios/kafkajs | 847 | defect | e973597eabe6f21fd64479b53a9376d193095dbf | a8e3bb1f3ebce3642467c88d008768e8a2f54ff5 | Remove allowExperimentalV011 flag | This has been defaulted to `true` for almost two years, so it's hardly experimental anymore.
`src/protocol/requests/index.js` is where the meat of the change is. Essentially if the flag was `false`, we'd filter out any api version above a certain limit for Fetch and Produce requests. | diff --git a/src/broker/__tests__/fetch.spec.js b/src/broker/__tests__/fetch.spec.js
index b7963619b..d19805eb1 100644
--- a/src/broker/__tests__/fetch.spec.js
+++ b/src/broker/__tests__/fetch.spec.js
@@ -270,7 +270,6 @@ describe('Broker > Fetch', () => {
broker = new Broker({
connection: createConnecti... | 4 | 3 | 1 | [{"id": "G0", "claim": "In the 'supports sending offsets' test the PR creates the cluster with a bare createCluster(); the reviewer asks whether it should not be createCluster(connectionOpts()) like the neighbouring tests.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "... | null |
tulios__kafkajs__89 | tulios/kafkajs | 89 | defect | e65522ede62f3f8c0cf65ecabf715968ed389474 | a6a09a435f43ed3d3ceabe4e2b18212bcbcf3cae | Add consumer auto commit policies | ```javascript
consumer.run({
autoCommitInterval: 5000,
// ...
})
consumer.run({
autoCommitThreshold: 100,
// ...
})
``` | diff --git a/README.md b/README.md
index 1c247fb1e..799312b4d 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,7 @@ KafkaJS is battle-tested and ready for production.
- [Other](#producing-messages-compression-other)
- [Consuming messages](#consuming-messages)
- [eachMessage](#consuming-messages-each-message... | 2 | 2 | 0 | [{"id": "G0", "claim": "The table-of-contents anchor for the autoCommit section should be `#consuming-messages-auto-commit` instead of `#autoCommit`, to match the heading's link name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new autoComm... | null |
tulios__kafkajs__92 | tulios/kafkajs | 92 | defect | 339dedbc3589d196b6505d371feb6b8bdddf9688 | aa011197d236a333f970751455f4ec13ad15f824 | Throw when creating misconfigured consumer | Fixes #91 | diff --git a/src/consumer/__tests__/misconfiguration.spec.js b/src/consumer/__tests__/misconfiguration.spec.js
new file mode 100644
index 000000000..2b8835e60
--- /dev/null
+++ b/src/consumer/__tests__/misconfiguration.spec.js
@@ -0,0 +1,18 @@
+const createConsumer = require('../index')
+const { KafkaJSNonRetriableErro... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message text should be changed to something like \"The heartbeat interval should be at least 1/3 of the session timeout\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tulios__kafkajs__94 | tulios/kafkajs | 94 | defect | df1a4fad0276cf077f433f7f3d708cd40df30961 | 7d55a852a020954a4c084ae88b6445f34b9b439f | Constantly refresh metatada | Fixes #93 | diff --git a/README.md b/README.md
index 5c2c992db..d4d8c7d8f 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,7 @@ KafkaJS is battle-tested and ready for production.
- [Logging](#configuration-logging)
- [Producing Messages](#producing-messages)
- [Producing to multiple topics](#producing-messages-to-multipl... | 1 | 1 | 0 | [{"id": "G0", "claim": "The refresh of metadata should be moved into the consumer group before calling the assigner, so it does not need to be added to every assigner.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tulios__kafkajs__992 | tulios/kafkajs | 992 | defect | ba34eef11abdbeb69598947358fe220efb38d514 | a72d09ff9703a9e74e5ba514c65c69b3ce2bd46b | New admin method for fetching group offsets for multiple topics | Fixes #989
This PR introduces a new method called `fetchConsumerGroupOffsets` that mimics the behavior `fetchOffsets` (which I now deprecated), but adds support for querying multiple topics at once, or omitting the `topics` parameter altogether and getting the group offsets in all consumed topics.
I chose to re-... | diff --git a/src/admin/__tests__/fetchConsumerGroupOffsets.spec.js b/src/admin/__tests__/fetchConsumerGroupOffsets.spec.js
new file mode 100644
index 000000000..0b0835d67
--- /dev/null
+++ b/src/admin/__tests__/fetchConsumerGroupOffsets.spec.js
@@ -0,0 +1,240 @@
+const createAdmin = require('../index')
+const createPro... | 6 | 4 | 2 | [{"id": "G0", "claim": "Instead of `let consumerOffsets`, consider writing `const { responses: consumerOffsets } = await coordinator.offsetFetch(...)`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`response.topic in topics` uses `in` on an array... | null |
tum-pbs__PhiFlow__26 | tum-pbs/PhiFlow | 26 | defect | 0a2b2d34614caa35f2d7981fe7e2250baec033b5 | 8ae74485f3f73c6ff45ed46295632733c2d31205 | FLIP | + Added methods for implementing a FLIP simulation for liquids.
+ Added demo of FLIP simulation
+ Added masked extrapolation method for tensors and for CenteredGrid / StaggeredGrid
+ Added small tests for extrapolation method
+ Added position shift methods to geometries
+ Added runge-kutta advection scheme with ve... | diff --git a/demos/flip_liquid.py b/demos/flip_liquid.py
new file mode 100644
index 000000000..bcdb58127
--- /dev/null
+++ b/demos/flip_liquid.py
@@ -0,0 +1,37 @@
+from phi.flow import *
+
+# --- Setup environment ---
+inflow = 0
+domain = Domain(x=64, y=64, boundaries=CLOSED, bounds=Box[0:64, 0:64])
+obstacles = [Obst... | 16 | 16 | 1 | [{"id": "G0", "claim": "Initializing the particle mask by mutating the grid's native array (point_mask.native()[...] = 1) does not work with TensorFlow; use a union of Boxes / a HardGeometryMask instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
tum-pbs__PhiFlow__68 | tum-pbs/PhiFlow | 68 | defect | 1d309b4faaefb1e7873bfbc0e64ba7eafca64c7a | 942233558a3ac361a2c50005a5ecd5404e273302 | U net enhancements | Added option to use residual blocks and swish activation function for U_net networks in torch, tensorflow and jax frameworks. | diff --git a/demos/train_identify_noise.py b/demos/train_identify_noise.py
index 04bf8de58..07bc8ee1f 100644
--- a/demos/train_identify_noise.py
+++ b/demos/train_identify_noise.py
@@ -1,22 +1,30 @@
import math
-from phi.tf.flow import *
+from phi.jax.stax.flow import *
+
+
+net = u_net(1, 2, in_spatial=2, use_res_b... | 1 | 1 | 0 | [{"id": "G0", "claim": "The trailing manual instantiation and invocation lines in tests/commit/Unit_Test_U_net.py are unnecessary because pytest runs the tests automatically, and the u_net tests should be merged into tests/commit/test_networks.py with the separate file removed.", "category": "testing", "verdict": "supp... | null |
tumblr__pytumblr__93 | tumblr/pytumblr | 93 | defect | 4a599d50c0e18c057e366d3f01ec5e3f23e0b8d0 | d243967ae2ba7f7cf1c411281c1212723f207e79 | Fix tests | This adds [tox](https://tox.readthedocs.io/en/latest/) support for local testing of multiple python versions and removes httpretty was causing some of the tests to be flaky in some python versions
@ceyko | diff --git a/.gitignore b/.gitignore
index 4fc3fe9..9cfc3dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ dist
.coverage
cover
*.egg
+.tox/
diff --git a/.travis.yml b/.travis.yml
index 7889460..8c0d511 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,10 @@ language: python
python:
- "2.6"
- "2... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a wrap_response-like helper for POST requests as well to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tummychow__git-absorb__152 | tummychow/git-absorb | 152 | defect | 7d1afd2ff5cebdaa670f1d356ed8532ed8e0cf91 | 8ad8da9b4cb90097dc05bbeea9e0cd9050046f13 | Move repo helper methods to tests::repo_utils | Fixes #144. | diff --git a/src/lib.rs b/src/lib.rs
index decaaee..7f63370 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -489,95 +489,14 @@ fn index_stats(repo: &git2::Repository) -> Result<git2::DiffStats> {
#[cfg(test)]
mod tests {
- use std::path::{Path, PathBuf};
+ use std::path::PathBuf;
use super::*;
-
- struc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `pub(crate)` on the newly added `mod repo_utils;` declaration in src/lib.rs is unnecessary and should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`something_left_in_index`, which is only called in tests, should ... | null |
tummychow__git-absorb__155 | tummychow/git-absorb | 155 | defect | 6feaa491c25deece14b101a4aeca8c37a024008a | 34d5ba2af6b8531a4130e19806228827279f2aa4 | Add --force-detach flag to bypass detached HEAD check | Fixes #145.
Also adds forceDetach configuration option. | diff --git a/Documentation/git-absorb.adoc b/Documentation/git-absorb.adoc
index 93ee802..43f61c8 100644
--- a/Documentation/git-absorb.adoc
+++ b/Documentation/git-absorb.adoc
@@ -53,14 +53,17 @@ FLAGS
--force-author::
Generate fixups to commits not made by you
+--force-detach::
+ Generate fixups ev... | 3 | 3 | 1 | [{"id": "G0", "claim": "Making safety-check bypasses work through the shared Config would be more robust if the force flags were consolidated elsewhere (e.g. a new config-holding bag built by config::unify or built from main::Cli), rather than relying on a comment, but the author held off on such a large change without... | null |
tuplex__tuplex__105 | tuplex/tuplex | 105 | defect | e58feb435cda22ad83d28f086f00b8a7f3d8ea67 | 0a3114bcfefbfd27b858f0664bf5d841f5a0e587 | Added isnan, isinf, and isclose | Added support for isnan, isinf, and isclose math functions. | diff --git a/.gitignore b/.gitignore
index fc895bf44..24307ce9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -94,3 +94,5 @@ wheelhouse/
*.zip
tuplex/other/tplxlam.zip
fixed_wheels/
+
+tuplex/.vscode/
diff --git a/tuplex/codegen/include/FunctionRegistry.h b/tuplex/codegen/include/FunctionRegistry.h
index 01db27e30..f3... | 19 | 17 | 2 | [{"id": "G0", "claim": "Add an assert that args has at least one element before args.front() is called in createMathIsNanCall.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the debug printValue call from createMathIsNanCall.", "category": "m... | null |
tuplex__tuplex__42 | tuplex/tuplex | 42 | defect | 095267b2f9f5b6493e2693ec12157107ef80bbb0 | 702baaa8e4c66eee446679de522df931464cb03c | [FIX] Multithreaded Orc Tests and Cmake | 1. Fixed IO cmake file to use local version of Orc dependencies
2. Fixed Orc tests to work with multithreading
| diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 797857306..05da816a1 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -22,7 +22,7 @@ jobs:
displayName: 'Install required packages'
- script: sudo apt-get install python3-setuptools && sudo apt-get remove python-pexpect python3-pe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The orc::VirtualOutputStream allocated with `new` in SimpleOrcWriteTask.h is never freed, and its lifetime should be managed (e.g. via unique_ptr or a stack object) instead of a raw pointer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tuplex__tuplex__63 | tuplex/tuplex | 63 | defect | c12cc682b6f6bdf8856cd5ce77f0a482f4851c83 | 3930e15d2a9b807045390b547e7d423a211aade7 | [BUG FIX] Var Length Mixed Type Tuples | Fixes bug where non-conforming rows will crash Tuplex when the majority type is a simple tuple containing var length fields. | diff --git a/tuplex/python/src/PythonContext.cc b/tuplex/python/src/PythonContext.cc
index cb126dd80..67c154583 100644
--- a/tuplex/python/src/PythonContext.cc
+++ b/tuplex/python/src/PythonContext.cc
@@ -211,9 +211,22 @@ namespace tuplex {
// first get how many bytes are required
size... | 1 | 1 | 0 | [{"id": "G0", "claim": "Don't call PyTuple_GetItem a second time in the varLenField loop; use the tupleItem already fetched and adjust the reference count to be correct (new reference returned by PyTuple_GetItem must be decremented, or a borrowed one used).", "category": "correctness", "verdict": "supported", "priority... | null |
turbofish-org__orga__44 | turbofish-org/orga | 44 | defect | 0eccaa992165cd4307bfc2341c81e57a367860eb | ac26b10cdb2f1926ccb5bf7e64df020bffcb27ba | Deque tests | In adding tests to deque, pop_front and pop_back API was changed to return a reference to an immutable, owned value of type T contained in Deque<T>. This makes the interface to the Deque closer to that of the VecDeque in rust. This also changed the remove method of the map, which now returns Result<Option<ReadOnly<T>>>... | diff --git a/benches/bufstore.rs b/benches/bufstore.rs
index a4c78c4c..90ccfd78 100644
--- a/benches/bufstore.rs
+++ b/benches/bufstore.rs
@@ -2,8 +2,8 @@
extern crate test;
-use test::Bencher;
use orga::store::{MapStore, Read, Write};
+use test::Bencher;
#[bench]
fn bufstore_get_8b(b: &mut Bencher) {
@@ -22,... | 7 | 7 | 1 | [{"id": "G0", "claim": "Add some assertions to the deque test module, e.g. checking the length.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If pop_front had a bug where it mistakenly returned None, this test would still pass, since the None arm does ... | null |
turbot__steampipe__4742 | turbot/steampipe | 4,742 | defect | 4281ad3f10e65c1586bb04af2227e265b4d70e09 | 06946eb7ad0828d71fd09129f492779ea6318360 | Fix memory leak in DatabaseSession management (issue #3737) | ## Summary
Fixes #3737 - Memory leak in DatabaseSession management
This PR resolves the memory leak where `DatabaseSession` objects accumulated indefinitely in the sessions map without cleanup during normal operation.
## Changes Made
- **Added BeforeClose callback** in `pkg/db/db_client/db_client_connect.go` to autom... | diff --git a/go.mod b/go.mod
index df24a97020..58362d5c3c 100644
--- a/go.mod
+++ b/go.mod
@@ -192,6 +192,8 @@ require (
github.com/stretchr/testify v1.10.0 // indirect
)
+require github.com/stretchr/testify v1.10.0
+
require (
cel.dev/expr v0.23.0 // indirect
cloud.google.com/go/auth v0.15.0 // indirect
diff... | 1 | 1 | 0 | [{"id": "G0", "claim": "The BeforeClose comment should be made more descriptive, following the suggested wording explaining the pgxpool best practice, why connections get closed, how the sessions map would otherwise leak, and how the callback removes entries.", "category": "documentation", "verdict": "supported", "prio... | null |
turbot__steampipe__4947 | turbot/steampipe | 4,947 | defect | bb83baeaa9d360b29c59fea9415a0900f45971f7 | a010133f40db7ed797504f84b5c701741c1c48f9 | Warn after login when env vars override saved credentials | ## Summary
After a successful `steampipe login`, the saved token can be silently overridden by environment variables, leading to confusing failures when running subsequent queries. This PR adds post-login warnings to alert users.
### Problem
In `setCloudTokenDefault` (`pkg/cmdconfig/cmd_hooks.go`), the token precede... | diff --git a/cmd/login.go b/cmd/login.go
index cca8eb34d3..cd869de2ff 100644
--- a/cmd/login.go
+++ b/cmd/login.go
@@ -107,6 +107,21 @@ func displayLoginMessage(ctx context.Context, token string) {
fmt.Println()
fmt.Printf("Logged in as: %s\n", pconstants.Bold(userName))
fmt.Println()
+
+ showLoginWarnings()
+}
+... | 4 | 4 | 0 | [{"id": "G0", "claim": "color.Error is a global writer and if the subtest fails before resetting it, later tests may write warnings into the closed pipe; restore it with t.Cleanup/defer immediately after overwriting and handle errors from os.Pipe/r.Read to avoid silently passing on failures.", "category": "testing", "v... | null |
turing-db__turingdb__104 | turing-db/turingdb | 104 | defect | b675ed6e179f9dd6b61a35fd4735f8b1f6b21c95 | d8136a8e0edef49ab5e3f1b28ce1558e62499743 | PipelineBuilder: remove builder pattern | Remove builder pattern in PipelineBuilder and return directly the type of the last pipeline output interface | diff --git a/v2/pipeline/PipelineBuilder.cpp b/v2/pipeline/PipelineBuilder.cpp
index c31fd638c0..7dae14c417 100644
--- a/v2/pipeline/PipelineBuilder.cpp
+++ b/v2/pipeline/PipelineBuilder.cpp
@@ -27,7 +27,7 @@ void duplicateDataframeShape(LocalMemory* mem, Dataframe* src, Dataframe* dest)
}
-PipelineBuilder& Pipeli... | 1 | 1 | 0 | [{"id": "G0", "claim": "addGetOutEdges should return the concrete PipelineEdgeOutputInterface directly instead of the generic PipelineOutputInterface, allowing virtual function calls later in the pipeline generator to be avoided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
turing-db__turingdb__106 | turing-db/turingdb | 106 | defect | e5d81387bba13cc92436627b460e0b966f271b0c | 0132fcac878b72abf7ca898f25548eb8705e0c44 | Turing-846: CALL ... YIELD ... support in planner v2 | # CALL database procedures
Implementation of CALL ... YIELD ... AS ... in parser, analyzer, planner
> [!WARNING]
Does not implement subqueries yet `CALL { MATCH ... RETURN ... }`, only procedures
@rjb32 @cyrusknopf @suhassn-turing-bio If you have ideas on how to simplify the implementation, feel free!
## Imp... | diff --git a/memory/LocalMemory.h b/memory/LocalMemory.h
index 8da932ea12..7913b6cc84 100644
--- a/memory/LocalMemory.h
+++ b/memory/LocalMemory.h
@@ -32,9 +32,12 @@ class LocalMemory {
MakeMemoryPool<ColumnVector<EntityID>>::type,
MakeMemoryPool<ColumnVector<NodeID>>::type,
MakeMemoryPool<Co... | 11 | 8 | 0 | [{"id": "G0", "claim": "The reviewer asks in which case the constructor (the aggregate initializer of ProcedureBlueprint inside the noexcept createBlueprint try block) can throw.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The helper methods ... | null |
turing-db__turingdb__151 | turing-db/turingdb | 151 | defect | 59a72843c98d3bd0b52b1e609c128a90b41deaec | 5219aa38c529d2bf6889b417d462a44c10747912 | GetProperties implementation in PipelineGenerator. Generalized EntityOutputStream to all interfaces | - `EntityOutputStream` is now common to all interfaces which simplifies greatly parts of the code, such as `translateVarNode` that now only operates on the stream
- It's a bit ugly right now that in the PipelineBuilder we have to remember to update the stream every time we create a new processor.
- GetProperties adds... | diff --git a/v2/analyzer/ExprAnalyzer.cpp b/v2/analyzer/ExprAnalyzer.cpp
index eead54beba..a415521d47 100644
--- a/v2/analyzer/ExprAnalyzer.cpp
+++ b/v2/analyzer/ExprAnalyzer.cpp
@@ -365,8 +365,6 @@ ValueType ExprAnalyzer::analyze(PropertyExpr* expr, bool allowCreate, ValueType
expr->setType(type);
expr->setD... | 10 | 8 | 2 | [{"id": "G0", "claim": "GetProperties adds a Materialize node after it, and a better way should be found later on (e.g. producing a new id column directly in the GetPropertiesChunkWriter).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Property expressio... | null |
turing-db__turingdb__526 | turing-db/turingdb | 526 | defect | 4b9ff8595c115d97598495fa7cbd20ab0acafe47 | 21a05ca1f90b0feea81f4edb13b45fd1325df3f7 | Fix overflow in HTTP parser based on fuzzing inputs | Fix overflows in HTTP parser due to 2 causes:
* In UriParser the condition `if (i > HTTP::MAX_PARAM_COUNT) {` needs to be
`if (i >= HTTP::MAX_PARAM_COUNT) {`
Example: this query sends 9 key-value pairs, the 9th was written out of bound because i=8 which is MAX_PARAM_COUNT
```
GET ?a=1&b=2&c=3&d=4&e=5&f=6&g=7&h=... | diff --git a/net/http_parser/HTTPParser.h b/net/http_parser/HTTPParser.h
index caa170293d..0733274a62 100644
--- a/net/http_parser/HTTPParser.h
+++ b/net/http_parser/HTTPParser.h
@@ -195,16 +195,30 @@ class HTTPParser : public AbstractHTTPParser {
}
_currentPtr += key.size();
- const char* le... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reason for dividing BUFFER_SIZE by 10 in the overflow bounds check should be explained (a magic constant).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The catch-all block in the test helper should rethrow instead o... | null |
turing-db__turingdb__557 | turing-db/turingdb | 557 | defect | c95bc0737e7cd1668ffa52ccdf359add640f6b7e | 66b397f550983f5c5ac05e220c7983d727ba81fd | Handle WHERE clauses in CALL YIELD statements | We were not handling WhereClause at all in YieldItems present in CALL statements:
* We handled until now only WhereClause in MATCH statements
* WhereClause in CALL YIELD were not at all handled by the analyzer neither by the ReadStmtGenerator
Fix for #549 | diff --git a/query/analyzer/ReadStmtAnalyzer.cpp b/query/analyzer/ReadStmtAnalyzer.cpp
index 335fd41455..9235499404 100644
--- a/query/analyzer/ReadStmtAnalyzer.cpp
+++ b/query/analyzer/ReadStmtAnalyzer.cpp
@@ -199,6 +199,21 @@ void ReadStmtAnalyzer::analyze(const FunctionInvocation& func, const YieldClause
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The fallback for non-equality predicates should not use a NodeFilterNode (the author agreed it should be a different node type).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hash join key type list should support every type ... | null |
turing-db__turingdb__591 | turing-db/turingdb | 591 | defect | 4e4bd14a4020e58f741f172d8b004d54e6f5603a | 5427b8502c14ffac55ad29d529dac824315d3839 | Implement MERGE_DATAPARTS query since v2 | Implement a MERGE_DATAPARTS query that calls the merging of data parts manually.
It was previously existing in TuringDB but got removed since query pipeline v2. | diff --git a/query/AST/CMakeLists.txt b/query/AST/CMakeLists.txt
index 756fa5414f..e36b07100c 100644
--- a/query/AST/CMakeLists.txt
+++ b/query/AST/CMakeLists.txt
@@ -79,6 +79,7 @@ set(ast_sources
CreateNodePropertyIndexQuery.cpp
CreateEdgePropertyIndexQuery.cpp
DropIndexQuery.cpp
+ MergeDataPartsQuer... | 4 | 4 | 1 | [{"id": "G0", "claim": "The DataPartMergeProcessor constructor's opening brace should be on its own line, per the suggested formatting.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DataPartMergeProcessor::reset() should call markAsReset(), as prepare() ... | null |
turing-db__turingdb__593 | turing-db/turingdb | 593 | defect | a73d846e09cdd5a6b0c08aed189aeaad39a5ae81 | 1f9399356db2b75ef5386a9e001b48ad3baed231 | Do string escaping for all endpoints and unescaping for string literal | * The /get_nodes endpoint returns invalid JSON when string properties contain single quotes (\') or unescaped double quotes. Creates a minimal regress test to reproduce.
* Escaping strings in all REST endpoints
* Unescape strings that may be escaped during query parsing when creating StringLiteral
Fixes #592 | diff --git a/query/AST/Literal.cpp b/query/AST/Literal.cpp
index e66ba8f820..ba084b6fc6 100644
--- a/query/AST/Literal.cpp
+++ b/query/AST/Literal.cpp
@@ -28,6 +28,29 @@ DoubleLiteral* DoubleLiteral::create(CypherAST* ast, double value) {
return literal;
}
+StringLiteral::StringLiteral(std::string_view raw) {
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the string-unescaping work out of the StringLiteral constructor and into the create function; never do significant work in constructors.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Declare the `next` local in unescapeStrin... | null |
turing-db__turingdb__80 | turing-db/turingdb | 80 | defect | 3664b2d98f8f264409aadf67263bf86d9d6ef131 | ce41a958c6bca05286810524f71104f96c6efb10 | Add serialisation for Tombstones | Requires #67
Adds serialisation for Tombstones | diff --git a/pipeline/CMakeLists.txt b/pipeline/CMakeLists.txt
index 8a8f415389..a9177a3d10 100644
--- a/pipeline/CMakeLists.txt
+++ b/pipeline/CMakeLists.txt
@@ -28,6 +28,7 @@ set(pipeline_sources
operations/S3PushStep.cpp
operations/S3PullStep.cpp
operations/WriteStep.cpp
+ operation... | 4 | 1 | 1 | [{"id": "G0", "claim": "Loading tombstones into a temporary vector before inserting them into the set looks unnecessary; the author should consider an explicit LoadUtils::loadUnorderedSet method instead (\"Why do you need to load to a vector first?\").", "category": "design", "verdict": "opposed", "priority": "P3", "sc... | null |
tursodatabase__libsql__167 | tursodatabase/libsql | 167 | defect | 173e6e406e633b928e55c9f8c9622f1275070894 | 9484169cf1d1835bb39fef0623519ed73c2f0f5c | add user context pointer to sqlite3 struct | Adds the ability to pass user context to the WAL methods. The user_context is passed as the 7th argument to the `libsql_open_v2` function and is passed down to the first instantiation of the WAL struct, which happens in a call to `pagerOpenWal`. If the WAL struct is successfully allocated, then the pointer to the user ... | diff --git a/src/btree.c b/src/btree.c
index 5467befb47..503deb22f2 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -2646,7 +2646,7 @@ int sqlite3BtreeOpen(
rc = SQLITE_NOMEM_BKPT;
goto btree_open_out;
}
- rc = sqlite3PagerOpen(pVfs, pWal, &pBt->pPager, zFilename,
+ rc = sqlite3PagerOpen(pVfs, pW... | 8 | 8 | 1 | [{"id": "G0", "claim": "Add the missing whitespace after the comma in the sqlite3PagerOpen call (db->pMethodsData,&pBt->pPager).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename pMethodsData to pWalMethodsData here and in all other occurren... | null |
tursodatabase__libsql__2189 | tursodatabase/libsql | 2,189 | defect | 5379778650804b67bf420b26641b62e3b069ff0d | b3c1feded787d0aced40de7576b5731bd863b488 | libsql-sqlite3: Optimize pager codec check more | Checking if we have a custom codec at pager open time is still plenty slow. Change the check to happen at database open time instead. | diff --git a/libsql-ffi/bundled/SQLite3MultipleCiphers/src/codecext.c b/libsql-ffi/bundled/SQLite3MultipleCiphers/src/codecext.c
index 5cfaaa47b7b..6754109ebc2 100644
--- a/libsql-ffi/bundled/SQLite3MultipleCiphers/src/codecext.c
+++ b/libsql-ffi/bundled/SQLite3MultipleCiphers/src/codecext.c
@@ -8,10 +8,10 @@
*/
/*... | 1 | 1 | 1 | [{"id": "G0", "claim": "attach.c calls `libsql_db_has_codec` inside the `#ifdef LIBSQL_CUSTOM_PAGER_CODEC` block without any declaration of the function being visible, and a guarded forward declaration like the one in main.c should be added near the top of attach.c.", "category": "correctness", "verdict": "supported", ... | null |
tursodatabase__libsql__87 | tursodatabase/libsql | 87 | defect | fc32062d7b3f3c355fa7ca0d927df355426ac683 | 64b17b8024725d35eb71ed912a901ea1a7633af1 | Let virtual table implementations know which SQL string is being executed | SQLite provides an interface to expose different data sources (such as files or other database systems) as virtual tables. There are several callbacks one must implement to enable e.g., connection handling and pagination, but one key attribute is missing on all callbacks: the query string being executed by the applicat... | diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 7d6813b2af..d7f4598598 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -7076,6 +7076,8 @@ struct sqlite3_module {
/* The methods above are in versions 1 and 2 of the sqlite_module object.
** Those below are for version 3 and greater. */
int (*xShadowNa... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new methods should be gated on a libSQL-reserved iVersion such as 700 instead of 4, to reduce the chance of colliding when upstream SQLite bumps its module version.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `if( rc ) ... | null |
tursodatabase__turso__2215 | tursodatabase/turso | 2,215 | defect | 8f83b150b79ab0d10047fb34393533b66c2a34a2 | e6ceac8ab2d527bb44769a5cbd05e702541479fa | bindings/rust: Add Connection::execute_batch() | Fixes #2184 | diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs
index a3ef69b964d..ee09d47a2c6 100644
--- a/bindings/rust/src/lib.rs
+++ b/bindings/rust/src/lib.rs
@@ -170,6 +170,12 @@ impl Connection {
stmt.execute(params).await
}
+ /// Execute a batch of SQL statements on the database.
+ pub as... | 2 | 2 | 1 | [{"id": "G0", "claim": "The leftover dbg! debug-logging calls (dbg!(&cmd) and dbg!(&self.schema)) should be dropped from prepare_execute_batch.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The catch-all arm in prepare_execute_batch should use ... | null |
tursodatabase__turso__2299 | tursodatabase/turso | 2,299 | defect | e4a1856ef0aec86f9f0e254503302f4646591271 | 8d27c47d5c60c2736602d8ca46a63ac0e08ae2f8 | core: Enforce shared database object per database file | We need to ensures that there is a single, shared `Database` object per a database file. We need because it is not safe to have multiple independent WAL files open because coordination happens at process-level POSIX file advisory locks.
Fixes #2267 | diff --git a/bindings/javascript/src/lib.rs b/bindings/javascript/src/lib.rs
index 1616d6b8702..72cb968c2f9 100644
--- a/bindings/javascript/src/lib.rs
+++ b/bindings/javascript/src/lib.rs
@@ -65,7 +65,7 @@ pub struct Database {
pub open: bool,
#[napi(writable = false)]
pub name: String,
- _db: Arc<tu... | 5 | 2 | 0 | [{"id": "G0", "claim": "The `drop(self.db)` call added to the JavaScript binding's finalize appears unnecessary; the reviewer asks why it is needed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new explanatory comments above `DATABASE_MANA... | null |
tursodatabase__turso__2521 | tursodatabase/turso | 2,521 | defect | efd6fde389b9f9c82bbe0d5e2e4e9e355f8a9363 | fdbefbe25eefbe6fbab9c793236e97870c701a75 | Add support for Full checkpoint mode in the WAL | Closes #2519
| diff --git a/core/storage/wal.rs b/core/storage/wal.rs
index e077bd32118..d4ae837fb83 100644
--- a/core/storage/wal.rs
+++ b/core/storage/wal.rs
@@ -598,9 +598,6 @@ impl CheckpointLocks {
return Err(LimboError::Busy);
}
match mode {
- CheckpointMode::Full => Err(LimboError::Int... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new Full checkpoint mode should be added to test_multiple_connections_fuzz so that test exercises it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added match arm `3 => CheckpointMode::Full` can never be selected becaus... | null |
tursodatabase__turso__2569 | tursodatabase/turso | 2,569 | defect | a6247e891fae92c140d6537f31885bdf6b6b9717 | e466d81604ad68009d2d4e813206713a271f45f5 | Fix non-4096 page sizes | Closes #2555
## Problem
The main problem we had with the current implementation of `init_pager()` was that the WAL header was eagerly allocated and written to disk with a page size, and a potential already-set page size on an initialized database was not checked. Given this scenario:
- Initialized database wi... | diff --git a/bindings/javascript/src/lib.rs b/bindings/javascript/src/lib.rs
index d1c138bf42b..70b1cdb82de 100644
--- a/bindings/javascript/src/lib.rs
+++ b/bindings/javascript/src/lib.rs
@@ -473,6 +473,15 @@ impl DatabaseFile {
}
impl turso_core::DatabaseStorage for DatabaseFile {
+ fn read_header(&self, c: tu... | 5 | 5 | 4 | [{"id": "G0", "claim": "The DB-header read must use a 512-byte buffer instead of 100 bytes, because the DB file is opened with O_DIRECT and io_uring does not fall back to the page cache (the read returns -EINVAL).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
tursodatabase__turso__2592 | tursodatabase/turso | 2,592 | defect | a0f70f04f231f7ad4557371251911c98f3918c17 | dbc4acf29ae7419ec7acfbc6cf604c73d4a1e9fa | Improve handling of inserts with column names | Closes #2495
Return error on inserts with qualified expressions to emulate same functionality as SQLite. | diff --git a/core/translate/insert.rs b/core/translate/insert.rs
index 34aef330701..6f138962074 100644
--- a/core/translate/insert.rs
+++ b/core/translate/insert.rs
@@ -112,14 +112,32 @@ pub fn translate_insert(
}
let mut param_idx = 1;
for expr in values_expr.iter_mut... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leftover old implementation should not be left commented out in the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tursodatabase__turso__2981 | tursodatabase/turso | 2,981 | defect | cad8be1ed669fe654c0da14f8a8cb80982906082 | a2599911c56a28f97f03635fc0d0337c5169629f | Enable the use of indexes in DELETE statements | Closes #1714
This PR enables the use of an index as the iteration cursor for a point or range deletion operation. Main changes:
- Use `Delete` opcode for the index that is iterating the rows - avoids unnecessary seeking on that index, since it's already positioned correctly
- Fix delete balancing; details below... | diff --git a/core/storage/btree.rs b/core/storage/btree.rs
index 9f90f9472ae..f9d339c3329 100644
--- a/core/storage/btree.rs
+++ b/core/storage/btree.rs
@@ -481,7 +481,7 @@ pub struct BTreeCursor {
/// Page id of the root page used to go back up fast.
root_page: usize,
/// Rowid and record are stored bef... | 5 | 4 | 2 | [{"id": "G0", "claim": "The simulator intermittently flags wrong results on this branch, and the author's counterexample (an UPDATE/DELETE/SELECT sequence on a table with two multi-column DESC/ASC indexes) reproduced one such failure, which the author states was fixed by commit a2599911c56a.", "category": "correctness"... | null |
tursodatabase__turso__4564 | tursodatabase/turso | 4,564 | defect | 7f9afdfe92319803e96a9e1709be10cf3787b973 | 30cbf13b023526a9491e305fcdd8bdf083e79a2b | fix: return NULL instead of panicking in uuid7_timestamp_ms for invalid blobs | ## Summary
Fixes #4561 - The `uuid7_timestamp_ms()` function was calling `.unwrap()` on the result of `uuid::Uuid::from_slice()`, which panics when the input blob is not exactly 16 bytes. This change handles the error gracefully by returning NULL, consistent with how the text parsing path handles invalid UUIDs.
#... | diff --git a/core/uuid.rs b/core/uuid.rs
index 56c0af6479d..e139249f587 100644
--- a/core/uuid.rs
+++ b/core/uuid.rs
@@ -92,7 +92,9 @@ fn uuid7_ts(args: &[Value]) -> Value {
let Some(blob) = &args[0].to_blob() else {
return Value::null();
};
- let uuid = uuid::Uuid:... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new uuid7_timestamp_ms tests should be written as Rust tests instead of TCL tests, because SQLite does not have this Turso-specific function available.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tursodatabase__turso__5579 | tursodatabase/turso | 5,579 | defect | 43c51508e09866c3b8b8553f3e32404ecb8a0835 | b9228387c8b904cc3897d866155ae73b92479907 | Finish implementing RAISE | ## Description
This PR adds support for the RAISE(FAIL) type
Adds a differential fuzzer for triggers with RAISE, and updates the COMPAT.md file with some other things we added lately | diff --git a/core/error.rs b/core/error.rs
index ac670721056..ea988fe3088 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -53,6 +53,8 @@ pub enum LimboError {
RaiseAbort(String),
#[error("Runtime error: {0}")]
RaiseRollback(String),
+ #[error("Runtime error: {0}")]
+ RaiseFail(String),
#[err... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider refactoring the separate RaiseAbort/RaiseRollback/RaiseFail LimboError variants into a single LimboError::Raise(ResolveType) variant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
tursodatabase__turso__5826 | tursodatabase/turso | 5,826 | defect | ceec9d64935237f8e5fab5bacbf5fe87e13b9129 | 9ca7a6cfa0f336515fef65c58dac860c46276092 | core/mvcc: injectable DurableStorage trait for mvcc storage |
## Description
Currently `Storage` is not injectable. If we want to allow to extend functionality of MVCC Storage externally, we need this.
## Description of AI Usage
I've let claude write the code and iterated through it when it decided to do weird stuff. | diff --git a/core/connection.rs b/core/connection.rs
index 3f129ae4fd5..50904cb0b85 100644
--- a/core/connection.rs
+++ b/core/connection.rs
@@ -1554,7 +1554,12 @@ impl Connection {
// A fresh :memory: DB defaults to WAL, so when main is MVCC we need to
// create an MvStore for the attached DB so it r... | 9 | 5 | 2 | [{"id": "G0", "claim": "Storage::read_tx_log is left as a `todo!()` placeholder in the new public DurableStorage trait (dead code from a previous recovery path) and would panic at runtime if recovery ever calls it, so it should be implemented, return a structured error, or be removed.", "category": "correctness", "verd... | null |
tursodatabase__turso__5846 | tursodatabase/turso | 5,846 | defect | 4cad85097bbb60236c6c4419702d8c9ac4145503 | a7c70b71f00b08d345d9ed735252a7ffe55146e7 | Preserve rowid values in VACUUM INTO output | ## Description
This PR fixes `VACUUM INTO` so it preserves hidden rowid values for ordinary rowid tables instead of renumbering them in the destination database.
<!--
Please include a summary of the changes and the related issue.
-->
## Motivation and context
Issue #5805 reported that `VACUUM INTO` pro... | diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs
index c397b57e8e3..b5731c16b84 100644
--- a/core/vdbe/execute.rs
+++ b/core/vdbe/execute.rs
@@ -13162,6 +13162,8 @@ pub(crate) struct OpVacuumIntoState {
table_names: Vec<String>,
/// Column names for the current table being copied
current_table_co... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new `current_table_column_names` field should be removed unless a justification exists for duplicating column names alongside `current_table_columns`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also... | null |
tursodatabase__turso__5931 | tursodatabase/turso | 5,931 | defect | 4b49d8446cee641ac6c3b76e79b169b61ebe2a9e | 2369569ab8739f2ffe61e64eac6123d7c267b382 | fix(sqlite3): use-after-free in sqlite3_value_blob | ## Description
`sqlite3_value_blob()` returns a dangling pointer due to a use-after-free bug. The function calls `ExtValue::to_blob()` which returns `Option<Vec<u8>>` (a heap-allocated copy), then takes `.as_ptr()` on the temporary `Vec`. The `Vec` is dropped at the end of the match arm, leaving the returned pointer... | diff --git a/extensions/core/src/types.rs b/extensions/core/src/types.rs
index b4119c21594..4c8e748c6cf 100644
--- a/extensions/core/src/types.rs
+++ b/extensions/core/src/types.rs
@@ -327,20 +327,29 @@ impl Value {
false
}
- /// Returns the blob value if the ValueType is Blob
+ /// Returns the bl... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comments in sqlite3_value_blob that reference \"the previous code\" should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Shorten the blob_ref doc comment to the two suggested lines, dropping the sentence ab... | null |
tursodatabase__turso__5932 | tursodatabase/turso | 5,932 | defect | 4b49d8446cee641ac6c3b76e79b169b61ebe2a9e | e686c926b220b51eff6b4b07fd777a55f967c09b | sqlite3: implement URI filename parsing in sqlite3_open_v2 | ## Description
`sqlite3_open_v2` previously ignored the `flags` parameter entirely, delegating directly to `sqlite3_open`. This meant the `SQLITE_OPEN_URI` flag had no effect — URI filenames like `file:memdb?mode=memory&cache=shared` were passed verbatim as filesystem paths, creating files literally named `file:memd... | diff --git a/sqlite3/src/lib.rs b/sqlite3/src/lib.rs
index 719090cfb5f..fb10b4b28b7 100644
--- a/sqlite3/src/lib.rs
+++ b/sqlite3/src/lib.rs
@@ -340,15 +340,170 @@ pub unsafe extern "C" fn sqlite3_open(
}
}
+/// Flags for sqlite3_open_v2
+pub const SQLITE_OPEN_READONLY: ffi::c_int = 0x00000001;
+pub const SQLIT... | 1 | 1 | 1 | [{"id": "G0", "claim": "The named in-memory database registry (MEMORY_DB_REGISTRY) should not live in the sqlite3 bindings — the existing internal plumbing/registry in core should be used for opening additional databases, and since this PR is about URI parsing, the cache=shared named-memory support is out of scope and ... | null |
tursodatabase__turso__6032 | tursodatabase/turso | 6,032 | defect | 0fee689104363bf27b3949f9a7f6fd7ad08a7ca9 | 3f66677a7603c7fc79ee7d238f90db439f6c119e | sqlite3: support cache=shared for named in-memory URI databases | ## Description
Named in-memory databases opened via `file:name?mode=memory&cache=shared` previously created independent `MemoryIO` instances per connection, so multiple connections to the same name could not share data. This broke Diesel's connection pool pattern (r2d2), which relies on `cache=shared` to share ephemer... | diff --git a/core/lib.rs b/core/lib.rs
index fdf2ca7f9a8..28535e84d62 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -516,6 +516,31 @@ impl Database {
Self::open_file_with_flags(io, path, OpenFlags::default(), DatabaseOpts::new(), None)
}
+ /// Open or retrieve a shared named in-memory database.
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The early return for path == \":memory:\" added in parse_uri_filename would immediately disallow opening `file::memory:?cache=shared`, since it returns before the query parameters are parsed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tursodatabase__turso__6040 | tursodatabase/turso | 6,040 | defect | e86616946d926472ae6df95942dc9ec03d8cd97c | 79f0dcd6fe3dd7b98bc920ccbea8a0f92966298b | Fix trigger change accounting | # NOTICE:
<!--
In order to streamline the contribution process, please check the "allow edits from maintainers" checkbox on your PR. If needed, this allows us to push tweaks to your PR and avoid a potentially lengthy back-and-forth. Your original commits will stay on the branch, and you will keep authorship of those... | diff --git a/core/connection.rs b/core/connection.rs
index 575c64479b3..7f5586f71fd 100644
--- a/core/connection.rs
+++ b/core/connection.rs
@@ -1125,11 +1125,19 @@ impl Connection {
self.last_insert_rowid.store(rowid, Ordering::SeqCst);
}
- pub fn set_changes(&self, nchange: i64) {
+ pub(crate) f... | 2 | 1 | 0 | [{"id": "G0", "claim": "Explanatory comments in core/vdbe/execute.rs were removed from the contribution without reason and should not have been stripped; the contributor should be careful not to drop comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
tursodatabase__turso__6064 | tursodatabase/turso | 6,064 | defect | 8db1ebd936260febd668dd03ba212386d600b982 | 31323e9b2a7ace93e501f6180d77936a4c2cbe0e | sdk-kit: Fix Database.close() not finalizing statements | TursoConnection.close() dropped the connection but left outstanding TursoStatement objects alive. Each statement holds Arc<Connection> -> Arc<Database> through its inner turso_core::Statement, keeping the Weak in DATABASE_MANAGER upgradeable. After a file rename, reopening the same path returned the stale Database.
... | diff --git a/Cargo.lock b/Cargo.lock
index 5fb2080d9c9..661754d853a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1117,6 +1117,7 @@ dependencies = [
"turso_core",
"turso_macros",
"turso_parser",
+ "turso_sdk_kit",
"twox-hash",
"zerocopy 0.8.26",
]
diff --git a/bindings/python/src/turso.rs b/bindings/python/sr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The connection's `stmts` registry is never shrunk, so in most applications it accumulates weak pointers to already-dropped statements; the reviewer suggests periodically scanning it and cleaning up the garbage.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
tursodatabase__turso__6102 | tursodatabase/turso | 6,102 | defect | a8a6aa0cd4875b342a3fbdb3629a838de257516e | 8d572a9beb5fafe351b70139b32a3db4664e04b0 | core: Clean up ephemeral temp files | ## Description
Replace raw temp file creation in `op_open_ephemeral` with
`TempFile::with_temp_store()`, which auto-deletes the file on drop via RAII. Store
`TempFile` handles in `ProgramState` keyed by cursor_id, and remove them in
`op_close` and `reset_state()`.
## Motivation and context
Close... | diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs
index 125a7f91c13..6e8d3629fb4 100644
--- a/core/vdbe/execute.rs
+++ b/core/vdbe/execute.rs
@@ -71,7 +71,7 @@ use branches::{mark_unlikely, unlikely};
use either::Either;
use smallvec::SmallVec;
use std::any::Any;
-use std::env::temp_dir;
+use crate::io::TempF... | 3 | 1 | 1 | [{"id": "G0", "claim": "The reviewer questions why the pull request is removing all the OPFS/WASM-specific handling in op_open_ephemeral.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The cleanup test passes on main and does not exercise the instrumented ... | null |
tursodatabase__turso__6185 | tursodatabase/turso | 6,185 | defect | 5d67def8d9394c0328937cb4764cafc12399f919 | 40698251edbf1d58d27f8d09d74668479e6197ee | Add statement origin tracking | ## Description
Add statement origin tracking `(Root, InternalHelper, Subprogram)` and connection-level active root-statement accounting.
This introduces an internal prepare path for helper SQL and uses the new tracking to make VACUUM INTO reject when another statement is active on the same connection, matching SQ... | diff --git a/core/connection.rs b/core/connection.rs
index b1809e4cb0c..0e29c8ef257 100644
--- a/core/connection.rs
+++ b/core/connection.rs
@@ -1,6 +1,7 @@
use crate::error::io_error;
#[cfg(any(test, injected_yields))]
use crate::mvcc::yield_points::YieldInjector;
+use crate::statement::StatementOrigin;
use crate:... | 5 | 3 | 2 | [{"id": "G0", "claim": "The nested-statement guard only activates inside Statement::new_with_origin() after parse/translate completes, so internal helpers that need nested context during prepare will still fail or behave differently; move start_nested()/end_nested() around parsing+translation (or otherwise set nestedne... | null |
tursodatabase__turso__6187 | tursodatabase/turso | 6,187 | defect | e1243c3ca7262c5819e89c400d27d61fe8c1d84c | b385425edb759c88b28023d11ba384c9e3572104 | Allow `VACUUM INTO` on attached databases | This patch allows `VACUUM INTO` on attached databases
With this patch all queries, pragma reads, pager access, and schema lookups handled with the target schema
- `VACUUM temp INTO` is handled as a silent no-op (no file created), I've checked how it's implemented in SQLite and applied the same behaviour. Temp table... | diff --git a/core/connection.rs b/core/connection.rs
index f7b6f139f07..bd1304c9582 100644
--- a/core/connection.rs
+++ b/core/connection.rs
@@ -1491,6 +1491,33 @@ impl Connection {
}
}
+ /// Get the database id for a schema name ("main", "temp", or an attached db alias).
+ pub(crate) fn get_datab... | 6 | 6 | 1 | [{"id": "G0", "claim": "The temp-database id is hard-coded as 1 - in the VACUUM temp no-op check in op_vacuum_into_inner and in get_database_id_by_name - and should compare against the existing crate::TEMP_DB_ID constant to avoid divergence if the IDs ever change and to keep the meaning clear.", "category": "maintainab... | null |
tursodatabase__turso__6530 | tursodatabase/turso | 6,530 | defect | 47fdbfb410752aeefa0445459fb00e07e091f56c | 52e677b5b8da990bfc5da4b17350652330a35cca | core: support non-MVCC WITHOUT ROWID tables | ## Summary
Closes #1484.
This adds end-to-end support for **non-MVCC** `WITHOUT ROWID` tables:
- open and query existing `WITHOUT ROWID` databases
- create `WITHOUT ROWID` tables
- insert rows into `WITHOUT ROWID` tables
- preserve `WITHOUT ROWID` schema through `VACUUM INTO`
The implementation uses the correct SQL... | diff --git a/core/incremental/view.rs b/core/incremental/view.rs
index 86489b426eb..2be953aa23f 100644
--- a/core/incremental/view.rs
+++ b/core/incremental/view.rs
@@ -1445,6 +1445,7 @@ mod tests {
primary_key: true,
rowid_alias: true,
notnull: true,
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a bunch of .sqltest tests for WITHOUT ROWID tables (the reviewer offered to push adversarial generated tests to the branch).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tursodatabase__turso__6583 | tursodatabase/turso | 6,583 | defect | 03df12290ef52f4fff112555d223688a344c39dd | c69e285ed3f69186d8429e8cec153680d732c66d | core/storage: fix WAL savepoint rollback corruption after cache spill | ## Summary
- Fix savepoint rollback corruption on the default WAL path by subjournaling spill candidates before WAL append in `Pager::try_spill_dirty_pages`.
- Add an integration regression (`test_savepoint_rollback_after_cache_spill_preserves_wal_pages`) that reproduces issue #5803 shape (small page size, WAL, cache p... | diff --git a/core/storage/pager.rs b/core/storage/pager.rs
index 47d92549ec6..fa414e3c2f5 100644
--- a/core/storage/pager.rs
+++ b/core/storage/pager.rs
@@ -3338,13 +3338,14 @@ impl Pager {
let wal_pages: Vec<PageRef> = pages
.iter()
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Have just one copy of the savepoint-rollback-after-cache-spill test instead of two — drop the simulator copy in testing/simulator/runner/memory/savepoint_rollback.rs and keep the integration test in tests/integration/wal/test_wal.rs.", "category": "maintainability", "verdict": "supported", "prio... | null |
tursodatabase__turso__6626 | tursodatabase/turso | 6,626 | defect | f8ad6749d847d5dcd01d9787772b2f858ec3f2e8 | ac6b7339afc0658b3689abc0b77b9d3d61af9a72 | Add savepoint rollback DST coverage and fix rollback cache invalidation | ## Summary
- extend the deterministic simulator with a `SavepointRollback` property that exercises `SAVEPOINT`, `ROLLBACK TO`, and `RELEASE`
- add a `savepoint_stress` profile that increases cache pressure and generates late-failing updates
- fix non-MVCC savepoint rollback so restored subjournal pages stay dirty and c... | diff --git a/cli/config/terminal.rs b/cli/config/terminal.rs
index 30a1db97cee..1222b2e4da5 100644
--- a/cli/config/terminal.rs
+++ b/cli/config/terminal.rs
@@ -4,6 +4,7 @@ use std::io::{self, IsTerminal, Read, Write};
use std::time::Duration;
#[derive(Debug, Clone, Copy, PartialEq)]
+#[cfg_attr(target_os = "window... | 2 | 2 | 0 | [{"id": "G0", "claim": "Some of the clippy/formatting changes added in the PR are redundant and the whole noise commit should be dropped to avoid diff noise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's only change to core/translate/e... | null |
tus__tusd__1066 | tus/tusd | 1,066 | defect | aa190c85d4cdfccd99b830b20c6b885a01685ddc | 0baae2af07ecb0ecfb642a6ab0093b2cce3f4ba5 | Simultaneous support for -01 and -02 of IETF draft | This improves commit 09f105d53afff61249bb781794615e1e909e2125 to support both draft v01 and draft v02 versions of the ietf upload protocol
Addresses https://github.com/tus/tusd/issues/1065
This is important as iOS 17.2 supports only `draft v01` which means that draft is here to stay | diff --git a/pkg/handler/config.go b/pkg/handler/config.go
index 81660ae34..e5c670263 100644
--- a/pkg/handler/config.go
+++ b/pkg/handler/config.go
@@ -135,9 +135,9 @@ var DefaultCorsConfig = CorsConfig{
AllowOrigin: regexp.MustCompile(".*"),
AllowCredentials: false,
AllowMethods: "POST, HEAD, PATCH, OP... | 9 | 8 | 2 | [{"id": "G0", "claim": "The PR should use golang.org/x/exp/slices for the version-membership check instead of a hand-written switch, as in other parts of the code.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The experimental-protocol subtests s... | null |
tus__tusd__1123 | tus/tusd | 1,123 | defect | 7e24722afc727341298b8987c1c0a2347e9e994c | 9fc53b0d717f419e4b7ce4a1cc907ec6c2b8d816 | s3store: Allow `+` in object IDs | To be compatible with object id that contains `+` . | diff --git a/pkg/s3store/s3store.go b/pkg/s3store/s3store.go
index 0c58cdb91..c0402a327 100644
--- a/pkg/s3store/s3store.go
+++ b/pkg/s3store/s3store.go
@@ -72,6 +72,7 @@ package s3store
import (
"bytes"
"context"
+ "encoding/base64"
"encoding/json"
"errors"
"fmt"
@@ -336,7 +337,9 @@ func (store S3Store) New... | 1 | 1 | 1 | [{"id": "G1", "claim": "The PR's base64 encoding of upload IDs is a breaking change to the URL format and should be reverted to the original version where the last segment of the upload ID is used as the multipart ID.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tus__tusd__1155 | tus/tusd | 1,155 | defect | 585d7a57110a544809fab98c683cdf7331b8e52a | 9fab210649b068223100b55ef8e6da18d6025c3d | filestore: Fix default file chmod permissions | Hi.
This pool request allows flexible use of DAC access attributes to access intermediate directories, if used. | diff --git a/cmd/tusd/cli/composer.go b/cmd/tusd/cli/composer.go
index 2d17f8582..6fa1997da 100644
--- a/cmd/tusd/cli/composer.go
+++ b/cmd/tusd/cli/composer.go
@@ -144,11 +144,11 @@ func CreateComposer() {
}
stdout.Printf("Using '%s' as directory storage.\n", dir)
- if err := os.MkdirAll(dir, os.FileMode(0774... | 4 | 1 | 1 | [{"id": "G0", "claim": "The UMASK handling added to docker/entrypoint.sh seems unrelated to the PR itself, so please remove it if that is the case.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The signature of the exported New function should not be chan... | null |
tus__tusd__1209 | tus/tusd | 1,209 | defect | 9779a84cae29d083b3496ba732fe7c76755bd4ed | 774debcfaf4ad6c53a104f3f4094f0e7997f16f8 | handler: unwrap errors using `errors.As` | A datastore may wrap errors with additional information. Before the fix, the error was converted to the InternalServerError type by the handler. | diff --git a/pkg/handler/patch_test.go b/pkg/handler/patch_test.go
index 3ebb3566f..7694d45c7 100644
--- a/pkg/handler/patch_test.go
+++ b/pkg/handler/patch_test.go
@@ -3,6 +3,7 @@ package handler_test
import (
"context"
"errors"
+ "fmt"
"io"
"net/http"
"strings"
@@ -140,7 +141,10 @@ func TestPatch(t *testin... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in the UploadNotFoundFail subtest should be reworded to say that the error is wrapped to test whether the handler correctly unwraps it again to get a handler.Error.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tus__tusd__1279 | tus/tusd | 1,279 | defect | 309cafbe9662124072b45aab23cf93eae544223b | c3522c597ba86f0e3476111f1def181830f96682 | hooks: Add timeout and size limit to HTTP hooks and enforce Content-Type | This PR enhances the HTTP Hooks functionality by introducing several improvements as discussed in issue #1273.
It implements the following:
- **`-hooks-http-timeout` flag:** Allows users to configure a timeout duration for HTTP requests to hook endpoints, preventing indefinite hangs.
- **`-hooks-http-size-limit`... | diff --git a/cmd/tusd/cli/flags.go b/cmd/tusd/cli/flags.go
index d2e078921..b622ef97e 100644
--- a/cmd/tusd/cli/flags.go
+++ b/cmd/tusd/cli/flags.go
@@ -54,6 +54,8 @@ var Flags struct {
HttpHooksForwardHeaders string
HttpHooksRetry int
HttpHooksBackoff time.Duration
+ Ht... | 6 | 5 | 3 | [{"id": "G0", "claim": "Return an explicit error when the response size limit is reached — e.g. limit the reader to h.SizeLimit+1 and error out if more than h.SizeLimit bytes were read — instead of silently truncating the body.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
tus__tusd__1280 | tus/tusd | 1,280 | defect | f1b1263aaee508a80303ae7f2f5bbfa4c0e6949a | 7aa834748137bef4cb9f85aebc83c9a640738b25 | filestore: Expose keys used in storage map | Added & exposed some consts, so that custom hook implementations can use them | diff --git a/pkg/filestore/filestore.go b/pkg/filestore/filestore.go
index 24dcf43ca..5d5aae282 100644
--- a/pkg/filestore/filestore.go
+++ b/pkg/filestore/filestore.go
@@ -29,6 +29,11 @@ import (
var defaultFilePerm = os.FileMode(0664)
var defaultDirectoryPerm = os.FileMode(0754)
+const (
+ StorageKeyPath = "P... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add appropriate documentation comments for the newly exported StorageKeyPath and StorageKeyInfoPath constants.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tus__tusd__1337 | tus/tusd | 1,337 | defect | 606f3eb762e1551b9d9571dde7513742d42f28e9 | 82a8808786feac3afc618338862de9a737e35914 | handler: fix panic in hook emitting logic | fixes #1320 | diff --git a/pkg/handler/hooks.go b/pkg/handler/hooks.go
index c1c6f1133..86981bb80 100644
--- a/pkg/handler/hooks.go
+++ b/pkg/handler/hooks.go
@@ -42,7 +42,7 @@ func newHookEvent(c *httpContext, info FileInfo) HookEvent {
Method: c.req.Method,
URI: c.req.RequestURI,
RemoteAddr: c.req.RemoteAddr... | 2 | 1 | 1 | [{"id": "G0", "claim": "It would be better not to modify the original request header at all, but instead clone it and add the Host entry to the copy for the hooks.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer is not sure the demonstra... | null |
tus__tusd__1346 | tus/tusd | 1,346 | defect | d6e24978219a03b8d8682bf71e213c008f6f2546 | d9e6675adcc027b0c23302bbf34078eb377c991b | Fixes from Go 1.26's `go fix` | This PR contains small improvements from Go 1.26's updated `go fix` command (https://go.dev/blog/gofix). | diff --git a/pkg/filestore/filestore_test.go b/pkg/filestore/filestore_test.go
index d1e1a131b..8b8768b41 100644
--- a/pkg/filestore/filestore_test.go
+++ b/pkg/filestore/filestore_test.go
@@ -202,7 +202,7 @@ func TestConcatUploads(t *testing.T) {
"def",
"ghi",
}
- for i := 0; i < 3; i++ {
+ for i := range 3 {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Bump the module to Go 1.25, since the PR's new wg.Go usage in pkg/handler/hooks_test.go is a Go 1.25 API while go.mod still declares go 1.24.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.