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
vanvalenlab__deepcell-tf__379
vanvalenlab/deepcell-tf
379
defect
2f58690bb0b0367622bf406d7c8d50ebec3ed359
058c24426830419710a251f89d755a6b31250393
fixed resize bug
Fixes bug that resulted in wrong shape being passed to resize. Also adds new test to check that resize works appropriately, and one to check that post-processing function runs as expected. Closes #378
diff --git a/deepcell/applications/application.py b/deepcell/applications/application.py index 857229530..816b2afcd 100644 --- a/deepcell/applications/application.py +++ b/deepcell/applications/application.py @@ -320,10 +320,10 @@ def _predict_segmentation(self, self.required_channels,...
2
1
0
[{"id": "G0", "claim": "Remove `deep_watershed` from the test suite, including the `deepcell_toolbox` import, and use a dummy post-processing function instead so the tests exercise the Application rather than `deep_watershed`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
vanvalenlab__deepcell-tf__406
vanvalenlab/deepcell-tf
406
defect
e7aafadaee2aa6f77ad14599abd1a638bb743e52
33b3f15e0b32acdbd1593623b702335a3a1860fe
random cropping for image generators
## What Adds in the option to specify a crop_size, which will be subsampled randomly from the provided image ## Why Useful data augmentation strategy that alleviates the need for us to generate overlapping crops as a preprocessing step, reducing the size of the trained NPZ as well as redundant precomputing of tran...
diff --git a/deepcell/image_generators/image_generators_test.py b/deepcell/image_generators/image_generators_test.py index c01e2b560..93e9196c2 100644 --- a/deepcell/image_generators/image_generators_test.py +++ b/deepcell/image_generators/image_generators_test.py @@ -1909,6 +1909,58 @@ def test_semantic_data_generator...
8
7
2
[{"id": "G0", "claim": "Add a comment to the overridden __init__ explaining that TensorFlow's ImageDataGenerator does not support interpolation_order and why the init is overridden.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the cropping ...
null
vanvalenlab__deepcell-tf__413
vanvalenlab/deepcell-tf
413
defect
e6d6d6b18eca5bbf2c5c44a0b3d695df4fd54470
715f5ede73abc3c189d9f92cf7497daf198c26ba
Updated multiplex app and new postprocessing function
## What * Updates the multiplex_segmentation app to support models that predict multiple distinct cellular compartments. ## Why * To enable predicting both nuclear and whole-cell signal ## TODOs: I put the new postprocessing function in here just to make it easier to review both together. Once you're both hap...
diff --git a/deepcell/applications/multiplex_segmentation.py b/deepcell/applications/multiplex_segmentation.py index 9149e8dda..c755b9e9a 100644 --- a/deepcell/applications/multiplex_segmentation.py +++ b/deepcell/applications/multiplex_segmentation.py @@ -40,6 +40,75 @@ from deepcell.model_zoo import PanopticNet ...
6
6
1
[{"id": "G0", "claim": "The docstring should note the assumed data layout: that the order of the compartments/masks in the model output is fixed (cell data first, nuclear second) and which axis is the channel axis.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
vanvalenlab__deepcell-tf__429
vanvalenlab/deepcell-tf
429
defect
262f32f88b2b074eca3395954101a9693546dea3
f1838ea700ea063e8f28c27da019e13526c43258
Move wrapper functions to applications
## What - Moves the simple wrapper functions which are application-specific to the applications file. - Updates requirements.txt for new version of the toolbox, which this PR relies on ## Why - These functions aren't broadly useful, and don't really belong in the toolbox. Moving them here also makes it easier to ...
diff --git a/deepcell/applications/multiplex_segmentation.py b/deepcell/applications/multiplex_segmentation.py index 5699b06aa..490a2a6b5 100644 --- a/deepcell/applications/multiplex_segmentation.py +++ b/deepcell/applications/multiplex_segmentation.py @@ -31,17 +31,130 @@ import os +import numpy as np + from ten...
3
3
1
[{"id": "G0", "claim": "The format_multiplex and multiplex wrapper functions should stay in the toolbox so that both the applications and the redis-consumer can use them, rather than being moved only into the application.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
vanvalenlab__deepcell-tf__436
vanvalenlab/deepcell-tf
436
defect
4f8f306e4332bb532acc1c3de7c6f111ff68fa73
e4f8413c39a971e9895df2743cc879433d1ef469
Reduce ImageDataGenerator memory footprint.
## What * Change the `SemanticIterators` from pre-computing all the transforms to computing the transform of every batch inside `_get_batches_of_transformed_samples`. * Preserve `dtype` when creating batches of samples in all generators. * Use an appropriate `dtype` when calling `_transform_masks` so that we are not...
diff --git a/deepcell/image_generators/__init__.py b/deepcell/image_generators/__init__.py index cdaf1246b..0edc99280 100644 --- a/deepcell/image_generators/__init__.py +++ b/deepcell/image_generators/__init__.py @@ -104,9 +104,12 @@ def _transform_masks(y, transform, data_format=None, **kwargs): edge_class_sh...
2
2
2
[{"id": "G0", "claim": "The new dtype assertions would pass even if no downsizing was actually performed, so at least some tests should spot-check the correct dtype is used, e.g. by setting K.floatx() to 'float16' and asserting the transforms use it.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
vanvalenlab__deepcell-tf__473
vanvalenlab/deepcell-tf
473
defect
d4ac3b0e7302fdda227d6eb1e68945416d2fedae
3ee314f3de363f8cdc46fa2648d9f20074b28f4a
Update Tracking Application
## What * The `cell_tracking` application was updated from TF1-sytle with weights to TF2-style encapsulating the full model signature, respecting deepcell-tf pattern. ## Why * The tracking model has been updated for TF2 and this PR updates DeepCell Applications to match.
diff --git a/deepcell/applications/cell_tracking.py b/deepcell/applications/cell_tracking.py index 6d2c34e17..53cbb0c3d 100644 --- a/deepcell/applications/cell_tracking.py +++ b/deepcell/applications/cell_tracking.py @@ -29,18 +29,18 @@ from __future__ import division from __future__ import print_function -from ten...
1
1
1
[{"id": "G0", "claim": "The test should create a dummy model and pass it to `CellTracking` so the tests do not have to download anything from S3, preventing failures due to network errors or service outages.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vanvalenlab__deepcell-tf__532
vanvalenlab/deepcell-tf
532
defect
2091867aacf1b16a6efa55bf4fa2cb39b46b573c
eeb5eb5fe6a9e7fc6c3f3ad1e3c77255ccf5671b
Tests and bug fix for deepcell.data.tracking
## What * Add tests for `deepcell.data.tracking`. * Fix bug in `deepcell.data.tracking.temporal_slice` function. ## Why * Tests help to ensure data is being prepared correctly. * Temporal dimension when `temporal_slice` is called is at index 0 instead of 1 because the data has not been batched yet.
diff --git a/deepcell/data/tracking.py b/deepcell/data/tracking.py index 5e667eba..00c1a02e 100644 --- a/deepcell/data/tracking.py +++ b/deepcell/data/tracking.py @@ -50,7 +50,7 @@ def temporal_slice(X, y, track_length=8): tuple(dict, dict): Tuple of sliced ``X`` and ``y`` data. """ appearances = X['...
3
3
0
[{"id": "G0", "claim": "The test should assert the entire arrays are unchanged when rotating by 0, not a single element of each tensor.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The range=0 random_translate test should check the entire centroid arr...
null
vanvalenlab__deepcell-tf__537
vanvalenlab/deepcell-tf
537
defect
dbbb9eb292f3d65d748f67b721bab2e029f17dc4
245d70bcf5c0afef4d4e4d60b2a527b948a724cd
Add support for test split in `deepcell.data.split_data`
## What * Allow `split_dataset` to accept test data fraction. * In `prepare_dataset, add `test_data` when unpacking returns from `split_dataset` call, and properly batch/prefetch the test data. * In `tracking_test`, modify to include `test_split` parameters, remove third test case, use `tf.random.uniform` to create...
diff --git a/deepcell/data/__init__.py b/deepcell/data/__init__.py index de9cc27b..97463ae6 100644 --- a/deepcell/data/__init__.py +++ b/deepcell/data/__init__.py @@ -30,33 +30,49 @@ from __future__ import print_function -def split_dataset(dataset, validation_data_fraction): +def split_dataset(dataset, val_data_fr...
6
5
0
[{"id": "G0", "claim": "The two halves of the ValueError message should not be concatenated with '+', since adjacent string literals inside the parentheses are already inferred as one multi-line string.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai...
null
vanvalenlab__deepcell-tf__540
vanvalenlab/deepcell-tf
540
defect
8d75afc75a54b2623b1b1efb02d1c7f3f8c2d334
8856457df2d23c5b153f494694959327528b6b97
Application batch prediction
## What Modifies the applications to use internal batch prediction function rather than the default model.predict batching functionality. Closes #538 ## Why The default model.predict batch function creates a tf.dataset object with all images, not just the specified batch size. This leads to memory issues on the G...
diff --git a/deepcell/applications/application.py b/deepcell/applications/application.py index 164325a5..66b03d2b 100644 --- a/deepcell/applications/application.py +++ b/deepcell/applications/application.py @@ -312,6 +312,54 @@ def _resize_output(self, image, original_shape): return image + def _batch_p...
8
8
1
[{"id": "G0", "claim": "The batch loop would be much clearer if it used the step size of the range function (for i in range(0, tiles.shape[0], batch_size)) instead of building a list of batch bounds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
vanvalenlab__deepcell-tf__545
vanvalenlab/deepcell-tf
545
defect
c1a08688b19c41afb576c76742b66378e16aa974
389bb90efcefae93ce8ded08537c604a53065610
Support individual parameter passing to Mesmer app
## What Previously, the default values for the Mesmer post-processing kwargs were configured such that if the user passed any args to the app, all of the other defaults would be reset. This PR modifies the behavior so that only the kwargs specified by the user are changed, the other defaults remain unchanged ## Why...
diff --git a/deepcell/applications/mesmer.py b/deepcell/applications/mesmer.py index d3b131f9..89edef98 100644 --- a/deepcell/applications/mesmer.py +++ b/deepcell/applications/mesmer.py @@ -237,8 +237,8 @@ def predict(self, preprocess_kwargs={}, compartment='whole-cell', ...
2
2
0
[{"id": "G0", "claim": "Get the test's default kwargs from the application instead of hardcoding them, and drop the all-defaults assertion, so changing the defaults in the app does not force a change to the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
vanvalenlab__deepcell-tf__554
vanvalenlab/deepcell-tf
554
defect
fe14415097ec77b660483826b63d4c7ba5c34b2d
2686f7ee2a9c8daa7d311521b967afee8f383c53
Move tracking data preprocessing into `deepcell.data.tracking`
## What * Update the adjacency matrix data from to a sparse tensor to significantly reduce memory footprint. * Move `Track` and `concat_tracks` functions from `deepcell-tracking` to `deepcell.data.tracking`. They are really just `.trk` preprocessing and are unnecessary outside of `prepare_data`. * Update `temporal_s...
diff --git a/deepcell/data/tracking.py b/deepcell/data/tracking.py index 237cf284..cb46371e 100644 --- a/deepcell/data/tracking.py +++ b/deepcell/data/tracking.py @@ -31,13 +31,273 @@ import math +from scipy.spatial.distance import cdist + import numpy as np +import tqdm + import tensorflow as tf import tensorf...
4
1
1
[{"id": "G0", "claim": "The reviewer asks why `temporal_adj_matrices` is cast to tf.int32, questioning the otherwise unexplained dtype choice.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks what `sp` is, pointing at the cryptic paramete...
null
vanvalenlab__deepcell-tf__597
vanvalenlab/deepcell-tf
597
defect
fc13bbd4b184127a5a41afb1594eaa24fe15ff90
afcc167121d7ed0acd697236b71e81a21ed3f7d6
Introduce functions for reading and writing TF Records for segmentation data
## What Included functions to save datasets as tfrecords and load them into tf.data.Dataset objects ## Why As our training datasets grow, it is becoming difficult to load full datasets into memory. By introducing support for tfrecords, we can load portions of datasets from disk on the fly during training.
diff --git a/deepcell/utils/tfrecord_utils.py b/deepcell/utils/tfrecord_utils.py new file mode 100644 index 00000000..29a990ec --- /dev/null +++ b/deepcell/utils/tfrecord_utils.py @@ -0,0 +1,220 @@ +# Copyright 2016-2022 The Van Valen Lab at the California Institute of +# Technology (Caltech), with support from the Pau...
3
2
1
[{"id": "G0", "claim": "The module docstring of tfrecord_utils.py should be replaced with one describing reading and writing segmentation datasets as TF Records instead of the copied \"deepcell-toolbox Data Utilities\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
vanvalenlab__deepcell-tf__602
vanvalenlab/deepcell-tf
602
defect
c071276db79ce770fb505637c17937a0d438b5ac
7f966354b812e8cb7dae2673b207b8e564ccb884
Create TFRecords for tracking datasets
## What * Added functionality to create TFRecords for tracking datasets ## Why * As the training datasets grow in size, they are no longer able to fit in memory (as is the case with image generators). Adding functionality for TFRecords will let us train on larger datasets as they are loaded dynamically from disk d...
diff --git a/deepcell/utils/tfrecord_utils.py b/deepcell/utils/tfrecord_utils.py index 8b7fab8f..61212b74 100644 --- a/deepcell/utils/tfrecord_utils.py +++ b/deepcell/utils/tfrecord_utils.py @@ -38,6 +38,7 @@ from tensorflow.data import Dataset from tensorflow.io import serialize_tensor from tensorflow.keras.utils i...
9
9
1
[{"id": "G0", "claim": "Build the '_val' feature key with '{}_val'.format(name) instead of name + '_val'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Build each index feature key with '{}_ind_{}'.format(name, i) instead of name + '_ind_' + st...
null
vargHQ__sdk__76
vargHQ/sdk
76
defect
d460588e72f6e4bbb1d9703ecc45cff8276a191d
b8a6af47f6a88c6a2551200c06555ff065fdbc18
refactor(editly): simplify backend interface
## Summary - Refactors FFmpeg backend interface to eliminate redundant input passing - Backends now build `-i` flags internally from structured `FFmpegInput` type - Simplifies caller code in editly and burnCaptions ## Changes - **types.ts**: Added `FFmpegInput` type (string | path+options | raw), updated `FFmpegRunO...
diff --git a/src/ai-sdk/providers/editly/backends/index.ts b/src/ai-sdk/providers/editly/backends/index.ts index ae2d797e..0b6cdae7 100644 --- a/src/ai-sdk/providers/editly/backends/index.ts +++ b/src/ai-sdk/providers/editly/backends/index.ts @@ -1,6 +1,7 @@ export { LocalBackend, localBackend } from "./local"; expor...
3
3
2
[{"id": "G0", "claim": "input.raw.split(\" \") breaks raw ffmpeg args that contain paths with spaces or quoted values; the reviewer asks that raw inputs be a pre-split array (raw: string[]) instead of one string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
varlociraptor__varlociraptor__202
varlociraptor/varlociraptor
202
defect
809ed6be7261b7cee5ff0c2ba542f8b95c73a879
51417cb3cf931ea71d0889fbad3be4a983c04ea2
feat: added VAF log fold change and comparison operators to the scenario event grammar
### Description This PR adds comparison expressions using `==`, `<`, `>`, `!=`, `<=`, `>=`for comparison between sample VAFs to the grammar, as well as an expression `lfc(sample_a, sample_b)` for defining constraints on the log fold change of VAFs between samples. ### QC <!-- Make sure that you can tick the box...
diff --git a/src/calling/variants/calling.rs b/src/calling/variants/calling.rs index 095348c35..64b366272 100644 --- a/src/calling/variants/calling.rs +++ b/src/calling/variants/calling.rs @@ -22,6 +22,7 @@ use crate::grammar; use crate::utils; use crate::variants::evidence::observation::{Observation, ReadPosition}; ...
5
4
1
[{"id": "G0", "claim": "The Log2FoldChange struct field `l2fc` should be renamed to `value`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log2FoldChangePredicate should be a struct with named fields `comp` and `value` rather than a tuple struc...
null
varlociraptor__varlociraptor__496
varlociraptor/varlociraptor
496
defect
20fa800e5bc824e92dc3afede0fe006596eef682
7f513991700dce9f1535961b386dc94228173189
feat: add option --smart-retain-artifacts, allowing to retain artifacts instead of treating them like absent calls in smart fdr control mode
### Description <!--Add a description of your PR here--> ### QC <!-- Make sure that you can tick the boxes below. --> * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation at https://github.com/varlociraptor/varlociraptor.github.io is u...
diff --git a/src/cli.rs b/src/cli.rs index 40d8204d8..b5a93dd14 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -756,6 +756,16 @@ pub enum FilterMethod { The former behavior is much more intuitive than loosing such variants entirely." )] mode: ControlFDRMode, + #[structopt( + ...
1
1
0
[{"id": "G0", "claim": "Rename the destructured binding in src/cli.rs from `smart_ignore_artifact` to `smart_retain_artifacts` so it matches the field and parameter name, as the naming inconsistency could be confusing for future maintenance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
varlociraptor__varlociraptor__508
varlociraptor/varlociraptor
508
defect
6b3c55b7e0e19da0615486cf349701bca4ca1e4f
78e516bd3c15eef7d9d996636983e6fb6cf2ab3b
fix: fix bug in read position bias estimation leading to erroneous zero probabilities in case of reads of length 1 (leading to a FloatIsNaN error during calling)
### Description <!--Add a description of your PR here--> ### QC <!-- Make sure that you can tick the boxes below. --> * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation at https://github.com/varlociraptor/varlociraptor.github...
diff --git a/src/calling/variants/calling.rs b/src/calling/variants/calling.rs index 3899f70a3..182031fd2 100644 --- a/src/calling/variants/calling.rs +++ b/src/calling/variants/calling.rs @@ -137,7 +137,9 @@ where to 0.5 each. This avoids calls caused by single supporting reads. \ filtered-...
2
1
0
[{"id": "G0", "claim": "The new read-length-1 branch in read_position_bias.rs fails the cargo fmt CI check and its comment misspells 'probability' as 'probabilit', so the code should be formatted and the typo corrected.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {...
null
varnish__tinykvm__71
varnish/tinykvm
71
defect
555907bb467824cfcbbe30f673cd77bbfa090f94
35ba9f08bd2d9d1e597ab0fc8e959cb455e5db97
linux: fix readlinkat signed error handling and add regression test
## Summary - Harden SYS_readlinkat guest copy path to avoid wrapped-length copy on host readlinkat() failure - Keep syscall return contract behavior unchanged - Add a focused unit regression test for the failing readlinkat path ## Why This bug is independently valuable to fix and was discovered while working relocatio...
diff --git a/lib/tinykvm/linux/system_calls.cpp b/lib/tinykvm/linux/system_calls.cpp index 1b7babcf..f628e3b5 100644 --- a/lib/tinykvm/linux/system_calls.cpp +++ b/lib/tinykvm/linux/system_calls.cpp @@ -2893,10 +2893,10 @@ void Machine::setup_linux_system_calls(bool unsafe_syscalls) path = cpu.machine().memcstring...
1
1
0
[{"id": "G0", "claim": "Use a fixed-size PATH_MAX buffer instead of the new heap-allocated std::vector (at most PATH_MAX in size and more costly), and read the link contents into that fixed-size buffer.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
varnishcache__varnish-cache__3209
varnishcache/varnish-cache
3,209
defect
32f160a46be44da6cdffa69a1e8b064aa3c9cfc6
df0c30120bd1097a998c023a2680500d05445cd5
varnishstat json schema change
fixes #3186 This changes the format in only two ways: - counters go into their own `counters` sub-object - new `version` field, set to 1 (since most lenient parser will say it's 0 if the field is absent) However, it will break parsers downstream, it maybe an issue if the next release isn't a major one. I'm happ...
diff --git a/bin/varnishstat/varnishstat.c b/bin/varnishstat/varnishstat.c index 6247f50354d..5038f20bcfe 100644 --- a/bin/varnishstat/varnishstat.c +++ b/bin/varnishstat/varnishstat.c @@ -113,18 +113,13 @@ do_json_cb(void *priv, const struct VSC_point * const pt) else printf(",\n"); - printf(" \""); - /* build...
3
1
1
[{"id": "G0", "claim": "The pull request should improve vtc (test) coverage for the new varnishstat -j behaviour it introduces.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new JSON schema should start at \"version\": 2 instead of 1, so end users ...
null
varnishcache__varnish-cache__3932
varnishcache/varnish-cache
3,932
defect
c83cc81fb8d3086eb5be69d8a246457c2848c0b5
d91a417c2ec0051ef111dc75122a6c79a52efbb2
VCC: ignore ENOENT on cleanup if vcc fails
Fixes #3925 > When VCC is run, some temporary files are generated during the process and are cleaned up at the end. The cleanup tries to remove all the files that are supposed to be generated and displays a "Could not delete 'vcl_...': No such file or directory" message if it fails to find one of them. The error hap...
diff --git a/bin/varnishd/mgt/mgt.h b/bin/varnishd/mgt/mgt.h index 4ae97b6d937..9677e44b470 100644 --- a/bin/varnishd/mgt/mgt.h +++ b/bin/varnishd/mgt/mgt.h @@ -157,7 +157,7 @@ void VJ_subproc(enum jail_subproc_e); int VJ_make_workdir(const char *); int VJ_make_subdir(const char *, const char *, struct vsb *); void ...
2
2
0
[{"id": "G0", "claim": "The ENOENT suppression condition added in VJ_unlink should be written as `if (errno != ENOENT || !ignore_enoent)` instead of `if(!(errno == ENOENT && ignore_enoent))`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An enu...
null
vas3k__vas3k.club__1119
vas3k/vas3k.club
1,119
defect
0a5da2443794ab92b47aa6d12d115c378150faff
9be8ab9ede3a8c030a69430486d3d1c53b52a787
fix: add rfc3339 support to feed.json (and content_text visibility fix)
Пофиксил ишшью, добавил тесты. Проверил валидатор через локальный сервер — вроде все ок. Closes #1110 <img width="1183" alt="Снимок экрана 2023-06-29 в 13 33 54" src="https://github.com/vas3k/vas3k.club/assets/91570054/2826d261-562b-4a72-903c-511ae5e02c64">
diff --git a/posts/models/post.py b/posts/models/post.py index efdbeabdc..5409fdb24 100644 --- a/posts/models/post.py +++ b/posts/models/post.py @@ -142,9 +142,9 @@ def to_dict(self, including_private=False): "id": self.id, "url": f"{settings.APP_HOST}{self.get_absolute_url()}", "...
3
3
1
[{"id": "G0", "claim": "Serialize date_published (and likewise date_modified) with astimezone().isoformat(\"T\") instead of appending \"Z\" to isoformat(\"T\"), so the feed's RFC3339 timestamps carry the datetime's real timezone offset rather than unconditionally claiming UTC.", "category": "correctness", "verdict": "s...
null
vas3k__vas3k.club__1392
vas3k/vas3k.club
1,392
defect
1f69e37ee005b982ed770e4e3896d4965eb43281
111acc45f682f75f9b569343e1e79935ddacee8e
fix: batch DB lookups to eliminate N+1 queries, narrow UPDATE with update_fields
5 мест в коде делали по одному SQL-запросу на каждую итерацию цикла (N+1). Заменены на batch-запросы: 1. Уведомления о @mentions в комментариях - User.objects.in_bulk(field_name="slug") вместо filter(slug=x).first() в цикле 2. Уведомления о @mentions в постах - то же в notify_author_friends и notify_users_by_userna...
diff --git a/comments/templatetags/comments.py b/comments/templatetags/comments.py index 557796b61..f8332822a 100755 --- a/comments/templatetags/comments.py +++ b/comments/templatetags/comments.py @@ -68,7 +68,7 @@ def render_comment(context, comment): if new_html != comment.html: # to not flood i...
3
3
0
[{"id": "G0", "claim": "The comment-notification loop should iterate `mentioned_users.values()` instead of re-fetching each user by key from the bulk dict.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The post-notification loop should iterate ...
null
vas3k__vas3k.club__1397
vas3k/vas3k.club
1,397
defect
a4a741408749cdb41a04f065de6ee2be9238c717
b66588a0f994887b90b823881ba2fe0809b6888c
perf(models): cache club settings to reduce DB queries
ClubSettings кеширование всех настроек одним запросом - _get_all() загружает все настройки разом (SELECT code, value FROM settings) и кладет dict в Redis через cache.get_or_set(). - get() читает из закешированного dict - 0 SQL на повторные вызовы. Раньше каждый `{{ settings.app_name }}` в шаблоне был отдельным SELE...
diff --git a/godmode/models.py b/godmode/models.py index b49016835..cd42d1935 100644 --- a/godmode/models.py +++ b/godmode/models.py @@ -1,5 +1,8 @@ +from django.core.cache import cache from django.db import models +CLUB_SETTINGS_CACHE_KEY = "club_settings" + class ClubSettings(models.Model): code = models.C...
1
1
1
[{"id": "G0", "claim": "Caching the rooms context means edits to a room (e.g. its description) or newly added rooms will not show up until the cache is invalidated, confusing users and admins, and the extra query the cache saves is not worth that invalidation hassle.", "category": "correctness", "verdict": "supported",...
null
vas3k__vas3k.club__1442
vas3k/vas3k.club
1,442
defect
2cd9362e856a18b50b24ae76c073fb817bf6ca92
407e498b0e71f2f7d5519854f0972a354bb2f034
fix(rss): filter unapproved posts in user RSS feed
UserPostsRss не фильтровал по moderation_status - посты до модерации попадали в RSS-ленту пользователя. Добавлен фильтр MODERATION_APPROVED.
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 885df51a2..4a3a3c7ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,8 @@ jobs: python-version: '3.12' - uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + ...
1
1
1
[{"id": "G0", "claim": "Private posts should not be hidden from RSS feeds; they should be shown without content, as already done in feeds.py.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vasild__cpp-ipfs-http-client__17
vasild/cpp-ipfs-http-client
17
defect
0708ec0a59e5929b1fdb1ab641c12335771830e2
acf0500a4f06782342eabf763f9f886796fee8a2
Add support for IPNS
This adds support for publishing IPNS entries to IPFS objects. The IPNS API requires the Key API given in pull req #16. If you merge that first, this will result in a merge conflict; I'll have to rebase. Alternately, merge this, and reject #16.
diff --git a/include/ipfs/client.h b/include/ipfs/client.h index 15512ae..9dfe71f 100644 --- a/include/ipfs/client.h +++ b/include/ipfs/client.h @@ -377,6 +377,48 @@ class Client { /** [in] Key name (local, user-friendly name for the key). */ const std::string& key_name); + /** Publish an IPNS name att...
7
7
1
[{"id": "G0", "claim": "The doc-comment spec URLs for NamePublish and NameResolve should be https://github.com/ipfs/interface-js-ipfs-core/blob/master/SPEC/NAME.md#namepublish and ...#nameresolve instead of the interface-ipfs-core/tree ones with dotted anchors.", "category": "documentation", "verdict": "supported", "pr...
null
vasylenko__bear-notes-mcp__70
vasylenko/bear-notes-mcp
70
defect
f1ac0917fc0656601c4698da9937c55b5d613a94
dbf485eeb4bf288c6d952c0aa2ed0d2cc4a7d42b
fix: enforce read-only DB and relational tag filtering
## Summary - **Enforce read-only SQLite connection** (#68): Pass `{ readOnly: true }` to `DatabaseSync` constructor, preventing any accidental writes to Bear's database at the driver level - **Replace text-based tag search with relational JOINs** (#67): Tag-only and pinned+tag search paths now use `JOIN Z_5TAGS → ZSFNO...
diff --git a/src/database.ts b/src/database.ts index 4a29768..dbe0de5 100644 --- a/src/database.ts +++ b/src/database.ts @@ -36,7 +36,7 @@ export function openBearDatabase(): DatabaseSync { logger.info(`Opening Bear database at: ${databasePath}`); try { - const db = new DatabaseSync(databasePath); + const...
2
2
1
[{"id": "G0", "claim": "The `LIKE ? || '/%'` prefix match uses the user-provided normalized tag without escaping, so `%` and `_` inside it are treated as wildcards and may overmatch; escape `%`/`_` and the escape character and use `LIKE ... ESCAPE` (or non-LIKE prefix matching) so matching stays literal.", "category": ...
null
vasylenko__bear-notes-mcp__71
vasylenko/bear-notes-mcp
71
defect
4addde3792abb1ea3a6f31d5d4877b3f1673b80d
95df5b7346530adc1ac886bd43a03b30e32333de
feat: add bear-replace-text tool for content replacement
## Summary - Adds `bear-replace-text` tool for replacing content in existing Bear notes — either the full note body or a specific section under a header - When `scope` is `section`, replaces only the content under the specified header while preserving the rest of the note - When `scope` is `full-note-body`, replaces th...
diff --git a/.mcp.json b/.mcp.json index 79c37e5..78fadf4 100644 --- a/.mcp.json +++ b/.mcp.json @@ -2,7 +2,8 @@ "mcpServers": { "bear-notes-project-local": { "env": { - "UI_ENABLE_NEW_NOTE_CONVENTION": "true" + "UI_ENABLE_NEW_NOTE_CONVENTION": "true", + "UI_ENABLE_CONTENT_REPLACEMEN...
4
2
0
[{"id": "G0", "claim": "The mode parameter type accepts 'replace' and passes it directly to the Bear add-text URL, but Bear's API expects 'replace_all', so replacement operations could fail silently; the internal 'replace' value should be mapped to 'replace_all' when building the URL.", "category": "correctness", "verd...
null
vasylenko__bear-notes-mcp__74
vasylenko/bear-notes-mcp
74
defect
6e522e4348a49fd6551e4f232b50684a2c90635d
1c9fae98bc96e76191b4242f209ff2b4de4fd63b
feat: improve MCP client guidance with server instructions and tool descriptions
## Summary - MCP clients now receive server-level guidance about Bear's note structure and section model at initialization, including that section operations apply only to direct content under a header — not nested sub-sections - `bear-add-text` and `bear-replace-text` descriptions cross-reference each other so clients...
diff --git a/src/main.ts b/src/main.ts index 7e89312..6476218 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,10 +12,23 @@ import { findUntaggedNotes, listTags } from './tags.js'; import { buildBearUrl, executeBearXCallbackApi } from './bear-urls.js'; import type { BearTag } from './types.js'; -const server = new...
4
3
2
[{"id": "G0", "claim": "The bear-add-text description added by this PR says 'to overwrite a section entirely use bear-replace-text', which is inconsistent with bear-replace-text's shallow section scope (only direct body content under a header is replaced, nested sub-sections remain), so the wording should be changed to...
null
vatesfr__terraform-provider-xenorchestra__120
vatesfr/terraform-provider-xenorchestra
120
defect
d903d73146394d0cd3651707ba7ab40157c9a840
6fae8ea56fa3349df3500feebff0ce29249544f9
adds host data source
This PR adds a host data source. refers to #109. Get host by name: ```tf data "xenorchestra_host" "host1" { name_label = "xcp-host1-k8s.domain.eu" } output "xenorchestra_host" { value = data.xenorchestra_host.host1 } ``` Note: **the source branch should be `add-host-data-source`.**
diff --git a/client/client.go b/client/client.go index 774e9228..2ced9e6e 100644 --- a/client/client.go +++ b/client/client.go @@ -141,6 +141,8 @@ func (c *Client) GetAllObjectsOfType(obj XoObject, response interface{}) error { xoApiType = "PIF" case Pool: xoApiType = "pool" + case Host: + xoApiType = "host" ...
5
5
2
[{"id": "G0", "claim": "The acceptance test suite should not require the user-supplied XOA_HOST environment variable; FindHostForTests should instead use accTestPool.Master to look up the host of the pool's primary instance.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
vatesfr__terraform-provider-xenorchestra__372
vatesfr/terraform-provider-xenorchestra
372
defect
e33431058f804b4085b67316cfec7427515d06c4
891a0eb64a5ba4d7185c157d80cb3214c9e06f07
Improve logging and replace deprecated methods
This PR modernizes the Terraform provider by replacing deprecated CRUD methods with their context-aware equivalents and improving logging by migrating from the standard log package to tflog. The migration to context-aware methods enables better logging capabilities and aligns with Terraform SDK v2 best practices.
diff --git a/xoa/data_source_cloud_config.go b/xoa/data_source_cloud_config.go index 09ca047..d8a549a 100644 --- a/xoa/data_source_cloud_config.go +++ b/xoa/data_source_cloud_config.go @@ -1,10 +1,11 @@ package xoa import ( - "errors" + "context" "fmt" - "log" + "github.com/hashicorp/terraform-plugin-log/tflog"...
5
4
0
[{"id": "G0", "claim": "The error-handling pattern is repeated many times throughout resource_xenorchestra_vm.go; consider creating a helper function like handleError(err error) diag.Diagnostics to reduce the code duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
vatesfr__xen-orchestra__8415
vatesfr/xen-orchestra
8,415
defect
2a2c966126c08717c43890ac2b30b1741c70bf4d
0a34be872d337b8c4a3a7f1967ff8c327e4ac8da
feat(fs): add azure blob storage
### Description _Short explanation of this PR (feel free to re-use commit message)_ - Introduced Azure Blob Storage integration - Added Azurite installation and usage Documentation ### Checklist - Commit - Title follows [commit conventions](https://bit.ly/commit-conventions) - Reference the relevant ...
diff --git a/@xen-orchestra/fs/docs/azurite.md b/@xen-orchestra/fs/docs/azurite.md new file mode 100644 index 00000000000..0b50e2fa1ff --- /dev/null +++ b/@xen-orchestra/fs/docs/azurite.md @@ -0,0 +1,92 @@ +## Testing Azure Blob Storage Using Azurite emulator + +### Prerequisites + +- A Linux-based VM with Node.js inst...
10
9
6
[{"id": "G0", "claim": "The constructor should check whether a host is present to tell an Azurite connection from an Azure one, and log with info() which connection method is used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The async #createCont...
null
vatesfr__xen-orchestra__8818
vatesfr/xen-orchestra
8,818
defect
adebc5961f310841e366f30400e6da29508edf54
ce0ea9b01b80dc341309fe1e2b85edf2c50e9842
fix(fs): better handling of incomplete read
do not squash from ticket 42001 ### Description _Short explanation of this PR (feel free to re-use commit message)_ ### Checklist - Commit - Title follows [commit conventions](https://bit.ly/commit-conventions) - Reference the relevant issue (`Fixes #007`, `See xoa-support#42`, `See https://...`) ...
diff --git a/@xen-orchestra/fs/src/local.js b/@xen-orchestra/fs/src/local.js index 1ec505814ce..c6a7be54a8d 100644 --- a/@xen-orchestra/fs/src/local.js +++ b/@xen-orchestra/fs/src/local.js @@ -174,7 +174,7 @@ export default class LocalHandler extends RemoteHandlerAbstract { const needsClose = typeof file === 'stri...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the comment in local.js: \"completly fail\" should read \"completely fail\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vatesfr__xen-orchestra__8903
vatesfr/xen-orchestra
8,903
defect
9d3cffd211c4342b36a8ee671baf3aa3bff23870
0ca7a4b1823f7ef90719b217037320af2c1d3143
fix(fs): update timeout for b2 listing
### Description Update timeout to handle backblaze expensive listing ### Checklist - Commit - Title follows [commit conventions](https://bit.ly/commit-conventions) - Reference the relevant issue (`Fixes #007`, `See xoa-support#42`, `See https://...`) - If bug fix, add `Introduced by` - Changelog -...
diff --git a/@xen-orchestra/fs/src/abstract.js b/@xen-orchestra/fs/src/abstract.js index 25f58796930..13aaaac0226 100644 --- a/@xen-orchestra/fs/src/abstract.js +++ b/@xen-orchestra/fs/src/abstract.js @@ -23,7 +23,7 @@ const computeRate = (hrtime, size) => { return size / seconds } -const DEFAULT_TIMEOUT = 6e5 //...
2
2
0
[{"id": "G0", "claim": "The new changelog entry should end with a reference to the pull request, i.e. \"(PR [#8903](https://github.com/vatesfr/xen-orchestra/pull/8903))\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @xen-orchestra/fs packag...
null
vatesfr__xen-orchestra__9116
vatesfr/xen-orchestra
9,116
defect
8811bb4baca795736fb267ea5a7a5597f44b3ab2
5e343c520e97cfa2e114403dc8466f5808d2fd3a
feat(xo-server-load-balancer): affinity tags
### Description Add Affinity rule option to the load balancer plugin. This options ensures some VMs are positioned on the same host, when it's possible. It's important to be careful while configuring the `Affinity tags` and `Anti-affinity tags` fields, otherwise it may lead to conflicts between the two behaviour...
diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 7a6e24a27d2..515cbcbcb1e 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -19,6 +19,7 @@ - [Backup archives] Add `vm.tags` to `backups archives` (PR [#9190](https://github.com/vatesfr/xen-orchestra/pull/9190)) - [Menu] Add link ...
7
6
2
[{"id": "G0", "claim": "Awaiting _processAffinityTag inside the for...of forces affinity tags to run sequentially, and the reviewer asks whether they should run in parallel (push without await, then Promise.allSettled) as in _processAntiAffinity, also questioning whether parallelism could introduce race conditions when...
null
vatesfr__xen-orchestra__9130
vatesfr/xen-orchestra
9,130
defect
35cc755bf0a4b1a48f98acd583f639d972c3031a
6fce93a733a5c89bff9006b6126cc80797ca79ef
feat(@xen-orchestra/rest-api): expose events
### Screenshot <img width="533" height="207" alt="Capture d’écran de 2025-10-22 11-57-37" src="https://github.com/user-attachments/assets/70ea4a8d-ed28-4fcd-85a6-4f43d13b8151" /> <img width="819" height="345" alt="Capture d’écran de 2025-10-20 16-27-13" src="https://github.com/user-attachments/assets/81af7c97-2cd8-...
diff --git a/@xen-orchestra/rest-api/src/abstract-classes/listener.mts b/@xen-orchestra/rest-api/src/abstract-classes/listener.mts new file mode 100644 index 00000000000..ba86b6b61ed --- /dev/null +++ b/@xen-orchestra/rest-api/src/abstract-classes/listener.mts @@ -0,0 +1,81 @@ +import type { EventEmitter } from 'node:e...
5
5
1
[{"id": "G0", "claim": "Add a comment to #getListener explaining the alarm listener's special handling (alarm is XO-only and is treated as a message-collection listener).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SIGTERM debug log should ...
null
vavr-io__vavr__1383
vavr-io/vavr
1,383
defect
c47d5c57e01015ccc686f824eac7dd92f17563c3
d65861b49b5909a3b514e37e4320c70d7e71e861
Implement new method: Map#mapKeys()
fix #1379. @danieldietrich, I don't known how to remove hack from `TreeMap#mapKeys(Function<? super K,? extends K2>, Function2<V,V,V>)`. If I describe `K2` in `TreeMap` as `K2 extends Comparable<? super K2>` then I must describe it with same limit in `SortedMap` (it's ok) and `Map` (this is not ok).
diff --git a/javaslang/src/main/java/javaslang/collection/Collections.java b/javaslang/src/main/java/javaslang/collection/Collections.java index 066a56131b..2bc31a8fd3 100644 --- a/javaslang/src/main/java/javaslang/collection/Collections.java +++ b/javaslang/src/main/java/javaslang/collection/Collections.java @@ -5,6 +...
3
2
1
[{"id": "G0", "claim": "The two-argument TreeMap.mapKeys is a hack that hard-codes a natural comparator for the remapped keys, and the author does not know how to remove it (e.g. to support custom comparators).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
vavr-io__vavr__1404
vavr-io/vavr
1,404
defect
8332775c41d99948fffd3126864d27e41622bfe5
1cf17b844683291d15bee4ddec1e1c27221263ca
Implement extended Map filters
Fix #1401
diff --git a/javaslang/src/main/java/javaslang/collection/AbstractMap.java b/javaslang/src/main/java/javaslang/collection/AbstractMap.java index aee22ab124..7396e93fee 100644 --- a/javaslang/src/main/java/javaslang/collection/AbstractMap.java +++ b/javaslang/src/main/java/javaslang/collection/AbstractMap.java @@ -126,6...
1
1
1
[{"id": "G0", "claim": "The removeAll(BiPredicate), removeKeys(Predicate) and removeValues(Predicate) implementations in AbstractMap should declare return type M instead of Map<K, V>, and as written the mismatch breaks the build because TreeMap does not override removeValues from SortedMap.", "category": "correctness",...
null
vavr-io__vavr__1444
vavr-io/vavr
1,444
defect
a8051b559d1145fe436ee4784c3d1da343c15b83
6c15f9114a3e1ae8a20d697fa3f71dce3669d73e
Implement Value converters: to[Linked|Sorted][Map|Set]
Fix #1434
diff --git a/javaslang/src/main/java/javaslang/Value.java b/javaslang/src/main/java/javaslang/Value.java index 3f93212e77..04cd97812f 100644 --- a/javaslang/src/main/java/javaslang/Value.java +++ b/javaslang/src/main/java/javaslang/Value.java @@ -7,13 +7,17 @@ import javaslang.collection.*; import javaslang.collect...
2
1
0
[{"id": "G0", "claim": "The toSet-family conversion methods (toSet, toLinkedSet, toSortedSet) should additionally check that `this` Value is not already of the target Set type and return it as-is instead of copying, e.g. by moving the check into ValueModule.", "category": "design", "verdict": "supported", "priority": "...
null
vavr-io__vavr__1614
vavr-io/vavr
1,614
defect
3d5daffbb170495e43e387c66f88a8f35c667983
1af9d1b6e3bdc6bdfefc5c3ccf8943202900d82a
Future#await return self after complete
Fix #1607
diff --git a/javaslang/generator/Generator.scala b/javaslang/generator/Generator.scala index e7ea2deb35..89fc7fcd22 100644 --- a/javaslang/generator/Generator.scala +++ b/javaslang/generator/Generator.scala @@ -2173,16 +2173,14 @@ def generateTestClasses(): Unit = { xs""" @$test public vo...
4
2
1
[{"id": "G0", "claim": "Apply the fluent `.await()` chaining to the remaining test usages in `FutureTest` (other tests can be refactored to the new API, possibly later or in another PR).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Provide a...
null
vavr-io__vavr__1621
vavr-io/vavr
1,621
defect
abe2a28d04d3681c40433d135ae1016a4e1db4ba
9bfca2eeba2680dfe61c1ed3e65e2dd1255f1845
crossProduct of negative power return empty result
Fix #1602 Need I extend JavaDoc in `javaslang.collection.Seq#crossProduct(int)`?
diff --git a/javaslang/src/main/java/javaslang/collection/Collections.java b/javaslang/src/main/java/javaslang/collection/Collections.java index c7482d0785..e8b0a70d12 100644 --- a/javaslang/src/main/java/javaslang/collection/Collections.java +++ b/javaslang/src/main/java/javaslang/collection/Collections.java @@ -130,7...
1
1
0
[{"id": "G0", "claim": "A note and/or an example for negative `n` should be added to the crossProduct(power) javadoc.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vavr-io__vavr__1622
vavr-io/vavr
1,622
defect
abe2a28d04d3681c40433d135ae1016a4e1db4ba
bdba288985f78fc017ed52f6d4216b1f8fe66c02
Convert Value to Java Parallel Stream
Fix #1592
diff --git a/javaslang/src/main/java/javaslang/Value.java b/javaslang/src/main/java/javaslang/Value.java index 71a065bdb3..a74f6e1568 100644 --- a/javaslang/src/main/java/javaslang/Value.java +++ b/javaslang/src/main/java/javaslang/Value.java @@ -653,6 +653,15 @@ default java.util.stream.Stream<T> toJavaStream() { ...
1
1
0
[{"id": "G0", "claim": "The javadoc of toJavaParallelStream() should be changed to 'Converts this to a parallel {@link java.util.stream.Stream}.' and the javadoc of toJavaStream() to 'Converts this to a sequential {@link java.util.stream.Stream}.'", "category": "documentation", "verdict": "supported", "priority": "P2",...
null
vavr-io__vavr__1695
vavr-io/vavr
1,695
defect
ee2f0945ee4dff33152c0ead6cac7860cb654c94
69bacc79a4f36bb8bcb96408a79f5873120cc011
Re-worked TreeMap comparators, considering null-keys
**Update:** This behavioral change was reverted in #1696 Fixes #1549 ```java Map<K, V> map = TreeMap.empty(); // ordinary Maps are expected to accept null values: map.put(null, "ok"); ```
diff --git a/javaslang/src/main/java/javaslang/collection/TreeMap.java b/javaslang/src/main/java/javaslang/collection/TreeMap.java index 2c942a1856..4296df8d8b 100644 --- a/javaslang/src/main/java/javaslang/collection/TreeMap.java +++ b/javaslang/src/main/java/javaslang/collection/TreeMap.java @@ -51,7 +51,7 @@ private...
2
2
1
[{"id": "G0", "claim": "The exploratory randomTest method the pull request adds to AbstractMapTest is scratch code (debug prints, no assertions, and calls the author annotated as throwing NPE) and must be removed before merge.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
vavr-io__vavr__1712
vavr-io/vavr
1,712
defect
b72230af91a8fbf9d9e64faa4886c61b842a81c2
b30ffd0afd95de8f731607b389230a96adbac70a
Implement Seq.shuffle()
Fix #1318
diff --git a/javaslang/src/main/java/javaslang/collection/Array.java b/javaslang/src/main/java/javaslang/collection/Array.java index e5b8a10e2e..3a9a41a6eb 100644 --- a/javaslang/src/main/java/javaslang/collection/Array.java +++ b/javaslang/src/main/java/javaslang/collection/Array.java @@ -1059,6 +1059,10 @@ public <U>...
3
2
1
[{"id": "G0", "claim": "The IndexedSeq interface is missing an override of shuffle(), which the author is asked to add before the change is pulled.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new Array.shuffle() methods should be reformatted so th...
null
vavr-io__vavr__1792
vavr-io/vavr
1,792
defect
139b83a760581c8e12b7c3850d3accc829916e82
a1660afc9a15b174515a0bb2d237e169b0575fb3
Fixes deadlock on concurrent class initialization
Fixes #1773
diff --git a/javaslang/src/main/java/javaslang/collection/Iterator.java b/javaslang/src/main/java/javaslang/collection/Iterator.java index 3f7a452639..4322a41cd5 100644 --- a/javaslang/src/main/java/javaslang/collection/Iterator.java +++ b/javaslang/src/main/java/javaslang/collection/Iterator.java @@ -22,6 +22,7 @@ im...
1
1
1
[{"id": "G0", "claim": "Passing class literals to ClassInitializer (javaslang.collection.Iterator.class.getName()) loads Iterator and AbstractIterator in the main thread, so the test exercises no concurrency; string constants must be passed instead.", "category": "testing", "verdict": "supported", "priority": "P1", "sc...
null
vavr-io__vavr__1920
vavr-io/vavr
1,920
defect
d9534254b612e4f0c3c8f52453a0ee1c2fc7a6ca
328fbbfa46a2206657e8b84c77136fddecc96d5e
extend predicates with exists forAll (#1470)
Fixed #1470
diff --git a/javaslang/src/main/java/javaslang/Predicates.java b/javaslang/src/main/java/javaslang/Predicates.java index 1f0034a93b..5b1e4092c1 100644 --- a/javaslang/src/main/java/javaslang/Predicates.java +++ b/javaslang/src/main/java/javaslang/Predicates.java @@ -138,4 +138,28 @@ public static <T> Predicate<T> noneO...
2
2
2
[{"id": "G0", "claim": "Please change the exists and forAll combinators from Value<T> to Iterable<T> (lifting via Iterator.ofAll), using the implementation the reviewer provided.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please add the two suggested...
null
vavr-io__vavr__2129
vavr-io/vavr
2,129
defect
a1800e90ed9f6a778e7ff477458e3fc6e95d2e64
2bed106e54778af5008256d2a66293d617509612
Add tree factory method for build from flat source
Fix #2122
diff --git a/vavr/src/main/java/io/vavr/collection/Tree.java b/vavr/src/main/java/io/vavr/collection/Tree.java index e2d102447b..73cfc06c1c 100644 --- a/vavr/src/main/java/io/vavr/collection/Tree.java +++ b/vavr/src/main/java/io/vavr/collection/Tree.java @@ -228,11 +228,42 @@ static <T> Tree<T> fill(int n, Supplier<? e...
1
1
0
[{"id": "G0", "claim": "The Javadoc of the new Tree.build factory is incomplete: it carries only a 'todo Example' placeholder, and the requested usage example (MenuItem items shown as a menu tree) should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vavr-io__vavr__2166
vavr-io/vavr
2,166
defect
0949a8978375cfeee969c06fb827afdc443c332a
7fe975c251f10b43ba78d494258656fac7e06cf5
Implement Seq rotateLeft/rotateRight methods
Fix #1863
diff --git a/vavr/src/main/java/io/vavr/collection/Array.java b/vavr/src/main/java/io/vavr/collection/Array.java index da671336a4..b1982b2c80 100644 --- a/vavr/src/main/java/io/vavr/collection/Array.java +++ b/vavr/src/main/java/io/vavr/collection/Array.java @@ -1157,6 +1157,16 @@ public Array<T> reverse() { }...
4
4
1
[{"id": "G0", "claim": "The javadoc of rotateLeft and rotateRight in Seq.java duplicates the word 'elements' (\"rotates the elements elements\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rotateRight javadoc in Seq.java says the elements ...
null
vavr-io__vavr__2484
vavr-io/vavr
2,484
defect
68817b2a851bc67e7b5dc567ec94037216161685
2f28d74b4b2c415c7f9057db9769ae1f4d71318e
Fix integer overflow in range
This is a draft pull request for handling https://github.com/vavr-io/vavr/issues/2263 Integer overflow problem in `Stream.rangeClosedBy`. Note that, this draft PR does not cover all acceptance criteria from the issue. It's mainly for discussion purpose. It means: - It only contains changes for integer, need to exten...
diff --git a/src/main/java/io/vavr/collection/Iterator.java b/src/main/java/io/vavr/collection/Iterator.java index b4b7b5b90c..8139d348a8 100644 --- a/src/main/java/io/vavr/collection/Iterator.java +++ b/src/main/java/io/vavr/collection/Iterator.java @@ -742,14 +742,14 @@ static Iterator<Integer> rangeClosedBy(int from...
1
1
0
[{"id": "G0", "claim": "The emptiness check `Integer.signum(step) == Integer.signum(from - toInclusive)` still fails for from=Integer.MAX_VALUE, toInclusive=-5 and step=-1, and it would be better to completely remove that check and instead perform the step==0 and empty-result checks inside the `step > 0` and `step < 0`...
null
vavr-io__vavr__2493
vavr-io/vavr
2,493
defect
2160e7c6f9e3eccbf3790c045a05298a2260418e
c6b86a580348f87fec288fe236875e85e0eedc34
Introduce Either.recover method
This method is useful if you have a Left and want to try and convert it to a Right by calling a fallback method like `getOrElseGet`, but your fallback method might also fail and return another Left. I've been using something like this to conveniently implement read-through caches, but it would be nicer if it was built ...
diff --git a/src/main/java/io/vavr/control/Either.java b/src/main/java/io/vavr/control/Either.java index 798ea604f7..2f4f91d8f5 100644 --- a/src/main/java/io/vavr/control/Either.java +++ b/src/main/java/io/vavr/control/Either.java @@ -483,6 +483,50 @@ public final Either<R, L> swap() { } } + /** + ...
5
5
3
[{"id": "G0", "claim": "Add Objects.requireNonNull(recoverFunction, \"recoverFunction is null\") to the new recover method and a @throws NullPointerException if the given recoverFunction is null.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename...
null
vavr-io__vavr__2594
vavr-io/vavr
2,594
defect
41265345453428a0ab929b7aaa73589e591654df
6f9c63fa7c0660203e6462c3a60317521cb9b31e
fixes #2584 -- Add Seq.getOption(int) and Seq.getOrElse(int, T)
i believe the PR is correct, however I am annoyed by the code duplication between get, getOrElse and getOption, especially for List, Stream and Queue. However I think it's unavoidable if we don't want to create "unnecessary" intermediary objects at runtime, which would enable code reuse (or worse, catching exception...
diff --git a/src/main/java/io/vavr/collection/Array.java b/src/main/java/io/vavr/collection/Array.java index f06e272b2d..0acbda8776 100644 --- a/src/main/java/io/vavr/collection/Array.java +++ b/src/main/java/io/vavr/collection/Array.java @@ -781,6 +781,24 @@ public T get(int index) { return (T) delegate[index...
1
1
1
[{"id": "G0", "claim": "Replace the per-collection duplicated getOption/getOrElse implementations with default methods on Seq built on isDefinedAt and get, ensure isDefinedAt is efficient per collection (0 <= index < length() for Array, List, Queue, Vector and CharSeq), and keep explicit overrides only for Stream.", "c...
null
vavr-io__vavr__2595
vavr-io/vavr
2,595
defect
41265345453428a0ab929b7aaa73589e591654df
c7c2bcb277e13bd14f0b84d28c54ba95ecd0fefc
Add a version of toMap that accepts a mergeFunction
WIP implementation of https://github.com/vavr-io/vavr/issues/2593. Todo: - [x] what about `Set`s? - [x] what about `toLinkedMap`/`toSortedMap`? - [x] docs.
diff --git a/src/main/java/io/vavr/collection/Seq.java b/src/main/java/io/vavr/collection/Seq.java index 957c161278..0932a83b7b 100644 --- a/src/main/java/io/vavr/collection/Seq.java +++ b/src/main/java/io/vavr/collection/Seq.java @@ -1308,4 +1308,21 @@ default <U> U foldRight(U zero, BiFunction<? super T, ? super U, ?...
2
1
0
[{"id": "G0", "claim": "Consider implementing the merging toMap in Value as a static method that takes ofElement/ofAll factory functions instead, though the author notes this makes the compiler a bit unhappy.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G5", "claim":...
null
vavr-io__vavr__2598
vavr-io/vavr
2,598
defect
cbbfd3d6eb7be41f3f3012ac128862345b2fd99a
efbbb9f5a4c2150af897b650c8c643442bee3a38
Add a version of toSortedMap that accepts a mergeFunction
Following up on https://github.com/vavr-io/vavr/pull/2595#issuecomment-630939379 adding a merge function to `toSortedMap`.
diff --git a/src/main/java/io/vavr/collection/Traversable.java b/src/main/java/io/vavr/collection/Traversable.java index a41592bc24..4c944f196b 100644 --- a/src/main/java/io/vavr/collection/Traversable.java +++ b/src/main/java/io/vavr/collection/Traversable.java @@ -1704,6 +1704,43 @@ default Number sum() { */ ...
3
3
0
[{"id": "G0", "claim": "Add a shortcut for the empty case so toSortedMap returns TreeMap.empty(comparator) without delegating, and do the same for toMap and toLinkedMap.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the toSortedMap parameter...
null
vavr-io__vavr__2601
vavr-io/vavr
2,601
defect
f59cd60be14b09489f10250ee145a10516664c17
03644e794f7134019ab7c17c5a9bc88f8137bdc9
Add a version of toLinkedMap that accepts a mergeFunction
Following up on https://github.com/vavr-io/vavr/pull/2595#issuecomment-630939379 adding a merge function to `toLinkedMap`. @danieldietrich I'm not sure if I managed to capture all challenges you mentioned in [your comment](https://github.com/vavr-io/vavr/pull/2595#issuecomment-630939379). So please let me know if I ...
diff --git a/src/main/java/io/vavr/collection/Traversable.java b/src/main/java/io/vavr/collection/Traversable.java index 59d70bf235..2ce2a6687f 100644 --- a/src/main/java/io/vavr/collection/Traversable.java +++ b/src/main/java/io/vavr/collection/Traversable.java @@ -1744,6 +1744,23 @@ default <K extends Comparable<? su...
1
1
1
[{"id": "G0", "claim": "The new toLinkedMap(keyMapper, valueMapper, merge) does not maintain key order matching the iteration order of the collection's elements, since toMap guarantees no key order and the current passing behaviour rests on a HashMap implementation detail, so extra work is needed to order the keys of t...
null
vavr-io__vavr__2695
vavr-io/vavr
2,695
defect
c3e4db096d55cef0924db01c38c7eb3470c64c71
8096c618256ec464418875bf07a48e067170d545
Add Validation.getOrElseThrow(Function<E, X>)
Closes https://github.com/vavr-io/vavr/issues/2693
diff --git a/src/main/java/io/vavr/control/Validation.java b/src/main/java/io/vavr/control/Validation.java index a4a733bc25..fdd45322d9 100644 --- a/src/main/java/io/vavr/control/Validation.java +++ b/src/main/java/io/vavr/control/Validation.java @@ -657,6 +657,33 @@ public final <U> U fold(Function<? super E, ? extend...
1
1
1
[{"id": "G0", "claim": "Tests should be added covering the edge case where a null exceptionFunction is passed to the new Validation.getOrElseThrow(Function) (expected NullPointerException on both Valid and Invalid).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vavr-io__vavr__3061
vavr-io/vavr
3,061
defect
b41ffdac42853f92ccc8169054347b41507ec526
3a863a1b6cdf00bbc330fded3efa43e8b789860d
New feature: Either.cond
Added support for Either.cond, similar to the one we can find in the Scala library: https://github.com/scala/scala/blob/6a23d33c53afa7b42f64bebaee9e0fc24479df6f/src/library/scala/util/Either.scala#L507
diff --git a/vavr/src/main/java/io/vavr/control/Either.java b/vavr/src/main/java/io/vavr/control/Either.java index 93129ecf54..4a086f698d 100644 --- a/vavr/src/main/java/io/vavr/control/Either.java +++ b/vavr/src/main/java/io/vavr/control/Either.java @@ -111,6 +111,101 @@ static <L, R> Either<L, R> narrow(Either<? exte...
3
3
0
[{"id": "G0", "claim": "The nullable boxed Boolean test parameter has no value over a primitive boolean, which would also allow skipping the requireNonNull check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Attribution should be moved to class level t...
null
vavr-io__vavr__3086
vavr-io/vavr
3,086
defect
e3937c4cde1229f3fd588366abcd395452a1241e
a9c5c55a1ee458b6d4105978f4b6181197953c3f
New feature: .mapTo(U) and .mapToVoid() for Value<T>
Hey, during my daily work I find myself writing `.flatMap(something).map(__ -> null)` or `.flatMap(somethingElse).map(ignored -> fixedValue)` way too often. this is an attempt to solve this issue :)
diff --git a/vavr/src/main/java/io/vavr/Value.java b/vavr/src/main/java/io/vavr/Value.java index c9d996a451..075bfe9f4c 100644 --- a/vavr/src/main/java/io/vavr/Value.java +++ b/vavr/src/main/java/io/vavr/Value.java @@ -416,6 +416,14 @@ default T getOrNull() { return isEmpty() ? null : get(); } + defa...
2
2
1
[{"id": "G0", "claim": "The names of the two new Value methods should be changed, since `as` conflicts with vavr's existing `as*` wrapper-type-conversion convention (e.g. `asJava()`) and `voided` is unclear — with proposals ranging from `with()`/`withVoid()` to `mapTo(U)`/`mapToVoid()`.", "category": "design", "verdict...
null
vbatts__go-mtree__32
vbatts/go-mtree
32
defect
9bec5e46b7c2dacca4c202289dec11779c376c16
2062c5a542c24d1f758db41e5db9ff7907398324
vis: refactored code to reflect using vis() to represent file names
Refactored gomtree with the `vis` and `unvis` C functions. Validation manifest should now be in same format with upstream mtree in terms of how filenames are represented. Signed-off-by: Stephen Chung schung@redhat.com
diff --git a/check.go b/check.go index d27b50f9..5c17a880 100644 --- a/check.go +++ b/check.go @@ -50,7 +50,11 @@ func Check(root string, dh *DirectoryHierarchy, keywords []string) (*Result, err creator.curSet = nil } case RelativeType, FullType: - info, err := os.Lstat(e.Path()) + pathname, err := e.Pa...
6
4
2
[{"id": "G0", "claim": "strvis returns the number of characters written to dst rather than an error flag, so the ret == 0 error check looks wrong and Vis may not need to return an error at all.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Unvis'...
null
vbauerster__mpb__23
vbauerster/mpb
23
defect
25897e112112b29a17682c233635ff9383f288a0
7ad6ccbe317ca4218d4dcec5ca4c24d4db273756
Add I/O operation speed decorator
Unit variants: KiB, kB, no unit Example gifs: ![mpb-multi](https://user-images.githubusercontent.com/3612285/40423342-e70b3658-5e9a-11e8-800d-cab8a8a1376b.gif) ![mpb-single](https://user-images.githubusercontent.com/3612285/40423343-e734dea4-5e9a-11e8-9495-fe43de04f1a6.gif)
diff --git a/decor/decorators.go b/decor/decorators.go index 465c7643..c01b7310 100644 --- a/decor/decorators.go +++ b/decor/decorators.go @@ -266,3 +266,84 @@ func CalcPercentage(total, current, width int64) (perc int64) { } return int64(ceil) } + +// SpeedNoUnit returns raw I/O operation speed decorator. +// +//...
3
3
0
[{"id": "G0", "claim": "The PR's complex speed-calculation algorithm may not be worth having when a simpler calculation, like the one the maintainer uses in getparty, would suffice.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "Rename the minWidth paramete...
null
vbpf__prevail__1004
vbpf/prevail
1,004
defect
688809116583a59d1242d9e5e19f2843e3b4535c
b520035581886784ac494ccf0aca46aa0c2c4b4a
Implement LDDW map-by-index pseudos
- Mark atomic xchg/cmpxchg as fully Supported. Shared memory correctly havocs (volatile); stack imprecision is intentional since atomics on thread-local memory have no real use case - Implement LDDW map-by-index (src=5) and map-value-by-index (src=6) pseudo instructions, resolving them to LoadMapFd/LoadMapAddres...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8150af4b1..fd133e7de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ if (NOT DEFINED CMAKE_MSVC_RUNTIME_LIBRARY) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL") endif () -project(prevail VERSION 0.1.1) +project(prevail ...
1
1
0
[{"id": "G0", "claim": "The else branch of resolve_map_by_index implicitly assumes the kind is MAP_VALUE_BY_IDX; add an assert (or explicit check) to document and enforce that only these two kinds reach this function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vbpf__prevail__1019
vbpf/prevail
1,019
defect
9590c971d110f8323db36026fe665ae89d64f0b7
3ed6abf0d33a1e2de617c7e748cccc05e7b8236d
Support LDDW pseudo addr lowering and tail-call parity checks
## Summary - lower `LDDW` pseudo address forms (`src=3` / `src=4`) into concrete 64-bit scalar immediate loads during CFG construction - allow tail calls in subprogram contexts by removing the blanket rejection and enforce Linux-like tail-call chain depth limit (33) during CFG validation - add/adjust coverage in unmars...
diff --git a/docs/feature-support-matrix.md b/docs/feature-support-matrix.md index 0b6043ba2..5b5348a30 100644 --- a/docs/feature-support-matrix.md +++ b/docs/feature-support-matrix.md @@ -52,8 +52,8 @@ Capability and configuration checks are described in `Notes / Evidence`; they do | LDDW immediate (`src=0`) | Suppor...
10
7
2
[{"id": "G0", "claim": "The worklist revisit rule only prunes lower-or-equal depths, so any CFG cycle containing a tail-call site keeps being re-enqueued with ever larger depths until it exceeds 33 and throws, which can reject bounded loop programs that invoke bpf_tail_call.", "category": "correctness", "verdict": "sup...
null
vbpf__prevail__1021
vbpf/prevail
1,021
defect
9590c971d110f8323db36026fe665ae89d64f0b7
0428b13679d1c1b3fb3730f77ce2600c1264651d
Expand Linux platform tables and unalias helper ABI type classes
## Summary - add missing Linux program/map table entries required for parity tracking - extend helper prototype coverage and remove enum aliasing to unsupported argument classes - keep runtime behavior conservative for unsupported helper argument types while exposing accurate prototype metadata ## Validation - cmake -...
diff --git a/docs/parity/helper-families.md b/docs/parity/helper-families.md index 921e61b6c..5cd515130 100644 --- a/docs/parity/helper-families.md +++ b/docs/parity/helper-families.md @@ -42,4 +42,4 @@ when all its members are semantically functional. ## Helpers beyond table range -- [ ] **Helpers beyond 0-211 in...
4
1
1
[{"id": "G0", "claim": "The bpf_get_current_task_btf_proto initializer puts .name and .return_type on one line, diverging from the file's one-field-per-line convention, and should be split onto separate lines.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1"...
null
vbpf__prevail__1023
vbpf/prevail
1,023
defect
9590c971d110f8323db36026fe665ae89d64f0b7
7faf495078c9e8763acc15506cb9225402f89dc3
Add table-driven kfunc CALL src=2 resolution and validation
## Summary - add `src/ir/kfunc.{hpp,cpp}` with a table-driven kfunc prototype lookup and call-contract construction - resolve `CALL src=2` (`CallBtf`) during CFG construction into typed `Call` instructions for supported BTF IDs - replace blanket `CallBtf` rejection with explicit unknown/unsupported kfunc diagnostics - ...
diff --git a/docs/feature-support-matrix.md b/docs/feature-support-matrix.md index 0b6043ba2..76bb2c01b 100644 --- a/docs/feature-support-matrix.md +++ b/docs/feature-support-matrix.md @@ -40,7 +40,7 @@ Capability and configuration checks are described in `Notes / Evidence`; they do | `CALL` helper by static ID (`src=...
7
7
1
[{"id": "G0", "claim": "Remove the redundant `static` qualifiers on definitions inside the anonymous namespace in kfunc.cpp (`kfunc_prototypes`, `lookup_kfunc_prototype`, `to_arg_single_kind`, `to_arg_pair_kind`, `set_unsupported`), which Clang flags.", "category": "maintainability", "verdict": "supported", "priority":...
null
vbpf__prevail__1024
vbpf/prevail
1,024
defect
bebcb60263345f759e70e4cfc79ab2f6a9a2ee86
07ba4cb7d85efb0d426ed4384e33944ed6d65875
Model additional helper ABI classes and harden call semantics
Enable helper/kfunc ABI classes for socket, btf_id, alloc_mem, timer/spin_lock, const_alloc_size_or_zero, and ptr_to_long/int through unmarshal, assertions, transformer, and printing paths. Add typed helper return metadata on Call and map new Linux return classes (including imprecise PTR_TO_MEM_OR_BTF_ID collapse to...
diff --git a/src/crab/ebpf_transformer.cpp b/src/crab/ebpf_transformer.cpp index b719a4df4..60290da06 100644 --- a/src/crab/ebpf_transformer.cpp +++ b/src/crab/ebpf_transformer.cpp @@ -808,11 +808,40 @@ void EbpfTransformer::operator()(const Call& call) { case ArgSingle::Kind::PTR_TO_MAP_VALUE: case A...
3
2
0
[{"id": "G0", "claim": "The duplicated ebpf_return_type_t-to-(return_ptr_type, return_nullable) mapping in kfunc.cpp and unmarshal.cpp should be extracted into a shared helper so the two copies cannot diverge.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
vbpf__prevail__1025
vbpf/prevail
1,025
defect
4834355711e039687c67d3118bd858e6a8747a8f
3dedb73cbd8abbe091d662c29d3832123288c1bb
Handle Call builtins: fix handling of Falco tests
This PR improves Linux call-model parity and Falco coverage in three parts: 1. Adds relocation-gated builtin call support (memset, memcpy, memmove, memcmp) through the platform call model. 2. Ensures builtins are only interpreted as builtins at relocation-proven call sites (no accidental ID-based reinterpretati...
diff --git a/src/elf_loader.cpp b/src/elf_loader.cpp index 2f7968400..3a29ae276 100644 --- a/src/elf_loader.cpp +++ b/src/elf_loader.cpp @@ -634,6 +634,7 @@ class ProgramReader { const ElfGlobalData& global; std::vector<FunctionRelocation> function_relocations; std::vector<std::string> unresolved_symbol_...
3
2
0
[{"id": "G0", "claim": "Use std::move instead of copying builtin_offsets_for_current_program into program_info.builtin_call_offsets, since the set is cleared on the next iteration anyway and this is purely a clarity improvement.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
vbpf__prevail__1042
vbpf/prevail
1,042
defect
f215023da069569aca8823ff1500d684f6f281a7
745eb0946585e64a21982ddd5e4d12a13e1d0ba0
Human-friendly CLI output for bin/prevail
## Summary - Replace CSV output (`{0|1},{seconds},{memory_kb}`) with human-readable `PASS:`/`FAIL:` messages showing `section/function` - On failure, print the first error and a hint pointing to `--failure-slice` / `-v` (suppressed when diagnostic flags are active) - Add `-q`/`--quiet` (exit code only) and `--cfg` (re...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2692deee..9db097614 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: run: > valgrind --leak-check=full --errors-for-leak-kinds=all --show-leak-kinds=all --error-...
20
8
4
[{"id": "G0", "claim": "AGENTS.md's spot-check command uses `./prevail` instead of `./bin/prevail`, inconsistent with the binary's location and every other documented invocation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The README's fenced c...
null
vbpf__prevail__1045
vbpf/prevail
1,045
defect
a69e70a043f5376016bc689596e3af72cb06a3b2
8fbeb0b5a57958d4cb041e1f2388197fb8f5ee1c
Add .ksyms kfunc relocation support
Rewrite .ksyms kfunc extern calls to call_btf during ELF relocation via platform callback resolution and preserve module offset in IR marshal/unmarshal. Changes: - Add platform callback (resolve_ksym_btf_id) for symbol-to-{btf_id,module} resolution - Pre-parse .BTF .ksyms function symbols and cache resolution in E...
diff --git a/src/io/elf_extern_resolve.cpp b/src/io/elf_extern_resolve.cpp index 314e5d633..3fac718fc 100644 --- a/src/io/elf_extern_resolve.cpp +++ b/src/io/elf_extern_resolve.cpp @@ -112,4 +112,21 @@ bool rewrite_extern_address_load_to_zero(std::vector<EbpfInst>& instructions, co return true; } +bool rewrite_...
11
7
6
[{"id": "G0", "claim": "BTF type parsing in build_ksym_function_resolution_cache can throw on malformed .BTF data and, unlike the CO-RE relocation path, is not wrapped in try/catch, so a malformed .BTF section surfaces as an unhandled exception instead of a clean UnmarshalError.", "category": "correctness", "verdict": ...
null
vbpf__prevail__1048
vbpf/prevail
1,048
defect
b9010eee49f1d0da0718e5ed79dc95d0e81a4011
75f6c7cf6b44489e6df5b026701a31717b183ac1
Fix load_elf to support non-file istream paths and add regression tests
Fix load_elf istream fallback and add Assume regression tests load_elf fix: The ELF loader overhaul (#1026) added section-bounds validation using file_size(path) in load_elf(istream, path). This breaks callers that pass in-memory data via std::stringstream with a non-file path like "memory" — file_size("memory") f...
diff --git a/src/io/elf_reader.cpp b/src/io/elf_reader.cpp index 9a74d270b..30d221479 100644 --- a/src/io/elf_reader.cpp +++ b/src/io/elf_reader.cpp @@ -230,10 +230,20 @@ ELFIO::elfio load_elf(std::istream& input_stream, const std::string& path) { throw MalformedElf("Unsupported ELF machine in file " + path + ...
2
2
0
[{"id": "G0", "claim": "Extract the data-size determination (file_size with stream-fallback) out of load_elf into a dedicated get_data_size function instead of leaving it inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request bu...
null
vbpf__prevail__1054
vbpf/prevail
1,054
defect
4790e81995a86fa98b93b23da8f2a3619b8971fc
f64c1dd26387b6d47555a53ed1828d3bbc236632
Fix rewrite_extern_constant_load crash on values exceeding int32 range
Fixes #1053 rewrite_extern_constant_load() rewrites LDDW + LDX instruction pairs into MOV imm when resolving .kconfig extern constants. It called gsl::narrow<int32_t>(narrowed_value) to store the resolved value into the BPF instruction's 32-bit imm field. BPF MOV imm has a 32-bit immediate that is sign-extended ...
diff --git a/src/io/elf_extern_resolve.cpp b/src/io/elf_extern_resolve.cpp index 3fac718fc..76d459073 100644 --- a/src/io/elf_extern_resolve.cpp +++ b/src/io/elf_extern_resolve.cpp @@ -1,5 +1,7 @@ // Copyright (c) Prevail Verifier contributors. // SPDX-License-Identifier: MIT +#include <cstdint> +#include <limits> #...
3
3
2
[{"id": "G0", "claim": "The comment's justification that the uint64_t to int64_t conversion is implementation-defined is incorrect (it is well-defined in C++20); apply the sign-extension round-trip check for clarity but update the justification.", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
vbpf__prevail__1070
vbpf/prevail
1,070
defect
daceb4f84836bb9d1a3f1269f1ca7d73ce6f7b22
1f8cb9395c88fec1ebc7174edc922af8638a7ab6
Make stack size and call depth runtime parameters
- Add `--stack-size` (default 512) and `--max-call-stack-frames` (default 8) CLI options, backed by fields in `ebpf_verifier_options_t` - Replace `std::bitset<EBPF_TOTAL_STACK_SIZE>` with `boost::dynamic_bitset<>` in BitsetDomain to support runtime-sized stacks - Remove the `EBPF_SUBPROGRAM_STACK_SIZE`, `EBPF_TOTAL_S...
diff --git a/README.md b/README.md index 6b771ef6c..2075c961a 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,10 @@ Features: --allow-division-by-zero, --no-division-by-zero{false} Handling potential division by zero. Default: allow -s, --strict Apply ad...
8
4
4
[{"id": "G0", "claim": "calculate_constant_limits() now caches a domain bounded by thread_local_options.total_stack_size() in thread-local state that persists until clear_thread_local_state(), and Program::from_sequence updates thread_local_options without clearing that cache, so verifying multiple programs in one thre...
null
vbpf__prevail__127
vbpf/prevail
127
defect
51bc82aef5dd7c2abd91e77693c67bfe57b22bfb
eda297c2fabe45f0f6e0bdd5ebaffe9be7fc21f5
Use structured pairs for labels
Instead of encoding labels as strings (and then parsing those strings), use a dedicated struct. Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index 4bd30a8f8..e79fe7289 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -8,6 +8,7 @@ #include <string> #include <vector> +#include "crab_utils/debug.hpp" #include "asm_syntax.hpp" #include "crab/cfg.hpp" @@ -34,16 +35,21 @@ static bool has_fall(Instruction...
1
1
1
[{"id": "G0", "claim": "The Jmp visitor added by the PR just does assert(false); if an eBPF program could be constructed to hit that case, it should throw a C++ exception instead of only asserting.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vbpf__prevail__138
vbpf/prevail
138
defect
79e3b749101de0ef40453bae07dce5f0b5a4ee9c
08bd3abd208808bf68510c9e8ebf9000e0409a6e
Use one test case per ebpf-section
Follow up for #135 * Each section (=eBPF program) as an independent test. SECTION is when we have similar preparation. We don't have this for different files from the same project, and only the ELF-parsing is the same for different sections in the same file. I opted not to use the [GENERATE](https://github.com/catchor...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ec977bd1..7823fe4e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,4 +23,4 @@ jobs: cmake --build build -j $(nproc) - name: Run unit tests - run: ./tests + run: ./tests -d y...
1
1
0
[{"id": "G0", "claim": "The two map-in-map TEST_SECTION_FAIL lines should be moved up (by line 322 in the S1 file) into the previous test case rather than sitting in the unverified-samples case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vbpf__prevail__157
vbpf/prevail
157
defect
00045b36b5ece293173e49ab2be898cb383da1a3
abed48e9f6527dc6a1451926a7a1815047e1bfb5
Add tests from the Falco project
A single file from the Falco project ([falco.org/](https://falco.org)) has been added to the ebpf-samples repository. This PR adds the sections in this file as tests. There are 94 programs in this file; all except 13 contain an invalid `call` instruction (not sure why).
diff --git a/src/asm_files.cpp b/src/asm_files.cpp index e436a0c7a..6af8d3617 100644 --- a/src/asm_files.cpp +++ b/src/asm_files.cpp @@ -26,9 +26,15 @@ static vector<T> vector_of(ELFIO::section* sec) { } int create_map_crab(uint32_t map_type, uint32_t key_size, uint32_t value_size, uint32_t max_entries, ebpf_verifi...
3
1
0
[{"id": "G0", "claim": "Add a comment above the map_type == 12 || map_type == 13 check explaining that BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS are not yet supported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no longe...
null
vbpf__prevail__173
vbpf/prevail
173
defect
25f5537d1bd5f3756394a4f5a33e38048df44f98
69a2ac61147f55e4879ac8326d3b9e7cf87ed3f1
Validate calls to ebpf_map_update_elem()
If the a lower bound on the start address is known, iterate through all bytes and check in the bitmap to see they hold numerical values. Only check for stack, since packet is guaranteed to hold only numerical values. Fix #170. Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
diff --git a/src/crab/array_domain.cpp b/src/crab/array_domain.cpp index a4511ca38..1368b81e4 100644 --- a/src/crab/array_domain.cpp +++ b/src/crab/array_domain.cpp @@ -291,6 +291,15 @@ array_domain_t::kill_and_find_var(NumAbsDomain& inv, data_kind_t kind, const lin return res; } +bool array_domain_t::all_num(N...
2
2
1
[{"id": "G0", "claim": "The new bitset_domain_t::all_num helper, which assumes the lower bound is inclusive and the upper bound is exclusive, should carry a comment saying so.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After merging #171, test...
null
vbpf__prevail__211
vbpf/prevail
211
defect
4950803304943899e3f1e2ddbdfe81521c9f80d0
20e8f09ea7943b00543de4309372f320ea3fd745
Make wronghelper.o fail unmarshal()
The basic idea is that it is up to the platform to determine whether a given helper ID is valid for a given program type. This PR updates the Linux platform implementation to verify that the helper's ctx (if any) has the same context_descriptor as the program type. The platform might still have further constraints t...
diff --git a/src/asm_unmarshal.cpp b/src/asm_unmarshal.cpp index 31eaf51f1..7af45dee3 100644 --- a/src/asm_unmarshal.cpp +++ b/src/asm_unmarshal.cpp @@ -428,9 +428,10 @@ struct Unmarshaller { } }; -std::variant<InstructionSeq, std::string> unmarshal(const raw_program& raw_prog, const ebpf_platform_t* platform, ...
1
1
0
[{"id": "G0", "claim": "The macro's TEST_CASE string should spell \"unmarshalling\" instead of \"unmarshaling\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vbpf__prevail__217
vbpf/prevail
217
defect
0b62d8264e1ffe44e89ba2501c7846f607244d9c
2796595df0c4c293872c5c637a08a364018e342b
Optionally check for indexing outside of map array bounds
Provide a "strict" option that is not the default. If the developer opts in to this flag, the verifier will do some additional checks for things that are potential bugs in the program. Per comments in #175 from poornagmsft and xfoukas, this can help with preventing failures, improving developer efficient, and even i...
diff --git a/src/config.cpp b/src/config.cpp index fbf88d5b8..a8dcd6533 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -8,5 +8,6 @@ const ebpf_verifier_options_t ebpf_verifier_default_options = { .print_invariants = false, .print_failures = false, .no_simplify = false, - .mock_map_fds = true + ...
3
2
0
[{"id": "G0", "claim": "The tautological require(m_inv, linear_expression_t(0) != 0, ...) idiom used to fail validation should be encapsulated in a require_false() method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new key-lookup code sh...
null
vbpf__prevail__247
vbpf/prevail
247
defect
77308c91d8fe8da862329e4ce54cfa43d027a8a4
3c94f707832953da9bd7b24bb10a6df1e963c7ff
Support Map-in-map
Fix #228 * Use offset instead of value for FD since it is a nullable pointer * Coarser-grained equivalence since the number of hash entries is irrelevant Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index c35551535..8e2123e48 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -160,7 +160,7 @@ static cfg_t to_nondet(const cfg_t& cfg) { static std::string instype(Instruction ins) { if (std::holds_alternative<Call>(ins)) { auto call = std::get<Call>(ins...
1
1
0
[{"id": "G0", "claim": "The cout-dependent print_map_descriptors should be kept out of asm_files.cpp (e.g. moved to a separate file) or made to take the output stream as a parameter, so binaries linking prevail as a library with no UI can omit iostream code.", "category": "design", "verdict": "supported", "priority": "...
null
vbpf__prevail__259
vbpf/prevail
259
defect
0f8b3de6e7a199f955cf88937da5a4fa7a5a71a9
4796ddd6d8f44ac279864a3c4a1bbbc88504439b
Use YAML for data-driven tests
Using YAML files for tests should be easier than (and complementary to) the current approach of compiling ELF files. Proposed format: ``` test-case: re-assign immediate pre: ["r1.value=5", "r1.type=number"] code: <start>: | r1 = 0 post: - r1.type=number - r1.value=0 --- ``` Each file is...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 550f01041..2db25cc1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Install dependencies run: | - sudo apt install libboost-dev + sudo ap...
5
5
1
[{"id": "G0", "claim": "The commented-out debug line \"// print(prog, std::cout, {});\" in foreach_suite serves no purpose and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The includes in the new parse_constraints.hpp should...
null
vbpf__prevail__277
vbpf/prevail
277
defect
cda18c05695f8a79ddaea3ebb1f7fa023ac51c8c
e62e8ac415171d9253f72b41b80d256e4424bcef
Allow map_fd intervals
This case comes up in real eBPF programs, such as in Cilium's DSR code, where two maps differ only by max_entries. This change allows them to be used as long as the map type (and inner_map_fd, if a map of maps) are the same. Also, the Linux kernel verifier apparently allows this as well. The PR for the ebpf-sam...
diff --git a/ebpf-samples b/ebpf-samples index 4c6cb43ac..17ecf878b 160000 --- a/ebpf-samples +++ b/ebpf-samples @@ -1 +1 @@ -Subproject commit 4c6cb43ac335a92fb5508a030b7929c56f224016 +Subproject commit 17ecf878b8f136fa069e8a7036c9c965df948639 diff --git a/src/asm_files.cpp b/src/asm_files.cpp index 7b3cc2cb3..87338e4...
11
9
2
[{"id": "G0", "claim": "Tracking map FDs as an interval only works if the FDs in the range happen to be usable and depends on FD ordering, so it should really be a set of FDs; failing that, use the interval implementation with a note in the code that a set would be more precise.", "category": "design", "verdict": "supp...
null
vbpf__prevail__292
vbpf/prevail
292
defect
ab41b54691b81714fecde27510003b9623a9d9a5
5356ffe3be69b3c090568afc2373a930bff1415a
Track stack_numeric_size per register to allow verifying programs that join multiple stack regions
This change allows the verifier to deal with the twostackvars sample in https://github.com/vbpf/ebpf-samples/pull/21 where "stack_numeric_size" is tracked per variable that contains a stack pointer. The case in twostackvars.o happens commonly in practice due to register spilling, such as in the Cilium layer-4 load ...
diff --git a/src/crab/array_domain.cpp b/src/crab/array_domain.cpp index fc36a1bf9..2b1e1f1d2 100644 --- a/src/crab/array_domain.cpp +++ b/src/crab/array_domain.cpp @@ -481,6 +481,20 @@ bool array_domain_t::all_num(NumAbsDomain& inv, const linear_expression_t& lb, c return this->num_bytes.all_num((int)*min_lb, (in...
19
12
2
[{"id": "G0", "claim": "min_all_num_size should return 0 instead of false when the offset bounds are not usable numbers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "min_all_num_size can be computed more simply and faster from all_num_width at...
null
vbpf__prevail__302
vbpf/prevail
302
defect
222214bef0eec4a56ff5b9fd8ed668cd3fb42e0d
1eaf009f019698a5c1b3f35e93d10fc56d815b43
Augment LabeledInstruction with source/file/line info from BTF
Parse BTF section of ELF file (if present). Add btf_line_info to each instruction. Update "print" to include line number and source. Resolves: #301 Resolves: #303 Depends on: https://github.com/vbpf/ebpf-samples/pull/23 Signed-off-by: Alan Jowett <alanjo@microsoft.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c949a169..37cafd5f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ file(GLOB ALL_TEST "./src/test/test.cpp" "./src/test/test_loop.cpp" "./src/test/test_marshal.cpp" + "./src/test/test_print.cpp" "./src/tes...
11
11
1
[{"id": "G0", "claim": "The comment in src/asm_files.cpp should be reworded to say that BTF doesn't include line info for every instruction, only on the first instruction per source line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #include...
null
vbpf__prevail__309
vbpf/prevail
309
defect
c46d1bb01c698f4b96df6176a62c7beddbeb6ac4
4dafd8537e1a2fd8dc2ea03972bfc21403ef5005
Add option to print line info on verification
Add option to suppress line info. Resolves: #308 Signed-off-by: Alan Jowett <alanjo@microsoft.com>
diff --git a/src/asm_ostream.cpp b/src/asm_ostream.cpp index d638f0082..2ff2cde5a 100644 --- a/src/asm_ostream.cpp +++ b/src/asm_ostream.cpp @@ -357,7 +357,8 @@ auto get_labels(const InstructionSeq& insts) { return pc_of_label; } -void print(const InstructionSeq& insts, std::ostream& out, std::optional<const la...
7
6
1
[{"id": "G0", "claim": "check.cpp should also get a command-line option that sets the new print_line_info option.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "config.cpp should explicitly initialize the new print_line_info field in ebpf_verifier_defaul...
null
vbpf__prevail__313
vbpf/prevail
313
defect
ab41b54691b81714fecde27510003b9623a9d9a5
100435b0d8090c434d91c76cf29b8e021c814c42
Fix comment in test_verify.cpp about lost implications
Now that an offset is tracked separately per pointer type, there are other reasons that some test cases are failing. This PR updates the comment and adds a corresponding YAML test that illustrates why it is expected to fail with the current verifier. Signed-off-by: Dave Thaler <dthaler@microsoft.com>
diff --git a/src/test/test_verify.cpp b/src/test/test_verify.cpp index 5c401b668..767af641e 100644 --- a/src/test/test_verify.cpp +++ b/src/test/test_verify.cpp @@ -479,7 +479,7 @@ TEST_SECTION_REJECT("build", "tail_call_bad.o", "xdp_prog") // Unsupported: ebpf-function TEST_SECTION_FAIL("prototype-kernel", "xdp_ddos...
2
1
0
[{"id": "G0", "claim": "The new comment should read '// Unsupported: implications are lost in correlated branches'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR tests for false positives, which is not what TEST_SECTION_FAIL is for; a TEST...
null
vbpf__prevail__396
vbpf/prevail
396
defect
a90511bba0fda504970cdb4ed3f374558674d944
ff431621f3210748b410fd90d0ddd4ead0c2ec0b
DIV and MOD operations should be unsigned
Fixes #395 PR #384 was incorrect in that it assumed division and modulo were signed operations. As issue #395 points out, the eBPF ISA defines them to instead be unsigned operations. For division with a signed immediate value, the value is first sign extended to 64 bits and then the 64-bit value is reinterpreted a...
diff --git a/src/asm_marshal.cpp b/src/asm_marshal.cpp index 609506d1e..82e4bc207 100644 --- a/src/asm_marshal.cpp +++ b/src/asm_marshal.cpp @@ -36,12 +36,12 @@ static uint8_t op(Bin::Op op) { case Op::ADD: return 0x0; case Op::SUB: return 0x1; case Op::MUL: return 0x2; - case Op::DIV: return 0x3; + ...
2
1
1
[{"id": "G0", "claim": "The printer should render the unsigned interpretation of the operand (e.g. 13 % 18446744073709551613) for unsigned MOD/DIV operations instead of the signed literal.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "No CI check...
null
vbpf__prevail__400
vbpf/prevail
400
defect
97eb94487bf7bbccd4df1983b8c2cfb8c7f5e8eb
bb3b13d79c6ce37d2b0a9439ef22adc8444817d2
Add eBPF ISA conformance tests
Add via submodule Alan Jowett's bpf conformance test suite, which allows plugins to test various runtimes (other plugins test the linux kernel, the ubpf jit compiler, and the ubpf interpreter). It is important that the verifier and the underlying JIT compiler have the same behavior as each other since otherwise a pro...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 506614f76..d76b95db5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Install dependencies run: | - sudo apt install libboost-dev libyaml-cpp-dev + ...
28
23
1
[{"id": "G0", "claim": "The RSH constant-folding path should also handle Bin::Op::ARSH, which is left unhandled.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The .gitmodules entry for external/bpf_conformance uses spaces while the rest of the file...
null
vbpf__prevail__419
vbpf/prevail
419
defect
dc3efc6d3a5f1a4ad87cd69a341f05f90d428e17
0fed72f6a66794209709bb5943427c0d1ce29b86
Add JMP32 instruction support
JMP32 support makes 22 more eBPF conformance tests pass, as well as some cilium tests Fixes #243
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index d3b40a047..0d4724435 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -102,7 +102,7 @@ static Condition::Op reverse(Condition::Op op) { } /// Get the inverse of a given comparison condition. -static Condition reverse(Condition cond) { return {.op = reverse(c...
4
2
0
[{"id": "G0", "claim": "In the 32-bit EQ case of src/crab/ebpf_domain.cpp, returning linear_constraint_t::TRUE() means the same thing as returning an empty set, so the explicit TRUE return appears redundant (presumably there just for symmetry).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": ...
null
vbpf__prevail__435
vbpf/prevail
435
defect
97a7e644a7a31df03b4b07e9dae59051ea8ad7f9
5d5c4e3e872c65b2ce5b01df241b20ff9a819b3b
Fixes to make LDX and STX conformance tests pass
Also make stack.data conformance test pass Fixes #420 Signed-off-by: Dave Thaler <dthaler@microsoft.com>
diff --git a/src/config.cpp b/src/config.cpp index badcb36de..342e4ebd3 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -13,4 +13,5 @@ const ebpf_verifier_options_t ebpf_verifier_default_options = { .strict = false, .print_line_info = false, .allow_division_by_zero = true, + .setup_constraints = t...
4
2
0
[{"id": "G0", "claim": "The idiom `std::optional<cell_t> cell = ...; if (cell)` should be replaced with `if (auto cell = ...)` so the optional is checked and the variable is only defined where it is non-null.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
vbpf__prevail__497
vbpf/prevail
497
defect
253f1398faae5759b80030148bbb311f551e949a
c6af4e8ed65a2a85e8798c2b07ba9ec94fbd5548
Add support for parsing BTF data from ELF files
Blocked on https://github.com/vbpf/ebpf-samples/pull/34 Initial support for parsing BTF data from ELF files. This is needed to implement #394 as that uses BTF data to encode the map data in the new .maps section.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f6fa0c9c..2befe5f1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,7 @@ file(GLOB LIB_SRC file(GLOB ALL_TEST "./src/test/test.cpp" + "./src/test/test_btf.cpp" "./src/test/test_conformance.cpp" "./src/test/test_loop.c...
7
7
0
[{"id": "G0", "claim": "The btf_kind_int field names are not the BTF spec's names and do not carry units, so if they are not spec-standard they should be renamed to include units (e.g. size_in_bytes) or, if the widths mirror a file format, a comment should be added above the struct.", "category": "maintainability", "ve...
null
vbpf__prevail__558
vbpf/prevail
558
defect
90ce44a666f21e7caa5c7adb9abbcc87a14aee7b
8357d591d796e3e3bc16dfef0d8eca64eaa5d0fc
Add other atomic instructions
* Add the rest of the atomic instructions defined in https://www.ietf.org/archive/id/draft-ietf-bpf-isa-00.html#name-atomic-operations * Add various test cases in atomic.yaml * Replace uses of `(INST_MEM << 5)` etc. with the more readable and less bug-prone `INST_MODE_MEM`. * Make the atomic operation conformance te...
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index 3787507fc..cd27143dc 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -176,7 +176,7 @@ static std::string instype(Instruction ins) { return "call_mem"; } else if (std::holds_alternative<Mem>(ins)) { return std::get<Mem>(ins).is_load ? "loa...
9
9
0
[{"id": "G0", "claim": "The reviewer asks whether it is theoretically possible for the analysis to track shared memory values instead of treating them as untrackable in the new atomic handler.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Atomic ins...
null
vbpf__prevail__577
vbpf/prevail
577
defect
342996d27ab05d11eefdfc64f211eaaa1a6ccadc
844632cc834e35d6c2caeb37a6236be54ac901bb
Deprecate legacy packet access instructions
The BPF ISA specification does not define them, and just says "these instructions are deprecated and should no longer be used". To comply with that, this PR lets the platform specify whether they are supported. (ebpf-for-windows for example doesn't support them so it's important to fail verification.) This PR also ...
diff --git a/src/asm_syntax.hpp b/src/asm_syntax.hpp index c8e621161..eff038ba0 100644 --- a/src/asm_syntax.hpp +++ b/src/asm_syntax.hpp @@ -202,7 +202,7 @@ struct Mem { bool is_load{}; }; -/// A special instruction for checked access to packets; it is actually a +/// A deprecated instruction for checked access...
2
2
0
[{"id": "G0", "claim": "The comment above the new `legacy` platform option should be singular and say the option covers deprecated instructions (\"Option indicating support for various deprecated instructions.\").", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G...
null
vbpf__prevail__584
vbpf/prevail
584
defect
e0c25fc9544b1eb8dfa21ee568a21c13eab72eee
4927b48e6379362578ad9c1a1bb7f9476f37f6f4
Implement callx instruction
"callx" instructions are generated by both clang (under -O0 or -O1) and gcc (if the experimental -mxbpf option is passed to the compiler), but are not supported by Linux. Per mailing list discussion at https://mailarchive.ietf.org/arch/msg/bpf/CDQjTO8R8gdPdfeKVnoxWco8_Lw/ the intent is for the Linux verifier to su...
diff --git a/external/bpf_conformance b/external/bpf_conformance index 642b1b0f5..cfec46b36 160000 --- a/external/bpf_conformance +++ b/external/bpf_conformance @@ -1 +1 @@ -Subproject commit 642b1b0f585ef394420dcd47fead2b8291ddfd72 +Subproject commit cfec46b36fae802c2534285229927bef351ad7a7 diff --git a/src/asm_cfg.cp...
5
4
0
[{"id": "G0", "claim": "In both the FuncConstraint and Callx handlers of src/crab/ebpf_domain.cpp, the singleton() result should be declared with `auto` instead of `std::optional<number_t>` to avoid coercion when the expression is not actually an optional.", "category": "maintainability", "verdict": "supported", "prior...
null
vbpf__prevail__591
vbpf/prevail
591
defect
3db1b62c4c878ed6e64f9bef0b6aefa8cfc29a19
495b8bfe81e581dc69f7ea8510a5dbd8186e6de7
Add more negative unmarshaling tests
This change is table-based, using a table of all instructions based on the table in the BPF ISA specification. It implements an algorithm to walk the table and test invalid variations of such instructions, thus catching more cases that were not previously validated. A few things that were validated but gave inconsi...
diff --git a/src/asm_unmarshal.cpp b/src/asm_unmarshal.cpp index 22d0dfff8..70ee0d89b 100644 --- a/src/asm_unmarshal.cpp +++ b/src/asm_unmarshal.cpp @@ -115,7 +115,7 @@ struct Unmarshaller { } case INST_ALU_OP_MOV: if (inst.offset > 0 && !(inst.opcode & INST_SRC_REG)) - ...
13
12
0
[{"id": "G0", "claim": "The vector should use brace-initialization: `std::vector<ebpf_inst> insns{inst, exit, exit};` instead of `= {inst, exit, exit};`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "check_unmarshal_instruction_fail should take the messa...
null
vbpf__prevail__592
vbpf/prevail
592
defect
1056586f13b5f95f0f16b897197f3fd8bd1fe409
d24c056f9b9e14b6de7a46a0f6d23cf27fffc0b2
Use default equality for asm_syntax structs
Use C++20 [default equality operator](https://en.cppreference.com/w/cpp/language/default_comparisons) for the internal eBPF syntax. This is more robust to changes, and any instruction should be encoded in a way that supports this operator. The only struct that uses a custom operator is `Call`; it contains type and n...
diff --git a/src/asm_marshal.cpp b/src/asm_marshal.cpp index 5b42c5914..114baed19 100644 --- a/src/asm_marshal.cpp +++ b/src/asm_marshal.cpp @@ -67,10 +67,10 @@ static int16_t offset(Bin::Op op) { return 0; } -static uint8_t imm(Un::Op op) { +static uint8_t imm_endian(Un::Op op) { using Op = Un::Op; s...
2
2
0
[{"id": "G0", "claim": "The Neg test section should also cover is64=true.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The FIX comment could be better worded to say that .is64 comes from the instruction class (BPF_ALU or BPF_ALU64) but is unused since...
null
vbpf__prevail__598
vbpf/prevail
598
defect
fbd98b0ea33e8537eddc8cd8c667bbde31ba25f3
c67053c60dee34a465f39cd512f1191f71424cda
Add support for conformance groups
Per [latest ISA specification](https://htmlpreview.github.io/?https://raw.githubusercontent.com/ietf-wg-bpf/ebpf-docs/generated/draft-ietf-bpf-isa.html). * Allow check.exe to specify conformance groups to include/exclude when verifying a program, defaulting to the set that the Linux kernel supports. * For things ot...
diff --git a/src/asm_unmarshal.cpp b/src/asm_unmarshal.cpp index 71232c936..d331b40d0 100644 --- a/src/asm_unmarshal.cpp +++ b/src/asm_unmarshal.cpp @@ -100,14 +100,21 @@ struct Unmarshaller { auto getAluOp(size_t pc, ebpf_inst inst) -> std::variant<Bin::Op, Un::Op> { // First handle instructions that s...
3
2
0
[{"id": "G0", "claim": "Replace the hand-rolled istringstream/getline loop in get_string_vector with boost::split and include <boost/algorithm/string.hpp>.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"Invalid group\" error message is pri...
null
vbpf__prevail__608
vbpf/prevail
608
defect
2018df951bae707437441ccdad21961857274675
93711887bb6018f33ca2aa46ccb10f02ddc2556a
Add support for bpf2bpf function calls
Implemented approach discussed in meeting between Dave, Elazar, Arie, and others. Each function is treated as a "macro" and CFG nodes are created as if the compiler had inlined the functions. The new nodes use variables prefixed with the conceptual call stack, so that nesting and multiple calls to the same function a...
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index b67e87921..543faff00 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -35,11 +35,99 @@ static bool has_fall(Instruction ins) { return true; } +/// Update a control-flow graph to inline function macros. +static void add_cfg_nodes(cfg_t& cfg, label_t calle...
11
5
1
[{"id": "G0", "claim": "The reviewer does not think handling function calls as macros at the CFG level is the right approach, and prefers inlining done by the abstract interpreter (jump to the function start with a copy of the abstract state, execute, jump back).", "category": "design", "verdict": "opposed", "priority"...
null
vbpf__prevail__614
vbpf/prevail
614
defect
28ce3eabf64f5782f1f25fdd49c361544001ec91
bfbf42011d17ade051a6f0eb1271fff8777b15d8
Stack memory tracking improvements
This also adds big_endian as a verifier option. Endianness defaults to whatever is native for the platform the verifier is running on, but a flag is provided (including an option in YAML tests) to force using a given endianness. This allows for two scenarios: 1. Running endianness tests for both big- and little-endi...
diff --git a/src/config.cpp b/src/config.cpp index 3849162c5..00ccab43b 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -13,4 +13,5 @@ const ebpf_verifier_options_t ebpf_verifier_default_options = { .print_line_info = false, .allow_division_by_zero = true, .setup_constraints = true, + .big_endian ...
1
1
0
[{"id": "G0", "claim": "The variable `old_number` is not used further, so the code should call `is_singleton()` instead of binding the singleton to a temporary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vbpf__prevail__687
vbpf/prevail
687
defect
4ee1d77fff70f789186da56df61b1f92885ed89b
fecfa5eb2c9e908e741ce190e2491dcc3b63549c
Use explicit width for finite width parameters
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced interval handling with support for 64-bit integer evaluations. - Introduced new template methods in the `z_number` class for improved type casting and fitting checks. - **Bug Fixes** ...
diff --git a/src/crab/ebpf_domain.cpp b/src/crab/ebpf_domain.cpp index ae31b40b7..8a80e6384 100644 --- a/src/crab/ebpf_domain.cpp +++ b/src/crab/ebpf_domain.cpp @@ -131,7 +131,7 @@ static std::vector<linear_constraint_t> assume_signed_64bit_eq(const NumAbsDomai ...
24
12
5
[{"id": "G0", "claim": "The signed cast_to<S>() is templated on S but returns int32_t, so it should return S to keep type consistency and allow casting to any signed integral type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unsigned cast_to<U>() ...
null
vbpf__prevail__693
vbpf/prevail
693
defect
4907f1b0cd29ac77e73a7c908ebba60127bce1c2
271112fdd5f7d1677a89a17ac0a9bc44f5a21597
Support bpf2bpf calls from ELF files
PR #608 added support for bpf2bpf calls when instructions were contiguous, including YAML tests for it. However PR #638 added support for multiple programs per section, and in that support, instructions for different programs (or subprograms) are not contiguous but are in separate program objects. This PR adds supp...
diff --git a/src/asm_files.cpp b/src/asm_files.cpp index 6045be64c..c30a25c28 100644 --- a/src/asm_files.cpp +++ b/src/asm_files.cpp @@ -60,7 +60,7 @@ bool is_map_section(const std::string& name) { return name == "maps" || (name.length() > 5 && name.compare(0, maps_prefix.length(), maps_prefix) == 0); } -std::t...
13
11
5
[{"id": "G0", "claim": "The `relocation_entry_index` member of `function_relocation` should use `ELFIO::Elf_Xword` instead of `ELFIO::Elf_Word` for consistency with the other index types and to handle larger symbol tables.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
vbpf__prevail__731
vbpf/prevail
731
defect
3427faabed7b69473d50aef2000c05b881cf64a2
5f381d8346cf6b760891e84345740519c725f201
When doing module and division, first cast to unsigned 32 bit then promote to 64 bit
Resolves: #730 This pull request includes changes to handle different bit-widths for unsigned division and modulo operations in the `SplitDBM` class, and adds new test cases to verify these changes. Enhancements to arithmetic operations: * [`src/crab/split_dbm.cpp`](diffhunk://#diff-eeb29d5ce7045fcb8c65c176e95...
diff --git a/src/crab/split_dbm.cpp b/src/crab/split_dbm.cpp index 1760f4393..da0a6b377 100644 --- a/src/crab/split_dbm.cpp +++ b/src/crab/split_dbm.cpp @@ -1008,9 +1008,30 @@ void SplitDBM::apply(arith_binop_t op, variable_t x, variable_t y, const number_ case arith_binop_t::MUL: assign(x, linear_expression_t(k, ...
6
1
0
[{"id": "G0", "claim": "Consider adding 64-bit division and modulo test cases whose operands exceed 32 bits to fully exercise 64-bit behaviour.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The expected values of the 64-bit modulo test case (r0.svalue=-1...
null
vbpf__prevail__740
vbpf/prevail
740
defect
36564373626989b8cbc6918f9811cff82cff00a0
8c795c159b011d2d7203c8cdea291b0d2106d025
Reject binary ops where the source is an uninitialized register
This pull request includes several changes to enhance the handling of uninitialized registers in the assertion extraction logic and adds new test cases to cover these scenarios. The most important changes include updating the `AssertExtractor` class to handle cases where the source register is uninitialized and adding ...
diff --git a/src/assertions.cpp b/src/assertions.cpp index 34a3d2212..1d5fdebca 100644 --- a/src/assertions.cpp +++ b/src/assertions.cpp @@ -246,7 +246,13 @@ class AssertExtractor { } return {Assert{TypeConstraint{ins.dst, TypeGroup::number}}}; } - default: return {Assert{TypeC...
8
2
1
[{"id": "G0", "claim": "The YAML_CASE statements in src/test/test_yaml.cpp should be sorted alphabetically, which would move the new uninit.yaml case.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The post-conditions in the uninit.yaml test cases...
null
vbpf__prevail__742
vbpf/prevail
742
defect
80ada1c8b96263a924990a95576633223d355fbe
b3965fd2d015681824f72dafe06a87e4076cf12f
Havoc register if truncating non-number
Resolves: #741 This pull request includes changes to the `ebpf_domain.cpp` file to handle 32-bit operations more robustly and adds new test cases for 32-bit pointer truncation operations in the `test-data/pointer.yaml` file. The most important changes include updating the `operator()` function to handle non-numeric ...
diff --git a/src/crab/ebpf_domain.cpp b/src/crab/ebpf_domain.cpp index baf8c398b..7d34ba9df 100644 --- a/src/crab/ebpf_domain.cpp +++ b/src/crab/ebpf_domain.cpp @@ -2497,6 +2497,12 @@ void ebpf_domain_t::operator()(const Bin& bin) { // Use only the low 32 bits of the value. imm = gsl::narrow_c...
15
6
2
[{"id": "G0", "claim": "Add a comment to each pointer.yaml test case explaining why the no-op or identity operation is used to trigger the 32-bit ALU operation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add more context to the TODO comment in...
null