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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Project-MONAI__MONAI__8570 | Project-MONAI/MONAI | 8,570 | defect | 725c8dea5755ed0c34c19fca034ac35c6642372b | 2794dec1f6758eb68d0ca5d19a48e43cd4c755d5 | 8564 fourier positional encoding | Fixes #8564 .
### Description
Add Fourier feature positional encodings to `PatchEmbeddingBlock`. It has been shown, that Fourier feature positional encodings are better suited for Anistropic images and videos: https://arxiv.org/abs/2509.02488
### Types of changes
<!--- Put an `x` in all the boxes that apply, ... | diff --git a/monai/networks/blocks/patchembedding.py b/monai/networks/blocks/patchembedding.py
index fca566591a6..4e8a6a0463d 100644
--- a/monai/networks/blocks/patchembedding.py
+++ b/monai/networks/blocks/patchembedding.py
@@ -12,6 +12,7 @@
from __future__ import annotations
from collections.abc import Sequence
+... | 14 | 7 | 5 | [{"id": "G0", "claim": "build_fourier_position_embedding should declare a return type (mirroring build_sincos_position_embedding) and enforce that embed_dim is even, since the concatenated sin/cos output otherwise will not match hidden_size.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
Project-MONAI__MONAI__8628 | Project-MONAI/MONAI | 8,628 | defect | f315bcb0898997c0b7bf10ab254e02d0a7edc86e | 341538d7299d6b062cd48d483a734b1b1fd98d60 | Fix #8599: Add track_meta and weights_only arguments to PersistentDataset for MetaTensor support. | Fixes #8599.
### Description
`PersistentDataset` currently casts all `MetaTensor` objects to `torch.Tensor` objects and forces the use of `torch.load` with `weights_only=True`. This makes it impossible to save or load metadata to cached files, which may be necessary for accurate post-transform operations.
To ... | diff --git a/monai/data/dataset.py b/monai/data/dataset.py
index d63ff322932..51deff3bf89 100644
--- a/monai/data/dataset.py
+++ b/monai/data/dataset.py
@@ -230,6 +230,8 @@ def __init__(
pickle_protocol: int = DEFAULT_PROTOCOL,
hash_transform: Callable[..., bytes] | None = None,
reset_ops_id:... | 5 | 2 | 1 | [{"id": "G0", "claim": "The new test only asserts the type of the returned object and should also assert that metadata is actually preserved when track_meta=True (e.g., that meta contains filename_or_obj).", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
Project-MONAI__MONAI__8640 | Project-MONAI/MONAI | 8,640 | defect | 15fd428cfd9965e9d9875c1f548ee5576adf8a38 | 39ecb09a7898e6877a300b2d05ac152c56f0d127 | Docker Slim Image | ### Description
This is an attempt to create a slim Docker image which is smaller than the current one to avoid running out of space during testing. Various fixes have been included to account for test fails within the image. These appear to be all real issues that need to be addressed (eg. ONNX export) or fixes tha... | diff --git a/.dockerignore b/.dockerignore
index 19bbf580ba9..fc8d7e27d29 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -3,11 +3,15 @@
__pycache__/
docs/
+.vscode
+.git
+.mypy_cache
+.ruff_cache
+.pytype
.coverage
.coverage.*
.coverage/
coverage.xml
.readthedocs.yml
-*.toml
!README.md
diff --git a/.gith... | 18 | 6 | 2 | [{"id": "G0", "claim": "The COPY hardcodes the Python 3.11 site-packages path, which will fail the build when the base image's Python version changes; use a build argument for the version instead of a hardcoded path.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
Project-MONAI__MONAI__8651 | Project-MONAI/MONAI | 8,651 | defect | e267705385d00ef0071cf51b087345d720af9102 | 8961b770edeec13c01a94c61a620de05fd10abfa | Fix Invertd | Fixes #8396.
### Description
This PR fixes a regression where `Invertd` and direct `Compose.inverse()` calls could fail when later post-processing steps had appended unrelated entries to the same transform history.
Root cause:
- inverse execution assumed that the most recent history entry had to belong to the transf... | diff --git a/monai/transforms/compose.py b/monai/transforms/compose.py
index e984c4f26ae..97417428cba 100644
--- a/monai/transforms/compose.py
+++ b/monai/transforms/compose.py
@@ -262,6 +262,48 @@ def __init__(
self.set_random_state(seed=get_seed())
self.overrides = overrides
+ # Automatical... | 20 | 15 | 4 | [{"id": "G0", "claim": "The broad `try`/`except Exception: pass` around `getattr` in the attribute walk is redundant and silently swallows real errors, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because the walk skip... | null |
Project-MONAI__MONAI__8680 | Project-MONAI/MONAI | 8,680 | defect | 15fd428cfd9965e9d9875c1f548ee5576adf8a38 | e1f6041087c1db29dfd01683d5ad6004216ad8f2 | Rename NormalizeLabelsInDatasetd to RemapLabelsToSequentiald and fix label ordering bug | ### Description
Rename `NormalizeLabelsInDatasetd` to `RemapLabelsToSequentiald` to better describe its actual functionality. The old name was confusing as it suggests normalization when it actually remaps arbitrary label values to sequential indices (0, 1, 2, 3, ...).
Fixes #7800
### Bug Fix
Fixed a bug where the ... | diff --git a/monai/apps/deepedit/__init__.py b/monai/apps/deepedit/__init__.py
index 1e97f894078..2dbf5634814 100644
--- a/monai/apps/deepedit/__init__.py
+++ b/monai/apps/deepedit/__init__.py
@@ -8,3 +8,37 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specifi... | 5 | 3 | 1 | [{"id": "G0", "claim": "Remove the unused variable assignment in test_deprecated_name_warning: line 343 assigns `result` but never uses it, so the assignment can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Mark the old name as dep... | null |
Project-MONAI__MONAI__8684 | Project-MONAI/MONAI | 8,684 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | 23d33cf219b61fe246f132018114fc16e98053f6 | Add 3D support and confusion matrix output to PanopticQualityMetric | Fixes #5702
### Description
This PR adds two features requested in issue #5702:
1. **3D Support**: `PanopticQualityMetric` now accepts both 4D tensors (B2HW for 2D data) and 5D tensors (B2HWD for 3D data). Previously, only 2D inputs were supported.
2. **Confusion Matrix Output**: Added `return_confusion_matrix` par... | diff --git a/monai/metrics/panoptic_quality.py b/monai/metrics/panoptic_quality.py
index 7c9d59c2643..03cef9d5668 100644
--- a/monai/metrics/panoptic_quality.py
+++ b/monai/metrics/panoptic_quality.py
@@ -21,7 +21,7 @@
linear_sum_assignment, _ = optional_import("scipy.optimize", name="linear_sum_assignment")
-__al... | 10 | 2 | 1 | [{"id": "G0", "claim": "`__all__` should be sorted alphabetically (compute_mean_iou before compute_panoptic_quality) per Ruff RUF022 / static analysis.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "test_3d_support validates only the output shap... | null |
Project-MONAI__MONAI__8686 | Project-MONAI/MONAI | 8,686 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | f324869edf1d938fdb2141ac5d680d8ef3f4d9f4 | feat(metrics): Add MAPEMetric for regression evaluation. |
added a useful regression metrics.
### Description
A few sentences describing the changes proposed in this pull request.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing f... | diff --git a/monai/metrics/__init__.py b/monai/metrics/__init__.py
index ae20903cfd9..78117d9db69 100644
--- a/monai/metrics/__init__.py
+++ b/monai/metrics/__init__.py
@@ -28,6 +28,7 @@
from .panoptic_quality import PanopticQualityMetric, compute_panoptic_quality
from .regression import (
MAEMetric,
+ MAPEMe... | 5 | 4 | 1 | [{"id": "G0", "claim": "Add unit tests covering the new MAPEMetric class and compute_mape_metric function, as required for new definitions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update docs/source/metrics.rst to include an entry for the new MAP... | null |
Project-MONAI__MONAI__8694 | Project-MONAI/MONAI | 8,694 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | dd5f39287cb7a9d2b43181a05324faec32aa848c | Complete replace `flake8` with `ruff` and update rules | This pull request removes support for `flake8` in favor of using `ruff` as the primary Python linter and code style checker. It updates configuration files, scripts, and workflow definitions to reflect this change, and consolidates all linting rules and ignores into `pyproject.toml` under the `[tool.ruff]` section.
... | diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml
index 5fdec1e11e5..c60925699fd 100644
--- a/.github/workflows/pythonapp.yml
+++ b/.github/workflows/pythonapp.yml
@@ -22,7 +22,7 @@ jobs:
# - docker-py3-pip- (shared)
# - ubuntu py37 pip-
# - os-latest-pip- (shared)
- flake8-... | 8 | 4 | 1 | [{"id": "G0", "claim": "The comments for B907 and B908 in the ruff extend-ignore list misdescribe what those rules check for and should be corrected to the real descriptions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The flake8 'P' (print) an... | null |
Project-MONAI__MONAI__8695 | Project-MONAI/MONAI | 8,695 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | 23433a7924be1f5aea9f7cf74520a36a8a5995c4 | Replace pickle with JSON in Auto3DSeg algo serialization | ## Summary
- Replace `algo_to_pickle()` with `algo_to_json()` using compact JSON + MONAI's existing `_target_` ConfigParser pattern for truly pickle-free algo metadata serialization
- Add `_make_json_serializable()` helper to handle numpy arrays, tensors, Path objects
- Backward compatible: `algo_from_json()` can still... | diff --git a/monai/apps/auto3dseg/utils.py b/monai/apps/auto3dseg/utils.py
index 64e1d2ea2a3..fbf9dc101c3 100644
--- a/monai/apps/auto3dseg/utils.py
+++ b/monai/apps/auto3dseg/utils.py
@@ -14,7 +14,7 @@
import os
from monai.apps.auto3dseg.bundle_gen import BundleAlgo
-from monai.auto3dseg import algo_from_pickle, a... | 25 | 16 | 6 | [{"id": "G0", "claim": "The paired sys.path.insert/sys.path.remove operations in algo_from_json are not atomic together and could race if the function were called concurrently, so a lock or context manager should be considered.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"},... | null |
Project-MONAI__MONAI__8703 | Project-MONAI/MONAI | 8,703 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | 0fc51ea6b2e3b0475ec55acad8a94a29a3006bf4 | Fix #8239: Enhance SoftclDiceLoss and SoftDiceclDiceLoss with DiceLoss-compatible API | ## Summary
- Add `include_background`, `to_onehot_y`, `sigmoid`, `softmax`, `other_act`, and `reduction` parameters to `SoftclDiceLoss` and `SoftDiceclDiceLoss`
- Fix argument order in `forward()` to match MONAI convention (`input`, `target` instead of `y_true`, `y_pred`)
- Add proper input validation and comprehensive... | diff --git a/monai/losses/cldice.py b/monai/losses/cldice.py
index 406cc3825fc..06e96348179 100644
--- a/monai/losses/cldice.py
+++ b/monai/losses/cldice.py
@@ -11,10 +11,17 @@
from __future__ import annotations
+import warnings
+from collections.abc import Callable
+
import torch
import torch.nn.functional as F... | 14 | 6 | 4 | [{"id": "G0", "claim": "With smooth=0.0 and a skeleton that sums to zero, the division can produce NaN; document that smooth should be positive or add a floor.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "smooth is validated but iter_ is not; a no... | null |
Project-MONAI__MONAI__8704 | Project-MONAI/MONAI | 8,704 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | 092990d2b84bf5bd6e7c68c0efd96197c2b62154 | Adjust execution order of activation and masking in MaskedDiceLoss | Fixes #8655
### Description
1. Modified `MaskedDiceLoss.forward` to ensure masked regions result in 0.0 probability instead of 0.5.
2. Updated unit tests with new expected values, as the fix mathematically changes the loss result by removing the erroneous background contribution.
### Types of changes
<!--- P... | diff --git a/monai/losses/dice.py b/monai/losses/dice.py
index 948749606bf..c465f8289fc 100644
--- a/monai/losses/dice.py
+++ b/monai/losses/dice.py
@@ -253,7 +253,34 @@ def forward(self, input: torch.Tensor, target: torch.Tensor, mask: torch.Tensor
target: the shape should be BNH[WD].
mask: t... | 5 | 3 | 2 | [{"id": "G0", "claim": "Temporarily setting self.sigmoid, self.softmax and self.other_act on the instance during forward introduces a race condition if the same loss instance is used concurrently; pass overrides directly or use local variables instead of mutating instance state.", "category": "correctness", "verdict": ... | null |
Project-MONAI__MONAI__8707 | Project-MONAI/MONAI | 8,707 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | 202b25fa907d1f4cf99916c55c50249b04f43bb2 | Add CalibrationErrorMetric and CalibrationError handler | ## Description
Addresses #8505
### Overview
This PR adds calibration error metrics and an Ignite handler to MONAI, enabling users to evaluate and monitor model calibration for segmentation and other multi-class probabilistic tasks with shape `(B, C, spatial...)`.
### What's Included
#### 1. Calibration Met... | diff --git a/monai/handlers/__init__.py b/monai/handlers/__init__.py
index ed5db8a7f3a..7fc7b6df577 100644
--- a/monai/handlers/__init__.py
+++ b/monai/handlers/__init__.py
@@ -12,6 +12,7 @@
from __future__ import annotations
from .average_precision import AveragePrecision
+from .calibration import CalibrationError... | 10 | 7 | 2 | [{"id": "G0", "claim": "When all bins are empty, nan_to_num(..., nan=0.0) in the MAXIMUM reduction turns NaN diffs into 0 so MCE reports zero error instead of NaN; use a -inf sentinel, restore NaN for all-NaN results, and add a test for the all-empty-bins edge case.", "category": "correctness", "verdict": "supported", ... | null |
Project-MONAI__MONAI__8708 | Project-MONAI/MONAI | 8,708 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | aa93e6c3a7873f79583897c9074ba522949d81d2 | Fixes #8697 GPU memory leak by checking both image and label tensors for CUDA device | Modified device detection to check BOTH image and label tensors
torch.cuda.empty_cache() now called if EITHER tensor is on GPU
Prevents GPU memory leaks in mixed device scenarios | diff --git a/monai/auto3dseg/analyzer.py b/monai/auto3dseg/analyzer.py
index 8d662df83d2..a2d8c77e25b 100644
--- a/monai/auto3dseg/analyzer.py
+++ b/monai/auto3dseg/analyzer.py
@@ -468,21 +468,18 @@ def __call__(self, data: Mapping[Hashable, MetaTensor]) -> dict[Hashable, MetaTe
"""
d: dict[Hashable, ... | 7 | 6 | 3 | [{"id": "G0", "claim": "In LabelStats.__call__ the newly referenced image_tensor and label_tensor are never assigned, so the method raises NameError at runtime; extract them from the data dict before use.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim"... | null |
Project-MONAI__MONAI__8719 | Project-MONAI/MONAI | 8,719 | defect | 57fdd594ac905ab2ea778aa4bb79ccd9a0a03b22 | f1d38f4090b11a7b354adf61517211aa97d0a405 | 4609: Add AUC-Margin Loss for AUROC optimization | Fixes #4609.
### Description
This PR adds an implementation of **AUC-Margin Loss (AUCM)** for direct AUROC optimization in MONAI, based on:
> [Yuan et al., *“Large-scale Robust Deep AUC Maximization: A New Surrogate Loss and Empirical Studies on Medical Image Classification”*, ICCV 2021.](https://arxiv.org/abs... | diff --git a/monai/losses/__init__.py b/monai/losses/__init__.py
index 41935be204a..853c3558318 100644
--- a/monai/losses/__init__.py
+++ b/monai/losses/__init__.py
@@ -12,6 +12,7 @@
from __future__ import annotations
from .adversarial_loss import PatchAdversarialLoss
+from .aucm_loss import AUCMLoss
from .barlow_... | 15 | 13 | 8 | [{"id": "G0", "claim": "Averaging with count_nonzero drops valid zero residuals (e.g. when input equals a/b), which inflates the mean and its gradients; use the mask cardinality as the denominator instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
Project-MONAI__MONAI__8732 | Project-MONAI/MONAI | 8,732 | defect | b106a4c35058ebed25e81ba74a51cf4fc79006c8 | 939a5bbfc5dea9fa8db28d18b269e19b33baa405 | Fix using a non-tuple sequence for multidimensional indexing that wil… | Fix using a non-tuple sequence for multidimensional indexing that will result in error in pytorch 2.9.
Fixes # .
### Description
The `SlidingWindowInferer` complains that from PyTorch 2.9, using non-tuple sequences to slice into Tensors will result in an error (or, worse, misbehave). This patch targets all pla... | diff --git a/monai/inferers/utils.py b/monai/inferers/utils.py
index 766486a8074..f3c97464771 100644
--- a/monai/inferers/utils.py
+++ b/monai/inferers/utils.py
@@ -223,14 +223,19 @@ def sliding_window_inference(
for idx in slice_range
]
if sw_batch_size > 1:
- win_data = torch... | 2 | 2 | 1 | [{"id": "G0", "claim": "The repeated `tuple(p) if isinstance(p, list) else p` casts should be condensed into `ensure_tuple`, which also covers cases where `p` is a non-list iterable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The modified in... | null |
Project-MONAI__MONAI__8738 | Project-MONAI/MONAI | 8,738 | defect | b106a4c35058ebed25e81ba74a51cf4fc79006c8 | 4bf4960c4718cb58516041505e8bb6e52dae360a | Update base image to 25.12 | Fixes #8585.
### Description
Update base image to nvcr.io/nvidia/pytorch:25.12-py3
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix o... | diff --git a/Dockerfile b/Dockerfile
index d538fd3145e..7f563a94d2b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,7 +11,7 @@
# To build with a different base image
# please run `docker build` using the `--build-arg PYTORCH_IMAGE=...` flag.
-ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:24.10-py3
+ARG PYTORCH_IMAGE=nvc... | 8 | 2 | 1 | [{"id": "G1", "claim": "The code comment about PyTorch 2.6 torch.onnx.export defaults is incorrect — dynamo became the default only in PyTorch 2.9 — and passing the raw model for >= 2.6 may not achieve the intended behavior.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
Project-MONAI__MONAI__8744 | Project-MONAI/MONAI | 8,744 | defect | 2f10e18e4e5fa860e0be37728ff03939d0e9d769 | 063df9268806e9733151cfcf0ef075887d97d480 | Fix batch size broadcasting bug in GeneralizedWassersteinDiceLoss | **Fixes #4650**
### Description
When `batch_size > 1`, `GeneralizedWassersteinDiceLoss` produces incorrect loss values because of a tensor broadcasting issue in `_compute_generalized_true_positive` and `_compute_denominator`.
After `torch.gather`, `alpha_extended` has shape `(B, 1, S)` while `wasserstein_dista... | diff --git a/monai/losses/dice.py b/monai/losses/dice.py
index 948749606bf..72ee1f27eec 100644
--- a/monai/losses/dice.py
+++ b/monai/losses/dice.py
@@ -548,10 +548,8 @@ def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.Tensor:
elif self.reduction == LossReduction.SUM.value:
wa... | 6 | 2 | 2 | [{"id": "G0", "claim": "The mean-reduction sub-test is trivially weak because pred_single is nearly perfect so the assertion reduces to 0.0 ≈ 0.0 and passes even if mean-reduction across a batch is broken; non-trivial predictions should be used so the expected mean is a non-zero, verifiable value.", "category": "testin... | null |
Project-MONAI__MONAI__8774 | Project-MONAI/MONAI | 8,774 | defect | daaedaa09304c8ba69d36e58a861d3eef59e77a1 | 41e52c1a6f267ca1d44598259a1c357fbe12d91f | Add parameter to DiceMetric and DiceHelper classes | Fixes #8733
### Description
This PR adds support for connected component-based Dice metric calculation to the existing DiceMetric and DiceHelper classes.
### Changes
* Added per_component: bool = False to both DiceMetric and DiceHelper constructors
* Implemented compute_cc_dice method that calculates Dice s... | diff --git a/monai/metrics/meandice.py b/monai/metrics/meandice.py
index fedd94fb936..11f4e67a541 100644
--- a/monai/metrics/meandice.py
+++ b/monai/metrics/meandice.py
@@ -11,7 +11,10 @@
from __future__ import annotations
+import numpy as np
import torch
+from scipy.ndimage import distance_transform_edt, generat... | 23 | 18 | 6 | [{"id": "G0", "claim": "SciPy is imported unconditionally in meandice.py although it is an optional dependency, so importing MONAI without SciPy breaks (ModuleNotFoundError in CI).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "compute_voronoi_regio... | null |
Project-MONAI__MONAI__8776 | Project-MONAI/MONAI | 8,776 | defect | daaedaa09304c8ba69d36e58a861d3eef59e77a1 | 4b0e5336b71a434821bc4d6ff31bd2ceb37b6116 | Fix compute_shape_offset non-tuple indexing for PyTorch >=2.9 | Fixes #8775 .
### Description
This PR resolves issue #8775 by casting spatial_shape to a tuple inside compute_shape_offset to prevent breaking changes in PyTorch >= 2.9.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix ... | diff --git a/monai/data/utils.py b/monai/data/utils.py
index 4e5a3bd7f65..d548ed72486 100644
--- a/monai/data/utils.py
+++ b/monai/data/utils.py
@@ -881,7 +881,7 @@ def compute_shape_offset(
Default is False, using option 1 to compute the shape and offset.
"""
- shape = np.array(spatial_shape, co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tuple-cast compatibility fix in compute_shape_offset should be guarded by a unit test that calls it with torch.Tensor/torch.Size-derived spatial_shape to prevent regressions on PyTorch 2.9+.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Project-MONAI__MONAI__8779 | Project-MONAI/MONAI | 8,779 | defect | d18565fb3e4fd8c556707f91ac280a2dc3f681c1 | 74ada16a14e53a9e217fbb27021849eaf3a52e0a | Add support for configurable GD-enhancing tumor label in ConvertToMul… | **Description**
This PR introduces an `et_label` parameter to `ConvertToMultiChannelBasedOnBratsClasses` to easily support the BraTS 2023 dataset conventions without breaking backwards compatibility.
**Motivation and Context**
Historically (BraTS 18-21), the Enhancing Tumor (ET) label was 4. However, starting with... | diff --git a/monai/transforms/utility/array.py b/monai/transforms/utility/array.py
index 18a0f7f32fe..97c8029dd7f 100644
--- a/monai/transforms/utility/array.py
+++ b/monai/transforms/utility/array.py
@@ -1049,18 +1049,27 @@ class ConvertToMultiChannelBasedOnBratsClasses(Transform):
label 1 is the necrotic and non... | 6 | 4 | 2 | [{"id": "G0", "claim": "Validate et_label in __init__ so that setting it to 1 or 2 (or a non-int) raises instead of silently producing wrong channel mappings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add unit tests covering both label conventi... | null |
Project-MONAI__MONAI__8785 | Project-MONAI/MONAI | 8,785 | defect | daaedaa09304c8ba69d36e58a861d3eef59e77a1 | cc21cefda22640ba234530b87616cc6eaa29962f | Add MCC loss | Add Matthews Correlation Coefficient (MCC) Lossa
Fixes #8784 .
### Description
Add the Matthews Correlation Coefficient (MCC) loss function to monai.losses. Unlike Dice and Tversky losses which only use TP, FP, and FN, the MCC loss considers all four entries of the confusion matrix (TP, TN, FP, FN), making it ... | diff --git a/docs/source/losses.rst b/docs/source/losses.rst
index 528ccd11730..baeebbbe9c0 100644
--- a/docs/source/losses.rst
+++ b/docs/source/losses.rst
@@ -98,6 +98,11 @@ Segmentation Losses
.. autoclass:: NACLLoss
:members:
+`MCCLoss`
+~~~~~~~~~
+.. autoclass:: MCCLoss
+ :members:
+
Registration Losse... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new test class and test methods in tests/losses/test_mcc_loss.py (lines 116-150) should be given short docstrings to meet the repository's docstring coding guideline.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The f... | null |
Project-MONAI__MONAI__8787 | Project-MONAI/MONAI | 8,787 | defect | daaedaa09304c8ba69d36e58a861d3eef59e77a1 | 26c051f829b2011e05ac08eab568a3b8867d54c8 | Fix nested Compose map_items in forward and inverse paths | ## Summary
Fixes #7932, #7565
When a child `Compose` has a different `map_items` setting than its parent, the parent's `apply_transform` would expand list/tuple data before the child ever sees it — silently overriding the child's `map_items`.
This PR makes three coordinated changes so the child's `map_items` is ... | diff --git a/monai/transforms/compose.py b/monai/transforms/compose.py
index 95653ffbd4b..69753b9ee8c 100644
--- a/monai/transforms/compose.py
+++ b/monai/transforms/compose.py
@@ -37,6 +37,19 @@
__all__ = ["Compose", "OneOf", "RandomOrder", "SomeOf", "execute_compose"]
+def _inverse_one(
+ t: InvertibleTransfo... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new `_inverse_one` helper should have a Google-style docstring describing its parameters and return values.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`Compose.flatten()` returns `Compose(new_transforms)` with defau... | null |
Project-MONAI__MONAI__8801 | Project-MONAI/MONAI | 8,801 | defect | 853f70236e42fe96fd690363fafd3a2d1e924c9a | 98ab7797156c75b5927460d4d4a72b2ea3be2126 | 8800 potentially wrong device using cuda variable status in monaiauto3dseganalyzerpy | Fixes #8800.
### Description
Fix bug introduced by me on @benediktjohannes' PR#8708
Fixed a device synchronization bug in `LabelStats.__call__()` where the `using_cuda` was being ignored. When image and label tensors were on different devices, the code would:
1. Set `using_cuda` to True if one is on GPU
2. I... | diff --git a/monai/auto3dseg/analyzer.py b/monai/auto3dseg/analyzer.py
index d48d5fc8781..021769cf7d9 100644
--- a/monai/auto3dseg/analyzer.py
+++ b/monai/auto3dseg/analyzer.py
@@ -15,7 +15,7 @@
from abc import ABC, abstractmethod
from collections.abc import Hashable, Mapping
from copy import deepcopy
-from typing i... | 2 | 1 | 1 | [{"id": "G0", "claim": "It is unexplained why a device mismatch is synced to the image device rather than the label device, and additional device-type checks (e.g. syncing to ROCm when available) may need to be added.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "... | null |
Project-MONAI__MONAI__8803 | Project-MONAI/MONAI | 8,803 | defect | 853f70236e42fe96fd690363fafd3a2d1e924c9a | d9a2bc4b63dedb1687b48fb1133f96548d5d3cfe | Fix: handle precomputed crops and safe no-grad cleanup in auto3dseg | Fixes #8802
Also addresses #5889
### Description
This pull request fixes two issues in `monai.auto3dseg.analyzer`.
- `ImageStats.__call__()` now correctly handles the optional precomputed `nda_croppeds` input path instead of raising `UnboundLocalError`.
- `ImageStats`, `FgImageStats`, and `LabelStats` no... | diff --git a/monai/auto3dseg/analyzer.py b/monai/auto3dseg/analyzer.py
index d48d5fc8781..e6a946725e4 100644
--- a/monai/auto3dseg/analyzer.py
+++ b/monai/auto3dseg/analyzer.py
@@ -252,39 +252,35 @@ def __call__(self, data):
"""
d = dict(data)
start = time.time()
- restore_grad_state =... | 6 | 3 | 1 | [{"id": "G0", "claim": "The ImageStats.__call__ docstring sits after the validation code and should be moved to the top of the method with its contents checked.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The zip over SHAPE and SPACING should... | null |
Project-MONAI__MONAI__8815 | Project-MONAI/MONAI | 8,815 | defect | 8d39519cd0f9256716333fa38ed1ef75eaeb69f8 | c2ff0968cdb6e5d3c0604a06b67efaca0725bb60 | Add EmbeddingCollapseMetric: detect representational collapse in medi… | …cal imaging embeddings
Closes #8808
Fixes # .
### Description
A few sentences describing the changes proposed in this pull request.
Adds EmbeddingCollapseMetric for detecting representational collapse in embedding spaces — when class centroids converge, effective dimensionality drops, or domains become ... | diff --git a/monai/metrics/__init__.py b/monai/metrics/__init__.py
index 702e3c48e23..679336a66ad 100644
--- a/monai/metrics/__init__.py
+++ b/monai/metrics/__init__.py
@@ -17,6 +17,7 @@
from .confusion_matrix import ConfusionMatrixMetric, compute_confusion_matrix_metric, get_confusion_matrix
from .cumulative_average... | 14 | 11 | 8 | [{"id": "G0", "claim": "When all singular values are zero (embeddings constant after mean-centering), _effective_rank_score returns 0.0, under-reporting maximal dimensional collapse and skewing the aggregate; the degenerate case should be defined as 1.0 with the returned tensor on the input's device/dtype.", "category"... | null |
Project-MONAI__MONAI__8837 | Project-MONAI/MONAI | 8,837 | defect | d0650f3b8ee413ed157bddbb226d8bdb450917fd | 26f27c3f029e8133dc377fee945045a422e4cfb9 | fix: replace set_track_meta with F.interpolate in RandSimulateLowResolution (#8409) |
Fixes #8409
### Description
`RandSimulateLowResolution` internally performs a downsample → upsample cycle using two
`Resize` transforms. To prevent these from being recorded in the invertible transform
stack, the previous implementation temporarily toggled the global `set_track_meta(False)`
flag ... | diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py
index 55dab79c3df..8cfa58564f9 100644
--- a/monai/transforms/spatial/array.py
+++ b/monai/transforms/spatial/array.py
@@ -26,7 +26,7 @@
from monai.config import USE_COMPILED, DtypeLike
from monai.config.type_definitions import NdarrayO... | 5 | 4 | 4 | [{"id": "G0", "claim": "The downsample interpolate call should propagate align_corners for linear-family modes, as the docstring says align_corners affects both downsample_mode and upsample_mode.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rebuil... | null |
Project-MONAI__MONAI__8858 | Project-MONAI/MONAI | 8,858 | defect | 9078a72f3992e49bd4560db510be9ec4ccf972cc | b1ac7d6b99220671440ed1df0115ff1fe24eb69e | Add nested dot-notation access to ConfigParser (#6837) | Fixes #6837.
### Description
Follow-up to #5813: extends dot/bracket notation to nested config. Dict/list results from `ConfigParser.__getattr__` are wrapped in a `_ConfigProxy` that chains via `get_parsed_content`, so nested `$@ref`/`_target_` still resolve:
parser.training.trainer.max_epochs # = get_par... | diff --git a/monai/bundle/config_parser.py b/monai/bundle/config_parser.py
index 1d9920a230c..a82aac3bbc1 100644
--- a/monai/bundle/config_parser.py
+++ b/monai/bundle/config_parser.py
@@ -35,6 +35,81 @@
_default_globals = {"monai": "monai", "torch": "torch", "np": "numpy", "numpy": "numpy"}
+def _wrap_parsed(pars... | 9 | 7 | 3 | [{"id": "G0", "claim": "Wrapping containers in _ConfigProxy breaks bracket writes and deletes that worked before the proxy (parser.foo[\"bar\"] = ... now fails) because the proxy only implements __getitem__; delegate __setitem__/__delitem__ to the underlying container and pin it with a regression test.", "category": "c... | null |
Project-OSRM__osrm-backend__2715 | Project-OSRM/osrm-backend | 2,715 | defect | b0873e2aa42f05825183faa2919b2f8d5502c455 | 9ddba3eaaeb31362ec9fb3ecb083ecaa85edc649 | Filter out edges that have any speed=0 segments. | Fixes #2713
:flameretardantpants: are on, I'm ready for the use-of-`goto` abuse. I think this is the perfect situation for it.
TODO:
- [x] don't snap to edges that are zero'd
- [x] verify contraction on nodes that become isolated because of edge filtering
Notes:
- debug tiles will show edges with zero speeds, even... | diff --git a/features/car/traffic_speeds.feature b/features/car/traffic_speeds.feature
index 84335d0f86d..66c1a61f79b 100644
--- a/features/car/traffic_speeds.feature
+++ b/features/car/traffic_speeds.feature
@@ -23,7 +23,7 @@ Feature: Traffic - speeds
| fb | primary |
And the speed file
... | 1 | 1 | 0 | [{"id": "G2", "claim": "There should be no `goto` calls in the code base because they set an unwanted precedence; the skip_this_edge jump should be easy to replace with a boolean and a break.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Project-OSRM__osrm-backend__3546 | Project-OSRM/osrm-backend | 3,546 | defect | b3483f95a7fc6d43a9deb1a98717b5a64874e6f8 | 28b4e002b345e985185a7d57640b91e9bb81c96f | Fix possible division by zero by clamping latitude to 85.05° | # Issue
Resolves #3530 by pre clamping of the input latitude.
## Tasklist
- [x] review
- [x] adjust for comments
| diff --git a/include/util/web_mercator.hpp b/include/util/web_mercator.hpp
index 1bc4b1ca426..abc8ce6b28d 100644
--- a/include/util/web_mercator.hpp
+++ b/include/util/web_mercator.hpp
@@ -41,10 +41,11 @@ inline FloatLatitude yToLat(const double y)
inline double latToY(const FloatLatitude latitude)
{
// apparent... | 2 | 2 | 0 | [{"id": "G0", "claim": "The local 85.051128779806592378 limit in latToY should be made a named constexpr constant (e.g. static const constexpr double EPSG3857_MAX_LAT) instead of a local variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "I... | null |
Project-OSRM__osrm-backend__3730 | Project-OSRM/osrm-backend | 3,730 | defect | 1e4c8eeeb6489f265f1edd62493564193fb6250a | b35150932930d00f9d2392c99968701144ece0ac | Add class to manage partition information | # Issue
Fixes #3552 by adding a class for representing the partition information that node has in a hierarchical partition.
## Tasklist
- [x] Add sub-cell iterator
- [x] Finish unit tests
- [ ] review
- [ ] adjust for comments
## Requirements / Relations
Based on #3724. | diff --git a/include/util/cell_storage.hpp b/include/util/cell_storage.hpp
new file mode 100644
index 00000000000..912052ec2fb
--- /dev/null
+++ b/include/util/cell_storage.hpp
@@ -0,0 +1,295 @@
+#ifndef OSRM_UTIL_CELL_STORAGE_HPP
+#define OSRM_UTIL_CELL_STORAGE_HPP
+
+#include "util/assert.hpp"
+#include "util/multi_l... | 10 | 7 | 3 | [{"id": "G0", "claim": "The stable_sort lambda captures the partition vector by copy, so a copy-construction of partition happens there.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests lack GetCell expectations; the reviewer's suggested... | null |
Project-OSRM__osrm-backend__3996 | Project-OSRM/osrm-backend | 3,996 | defect | 1aea10010bbb7f7a584a57d63846ca7239ed2123 | d878b0861c6c52cae68aac307c213467ceff636c | Replace PackedVector with an implementation that supports random access | # Issue
This fixes #3952 and unlocks using it in `SegmentDataContainer`.
The resulting vector type has the following performance characteristics:
```
[info] random write: std::vector 37537.3 ms, util::packed_vector 82940.7 ms. 2.20955
[info] random read: std::vector 55340.9 ms, util::packed_vector 70225.4 ms... | diff --git a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp
index bc09386d5a0..2c3a2edd471 100644
--- a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp
+++ b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp... | 8 | 6 | 2 | [{"id": "G0", "claim": "Comparing iterators of PackedVector fails to compile with an invalid static_cast inside boost::iterator_facade's operator!=.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The packed_vector_iterator_test hits a malloc failure... | null |
Project-OSRM__osrm-backend__4039 | Project-OSRM/osrm-backend | 4,039 | defect | 9972b5f1f9177c1606ab23433e368ea93997ee99 | ab3ea328e8fa8ed6cb33c25a1bc5580c882d442c | Parameter for keep waypoints on the left/right | # Description :
This PR adds a parameter for each point to chose the start/stop side.
Three option can be used :
- DEFAULT to start/stop at the drive side
- OPPOSITE to start/stop at the opposite of default (cross the road)
- BOTH each side can be used (old behavior).
The default depending at the countr... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index dae2a1c0e41..2f23fb28af3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -728,7 +728,7 @@ set_property(TARGET osrm-routed PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
file(GLOB VariantGlob third_party/variant/include/mapbox/*.hpp)
file(GLOB LibraryGlob include/osrm... | 10 | 9 | 5 | [{"id": "G0", "claim": "The pull request has no cucumber test coverage for the new sides parameter and should add one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sides URL parsing has no unit tests and should get them, including tests for parsin... | null |
Project-OSRM__osrm-backend__5242 | Project-OSRM/osrm-backend | 5,242 | defect | a53da9095a31dd524e8aef65b19b742f2757450f | 89add11b822a36608f312a07191686a6f67914d6 | Support directly mmap-ing datafiles | # Issue
This PR completes the vision initially described in https://github.com/Project-OSRM/osrm-backend/issues/1947. It builds on the work done by @TheMarex in https://github.com/Project-OSRM/osrm-backend/pull/4881
Turns out, #4881 was almost there, it really only required the following changes:
- ensuring... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 078e95dd4dc..d9aca267d55 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# UNRELEASED
- Changes from 5.19.0:
+ - Features:
+ - ADDED: direct mmapping of datafiles is now supported via the `-mmap` switch. [#5242](https://github.com/Project-OSRM/osrm... | 15 | 12 | 3 | [{"id": "G0", "claim": "The left shifts in packBits/unpackBits can be undefined behaviour; add an assert (range check).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new layout API functions (serialization read/write, PopulateLayout, setupRegio... | null |
Project-OSRM__osrm-backend__5846 | Project-OSRM/osrm-backend | 5,846 | defect | 523d9e9c05a6c7810b4bf23f3491c7803a6d06a4 | 68d36c7198fdb22caa185c6c4b035b4f5d8a7525 | Incorrect error message when unable to snap all input coordinates | # Issue
Fixes #5845
In cases where we are unable to find a phantom node for an input
coordinate, we return an error indicating which coordinate failed.
This would always refer to the coordinate with index equal to the
number of valid phantom nodes found.
We fix this by instead returning the first index for... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c44f9ab8e65..c2f7561947f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@
- CHANGED: Reduce memory usage for raster source handling. [#5572](https://github.com/Project-OSRM/osrm-backend/pull/5572)
- CHANGED: Add cmake option `ENABLE_DEBUG_LOGGIN... | 1 | 1 | 0 | [{"id": "G0", "claim": "The loop that finds the first missing coordinate in MissingPhantomErrorMessage could be rewritten with std::mismatch, which the reviewer thought helps clarify intent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Project-OSRM__osrm-backend__6153 | Project-OSRM/osrm-backend | 6,153 | defect | bfb74c2dad0d7c653919271b3329b70c9863e756 | 3e01644ac533ee35b83b7a551c77d81d7f6defe0 | Support OSM traffic signal directions | # Issue
Currently OSRM parses traffic signal nodes without consideration for the direction in which the signal applies.
This can lead to duplicated routing penalties, especially when a forward and backward signal are in close proximity on a way.
This commit adds support for directed signals to the extraction... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 25c8aa33742..ae78aebbc1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -51,6 +51,7 @@
- FIXED: Improvements to maneuver override processing [#6125](https://github.com/Project-OSRM/osrm-backend/pull/6125)
- ADDED: Support snapping to multiple ways at an inpu... | 6 | 5 | 1 | [{"id": "G0", "claim": "Declare Direction as `using Direction = uint8_t;` instead of a typedef, and consider making it an enum.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The opening line `local traffic_lights = traffic_lights` in traffic_si... | null |
Project-OSRM__osrm-backend__6355 | Project-OSRM/osrm-backend | 6,355 | defect | 96f5780f06e6f55013762c879c361d647036bd72 | a3be76e24eb69cb6a47286f452231b5c5ffe87bb | Refactor CMake code related to compiler warnings, enable some additional warnings | # Issue
Doesn't fix anything really important, but allows to better control warnings in the future.
## Tasklist
- [ ] CHANGELOG.md entry ([How to write a changelog entry](http://keepachangelog.com/en/1.0.0/#how))
- [ ] update relevant [Wiki pages](https://github.com/Project-OSRM/osrm-backend/wiki)
- [ ] add... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46acc13d9b1..7faf02816ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -327,9 +327,9 @@ if (ENABLE_SANITIZER)
endif()
# Configuring compilers
-set(OSRM_WARNING_FLAGS "-Werror=all -Werror=extra -Werror=uninitialized -Werror=unreachable-code -Werror=unused-var... | 2 | 2 | 0 | [{"id": "G0", "claim": "The whole src/util/glibc_workaround.cpp file can probably be removed, since the GCC versions it works around are no longer supported.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The add_warning(no-return-local-addr) ... | null |
Project-OSRM__osrm-backend__6531 | Project-OSRM/osrm-backend | 6,531 | defect | 376282d946e0d03d9a98719d1218f54ae60e0787 | b372611e86d9c4c44552f4655a1c7fed603dabfc | fix(json_render): json_render is not accurate enough for extremely sm… | fix(json_render): json_render is not accurate enough for extremely small numbers. eg: fmt::format_to(std::back_inserter(buffer), FMT_COMPILE("{}"), double(0.0000000000017114087924596788)); you will get a result of 1.7114087924, this is a completely wrong result.
formatter params(width & precision chapter): https://e... | diff --git a/include/util/json_renderer.hpp b/include/util/json_renderer.hpp
index 8665c0fb63e..f397a6e4aad 100644
--- a/include/util/json_renderer.hpp
+++ b/include/util/json_renderer.hpp
@@ -56,7 +56,10 @@ template <typename Out> struct Renderer
size_t decimalpos = std::find(buffer.begin(), buffer.end(), '.'... | 4 | 2 | 1 | [{"id": "G0", "claim": "The change introduces a C++20 construct while the codebase is C++17, raising the question of bumping the minimum required C++ version.", "category": "compatibility", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Number rendering should be done with a ... | null |
Project-OSRM__osrm-backend__6842 | Project-OSRM/osrm-backend | 6,842 | defect | 367933fc1a9705e8ea852b8470f9db2d0f6f73fb | 1d285ade25625201c1d954ff687db33bb46eb5f0 | Add support for opposite approach request parameter | # Issue
As outlined in #5616, adding support for restricting the waypoint approach to the `opposite` direction, relative to the input coordinate.
It was included in the original approaches PR (#4039), but dropped due to lack of support at the time.
This is beneficial for VRP use-cases in particular, and is a sim... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5414c892390..51ea1635960 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
- ADDED: Add support for a keepalive_timeout flag. [#6674](https://github.com/Project-OSRM/osrm-backend/pull/6674)
- ADDED: Add support for a default_radius flag. [#6575](ht... | 1 | 1 | 0 | [{"id": "G0", "claim": "Even though Approach is an enum class with unlikely integer casts, it would make sense to keep explicit value assignments so the existing enumerators' values are not shifted, e.g. add OPPOSITE = 2.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Project-OSRM__osrm-backend__6866 | Project-OSRM/osrm-backend | 6,866 | defect | 82aa369db388b3a1b35f18af97ce31aa8c232bcd | 25434d4437905f7ca05d60fff7c138bca4307814 | Clarify use of forcing routing steps | # Issue
Resolves observation 2 in #6852
The change clarifies the conditions for forcing routing steps and simplifies the codebase to support it.
- Makes explicit the search runtime condition for forcing a routing step in `shouldForceStep`. Namely, the node is a source of the forward and reverse searches, and it'... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d462fc56075..c7090abc9dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -45,6 +45,7 @@
- FIXED: Correctly handle compressed traffic signals. [#6724](https://github.com/Project-OSRM/osrm-backend/pull/6724)
- FIXED: Fix bug when searching for maneuver override... | 1 | 1 | 0 | [{"id": "G0", "claim": "The std::tie calls in routing_base_mld.hpp should be replaced with structured bindings, since they should be universally available after the compiler upgrade.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Project-OSRM__osrm-backend__6881 | Project-OSRM/osrm-backend | 6,881 | defect | 54e50a67a8ac40e2efd70752399c90ff5898b9ce | 54437942d296127ede5e1439a77fb024c2040e36 | Optimise R-tree queries in the case of map matching | # Issue
Since in map matching we don't need to find the N nearest projections, but simply all projections within a certain radius, instead of using a priority queue-based algorithm, we can simply find all edges intersecting the bounding box defined by this radius and then post-process the results to remove edges tha... | diff --git a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp
index 9b35989e1a2..ac9497eb00a 100644
--- a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp
+++ b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp... | 3 | 3 | 0 | [{"id": "G0", "claim": "The optional `max_results` parameter of `NearestPhantomNodes` should be made a required parameter to clarify the distinction between the two overloads.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sort of `phantom_nodes` by ... | null |
Project-OSRM__osrm-backend__6952 | Project-OSRM/osrm-backend | 6,952 | defect | 7652f6ca6bcd8e21e9768a0064efc9debedb7889 | 33accf58ef8cd79410da6ccfb6770fed7244452c | Re-use priority queue in StaticRTree | Gives slight performance boost, because we don't have allocations in PQ...
<!-- BENCHMARK_RESULTS_START -->
<details><summary><h2>Benchmark Results</h2></summary>
| Benchmark | Base | PR |
|-----------|------|----|
| alias | aliased u32: 1138.37<br/>plain u32: 1147.21<br/>aliased double: 1182.51<br/>plain double... | diff --git a/include/util/static_rtree.hpp b/include/util/static_rtree.hpp
index dc88da233cf..0009a4faa49 100644
--- a/include/util/static_rtree.hpp
+++ b/include/util/static_rtree.hpp
@@ -2,6 +2,7 @@
#define STATIC_RTREE_HPP
#include "storage/tar_fwd.hpp"
+#include "osrm/coordinate.hpp"
#include "util/bearing.hpp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR author's replacement of std::priority_queue with a raw thread_local std::vector manipulated via std::push_heap/std::pop_heap may break correctness and, at the least, obscures the priority-queue usage: the code reads as an unexplained adapter idiom instead of a queue type that conveys its ... | null |
Project-OSRM__osrm-backend__7256 | Project-OSRM/osrm-backend | 7,256 | defect | 41a5ee52f929548d2645d55308dac73ce4399055 | 209cc3c905ffd196c65e1abe81b7bd3c79ef05a1 | Allow returning geometry by leg | # Issue
Right now it is kind of a pain to get the route geometry by leg. You can request the steps and accumulate it, but that is annoying if you are not interested in the instructions. With hindsight that wasn't the greatest API decision, alas better fix it late then never. In general it doesn't make sense to have ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74b52f32b86..2c80774d24e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
# Unreleased
- Changes from 6.0.0
+ - API:
+ - ADDED: The parameter `overview` now accepts `by_legs` to include the geometry on the `RouteLeg` instead of the `Route` object. [... | 6 | 5 | 0 | [{"id": "G0", "claim": "The comment 'Make library-tests automatically build test data after compilation' is wrong because add_dependencies makes test-data build before library-tests, and should be reworded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
Project-OSRM__osrm-backend__7311 | Project-OSRM/osrm-backend | 7,311 | defect | 01605f7589e6fe68df3fc690ad001b687128aba7 | 98415afe7797e7f741a24db3b29183371994e280 | Fix JSON rendering of large OSM IDs and handle NaN/Infinity gracefully | # Issue
Fixes #7016
This PR addresses the issue where large OSM node IDs (exceeding 10 billion as of August 2025) are rendered in scientific notation (e.g., `11117421192` becomes `1.111742119e+10`) or lose precision in JSON responses.
Additionally, this PR improves robustness by outputting `null` for NaN/Infin... | diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml
index 34c50016eda..8f39e3caa85 100644
--- a/.github/workflows/osrm-backend.yml
+++ b/.github/workflows/osrm-backend.yml
@@ -319,7 +319,7 @@ jobs:
build_node_package: true
continue-on-error: true
n... | 2 | 1 | 0 | [{"id": "G0", "claim": "The macOS runner change from macos-13 to macos-15-intel appears unrelated to the JSON rendering fix, so it should be moved to a separate CI/CD-focused pull request.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test ... | null |
Project-OSRM__osrm-backend__7322 | Project-OSRM/osrm-backend | 7,322 | defect | b69d940bef1d77cab0135f59056e0f32453d3054 | 7786c8dba00a3657b48bbb44f7309d65b8c9c199 | Limit max exclude classes to 7 | # Issue
Allow for 8 exclude combinations makes it impossible to differentiate invalid class combinations from the ones where all classes are used.
## Tasklist
- [x] CHANGELOG.md entry ([How to write a changelog entry](http://keepachangelog.com/en/1.0.0/#how))
- [ ] add tests (see [testing documentation](htt... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9448d5ec97f..989feac285e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,7 +21,9 @@
- CHANGED: Upgrade Cucumber-js to v12 [#7221](https://github.com/Project-OSRM/osrm-backend/pull/7221)
- CHANGED: Add libcap-setcap to alpine dockerfile [#7241](https://git... | 2 | 2 | 0 | [{"id": "G0", "claim": "Typo in the added comment in include/extractor/class_data.hpp: \"mark is invalid\" should be \"mark it invalid\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Spelling error in the CHANGELOG.md entry added by this PR: \"C... | null |
Project-OSRM__osrm-backend__7336 | Project-OSRM/osrm-backend | 7,336 | defect | 41a5ee52f929548d2645d55308dac73ce4399055 | 786da15caa5f2da4de5154ea442693690389bca8 | Make maximum header size configurable | # Issue
As @danpat pointed our [here](https://github.com/Project-OSRM/osrm-backend/pull/7328#issuecomment-3775213663) in a previous attempt to port to boost beast, large requests did not work. However in 2026 it is possible to configure the header size (which includes the GET line) so even humongous 10000 table requ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74b52f32b86..aa503b8277b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- FIXED: Work around compilation error due to a false-positive of array-bounds check in sol2 [#7317](https://github.com/Project-OSRM/osrm-backend/pull/7317)
- FIXED: Fix c... | 6 | 5 | 2 | [{"id": "G0", "claim": "Fix the typo in the comment in src/tools/routed.cpp: \"willot\" should be \"will not\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the comment in src/server/connection.cpp: \"misnormer\" should be \"misn... | null |
Project-OSRM__osrm-backend__7341 | Project-OSRM/osrm-backend | 7,341 | defect | f9e90b8f8f162708439ad629049346a9f7696e96 | 748ec173ec15d041eed7ae5e30f6780b6b6e7da4 | Add regression tests for zero-speed segment updates | # Issue
Add Cucumber scenarios to verify that closing segments via `--segment-speed-file` doesn't incorrectly block turns at unrelated intersections or cascade to parallel routes.
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36c391c4866..224e0862571 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,8 @@
- CHANGED: Upgrade Cucumber-js to v12 [#7221](https://github.com/Project-OSRM/osrm-backend/pull/7221)
- CHANGED: Add libcap-setcap to alpine dockerfile [#7241](https://git... | 3 | 3 | 1 | [{"id": "G0", "claim": "The mutex protecting turn_weight_penalties is redundant because turn_id is renumbered to a unique value per edge so parallel update_edge calls cannot contend on the same slot, and it only adds synchronization overhead; it should be removed.", "category": "performance", "verdict": "supported", "p... | null |
Project-OSRM__osrm-backend__7344 | Project-OSRM/osrm-backend | 7,344 | defect | 9d837fa31a5d4b745625125f480d5c5e5f87bf99 | de4c444bfb5a8eb0b2a0aa6927527fddda591401 | Add configurable max_collapse_distance property to Lua profiles for p… | # Issue
Fixes #6171
- Add `max_collapse_distance` property to `ProfileProperties` (default: 30.0m)
- Expose property to Lua profiles via sol2
- Add `GetMaxCollapseDistance()` to... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index dba04574278..35d477996a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
- Routing:
- FIXED: Crash when route starts or ends at `type=manoeuvre` relation via node [#7287](https://github.com/Project-OSRM/osrm-backend/issues/7287)
- Profiles:
+ ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Remove the default argument (= 30.0) from collapseTurnInstructions so that the right value is always passed explicitly to the function.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the initialization of max_collapse_distanc... | null |
Project-OSRM__osrm-backend__7349 | Project-OSRM/osrm-backend | 7,349 | defect | d8ff021d289743c4daa361ca81fe31f0f12af751 | 540fea63ea278b7d61ba984ebbc4547aa50b886f | Add --output option to osrm-extract for custom output base path | # Issue
Fixes #4930
This PR adds an `-o` / `--output` option to `osrm-extract` so users can specify a custom output base path. This allows using the same OSM file with different routing profiles to generate separate output files without needing symbolic links.
Example usage:
```... | diff --git a/.gitignore b/.gitignore
index 9510b88f6ce..7a63729a248 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,7 +43,7 @@ Thumbs.db
#######################
/_build*
/build/
-/test/data/monaco.osrm*
+/test/data/monaco*.osrm*
/test/data/ch
/test/data/mld
/cmake/postinst
diff --git a/CHANGELOG.md b/CHANGELOG.md... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test leaves the generated output files in place and should add cleanup code to remove them after verification, to avoid test pollution between runs.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test only verifies that... | null |
Project-OSRM__osrm-backend__7350 | Project-OSRM/osrm-backend | 7,350 | defect | d8ff021d289743c4daa361ca81fe31f0f12af751 | 87db89e2583bed5c9568e05a0cd0ab998d50edcb | Add --list-inputs option to all OSRM tools for deployment scripts | # Issue
Fixes #2865
This PR adds a `--list-inputs` option to all OSRM tools that outputs the required and optional input file extensions. This helps deployment scripts know which files need to be copied for each tool.
Example usage:
```bash
$ osrm-routed --list-inputs
required ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 554f1caa173..7f6bf6d7ae1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@
- FIXED: Work around compilation error due to a false-positive of array-bounds check in sol2 [#7317](https://github.com/Project-OSRM/osrm-backend/pull/7317)
- FIXED: Fix c... | 4 | 4 | 2 | [{"id": "G0", "claim": "For osrm-contract and osrm-customize, --list-inputs prints the same files twice because both the main config and the updater_config are listed, which may confuse deployment scripts parsing the output; the reviewer asks to deduplicate, document, or restructure.", "category": "correctness", "verdi... | null |
Project-OSRM__osrm-backend__7400 | Project-OSRM/osrm-backend | 7,400 | defect | ff327c4659bd183685db755bab72bce1f3000384 | 99d0c337da16684c444e683abee47ccbd478c08c | Replace XORFastHash by ANDHash | # Issue
The original motivation for this patch was: XORFastHash gives different results on Windows: see #4693.
But a review of the code found that we do not need a hash function at all because we are only hashing NodeID's and a uniform hashing function is given by taking the lowest bits from NodeID.
# Fix
... | diff --git a/features/testbot/alternative.feature b/features/testbot/alternative.feature
index 40bbad5daea..2fc2602651b 100644
--- a/features/testbot/alternative.feature
+++ b/features/testbot/alternative.feature
@@ -4,14 +4,6 @@ Feature: Alternative route
Background:
Given the profile "testbot"
... | 8 | 6 | 2 | [{"id": "G0", "claim": "size_t is used unqualified in xor_fast_hash.hpp without including <cstddef>, which can break builds on stricter toolchains; prefer std::size_t and include <cstddef> for the loop index.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
Project-OSRM__osrm-backend__7412 | Project-OSRM/osrm-backend | 7,412 | defect | 5b026dc74a20e48ab409ce33354ba456f3b066fd | be1b5d16f7688e6d644276c946d95cf64666dcb4 | fix: [Bug Report] osrm-routed segfaults/asserts | Fixes Project-OSRM/osrm-backend#7203
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd79b14d084..dba7ec12246 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Unreleased
- Changes from 6.0.0
- Routing:
+ - FIXED: Prevent MLD route queries from updating removed heap nodes, avoiding `osrm-routed` segfaults/asserts [#7203](https://... | 1 | 1 | 0 | [{"id": "G0", "claim": "The change adds an implicit requirement that the Heap template parameter of insertOrUpdate provide WasRemoved(node), which can cause hard-to-decipher template errors for other Heap instantiations; make the requirement explicit or detect the removed state via a property on heapNode instead.", "ca... | null |
Project-OSRM__osrm-backend__7443 | Project-OSRM/osrm-backend | 7,443 | defect | 27a4419f48671c6c4e5bbfe77d149b3326c73cee | ab27c49efc93b36f79177e1c8d1004f85b897f1e | Store lock files in /dev/shm/osrm -> ~/.osrm/ instead of /tmp to prevent systemd cleanup | # Issue
Move shared memory lock files out of /tmp to prevent cleanup
Lock files used by ftok() to locate System V shared memory segments were
stored in /tmp, which is cleaned by systemd-tmpfiles-clean (Linux, ~10
days) and periodic scripts (macOS, ~3 days). The shared memory segments
themselves survive cleanup... | diff --git a/include/storage/shared_memory.hpp b/include/storage/shared_memory.hpp
index 9284491ed4b..747af921c27 100644
--- a/include/storage/shared_memory.hpp
+++ b/include/storage/shared_memory.hpp
@@ -41,10 +41,11 @@ class SharedMemory
/**
* @brief Returns the directory to use for OSRM lock files
*
- * Returns... | 6 | 6 | 2 | [{"id": "G0", "claim": "getLockDir() unconditionally calls create_directories on $HOME/.osrm and can throw filesystem_error (aborting makeSharedMemory()/Storage::Run()) when HOME is unwritable or ~/.osrm is an existing non-directory, instead of using the error_code overload and falling back with a clear log/exception m... | null |
Project-OSRM__osrm-backend__7514 | Project-OSRM/osrm-backend | 7,514 | defect | e0bf434856acf77737afb9cdaeb8283ac58f48bb | f2744dff7e4535fe87f0790e537c161f519b19a9 | build: replace boost date time with std | Functional description of changes in branch replace_boost_date_time (vs origin/master):
Summary:
This PR modernizes date/time handling by moving away from Boost.DateTime where present and adopting std::chrono facilities (year_month_day, sys_days, etc.), hardens parsing by validating parsed dates before converting to s... | diff --git a/.gitignore b/.gitignore
index f72889eae4d..b80dd449fb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -115,3 +115,4 @@ lib/binding_napi_v8
##########################
.vitepress/cache
docs/.vitepress/cache
+docs/.vitepress/dist
diff --git a/include/util/opening_hours.hpp b/include/util/opening_hours.hpp
ind... | 5 | 4 | 3 | [{"id": "G0", "claim": "OpeningHours uses std::any_of and std::swap but after removing Boost.DateTime the header no longer transitively includes the standard headers declaring them; add <algorithm>/<utility> so include/util/opening_hours.hpp remains self-contained (notably for the check-headers target).", "category": "... | null |
ProjectQ-Framework__ProjectQ__150 | ProjectQ-Framework/ProjectQ | 150 | defect | e8a8b92b99327ebaa7c865001290bb2005a4e8ae | dcf064130f7f83249bbaa8396d089763bb49e7c1 | AutoReplacer checks parent class for replacements | * If `AutoReplacer` doesn't find a decomposition rule for a gate class, it checks if there are decomposition rules for the parent classes which might work
* Important change for rules which only require a gate matrix and hence the rule works for all `BasicGate` instances | diff --git a/projectq/cengines/_replacer/_replacer.py b/projectq/cengines/_replacer/_replacer.py
index 975fd4368..b2c4164ff 100755
--- a/projectq/cengines/_replacer/_replacer.py
+++ b/projectq/cengines/_replacer/_replacer.py
@@ -153,9 +153,25 @@ def _process_command(self, cmd):
if d.check(cmd):
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new parent-class fallback loop should be combined with the existing rule-checking code above, looping over all classes returned by mro() and also checking inverse rules there (which the S1 loop does not do).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
ProjectQ-Framework__ProjectQ__151 | ProjectQ-Framework/ProjectQ | 151 | defect | cec38e319de23774200ef644a9846757f8f7b63f | 44fb4f6d894a9d85c14c6d7c1ce6eeb9a89499d2 | Decompose multi-controlled gates into single controlled gates | * Decomposes multi-controlled gates into single controlled gates
* Uses (n-1) ancilla qubits and 2 * (n-1) Toffoli gates
* Note: We should maybe later separate this rule from the others. It should only be used for hardware, e.g. the IBM setup. There it would make sense to have a first `FilterEngine` which sorts out a... | diff --git a/projectq/setups/decompositions/__init__.py b/projectq/setups/decompositions/__init__.py
index cabad432d..aab50956e 100755
--- a/projectq/setups/decompositions/__init__.py
+++ b/projectq/setups/decompositions/__init__.py
@@ -14,6 +14,7 @@
from . import (arb1qubit2rzandry,
crz2cxandrz,
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test's hardcoded list of 16 binary state strings could be replaced by `for fstate in range(16)` passing `format(fstate,'04b')` to get_amplitude.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProjectQ-Framework__ProjectQ__185 | ProjectQ-Framework/ProjectQ | 185 | defect | c703417beb3c97f73514d6f39320251a1c7dadab | 21d913f769d096f83cfe624f5266663c1d29331d | new square root X gate gate and square root Swap gate | sqrt(X) gate, sqrt(Swap) gates and their inverse are likely frequently used gates:
[https://en.wikipedia.org/wiki/Quantum_gate](https://en.wikipedia.org/wiki/Quantum_gate)
In my recent project on quantum circuit optimization, I came across these gates.
Also, I added a new example of quantum gate zoo by stacking ... | diff --git a/examples/gate_zoo.py b/examples/gate_zoo.py
new file mode 100644
index 000000000..54e4b9df2
--- /dev/null
+++ b/examples/gate_zoo.py
@@ -0,0 +1,83 @@
+import os
+import sys
+
+import projectq.setups.default
+from projectq import MainEngine
+from projectq.backends import CircuitDrawer
+from projectq.ops imp... | 13 | 13 | 4 | [{"id": "G0", "claim": "The SqX gate class should be given a longer, more readable name such as SqrtX since it is the square root of X.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The named daggered-gate aliases SqXdag/SqXdagger (and likewise... | null |
ProjectQ-Framework__ProjectQ__222 | ProjectQ-Framework/ProjectQ | 222 | defect | 539b3bfb076f7dd6e409901fe3d55b7cc18ac4ee | 0a16fa0072f3fd3619b44a19eccb9c2ce2716778 | Option to allocate qubits at 0 when drawing circuits. | This PR adds an option to settings.json which forces qubit allocation to happen at x=0 when drawing circuits. | diff --git a/projectq/backends/_circuits/_to_latex.py b/projectq/backends/_circuits/_to_latex.py
index 133840797..6760fb394 100755
--- a/projectq/backends/_circuits/_to_latex.py
+++ b/projectq/backends/_circuits/_to_latex.py
@@ -332,11 +332,19 @@ def to_tikz(self, line, circuit, end=None):
id_str = ""
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new 'allocate_at_zero' option should be added to the default settings with value False, so that users become aware of this new option.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ProjectQ-Framework__ProjectQ__226 | ProjectQ-Framework/ProjectQ | 226 | defect | 4bf9fd0a647d4a09eeb57f0d96a9aab54e6fda9a | e7ff1c32395460a9f5db33649c055e74119a8ae0 | Feature/mapper | * New BasicMapperEngine
* Automatic support for such BasicMappers for backends such as `Simulator`, `ClassicalSimulator`, `CommandPrinter`, and `ResourceCounter`
* Added mapper attribute to `MainEngine`
* Fix registering measurements in `ResourceCounter` and added `depth_of_dag` feature
* Pep8 | diff --git a/projectq/backends/_ibm/_ibm_test.py b/projectq/backends/_ibm/_ibm_test.py
index b69aaab46..3d499ec89 100755
--- a/projectq/backends/_ibm/_ibm_test.py
+++ b/projectq/backends/_ibm/_ibm_test.py
@@ -26,8 +26,9 @@
IBMCNOTMapper,
DummyEngine,
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The LogicalQubitIDTag class should be defined somewhere else than projectq.cengines._basicmapper, e.g. in the types (qubit) module.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ResourceCounter property should not be call... | null |
ProjectQ-Framework__ProjectQ__237 | ProjectQ-Framework/ProjectQ | 237 | defect | e142a99f6286abc80c720fbd56bfa58e2c85b2cb | 0314078147f14de8614f29c536e0ae3b68e9b558 | Add CZ gate | Makes things more interesting with the new setups.
Decompositions for CZ gates are not yet optimized, i.e. it first compiles to CNOTs and then from CNOTS to CZ but it is a start. | diff --git a/docs/projectq.cengines.rst b/docs/projectq.cengines.rst
index f0f66c947..9cfef89c4 100755
--- a/docs/projectq.cengines.rst
+++ b/docs/projectq.cengines.rst
@@ -4,20 +4,23 @@ cengines
The ProjectQ compiler engines package.
.. autosummary::
+ projectq.cengines.AutoReplacer
projectq.cengines.BasicEngine... | 2 | 2 | 0 | [{"id": "G0", "claim": "A blank line should be added between the _decompose_cnot and _recognize_cnot function definitions in projectq/setups/decompositions/cnot2cz.py.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The author should run pep8 and... | null |
ProjectQ-Framework__ProjectQ__238 | ProjectQ-Framework/ProjectQ | 238 | defect | fc7b683eaca25a6c5f9b0155ac4d1ae25d4ebefe | 8ff1865bd5ea87f273d30d34f554b1082df961cd | Allow arbitrary backend qubit orderings in GridMapper | Potentially breaking changes (does not affect master branch):
* self.current_mapping is now a property (all ProjectQ mappers are adapted) | diff --git a/projectq/backends/_sim/_simulator_test.py b/projectq/backends/_sim/_simulator_test.py
index f2b1a4dca..19c46eb15 100755
--- a/projectq/backends/_sim/_simulator_test.py
+++ b/projectq/backends/_sim/_simulator_test.py
@@ -87,7 +87,9 @@ def receive(self, command_list):
if qubit.id... | 2 | 1 | 0 | [{"id": "G0", "claim": "The current_mapping docstring should read 'value is backend qubit id' instead of the grammatically wrong 'value are backend qubit ids'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In __init__ the line self._current_row_m... | null |
ProjectQ-Framework__ProjectQ__241 | ProjectQ-Framework/ProjectQ | 241 | defect | 66bf23511f8017a7b9e5ca192f09647ad3507646 | 613394e7effcb637c011ae3764462bd5caefe30a | RevKit interface (II) | I propose to merge the RevKit feature branch into develop. The tests are running with 100% coverage, the code is documented, and there are two examples. I am happy to add more functionality in the future.
This integration is much simpler than the first approach of integrating RevKit, since it is based on a lightweig... | diff --git a/.travis.yml b/.travis.yml
index 4c1d7d9a6..89700c84f 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,28 +7,28 @@ matrix:
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
- packages: ['gcc-4.9', 'g++-4.9']
+ packages: ['gcc-4.9', 'g++-4.9', 'gcc-7', 'g++-7']
env: CC... | 1 | 1 | 0 | [{"id": "G0", "claim": "Tests should allocate qubits with main_engine.allocate_qubit() instead of explicitly constructing Qubit objects, adapting the expected command counts accordingly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProjectQ-Framework__ProjectQ__260 | ProjectQ-Framework/ProjectQ | 260 | defect | 867e68ec22e54a3e14a050f30abf61930b9da0f0 | 53639e742245869e81cbfc575f1a5c7825682ba7 | Phase Estimation as a Gate in ops | Dears
As commented in #249 I created a new pull request including Phase Estimation as a new Gate in ops.
@thomashaener , @damiansteiger
Thanks | diff --git a/docs/projectq.ops.rst b/docs/projectq.ops.rst
index 8934dd68c..35f07f245 100755
--- a/docs/projectq.ops.rst
+++ b/docs/projectq.ops.rst
@@ -52,6 +52,7 @@ The operations collection consists of various default gates and is a work-in-pro
projectq.ops.UniformlyControlledRy
projectq.ops.UniformlyControlledR... | 7 | 7 | 4 | [{"id": "G0", "claim": "The phase-estimation implementation should be moved out of the gate's custom `__or__` into a decomposition rule (implementing only coherent phase estimation in this PR).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "QPE should su... | null |
ProjectQ-Framework__ProjectQ__288 | ProjectQ-Framework/ProjectQ | 288 | defect | a87039e97825da41e9edd73f8cd6c48ad6868e56 | a986845c9b52e9bfc1f04ea735213b89ccafea54 | Implement MatrixGate and simplify __eq__ in BasicGate to improve performance | Addresses #282 by implementing a MatrixGate base class for gates that are defined via their matrix (similar to how, e.g., RotationGate captures gates defined via an angle).
Specifically this PR does:
* Simplify `__eq__()` in `BasicGate` to only do class/type comparison
* Disallow the usage of `.matrix` in `Basis... | diff --git a/docs/projectq.ops.rst b/docs/projectq.ops.rst
index 8934dd68c..8fbe2e287 100755
--- a/docs/projectq.ops.rst
+++ b/docs/projectq.ops.rst
@@ -6,6 +6,7 @@ The operations collection consists of various default gates and is a work-in-pro
.. autosummary::
projectq.ops.BasicGate
+ projectq.ops.MatrixGate
p... | 8 | 8 | 3 | [{"id": "G0", "claim": "BasicGate.__eq__ as implemented returns False for MatrixGate([[0,1],[1,0]]) == XGate, i.e. a MatrixGate is not equal to an equivalent gate of another class.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "MatrixGate, now an of... | null |
ProjectQ-Framework__ProjectQ__289 | ProjectQ-Framework/ProjectQ | 289 | defect | e5cc9885ce0bede6187191ed0cfe5be76bf868af | 6aab84e281cbcb77526dfe1a181e3ac1a0391b75 | Add a convenient state preparation for computational basis states | One thing that is great about ProjectQ is that it has many convenience functions and gates already built in. One thing that I was missing was an easy way to prepare computational basis states.
Inspired by #279 this PR adds a simple BasisState state preparation gate that can be feed an array of 0s and 1s and prepares... | diff --git a/docs/projectq.ops.rst b/docs/projectq.ops.rst
index 8f8d4cceb..8934dd68c 100755
--- a/docs/projectq.ops.rst
+++ b/docs/projectq.ops.rst
@@ -52,6 +52,7 @@ The operations collection consists of various default gates and is a work-in-pro
projectq.ops.UniformlyControlledRy
projectq.ops.UniformlyControlledR... | 14 | 14 | 3 | [{"id": "G0", "claim": "The gate should be renamed from BasisState to something like FlipBits to make clear it is usable beyond preparing basis states.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FlipBits should support integers, strings, and lists of... | null |
ProjectQ-Framework__ProjectQ__327 | ProjectQ-Framework/ProjectQ | 327 | defect | 3ac3c2c73519391c528cb32a41db92dd9eafbace | 17f7fe39a5419b6788e89f68e9af3eaaf0f4c4ab | Amplitude Amplification algorithm as a Gate in ops | Dear friends,
Following the same path I did for Phase Estimation, I would like to add the Amplitude Amplification algorithm as a gate in ops.
Any comment will be welcome.
Thanks | diff --git a/docs/projectq.ops.rst b/docs/projectq.ops.rst
index 58d66ee16..6b9ec5936 100755
--- a/docs/projectq.ops.rst
+++ b/docs/projectq.ops.rst
@@ -55,6 +55,7 @@ The operations collection consists of various default gates and is a work-in-pro
projectq.ops.StatePreparation
projectq.ops.QPE
projectq.ops.FlipBi... | 9 | 9 | 2 | [{"id": "G0", "claim": "The auxiliary qubit in the QAA decomposition should not be named 'control' but 'ancilla' (e.g. qaa_ancilla), as in the phase estimation case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable 'Orcl' should... | null |
ProjectQ-Framework__ProjectQ__330 | ProjectQ-Framework/ProjectQ | 330 | defect | f3582b7456d2ef860d810bd2ac7a272146467b18 | 743954893552c6540bc550a5fce6891604b956f9 | 3 additional 2-qubit gates | For convenience, these two-qubit rotation gates might be added to the gate set:
Two-qubit X rotation exp(-i/2 \theta XX)
Two-qubit Y rotation exp(-i/2 \theta YY)
Two-qubit Z rotation exp(-i/2 \theta ZZ) | diff --git a/projectq/backends/_resource_test.py b/projectq/backends/_resource_test.py
index 664b687ad..cf7122c01 100755
--- a/projectq/backends/_resource_test.py
+++ b/projectq/backends/_resource_test.py
@@ -20,7 +20,7 @@
from projectq.cengines import DummyEngine, MainEngine, NotYetMeasuredError
from projectq.meta... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks whether the same result could be achieved with `All(Rx(theta)) | qureg` — i.e. whether the new 2-qubit gates are needed or equivalent to existing primitives.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "Restore th... | null |
ProjectQ-Framework__ProjectQ__334 | ProjectQ-Framework/ProjectQ | 334 | defect | 44ba35baf84b08741c51c5d96460df4d0a802d31 | 490687c416d124f004832b41a109e3d5431cdbfe | Allow selection of drawing order in CircuitDrawer (solves #333) | Included the possibility to draw the gates in the order they were added to the circuit.
Closes #333 | diff --git a/projectq/backends/_circuits/_drawer.py b/projectq/backends/_circuits/_drawer.py
index 269f592a2..ff8424fb6 100755
--- a/projectq/backends/_circuits/_drawer.py
+++ b/projectq/backends/_circuits/_drawer.py
@@ -153,6 +153,8 @@ def __init__(self, accept_input=False, default_measure=0):
self._free_line... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new parameter and attribute names (`paler*`, `command_order`, `_command_order`, `one_gate_at_a_time`, `sequential_gates`) are unclear and should be renamed to more explicit ones such as `drawing_order`/`_drawing_order` and `draw_gates_in_parallel`, including in the test doubles.", "category"... | null |
ProjectQ-Framework__ProjectQ__405 | ProjectQ-Framework/ProjectQ | 405 | defect | a0a41fe65a8ceeca6e67673d3caea8b78a428507 | 0a6fe9cfeae6a511410e6e42311f0b558d23bcfd | Add checks to avoid too many compiler engines in the engine list | Closes #344 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c692911e1..e6c1aca4b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Deprecated
### Fixed
+
+- Prevent infinite recursion errors when too many compiler engi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The n_engines check and RuntimeError should happen before the linked-list assignments, since raising after them leaves the engine list mutated and the error is not caught anywhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ProjectQ-Framework__ProjectQ__428 | ProjectQ-Framework/ProjectQ | 428 | defect | 0d32c1610ba4e9aefd7f19eb52dadb4fbe5f9005 | 41fe5c7d7e602574257b17d8f084f7c161f2130f | Add support for dynamic backends for IonQ | Using the backends endpoint, add available backends to the list. | diff --git a/projectq/backends/_ionq/_ionq_http_client.py b/projectq/backends/_ionq/_ionq_http_client.py
index 2cb181158..5909dd5f1 100644
--- a/projectq/backends/_ionq/_ionq_http_client.py
+++ b/projectq/backends/_ionq/_ionq_http_client.py
@@ -47,6 +47,11 @@ def __init__(self, verbose=False):
def update_devices... | 3 | 3 | 0 | [{"id": "G0", "claim": "The unused `verbose` argument of the new `IonQ.show_devices` method should be removed since the method can rely on the class attribute.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add a new entr... | null |
ProjectQ-Framework__ProjectQ__44 | ProjectQ-Framework/ProjectQ | 44 | defect | bf9cc22d7de6fa81ecba7066c178b775441eb29a | 987450ced566856251de55b8d5ed9758baafb393 | Fix BasicQubit.__hash__ not satisfying a==b implies hash(a)==hash(b) | Fixes https://github.com/ProjectQ-Framework/ProjectQ/issues/43 | diff --git a/projectq/types/_qubit.py b/projectq/types/_qubit.py
index 153c367fc..9caa26709 100755
--- a/projectq/types/_qubit.py
+++ b/projectq/types/_qubit.py
@@ -83,7 +83,10 @@ def __eq__(self, other):
Args:
other (BasicQubit): BasicQubit to which to compare this one
"""
- retur... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rewritten test must keep the explanatory comment that the weakref.WeakSet in projectq.cengines._main.py depends on this hash behaviour, which the pull request rewrite of test_basic_qubit_hash dropped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
ProjectQ-Framework__ProjectQ__449 | ProjectQ-Framework/ProjectQ | 449 | defect | b768038fe882fcdf9deb246a2cdf959acf493650 | c159690543431f5ae271704001b42d41262500e7 | Context Manager: with flushing(MainEngine()) as eng: | Simplify the creation, use, and flushing of any Engine using a Python context manager.
When exiting the `with` block, the engine is _automatically_ flushed.
Just like auto-closing of files:
```
with open("my_file.txt") as in_file:
print(in_file.read())
```
Modeled after https://docs.python.org/3/library... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8839518a..e8159eaa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Ve... | 4 | 4 | 1 | [{"id": "G0", "claim": "The flushing() function is missing a docstring explaining what it does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The argument of flushing() should be named `engine` instead of `thing` so users can tell a compiler engi... | null |
ProjectQ-Framework__ProjectQ__68 | ProjectQ-Framework/ProjectQ | 68 | defect | f76ab048a3ec1ab26c6869ad113a7a2069a29c0b | 9c9f49d32ac0007e8f055489135e497eea8a8373 | Add expectation value function to simulator | Enables the simulator to calculate expectation values w.r.t. `QubitOperator`. | diff --git a/projectq/backends/_sim/_cppkernels/fusion.hpp b/projectq/backends/_sim/_cppkernels/fusion.hpp
index 48365729d..326d11019 100755
--- a/projectq/backends/_sim/_cppkernels/fusion.hpp
+++ b/projectq/backends/_sim/_cppkernels/fusion.hpp
@@ -43,7 +43,7 @@ class Fusion{
using Matrix = std::vector<std::vector... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer questions the purpose of the test's redundant lines that double and then halve op_sum ((op_sum + op_sum) / 2. == op_sum), implying they serve no purpose and should be removed or justified.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProjectQ-Framework__ProjectQ__70 | ProjectQ-Framework/ProjectQ | 70 | defect | f76ab048a3ec1ab26c6869ad113a7a2069a29c0b | 7a0138beedb7ad3344ddb7a38240526a9c71ea01 | Feature/TimeEvolutionGate | *) Added a gate (TimeEvolution) to apply exp(-i * t * hamiltonian), where the hamiltonian is given as a QubitOperator object.
*) Decomposition rule for the TimeEvolution gate (QubitOperator object) if terms commute. | diff --git a/.travis.yml b/.travis.yml
index 0212e3eee..ad9276d4e 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,8 @@ matrix:
install:
- if [ "${PYTHON:0:1}" = "3" ]; then export PY=3; fi
+ - pip$PY install --upgrade pip setuptools wheel
+ - pip$PY install --only-binary=numpy,scipy numpy scipy
- pip... | 2 | 2 | 0 | [{"id": "G0", "claim": "Simplify _recognize_time_evolution_individual_terms to `return len(cmd.gate.hamiltonian.terms) == 1` instead of the if/else that returns True or False.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _decompose_time_evo... | null |
ProjectQ-Framework__ProjectQ__72 | ProjectQ-Framework/ProjectQ | 72 | defect | efb7d1c6d4335fb752b31d20b77f6ab45d1e6c27 | 1841764ab9f018d050a36b6e20b63c19d03ef728 | Add a first version of time evolution emulation | This is the first version of the time evolution emulation feature of the simulator. It works but uses a very loose estimate to rescale the operator H when calculating exp(H). This results in long runtimes for operators featuring a large 1-norm. Later: Include tighter bounds by Al-Mohy & Higham, 2011. | diff --git a/.travis.yml b/.travis.yml
index ad9276d4e..859d9c93f 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,7 +41,7 @@ install:
- pip$PY install -e .
# command to run tests
-script: pytest projectq --cov projectq
+script: export OMP_NUM_THREADS=1 && pytest projectq --cov projectq
after_success:
- co... | 2 | 1 | 0 | [{"id": "G0", "claim": "The emulate_time_evolution docstring should mention that the function is general and allows the Hamiltonian to be a sum of non-commuting terms.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The general (non-commuting-term)... | null |
ProjectQ-Framework__ProjectQ__95 | ProjectQ-Framework/ProjectQ | 95 | defect | 3c100525676169829cadf208387eb0133f83f282 | ce76fc590ef6a95be84e46bae4e0d40ec404de59 | Prevent Qubit.__del__ from running more than once | Currently, when the call to `engine.deallocate_qubit` fails, the `self.id = -1` line never runs. The failure can also resurrect the qubit object instance, so its del method gets scheduled to run again, and so an infinite error text loop closes.
Alternatively, the loop can be closed by "helpful" code triggered by the... | diff --git a/projectq/backends/_sim/_simulator_test.py b/projectq/backends/_sim/_simulator_test.py
index 5b90ff803..e398ce6e3 100755
--- a/projectq/backends/_sim/_simulator_test.py
+++ b/projectq/backends/_sim/_simulator_test.py
@@ -303,7 +303,8 @@ def test_simulator_no_uncompute_exception(sim):
H | qubit
wit... | 2 | 2 | 0 | [{"id": "G0", "claim": "The __init__ override the PR adds to Qubit (which only calls BasicQubit.__init__) is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `if self.id == -1` guard in Qubit.__del__ dupli... | null |
ProtonMail__go-srp__12 | ProtonMail/go-srp | 12 | defect | c5915ebb0c5cc050f2c8d391d4dfd6d068c5f5ca | e1a6d38389a6a576ed45cc0ff00fbf089bb8c31f | Replace big.Int with constant-time safenum.Nat | This pull requests replaces the use of big.Int with safenum.Nat to prevent the use of side-channel attacks to extract secrets from the execution of integer operations. | diff --git a/go.mod b/go.mod
index 521fdba..85236f6 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,10 @@ go 1.12
require (
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7
+ github.com/cronokirby/safenum v0.29.0
github.com/jameskeane/bcrypt v0.0.0-20120420032655-c3cd44c1e20f
+ github.com/pkg/error... | 2 | 2 | 0 | [{"id": "G0", "claim": "The go.sum additions should be cleaned up (via go mod tidy) instead of accumulating stale dependency entries.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Version constant should be 0.0.1, treating the previous 'und... | null |
ProtonMail__go-srp__6 | ProtonMail/go-srp | 6 | defect | fe3d8251777146f3cf25d74ca55828efe4447dff | 6f36f7d908f0aa7724b90f30c2e3d0f192b25b4c | Add server functionality | Implement SRP server functionality for better E2E testing | diff --git a/server.go b/server.go
new file mode 100644
index 0000000..d000af5
--- /dev/null
+++ b/server.go
@@ -0,0 +1,141 @@
+package srp
+
+import (
+ "bytes"
+ "crypto/subtle"
+ "encoding/base64"
+ "errors"
+ "math/big"
+
+ "github.com/ProtonMail/go-crypto/rand"
+)
+
+
+// Server stores the internal state for the v... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks why NewServer's retry loop checks the random secret against bitLength*2, questioning whether it is meant to check that the secret is at least bitLength bits long.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
ProvableHQ__leo__1444 | ProvableHQ/leo | 1,444 | defect | 5e6aaaf57f339f694814b4e1caf2d35387c44720 | e674ce3f5d7b0479768c9813ba30a007f16e36bb | Unspecified size array definition with parenthesis + bugs | Closes #1445.
Closes #1354.
Closes #1443.
## Motivation
Initial implementation of arrays with unspecified size didn't cover case with parenthesis. This PR reimplements ArrayDimensions and improves canonicalization to standardize all arrays before ASG.
## Test Plan
Added tests for all mentioned issues are ... | diff --git a/Cargo.lock b/Cargo.lock
index ddf254dc5e2..68e36c24886 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1231,6 +1231,7 @@ dependencies = [
"criterion",
"indexmap",
"leo-ast",
+ "leo-ast-passes",
"leo-errors",
"leo-parser",
"num-bigint",
diff --git a/asg/Cargo.toml b/asg/Cargo.toml
index 37a691a34ea... | 8 | 7 | 0 | [{"id": "G0", "claim": "The two match arms in ArrayAccess::get_type should be merged into one or-pattern.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parsing strings to integers in asg/src/scope.rs is the wrong architectural level; the AST sh... | null |
ProvableHQ__leo__1834 | ProvableHQ/leo | 1,834 | defect | 2d365c49b5ce94c6043a727d4e4d642fb0f8cfab | ff46c98b9ec64e4b73de689656db04a09cedb39c | [Docs] update test framework docs | Updates the readme found in the `tests` directory. As well as adds a comprehensive overview of the test framework in the `tests/test-framework` directory readme. | diff --git a/tests/README.md b/tests/README.md
index 93aeb7f3189..33a53323584 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -45,27 +45,32 @@ generated instead. A PR should contain changes to expectations as well as to tes
Here is the list of all possible configuration options for compiler and parser tests.
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The ParseStatement doc line should say the file is consumed till a blank line rather than till a new line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ParseExpression doc line should say 'to see if each line contains... | null |
ProvableHQ__leo__28081 | ProvableHQ/leo | 28,081 | defect | f82294b49a35e796759c4ff3802b9274ac0afb98 | e9bb415c38a865b1b05f5c6775a58affdfef2a4c | [Fix] Network retrieval refactor | Resolves #27977 and #27982.
Details:
- Modularizes network retrievals. This way we are not maintaining two separate components for network retrievals, as previously we had both `leo query` and `retriever`.
- Previously network requests yielding responses like `Too Many Requests! Wait for 355256s` were being erron... | diff --git a/compiler/compiler/tests/compile.rs b/compiler/compiler/tests/compile.rs
index be8b448c409..682a7269415 100644
--- a/compiler/compiler/tests/compile.rs
+++ b/compiler/compiler/tests/compile.rs
@@ -140,8 +140,9 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
h... | 3 | 1 | 0 | [{"id": "G0", "claim": "The help message added to `snarkvm_parsing_error` (\"Make sure that you are using the correct `--network` and `--endpoint` options\") may not always resolve the issue, so its universal applicability is questioned.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ... | null |
ProvableHQ__leo__28945 | ProvableHQ/leo | 28,945 | defect | d83763329b97e34f8f4a80f8654923c62215af0f | c908e17b20454ce01b6d676ffacf6c8820484073 | [Feature] CLI improvements. | This PR,
- uses a default endpoint for `leo build` allowing for network dependencies to be retrieved without needing to specify a network.
- sanitizes endpoints before they are used in `snarkvm::Query`. A test has been added verifying that this works, closing #28942
- improves an error message, closing #28944
*... | diff --git a/Cargo.toml b/Cargo.toml
index 9fc3d2c9695..1cda98cd039 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -285,6 +285,9 @@ workspace = true
[dependencies.rand_chacha]
workspace = true
+[dependencies.regex]
+workspace = true
+
[dependencies.rpassword]
version = "7.4.0"
diff --git a/compiler/compiler/Cargo.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rewritten program-name-mismatch error is still uninformative and does not close the issue; the file paths of the mismatching instances should be logged.", "category": "ux", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProvableHQ__leo__29083 | ProvableHQ/leo | 29,083 | defect | 02ae9fd98eb4433b48632f82fb7c284fe8ecd30f | e4b7934d79deefd3f698dcf17cd0544d2c9704f9 | feat(leo-fmt): add formatter crate scaffolding | This PR introduces the `leo-fmt` crate, the foundation for `leo fmt` command support.
Adds:
- `Output` struct for managing indented output with automatic whitespace handling
- `format_source()` and `check_formatted()` public API (stub implementation for now)
- Test harness using rustfmt-style source/target file p... | diff --git a/Cargo.lock b/Cargo.lock
index 3ddb02d7bbe..4f490d897c0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1880,6 +1880,17 @@ dependencies = [
"thiserror 1.0.69",
]
+[[package]]
+name = "leo-fmt"
+version = "3.4.0"
+dependencies = [
+ "anyhow",
+ "leo-errors",
+ "leo-parser-lossless",
+ "similar",
+ "walkdir... | 3 | 3 | 0 | [{"id": "G0", "claim": "The trailing-newline handling in `format_source` (a while-loop popping extra newlines plus a conditional push) might be simpler as `trim_end` followed by a single `push('\\n')`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
ProvableHQ__leo__29181 | ProvableHQ/leo | 29,181 | defect | 004c56c0e88fab3d0065a5f5fe754be3230444df | 234fce354976536105ecbe6dca4f4de16d7b0cc6 | feat(test): skip proof generation in `leo test` by default | Add `skip_proving` flag to `run::Config` and wire it through `run_with_ledger()`. When enabled, deploy/execute/fee transactions use placeholder VK/certificates and skip circuit synthesis, relying on snarkVM's `dev_skip_checks` to accept proof-less transactions.
- Add `deploy_without_proof()` and `execute_without_pro... | diff --git a/crates/compiler/src/run.rs b/crates/compiler/src/run.rs
index 05a46c4462e..878a60838c5 100644
--- a/crates/compiler/src/run.rs
+++ b/crates/compiler/src/run.rs
@@ -39,18 +39,25 @@ use snarkvm::{
prelude::{
Address,
Block,
+ Certificate,
ConsensusVersion,
+ Depl... | 3 | 1 | 0 | [{"id": "G0", "claim": "It would be nice to set the default value of the `prove` flag explicitly to `false` even though clap likely enforces it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to get a feel of what the speed up actually i... | null |
ProvableHQ__leo__29194 | ProvableHQ/leo | 29,194 | defect | 28657885967c693891336250ec83c52d8fed82e4 | be92a268200d88bc137cb7809adf40e949116e6b | [Fix] Harden leo-fmt for 4.0 syntax validation and integrate CI | ## Summary
Hardens `leo-fmt` and integrates it into CI ahead of the workspace-wide reformat.
- Fixes formatter/parser edge cases found while validating against the workspace corpus
- Adds CI step for formatter fixture validation (source/target AST equivalence and type checking)
- Adds test infrastructure for workspac... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 9799a328c1e..51f9d9ad884 100755
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -266,6 +266,13 @@ jobs:
name: Check style
no_output_timeout: 35m
command: cargo +nightly fmt --all -- --check
+ - run:
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leo-fmt validation CI step should use `cargo nextest` instead of `cargo test`, just like the other CI steps.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProvableHQ__snarkOS__2536 | ProvableHQ/snarkOS | 2,536 | defect | d70539eb3b15d68978736d7106c645f082050d6c | 4643fc380d1c0d92e90750f41a9b4281111c7a21 | feat: support simple_node on multiple IP addresses | Support running on multiple hosts.
Usage:
Create a file with all peers (one per line) in this form: 0=192.168.1.176:5000 (node_id=ip:port). You can check the provided `peers.txt`.
Pass this filename as extra parameter on the command line:
`cargo +stable r --release --example simple_node bft 0 4 peers.txt`
| diff --git a/node/narwhal/examples/peers.txt b/node/narwhal/examples/peers.txt
new file mode 100644
index 00000000000..3e2a69ee5f2
--- /dev/null
+++ b/node/narwhal/examples/peers.txt
@@ -0,0 +1,4 @@
+0=192.168.1.176:5000
+1=192.168.1.40:5001
+2=192.168.1.173:5002
+3=192.168.1.148:5003
diff --git a/node/narwhal/examples... | 8 | 8 | 1 | [{"id": "G0", "claim": "The error message for a node ID missing from the peers map should say 'Invalid node ID' rather than the misleading 'Bad IP Address'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_peers should return parsed SocketAddr v... | null |
ProvableHQ__snarkOS__2722 | ProvableHQ/snarkOS | 2,722 | defect | c31eb116aa0f9b564dc091c8629432e3ede655a3 | 6e0b6d7708fa587b80bb7757b52a9ed502316efb | Automatic tests upgrade | <!-- Thank you for filing a PR! Help us understand by explaining your changes. Happy contributing! -->
## Motivation
`cargo test` fails in the node/narwhal package
## Test Plan
Changes are mostly in test code; the one change in sync skips sending of a message the recipient doesn't handle.
## Related PRs
... | diff --git a/node/narwhal/src/primary.rs b/node/narwhal/src/primary.rs
index f31b58ff82..c9634d38cd 100644
--- a/node/narwhal/src/primary.rs
+++ b/node/narwhal/src/primary.rs
@@ -1411,9 +1411,11 @@ mod tests {
// Create a valid proposal with an author that isn't the primary.
let round = 1;
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move TranslucentLedgerService out of tests/common and under the ledger-service crate behind a `cfg(feature = \"test\")` guard with a `test = []` feature flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the trailing `re... | null |
ProvableHQ__snarkOS__3044 | ProvableHQ/snarkOS | 3,044 | defect | 1d942fdc3924b401f1381f73624301b139df3067 | c66f491dd73d5654b5cfda28b89cc79e7b5b31b1 | Customizable ledger location | Supersedes https://github.com/AleoHQ/snarkOS/pull/2872.
Filing as a draft, as it depends on https://github.com/AleoHQ/snarkVM/pull/2326 and will fail to compile without it in place. | diff --git a/.integration/Cargo.toml b/.integration/Cargo.toml
index 77d6d78dec..ee5918a026 100644
--- a/.integration/Cargo.toml
+++ b/.integration/Cargo.toml
@@ -16,6 +16,9 @@ categories = [ "cryptography", "operating-systems" ]
license = "Apache-2.0"
edition = "2021"
+[dev-dependencies.aleo-std]
+workspace = true... | 1 | 1 | 0 | [{"id": "G0", "claim": "Passing storage_mode through to load_or_compute_genesis is unnecessary because ConsensusMemory makes any StorageMode yield the same result.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ProvableHQ__snarkOS__3132 | ProvableHQ/snarkOS | 3,132 | defect | 9dbb8d70e3db7007504dddd76f8e234a7f009598 | da475f7e91217341594359ef0afbc5fa1e337c5b | [Feature] Add --no-dev-txs flag | ## Motivation
Adds a `--no-dev-txs` flag which determines if node 0 generates transactions if the `--dev` flag is enabled.
## Test Plan
Manually ran the `devnet.sh` script with and without the `--no-dev-txs` flag to observe correct behaviour. | diff --git a/.devnet/start.sh b/.devnet/start.sh
index f61cea6af0..5214836d71 100755
--- a/.devnet/start.sh
+++ b/.devnet/start.sh
@@ -37,7 +37,7 @@ start_snarkos_in_tmux() {
tmux new-session -d -s snarkos-session
# Send the snarkOS start command to the tmux session with the NODE_ID
- tmux send-keys -t "... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new dev-traffic flag should be true by default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The flag should be named no-dev-txs instead of dev-traffic, since traffic implies network traffic among clients/validators.", "cate... | null |
ProvableHQ__snarkOS__3135 | ProvableHQ/snarkOS | 3,135 | defect | 9dbb8d70e3db7007504dddd76f8e234a7f009598 | 60289d4098968699aaf67f432260eaa220599193 | Unify pending object and clear expired items from pending queue | <!-- Thank you for filing a PR! Help us understand by explaining your changes. Happy contributing! -->
## Motivation
This PR unifies the `pending` and `callbacks` objects in the `Pending` struct for better tracking/access.
This PR also adds additional logic to properly clear the items from the `Pending` queue.... | diff --git a/node/bft/src/helpers/pending.rs b/node/bft/src/helpers/pending.rs
index 7c30e31f97..5a42a5cc17 100644
--- a/node/bft/src/helpers/pending.rs
+++ b/node/bft/src/helpers/pending.rs
@@ -28,7 +28,9 @@ pub const NUM_REDUNDANT_REQUESTS: usize = 2;
#[cfg(test)]
pub const NUM_REDUNDANT_REQUESTS: usize = 10;
-co... | 6 | 3 | 0 | [{"id": "G0", "claim": "The callbacks lock guard in clear_expired_callbacks_for_item should be obtained just once and bound before clearing the expired callbacks, so it is applicable for both blocks.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Si... | null |
ProvableHQ__snarkOS__3267 | ProvableHQ/snarkOS | 3,267 | defect | 01ea4768ed62d3f1933745568f023fadcf15cdf1 | 9770dff803f2e4248b0a3e5e8c6b59b2ec166bff | Update for ARC-41: handle credits.aleo changes | This PR should be merged after the snarkVM ARC-41 changes: https://github.com/AleoNet/snarkVM/pull/2453
## Summary from snarkVM
Currently, validators will need to have 10M credits in order to self.bond as a validator. The problem is that most or all of these validators won't actually have 10M credits. To bring Al... | diff --git a/cli/src/commands/start.rs b/cli/src/commands/start.rs
index 2cfd66d3109..1417db97a80 100644
--- a/cli/src/commands/start.rs
+++ b/cli/src/commands/start.rs
@@ -37,7 +37,7 @@ use clap::Parser;
use colored::Colorize;
use core::str::FromStr;
use indexmap::IndexMap;
-use rand::SeedableRng;
+use rand::{Rng, ... | 2 | 1 | 1 | [{"id": "G0", "claim": "More changes are required, as surfaced by clippy in the linked commit b97c3f7.", "category": "maintainability", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The genesis preimage extends hardcode mainnet verifier metadata for every network, so they need to... | null |
ProvableHQ__snarkOS__3306 | ProvableHQ/snarkOS | 3,306 | defect | 81ca9cf6f923dc8955347b0993beebeaa17161fc | 579507e56a7d4b74f4fe9a599675c5e8d8207071 | Adds a restrictions ID check into handshake protocols | ## Motivation
This PR introduces a restrictions ID check into the handshake protocols.
When two nodes are handshaking on the Router or Gateway level, it is expected that they transmit in their ChallengeResponse messages a copy of their current restrictions ID to their peer, who subsequently checks and enforces th... | diff --git a/Cargo.lock b/Cargo.lock
index d069cedead..d200483e60 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3300,7 +3300,7 @@ dependencies = [
[[package]]
name = "snarkvm"
version = "0.16.19"
-source = "git+https://github.com/AleoNet/snarkVM.git?rev=74a437897#74a437897e80514cb88e52a3033df5f69181aed8"
+source = "g... | 2 | 1 | 0 | [{"id": "G0", "claim": "The handshake method should take an Option for the restrictions ID instead of having provers send a dummy zero value, since the extra data is unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ProverLedgerService::latest_... | null |
ProvableHQ__snarkOS__3307 | ProvableHQ/snarkOS | 3,307 | defect | 81ca9cf6f923dc8955347b0993beebeaa17161fc | 62bfb92b27b11591135c60246887b95a35d378b8 | Introduce --rotate-external-peers flag to improve bootstrap client peering | ## Motivation
Currently, the bootstrap client connections fill up too quickly, making it cumbersome for new clients/provers to join the network. By letting bootstrap clients flush their peers more frequently, new clients have an opportunity to connect.
Naming nits are welcome, we can also go for:
- `--flush-exte... | diff --git a/cli/src/commands/start.rs b/cli/src/commands/start.rs
index af6fbce79d..7c0330867f 100644
--- a/cli/src/commands/start.rs
+++ b/cli/src/commands/start.rs
@@ -105,9 +105,12 @@ pub struct Start {
/// Specify the IP address and port of the validator(s) to connect to
#[clap(default_value = "", long =... | 4 | 3 | 3 | [{"id": "G0", "claim": "The PR should also offer node operators an allowlist and denylist of peers (via config file or CLI commands), instead of only the rotate-external-peers flag, to give operators control such as denying malicious spamming peers.", "category": "design", "verdict": "opposed", "priority": "P2", "scope... | null |
ProvableHQ__snarkOS__3475 | ProvableHQ/snarkOS | 3,475 | defect | e48bc9080f6f338cef3b43b60a98f31e8fea3f3d | 7af8bbae09646b338bbfc0df8dc58c999584f112 | [Deps] Run cargo update, update the toolchain | A lockfile bump, plus an update to the toolchain, as it was done in snarkVM (1.81 > 1.83). | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 3416d12654b..983e1fd5af3 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -60,7 +60,7 @@ commands:
parameters:
cache_key:
type: string
- default: v3.0.0-rust-1.81.0-snarkos-stable-cache
+ default: v3.3.1-rus... | 9 | 8 | 5 | [{"id": "G0", "claim": "CI breaks because of the changes introduced in snarkVM#2605, which this dependency update pulls in (also encountered in local dev).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Use LATEST_MAX_CERTIFICATES at the Tcp::new ca... | null |
ProvableHQ__snarkOS__3504 | ProvableHQ/snarkOS | 3,504 | defect | 3eea16f6410d61308774a8ea6678c738fb4e0536 | ed57d9f24248f7d2a562d68a9950c65b894e4e79 | Prioritize removing clients over validators in the heartbeat logic | <!-- Thank you for filing a PR! Help us understand by explaining your changes. Happy contributing! -->
## Motivation
This pull request fixes #3479 and cleans up the heartbeat logic a little. The logic now prioritizes disconnecting nodes over validators to improve connectivity between validators and ensure new blo... | diff --git a/node/router/src/heartbeat.rs b/node/router/src/heartbeat.rs
index a1ce8296a9..6a502afb89 100644
--- a/node/router/src/heartbeat.rs
+++ b/node/router/src/heartbeat.rs
@@ -13,8 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+use core::cm... | 15 | 13 | 6 | [{"id": "G0", "claim": "The manual sort_by closure in get_removable_peers could be replaced with a sort_by_key on (is_client, Reverse(last_seen)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment of get_removable_peers may be out o... | null |
ProvableHQ__snarkOS__3543 | ProvableHQ/snarkOS | 3,543 | defect | 1b1d1a432502aecb292dd7e74f5a3830279e5a35 | 242f9a5faf481550a453663b78f3470b804054a5 | Deduplicate blocksync | <!-- Thank you for filing a PR! Help us understand by explaining your changes. Happy contributing! -->
## Motivation
There are two different code paths that perform block synchronization: one for validators, and one for clients/provers.
In the case of validators, there exist two different instances of `BlockSync... | diff --git a/Cargo.lock b/Cargo.lock
index de1e47c581..174d0ac34e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3650,6 +3650,7 @@ dependencies = [
"snarkos-node-bft-ledger-service",
"snarkos-node-bft-storage-service",
"snarkos-node-metrics",
+ "snarkos-node-sync",
"snarkvm",
"tokio",
"tracing",
diff --git a/... | 15 | 14 | 1 | [{"id": "G0", "claim": "The test helper comment should read 'Helper function' instead of 'Helperfunction'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment 'adapts a primary-worker architecture' may have meant 'adopts' and should be ... | null |
ProvableHQ__snarkOS__3596 | ProvableHQ/snarkOS | 3,596 | defect | 1debc19283f57e93693581f460db432a528f8cb9 | 845747a804a5ac42b735ec6a52c4c00ba085cb09 | [Feature] Introduce rolling Message versions | <!-- Thank you for filing a PR! Help us understand by explaining your changes. Happy contributing! -->
## Motivation
This PR updates the Message::Version used in the router to be based on a rolling migration. This allows for smoother behavior whenever there is a breaking migration that requires nodes to upgrade v... | diff --git a/Cargo.lock b/Cargo.lock
index e6f54f70ae..70e0af6b3d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3802,6 +3802,7 @@ dependencies = [
"reqwest 0.11.27",
"serde",
"snarkos-account",
+ "snarkos-node-bft-ledger-service",
"snarkos-node-metrics",
"snarkos-node-router",
"snarkos-node-router-messages",... | 2 | 2 | 1 | [{"id": "G0", "claim": "At low block heights (before ConsensusVersion::V4) the node would accept message version 17, drop to 16 at V4, and jump back to 17 at V5, which is wrong; add (V1, 16) to VERSIONS so it starts at 16.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
ProvableHQ__snarkOS__3671 | ProvableHQ/snarkOS | 3,671 | defect | 84b073779d2af4e0c9f544cd530943890bb43a05 | 460b0fad065da69c5689fb7216d97a85ba935735 | [Feat] Database checkpoints | This PR exposes the functionality introduced to snarkVM in https://github.com/ProvableHQ/snarkVM/pull/2742 via the REST API.
Creating a checkpoint at location `/home/aleo_ledger_checkpoints/1`:
```
curl -X POST http://localhost:3030/mainnet/db_backup?path=/home/aleo_ledger_checkpoints/1
```
Rolling back to (or... | diff --git a/.circleci/db_backup_ci.sh b/.circleci/db_backup_ci.sh
new file mode 100755
index 00000000000..67464ecce96
--- /dev/null
+++ b/.circleci/db_backup_ci.sh
@@ -0,0 +1,145 @@
+#!/bin/bash
+
+# Network parameters
+total_validators=4
+network_id=0
+network_name="mainnet"
+
+# Stopping conditions
+checkpoint_heigh... | 4 | 2 | 1 | [{"id": "G0", "claim": "The test should create at least two checkpoints and verify recovering from genesis to the first and from the first to the second.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The standalone .circleci/db_backup_ci.sh should be r... | null |
ProvableHQ__snarkOS__3682 | ProvableHQ/snarkOS | 3,682 | defect | 6b72a83fc2d343327d9965974bfbec7b567aa3a5 | 0b8e38828edaa25c0486a8ccc6bac753183977a6 | [Feature] Add sync_status REST endpoint | This adds a `<network>/sync_status` endpoint to the REST API. A call to it will return something like the following:
```json
~> curl http://localhost:3030/mainnet/sync_status
{
"is_synced": false,
"ledger_height": 2443,
"sync_mode": "p2p",
"cdn_height": 8167950,
}
```
`sync_mode` will switch to `p2p... | diff --git a/Cargo.lock b/Cargo.lock
index 527d116194..f1336bcd85 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -112,6 +112,21 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+[[package]]
+name = "andr... | 4 | 4 | 1 | [{"id": "G0", "claim": "The status endpoint should return is_synced, sync_mode, cdn_height (0/none when not syncing from CDN) and ledger_height so infra can monitor CDN syncing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The status payload should als... | null |
ProvableHQ__snarkOS__3767 | ProvableHQ/snarkOS | 3,767 | defect | c2a1dc0a7d18768669b532f84005d6c8bf4d018a | 2bf6d51120cf039b7ab1d5686b56cb162d0d99d6 | [Feature] Show list of peers in terminal UI | This PR makes the "Overview" page in the terminal UI (`display`) usable. It now shows the currently connected peers and information about the latest block.
### Screenshot
<img width="932" height="663" alt="Screenshot of Overview Page" src="https://github.com/user-attachments/assets/fd06739d-2a76-4814-a807-79ef713e... | diff --git a/Cargo.lock b/Cargo.lock
index f5ed7c2043..02d21c6326 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3298,9 +3298,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.29"
+version = "0.23.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2491382039b29b9b11ff0... | 3 | 2 | 1 | [{"id": "G0", "claim": "The peer-state if/else chain in draw_peer_table should be a `match peer` on the Peer enum types directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The notice about the terminal UI not starting until CDN syncing fini... | null |
ProvableHQ__snarkOS__3802 | ProvableHQ/snarkOS | 3,802 | defect | 7c3e067b6eaef36b9df95e58a00138f4f6bf18ce | e19fd73571431151bef2269167c8175ab8c07293 | [CI] Sync variance benchmark | ## New Features
* `BlockSync` now measures sync speed, which is reported in the `sync/status` endpoint and shown in the TUI.
* Measures changes in sync speed. This will help to reduce sync burstiness in the future.
* Enables measuring BFT sync speeds.
* Adds a simple benchmark for the REST API (fetching random bloc... | diff --git a/.ci/bench_bft_sync.sh b/.ci/bench_bft_sync.sh
index 3b37529bbb..66df798e78 100755
--- a/.ci/bench_bft_sync.sh
+++ b/.ci/bench_bft_sync.sh
@@ -7,19 +7,21 @@ min_height=250
num_nodes=1
# Adjust this to show more/less log messages
-log_filter="warn,snarkos_node_sync=debug"
+log_filter="info,snarkos_node_s... | 2 | 2 | 2 | [{"id": "G0", "claim": "The dashboard reports p2p-sync at ~0.2 blocks/second and bft-sync at ~50 blocks/second, and the reviewer asks whether one of the two metrics is accidentally inverted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "remove_bloc... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.