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
ad-freiburg__qlever__2514
ad-freiburg/qlever
2,514
defect
ae21741ece88a14bd8392e3167bd84f89c25969d
022205a1a995d0e69078f7a076191ed4014e9b43
Respect UTF-8 boundaries in `truncateOperationString`
At several places in our log and when returning query results, we write the string of the query or update operation. Especially for update operations, this string can be very long, so we truncate it to `MAX_LENGTH_OPERATION_ECHO`. So far, this truncation ignored boundaries of UTF-8 characters and thus potentially produ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index bbb92cdcd1..da3f8dbbcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,8 +112,8 @@ FetchContent_Declare( # https://json.nlohmann.me/integration/cmake/#fetchcontent FetchContent_Declare( nlohmann-json - URL https://github.com/nlohmann/json/rel...
4
4
0
[{"id": "G0", "claim": "The '+1' in getUTF8Prefix(operation, MAX_LENGTH_OPERATION_ECHO + 1) needs justification (why request one codepoint beyond the maximum).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The size computation is overcomplicate...
null
ad-freiburg__qlever__2517
ad-freiburg/qlever
2,517
defect
ae21741ece88a14bd8392e3167bd84f89c25969d
c934a1ed563340d8800a6d3ddeb6053671e2ab90
Use `gtest` matchers for testing `GeometryInfo` and related helper classes
This change migrates the test helpers for checking approximate equality of `GeoPoint`, `Centroid`, `BoundingBox`, `MetricLength`, `MetricArea` and `GeometryInfo` from custom helper functions to Gtest matchers. This is more in line with the intended way of using `gtest` and it allows, for example, storing a matcher in a...
diff --git a/test/GeometryInfoTest.cpp b/test/GeometryInfoTest.cpp index 1ce94ab5bc..64a5466c6f 100644 --- a/test/GeometryInfoTest.cpp +++ b/test/GeometryInfoTest.cpp @@ -206,40 +206,40 @@ TEST(GeometryInfoTest, FromWktLiteral) { auto g = GeometryInfo::fromWktLiteral(litPoint); GeometryInfo exp{1, {{4, 3}, {4, ...
2
2
1
[{"id": "G0", "claim": "Some builds are currently failing and this should be fixed before the PR proceeds.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The optional-lifting matcher infrastructure should be a generic `liftOptionalMatcher` helper pl...
null
ad-freiburg__qlever__2521
ad-freiburg/qlever
2,521
defect
941031292cbd27330dc6abe8c7327cfcb8a838b0
e5387454f87a750a6f7693492897fe6583d7a97f
Backport code in `index` to C++17
1. Replace `std::transform_reduce` with `::ranges::accumulate` for range reductions 2. Replace `constinit` global atomics with function-returning-reference-to-static pattern 3. Replace `emplace_back` with `push_back({...})` for explicit aggregate construction 4. Replace `std::string_view` iterator-pair construction ...
diff --git a/src/index/CompressedRelation.cpp b/src/index/CompressedRelation.cpp index 6097c3abf9..c049d24f1b 100644 --- a/src/index/CompressedRelation.cpp +++ b/src/index/CompressedRelation.cpp @@ -1292,8 +1292,9 @@ void CompressedRelationWriter::compressAndWriteBlock(Id firstCol0Id, // ______________________________...
4
3
0
[{"id": "G0", "claim": "The author is unsure whether the `#ifndef QLEVER_CPP_17` guard around the sortedness check in `DeltaTriples::modifyTriplesImpl` is actually still needed and asks to check that or, failing that, at least comment it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
ad-freiburg__qlever__2525
ad-freiburg/qlever
2,525
defect
941031292cbd27330dc6abe8c7327cfcb8a838b0
5ce317d91e2914c999bd68908c80f91e9aec8f13
Backport code in some of the unit tests to C++17
This allows to compile and run certain unit tests of QLever on a C++17 compiler, in particular, unit tests that test low-level abstractions like custom ranges or views that have to satisfy a complicated concept that slightly differs between C++20 and C++17
diff --git a/test/CallFixedSizeTest.cpp b/test/CallFixedSizeTest.cpp index adc318ce86..c85612b2a6 100644 --- a/test/CallFixedSizeTest.cpp +++ b/test/CallFixedSizeTest.cpp @@ -77,7 +77,7 @@ auto lambda = [](auto valueIdentityI, int arg1 = 0, int arg2 = 0) { // of the `CALL_FIXED_SIZE` macro. Note that here we have to s...
5
4
2
[{"id": "G0", "claim": "Sum the table row counts with the ranges version of `accumulate` instead of `std::accumulate`, which may not work with the backported view's iterators.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Undo the hand-written expa...
null
ad-freiburg__qlever__2533
ad-freiburg/qlever
2,533
defect
c21e686ca36bb4d25dcddcb1332857f653d41bb8
52f0899314645c956437381a8f8d2430d94e8426
Make destructor of `CallbackOnEndView` exception-safe
Since #2266, it could happen that an exception is thrown in the destructor of `CallbackOnEndView`, triggered by the end of the iteration over the range returned by `findUndefValuesHelper`, and terminating the server. This is now fixed, improving the preliminary fix from #2530. Fixes #2495
diff --git a/src/engine/idTable/CompressedExternalIdTable.h b/src/engine/idTable/CompressedExternalIdTable.h index 327eb4f77d..da7c04b2e6 100644 --- a/src/engine/idTable/CompressedExternalIdTable.h +++ b/src/engine/idTable/CompressedExternalIdTable.h @@ -228,7 +228,7 @@ class CompressedExternalIdTableWriter { ...
3
2
0
[{"id": "G0", "claim": "QLever terminates on queries that have no enclosing COUNT piece (one of them terminating very quickly), as shown in the attached server logs of both the with-COUNT and without-COUNT runs.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1"...
null
ad-freiburg__qlever__2537
ad-freiburg/qlever
2,537
defect
50d08bc03a4c1fe7495d4209a3542c90ce36b997
e58bb728bf0345b87926bf974226514dcf659dc9
Allow writing a single permutation with `CompressedRelationWriter`
This continues the refactoring from #2566 (which provides a much more modular version of the previously very complex `CompressedRelationWriter::createPermutationPair`), by now providing two methods `createPermutationPair` (which creates a permutation pair, like before) and `createPermutation` (which creates a single pe...
diff --git a/src/index/CompressedRelation.cpp b/src/index/CompressedRelation.cpp index 006bbdc5ac..173943c1a8 100644 --- a/src/index/CompressedRelation.cpp +++ b/src/index/CompressedRelation.cpp @@ -1611,7 +1611,7 @@ auto CompressedRelationWriter::createPermutationPair( qlever::KeyOrder permutation, const std...
5
5
1
[{"id": "G0", "claim": "The pair-permutation constructor's `requires WritePair` clause should be written using the project's `CPP_template` backport syntax (the author asks which syntax to use, and the maintainer proposes `CPP_template(bool doWritePair = WritePair)(requires doWritePair)` and says to use it for now).", ...
null
ad-freiburg__qlever__2540
ad-freiburg/qlever
2,540
defect
b6513dc51bbdce9118e4a3911c9d93194c710536
dc513b96376662003546e87ffc5a282a6a66ace3
Backport some more code to C++17 (straightforward changes here and there)
1. Replace `std::make_move_iterator` with `ql::make_move_iterator` backported from `range-v3` 2. Replace `std::move_iterator` with `ql::move_iterator` backported from `range-v3` 3. Replace brace-initialization for tuples with `std::make_tuple` to avoid CTAD requirements 4. Replace `emplace_back` with `push_back({......
diff --git a/src/backports/iterator.h b/src/backports/iterator.h index 15d1ac6388..46774a274c 100644 --- a/src/backports/iterator.h +++ b/src/backports/iterator.h @@ -18,12 +18,18 @@ // `default_sentinel`, `move_sentinel` and `iter_reference_t`. namespace ql { +using ::ranges::move_iterator; +template <class Iter> ...
8
7
1
[{"id": "G0", "claim": "Remove the extra blank line that the pull request adds before the closing `} // namespace ql` in src/backports/iterator.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Document why `using ::ranges::move_iterator;` is n...
null
ad-freiburg__qlever__2541
ad-freiburg/qlever
2,541
defect
688efa299b625d6922a42975bd234ce4e8eef660
6f9ad056ae15d505acb03cc9abb154472e934ce5
Add parser and serializer helpers for `GeoPointOrWkt`
Add helpers for converting from `GeoPointOrWkt` to `ParsedWkt` and back to WKT strings as well as test helpers for geometries from `pb_util`. This is preparation for ad-hoc `geof:relate`, ad-hoc `geof:sfIntersects`, `geof:sfContains`, etc., `geof:distance` and `geof:metricDistance` for non-points, `geof:geometryN` (#22...
diff --git a/src/rdfTypes/GeometryInfoHelpersImpl.h b/src/rdfTypes/GeometryInfoHelpersImpl.h index 6eb2b2a32e..0ec7110f4c 100644 --- a/src/rdfTypes/GeometryInfoHelpersImpl.h +++ b/src/rdfTypes/GeometryInfoHelpersImpl.h @@ -396,6 +396,72 @@ struct MetricAreaVisitor { static constexpr MetricAreaVisitor computeMetricAr...
6
5
0
[{"id": "G0", "claim": "The template parameter list of `liftMatcherToElementsAreArray` could be reduced to just `MakeMatcher` (with `ArrayType` possibly a simple span), even if multiple parameters simplify the function.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1",...
null
ad-freiburg__qlever__2572
ad-freiburg/qlever
2,572
defect
dbce463aa0cead999e539ec6aa3e7f4a394b0f76
c35d959e9e18a60ecd5b6508ac2b64bd19a37102
Minor fixes and additions to the `Serializer` code
This complements #2526 by some additional changes necessary for the serialization of a `NamedCachedResult` to disk. In particular: 1. Make `Variable` and `ColumnIndexAndTypeInfo` serializable 2. Make `ql::span` serializable 3. Make all enum types (scoped and unscoped) implicitly serializable (by just copying their...
diff --git a/src/engine/VariableToColumnMap.h b/src/engine/VariableToColumnMap.h index ae3f7fcadd..d9fef13e92 100644 --- a/src/engine/VariableToColumnMap.h +++ b/src/engine/VariableToColumnMap.h @@ -40,6 +40,11 @@ struct ColumnIndexAndTypeInfo { // Equality comparison, mostly used for testing. QL_DEFINE_DEFAULTED...
4
3
0
[{"id": "G0", "claim": "The local variable `V v` used to consume the span's elements on a size mismatch should be given a more readable name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `static_assert` examples for `isSpan` should be plac...
null
ad-freiburg__qlever__2573
ad-freiburg/qlever
2,573
defect
dbce463aa0cead999e539ec6aa3e7f4a394b0f76
6ae4c0242c5d53c57d37f43968e52da10c9684f1
More preparations for binary `SERVICE` export and import
This continues the preparations from #2547 and #2560. In particular, 1. Improve the `toStringRepresentation()` overloads for the classes `Literal`, `Iri`, and `LiteralOrIri` (the previous overload returned a mutable reference, which is unsafe) 2. Implement a class `StringMapping` that takes a batch of `Id`s that r...
diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 05b75b9c57..85e891e318 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -16,7 +16,7 @@ add_library(engine CountConnectedSubgraphs.cpp SpatialJoinAlgorithms.cpp PathSearch.cpp ExecuteUpdate.cpp Describe.cp...
17
14
2
[{"id": "G0", "claim": "The copyright header of the new file should use the modern copyright format.", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "remapId should also check (possibly via static_assert) that each datatype is either trivial, or allowed her...
null
ad-freiburg__qlever__2581
ad-freiburg/qlever
2,581
defect
84156ed50f4f55b0fbfced0b9fbb167f1508a18f
148596cb5fa0f312b4a17a31ec3dee7898b193dd
Add code for parsing a `MaterializedViewQuery`
Add the code for parsing queries involving a materialized view, with unit tests and useful test helpers. Since this is now the fifth magic service (path search, spatial search, text search, named cached results, materialized views), refactor the parsing code and implement one generic `visitMagicServiceQuery`. Here are ...
diff --git a/src/engine/CheckUsePatternTrick.cpp b/src/engine/CheckUsePatternTrick.cpp index c5eadc67b8..fe2e5dc9ec 100644 --- a/src/engine/CheckUsePatternTrick.cpp +++ b/src/engine/CheckUsePatternTrick.cpp @@ -66,7 +66,8 @@ bool isVariableContainedInGraphPatternOperation( return ad_utility::contains(arg.visible...
7
7
1
[{"id": "G0", "claim": "The PR should introduce a unified templated member function for the many near-identical magic-service visitor functions (templated on the concrete MagicServiceQuery subclass, with a base-class validate()), instead of duplicating them.", "category": "maintainability", "verdict": "supported", "pri...
null
ad-freiburg__qlever__2583
ad-freiburg/qlever
2,583
defect
50d08bc03a4c1fe7495d4209a3542c90ce36b997
c2e82e0c5a5cb853e04555ef09ca6b027245ad3c
Implement `IdTable::insertSubsetAtEnd` and two test helpers
For an `IdTable`, it is now possible to append a subset of another `IdTable`. The subset is given as a vector of row indices. This is preparation for #2301. Also implement two test helpers for for setting up `IdTable`s with specific contents for test cases and benchmarks
diff --git a/src/engine/idTable/IdTable.h b/src/engine/idTable/IdTable.h index f7ce706904..f5cffeff5f 100644 --- a/src/engine/idTable/IdTable.h +++ b/src/engine/idTable/IdTable.h @@ -9,6 +9,7 @@ #include <cassert> #include <cstdlib> #include <initializer_list> +#include <ranges> #include <variant> #include <vector...
7
7
0
[{"id": "G0", "claim": "The transform lambda should capture `source` by plain reference instead of the unnecessarily convoluted `[&source = source]` reference-to-capture.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `ranges::views::zip` ca...
null
ad-freiburg__qlever__2594
ad-freiburg/qlever
2,594
defect
834d6904ca54292fdf68bba167833b927c39cced
38a5b9ca98c0c058314b96972c5eb04b8790cf5a
Optionally add query time to `sparql-results+json` result
There is now a runtime parameter `sparql-results-json-with-time`, which when `true` (which is the default), adds a top-level field `meta` with subfields `query-time-ms` and `result-size-total` to the `sparql-results+json` result. The fields `head` and `results` are just like before. Note that the SPARQL 1.1 standard al...
diff --git a/src/engine/ExportQueryExecutionTrees.cpp b/src/engine/ExportQueryExecutionTrees.cpp index 2c3d740c0e..12378cc38c 100644 --- a/src/engine/ExportQueryExecutionTrees.cpp +++ b/src/engine/ExportQueryExecutionTrees.cpp @@ -17,6 +17,7 @@ #include "backports/StartsWithAndEndsWith.h" #include "backports/algori...
2
2
1
[{"id": "G0", "claim": "The parameter declarations and body of selectQueryResultToStream should use one uniform unused-parameter style (all `[[maybe_unused]]` or all `(void)` casts) instead of mixing the two, including for `streamableYielder`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
ad-freiburg__qlever__2610
ad-freiburg/qlever
2,610
defect
959c50df8c651efdb17c995680071cb8aeb3467e
61058ab6098bab2aa53eb21e7e2ace696a299831
Handle blank nodes and local vocab entries correctly in the triple serializer
So far, the serialization functions in `TripleSerializer.h` (which are used for persisting update triples in the `DeltaTriples` class) were not quite correct regarding blank nodes and local vocab entries. This is now improved in two ways: 1. The blank node blocks used by a `LocalVocab` are now correctly serialized a...
diff --git a/src/util/BlankNodeManager.h b/src/util/BlankNodeManager.h index b3a215756e..903d6ebea4 100644 --- a/src/util/BlankNodeManager.h +++ b/src/util/BlankNodeManager.h @@ -23,6 +23,8 @@ #include "util/HashMap.h" #include "util/HashSet.h" #include "util/Random.h" +#include "util/Serializer/SerializeVector.h" +...
4
3
1
[{"id": "G0", "claim": "Replace the hand-written summation of primaryWordSet and otherSets sizes with the existing vocab.size() helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because this change breaks the serialized-triples format, the ...
null
ad-freiburg__qlever__2613
ad-freiburg/qlever
2,613
defect
d4ef19dc25742173d40de6257bda1ae965d9191f
47991d4005d4b017e86cfc6c910e15ef21e01f6d
Check whether to use internal permutation already in the query planner
So far, the check whether the internal `PSO` or `POS` permutation should be used was made relatively late in the call stack, in the `Permutation` class. Now the decision is made in the query planner. There is a new free function `getPermutationForTriple`, which is defined and implemented in its own files `src/engine/Pe...
diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 891ed061a7..7e575a5cca 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -17,7 +17,8 @@ add_library(engine Describe.cpp GraphStoreProtocol.cpp SpatialJoinParser.cpp SpatialJoinCachedIndex.cpp QueryExecutio...
9
7
0
[{"id": "G0", "claim": "The scan setup in HasPredicateScan should be unified by defining a triple and creating a proper IndexScan via a member function, calling getResult(true) and passing a range of IdTables to the computeFreeBla functions, instead of manually scanning the internal permutation through a scan specifica...
null
ad-freiburg__qlever__2628
ad-freiburg/qlever
2,628
defect
89e524b99fec2866ac9d20409da2e2d6d70fd98e
dd003f3b29e7649f33ea3944d33141ae089927e6
Distinguish between "cancelled" and "failed" status for lazy query results
The `RuntimeInformation::Status` already had different values for `failed`, `failedBecauseChildFailed`, and `cancelled`. But for lazy results, the latter was never used even when the query was cancelled. This is now fixed
diff --git a/src/engine/Operation.cpp b/src/engine/Operation.cpp index 2d313ae937..28859d7b52 100644 --- a/src/engine/Operation.cpp +++ b/src/engine/Operation.cpp @@ -208,11 +208,19 @@ Result Operation::runComputation(const ad_utility::Timer& timer, } signalQueryUpdate(RuntimeInformation::SendPrio...
1
1
1
[{"id": "G0", "claim": "It is not enforced that the finishing function called from the absl::Cleanup callback is noexcept or catches its own exceptions, so a throwing finish could escape a noexcept/destructor context and terminate; the reviewer suggests wrapping it e.g. in an ignoreExceptionIfThrows-style helper.", "ca...
null
ad-freiburg__qlever__2630
ad-freiburg/qlever
2,630
defect
8c2d7c0ae8710cd555004525bedd27ffac060b1b
aba0bb81079c2c1b926d6d2956167e08a6492194
Add workflow for native build on `macOS` using `AppleClang`
Add new workflow `macos-appleclang-native.yml` for native compilation on macOS using the native `AppleClang` compiler. Requires some changes in the `CMake` configuration, notably finding where `Homebrew` is installed in order to be able to find dependencies (Boost. ICU, OpenSSL, etc) automatically. Also requires some ...
diff --git a/.github/workflows/macos-appleclang-native.yml b/.github/workflows/macos-appleclang-native.yml new file mode 100644 index 0000000000..03a6b1b1c9 --- /dev/null +++ b/.github/workflows/macos-appleclang-native.yml @@ -0,0 +1,65 @@ +name: Native build with AppleClang on MacOS + +on: + push: + branches: [mas...
4
3
0
[{"id": "G0", "claim": "The added comment noting to use the `template` keyword for a dependent template name is redundant and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Adding the project version to the index-builder and s...
null
ad-freiburg__qlever__2639
ad-freiburg/qlever
2,639
defect
d9a5e1a5e3b058fd74d1702985a0243c89a780be
8032b7f723371b6f07cba0cec3bc83ec889dde6d
Allow writing materialized views from queries with less than four columns
So far, a query for writing a materialized view needed to have at least four columns, which meant that one had to add dummy columns when the query of interest had less columns. Now such a query can have fewer columns. Internally, still at least four columns are required, but the dummy (empty) columns are added automati...
diff --git a/src/engine/MaterializedViews.cpp b/src/engine/MaterializedViews.cpp index ea6f482e70..52ded971f3 100644 --- a/src/engine/MaterializedViews.cpp +++ b/src/engine/MaterializedViews.cpp @@ -11,6 +11,7 @@ #include <filesystem> #include <memory> #include <nlohmann/json.hpp> +#include <ranges> #include <stdex...
3
3
2
[{"id": "G0", "claim": "Don't include `<ranges>`, but rather `backports/algorithm.h` for the C++17 compatibility.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The semantics of the optional in the pair's second are hard to understand; get bette...
null
ad-freiburg__qlever__2645
ad-freiburg/qlever
2,645
defect
18faf938fbf9e29625b4527383f54a1a13c6df50
0fd36fddbcc6b69306ee8718002695a6dffa195c
Add subtraction for dates
Values with datatype `xsd:date` or `xsd:dateTime` can now be subtracted from another. The result has datatype `xsd:dayTimeDuration`. The duration will be expressed in days, hours, minutes, and seconds (e.g., `P365DT12H11M11S` for 365 days, 12 hours, 11 minutes, and 11 seconds). Zero components are omitted (e.g., `P1DT3...
diff --git a/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp b/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp index 0ff110f6fc..daec1814be 100644 --- a/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp +++ b/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp @@ -40,8 +40,44 @@ NARY_E...
21
18
3
[{"id": "G0", "claim": "Unsupported subtractions currently throw std::invalid_argument, but a SPARQL function should return UNDEF for invalid input instead of throwing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The remaining viable subtraction ...
null
ad-freiburg__qlever__2647
ad-freiburg/qlever
2,647
defect
7ec91f836cb8c98b4e07c906574cb4bf7f6f4e02
ca609175af53102cd6e131c7e1d306d2844aefb5
Fix one-off error that manifested since #2632
There was a one-off error in `CompressedRelation.cpp`, when `readPossiblyIncompleteBlock` accessed a column after the graph column and the graph column was deleted (because it was not needed for the query). This only affected queries involving the so-called patterns in the fifth and sixth column (the graph info is in t...
diff --git a/src/index/CompressedRelation.cpp b/src/index/CompressedRelation.cpp index 74e342802e..9feeaf3e83 100644 --- a/src/index/CompressedRelation.cpp +++ b/src/index/CompressedRelation.cpp @@ -849,17 +849,25 @@ DecompressedBlock CompressedRelationReader::readPossiblyIncompleteBlock( const auto& columnIndices =...
2
2
1
[{"id": "G0", "claim": "The column-deletion and copy logic in `readPossiblyIncompleteBlock` should be replaced by a simpler, easier-to-understand fix, e.g. deleting the unneeded columns and calling `insertAtEnd`, or folding the deletion step into the `filterColumn` lambda.", "category": "maintainability", "verdict": "s...
null
ad-freiburg__qlever__2652
ad-freiburg/qlever
2,652
defect
7ec91f836cb8c98b4e07c906574cb4bf7f6f4e02
93e9e7b9ce5858c425e73dd67cf79593a62e0647
Refactor code for the evaluation of `CONSTRUCT` queries
So far, each of the basic types that could occur in a `CONSTRUCT` template (variable, blank node, IRI, literal, etc.) has its own `evaluate` method, which has several disadvantages. In particular, the relevant code for evaluating a `CONSTRUCT` query is scattered all over the place, which makes extensions harder and the...
diff --git a/CMakeLists.txt b/CMakeLists.txt index e01916a5325..beabc5cc239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,7 +471,9 @@ qlever_target_link_libraries(compilationInfo) add_executable(IndexBuilderMain src/index/IndexBuilderMain.cpp) qlever_target_link_libraries(IndexBuilderMain qlever index ${CM...
29
28
2
[{"id": "G0", "claim": "Remove the includes of ConstructQueryExportContext.h (and similarly unneeded headers/forward declarations such as IndexImpl.h) that are no longer needed after the refactor, across the touched files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
ad-freiburg__qlever__2653
ad-freiburg/qlever
2,653
defect
3211bc032b15d483b5543ac9af310c13a9b626b7
3dd5f871ca2b24638dae130f1fcc09acd1ee9dca
When writing a materialized view, remember the query string
The query string is now stored as part of the metadata JSON stored for each materialized view. This is useful for reproducing the view, as well as for rewriting parts of a query with a suitable view query. In particular, this is a preparation for #2649
diff --git a/src/engine/MaterializedViews.cpp b/src/engine/MaterializedViews.cpp index ea6f482e70..1ece944bc6 100644 --- a/src/engine/MaterializedViews.cpp +++ b/src/engine/MaterializedViews.cpp @@ -258,29 +258,31 @@ IndexMetaDataMmap MaterializedViewWriter::writePermutation( // _____________________________________...
2
2
1
[{"id": "G0", "claim": "Queries might be long, so consider truncating the query string printed in the log line for computing a materialized view result.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Bumping MATERIALIZED_VIEWS_VERSION to 2 is unnece...
null
ad-freiburg__qlever__2674
ad-freiburg/qlever
2,674
defect
18faf938fbf9e29625b4527383f54a1a13c6df50
d1090bcf8c7c46efe6fc2995b1251000d6953f37
Insert `ql:langtag` triple when inserting triple with an object with a language tag
For each triple with an object with a language tag, QLever stores two additional so-called "internal" triples. For example, for `wd:Q873 rdfs:label "Meryl Streep"@en`, QLever also stores `wd:Q873 @en@rdfs:label "Meryl Streep"@en` and `"Meryl Streep"@en ql:langtag ql:@en`. These triples are used for the efficient proces...
diff --git a/src/index/DeltaTriples.cpp b/src/index/DeltaTriples.cpp index 0167e601ae..f065bad5a3 100644 --- a/src/index/DeltaTriples.cpp +++ b/src/index/DeltaTriples.cpp @@ -167,8 +167,8 @@ DeltaTriplesCount DeltaTriples::getCounts() const { } // ____________________________________________________________________...
4
3
1
[{"id": "G0", "claim": "The repeatedly-used lookups in makeInternalTriples (the language-tagged predicate IRIs, the id of the `ql:langtag` predicate and the langtag ids) should be cached across calls, e.g. as member variables of the DeltaTriples class.", "category": "performance", "verdict": "supported", "priority": "P...
null
ad-freiburg__qlever__2680
ad-freiburg/qlever
2,680
defect
a5e4bf705f003cb3b0477c068966a633a15fb378
7f3b74c8260580f8acc81dc8d78e58694649b511
More efficient size estimate for `IndexScan`, in particular for a full index scan
So far, size estimates for an `IndexScan` were inefficient for two reasons. First, they were unnecessarily computed twice when prefiltering was employed. Second, the size estimate for a full index scan (think `?s ?p ?o`) was expensive for large datasets because it iterated over all blocks. In particular, this showed fo...
diff --git a/src/engine/IndexScan.cpp b/src/engine/IndexScan.cpp index e1fa3f25e4..dfc201326c 100644 --- a/src/engine/IndexScan.cpp +++ b/src/engine/IndexScan.cpp @@ -92,7 +92,8 @@ IndexScan::IndexScan(QueryExecutionContext* qec, PermutationPtr permutation, std::vector<ColumnIndex> additionalColum...
3
3
0
[{"id": "G0", "claim": "In makeCopyWithPrefilteredScanSpecAndBlocks, the dummy size estimate argument should be written as size_t{0} instead of static_cast<size_t>(0).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new comment \"// Recompute...
null
ad-freiburg__qlever__2692
ad-freiburg/qlever
2,692
defect
cca37689eb8be289bc51bcb675030d05dd10f671
95d02561c18351fa69b8c497ed135491abb94301
Preparations for rewriting queries to use materialized views
This change adds various utilities needed for rewriting queries to use materialized views in case that improves query performance. In particular, this is preparation for #2649
diff --git a/src/engine/QueryPlanner.h b/src/engine/QueryPlanner.h index 94c6ce9a30..88d2ca39af 100644 --- a/src/engine/QueryPlanner.h +++ b/src/engine/QueryPlanner.h @@ -65,15 +65,8 @@ class QueryPlanner { Node(size_t id, SparqlTriple t, std::optional<Variable> graphVariable = std::nullopt) ...
12
7
2
[{"id": "G0", "claim": "Use `std::invoke` to call the functor in `forEachVariable` so that flexible callables such as member pointers of `Variable` also work.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a requirement to `forEachVariable` that the ...
null
ad-freiburg__qlever__2710
ad-freiburg/qlever
2,710
defect
f35a290fc35e28fefdc9ac56139660fad14ab860
576993dc1c33b3f2c56a2cc0737dc52b9258cc19
Add template preprocessing phase for `CONSTRUCT` queries
So far, every template triple from a `CONSTRUCT` clause was evaluated from scratch for every result row. Now there is a data-independent preprocessing step that does the following once for the whole query: resolve variable lookups to column indices; evaluate constant IRIs and literals; drop the template triple entirely...
diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 311da2ec3a..38a49df1f4 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -18,7 +18,7 @@ add_library(engine QueryExecutionContext.cpp ExistsJoin.cpp SparqlProtocol.cpp ParsedRequestBuilder.cpp NeutralOption...
10
9
1
[{"id": "G0", "claim": "Move the HashMap lookup helper into util/Algorithm.h as ad_utility::findOptional and put its unit tests into AlgorithmTest.cpp instead of the preprocessor test file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PrecomputedVariab...
null
ad-freiburg__qlever__2713
ad-freiburg/qlever
2,713
defect
f35a290fc35e28fefdc9ac56139660fad14ab860
e8ba8413e6170ed38e0036a44446c36e7db36c5d
Encode literals from `STRDT` as `ValueId`
The `STRDT` function adds a datatype to a raw string literal. So far, this always resulted in a `LiteralOrIri`, which was then stored in the `LocalVocab`. Now, values from datatypes that can be directly encoded in the `Id` (integers, doubles, Booleans, dates, and WKT points) are indeed encoded in the `Id`. For example,...
diff --git a/src/engine/sparqlExpressions/StringExpressions.cpp b/src/engine/sparqlExpressions/StringExpressions.cpp index bcb5822c39..0ec994c11d 100644 --- a/src/engine/sparqlExpressions/StringExpressions.cpp +++ b/src/engine/sparqlExpressions/StringExpressions.cpp @@ -11,6 +11,8 @@ #include "engine/sparqlExpressions...
5
3
0
[{"id": "G0", "claim": "The code should catch a specific exception (e.g. ParseException) instead of catching all exceptions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-obvious fallback behaviour (invalid content for the given datatyp...
null
ad-freiburg__qlever__2719
ad-freiburg/qlever
2,719
defect
f35a290fc35e28fefdc9ac56139660fad14ab860
db2904735969432a7d72533cbb4b7f362f2ba343
Ensure that tests can be compiled and run on all `LOGLEVEL`s
Follow up to #2671 that makes sure that tests can be run with any `-DLOGLEVEL=` now. If a test requires a higher log level than specified, it is simply skipped
diff --git a/src/util/Log.h b/src/util/Log.h index 760f13d4f9..3d4b6cd166 100644 --- a/src/util/Log.h +++ b/src/util/Log.h @@ -96,7 +96,7 @@ class Log { static std::ostream& getLog() { // use the singleton logging stream as target. return LogstreamChoice::get().getStream() - << getTimeStamp() << ...
1
1
1
[{"id": "G0", "claim": "The unconditional check after the skip macro should use ASSERT_GE instead of EXPECT_GE so the test stops immediately rather than continuing after a fatal failure.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ad-freiburg__qlever__2723
ad-freiburg/qlever
2,723
defect
c21e686ca36bb4d25dcddcb1332857f653d41bb8
0cbaaec628183d19f4f50041d9b899e07513e10c
Add batch evaluation of variables for `CONSTRUCT` queries
So far, for each result row, every variable in a `CONSTRUCT` template was individually resolved from its `Id` to its string representation. Now there is a column-oriented batch evaluator that processes all rows for a single variable before moving to the next variable, and an LRU cache (keyed by `Id`) that avoids redund...
diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 3128a3d310..4531d834e9 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -18,8 +18,8 @@ add_library(engine QueryExecutionContext.cpp ExistsJoin.cpp SparqlProtocol.cpp ParsedRequestBuilder.cpp NeutralOption...
3
2
0
[{"id": "G0", "claim": "The doc comment above the `EvaluatedVariableValues` alias seems unrelated to the code line that follows it and should be improved to state explicitly what the alias stores, as joka921 proposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
ad-freiburg__qlever__2726
ad-freiburg/qlever
2,726
defect
f35a290fc35e28fefdc9ac56139660fad14ab860
e0fc1b40360c44e7dd3f5c696fc4a487047bff07
Fix order for Cartesian product join when `UNDEF` in left input
When joining `UNDEF` values from the left input with defined values from the right input, the Cartesian product was not sorted as promised, which led to an assertion error. This is now fixed. In particular, fixes #2606
diff --git a/src/util/JoinAlgorithms/JoinAlgorithms.h b/src/util/JoinAlgorithms/JoinAlgorithms.h index aa8858936c..4a8b6be6bb 100644 --- a/src/util/JoinAlgorithms/JoinAlgorithms.h +++ b/src/util/JoinAlgorithms/JoinAlgorithms.h @@ -1375,7 +1375,17 @@ CPP_template(typename LeftSide, typename RightSide, typename LessThan,...
2
2
1
[{"id": "G0", "claim": "Add a comment explaining why the reversed cartesian product over leftSide_.undefBlocks_ and rightSide_.currentBlocks_ is necessary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Implement the reversed cartesian product by ...
null
ad-freiburg__qlever__2728
ad-freiburg/qlever
2,728
defect
9f1e9be7dfa4ae629590c6a5168edd71824db7ff
6109372ba0a6b85ed70d49f9f4556dc93a19e0db
Add runtime parameter `service-allowed-iri-prefixes` to specify whitelist for `SERVICE` calls
So far, `SERVICE` queries allow users to federate QLever with arbitrary remote SPARQL endpoints. Especially for public instances this is a security risk, the potential attack vectors including anonymizing denial of service attacks and intrusion into LAN. So far, this could only be prevented by third party software (lik...
diff --git a/src/ServerMain.cpp b/src/ServerMain.cpp index bbc7ae48d3..df50859404 100644 --- a/src/ServerMain.cpp +++ b/src/ServerMain.cpp @@ -182,6 +182,15 @@ int main(int argc, char** argv) { ->multitoken(), "The names of materialized views to be loaded automatically on server " "start (this ...
3
3
0
[{"id": "G0", "claim": "The PR should document how to disable all SERVICE (federated) queries given that the empty whitelist means allow-all, e.g. by setting an invalid IRI prefix like `-`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `S...
null
ad-freiburg__qlever__2732
ad-freiburg/qlever
2,732
defect
9f1e9be7dfa4ae629590c6a5168edd71824db7ff
07501ccdefac82db4d3fc180b658c9b84e31b841
Normalize away the `xsd:string` datatype
An untyped string literal `"..."` and its explicitly typed counterpart `"..."^^xsd:string` are now considered identical throughout the codebase, as it should be according to the RDF and SPARQL standards. This is achieved by consistently "normalizing away" the `xsd:string` datatype whenever it is encountered. In particu...
diff --git a/src/engine/ExportQueryExecutionTrees.cpp b/src/engine/ExportQueryExecutionTrees.cpp index 911a64df8d..586a934f2d 100644 --- a/src/engine/ExportQueryExecutionTrees.cpp +++ b/src/engine/ExportQueryExecutionTrees.cpp @@ -467,14 +467,6 @@ ExportQueryExecutionTrees::idToLiteralForEncodedValue( return Literal...
1
1
0
[{"id": "G0", "claim": "Add a TODO that removing the redundant `xsd:string` datatype here is somewhat costly and should only be kept until the vocabulary breaking change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ad-freiburg__qlever__2733
ad-freiburg/qlever
2,733
defect
9f1e9be7dfa4ae629590c6a5168edd71824db7ff
591fbe56c5f963542fa9a0e8c07496bb56bc95fb
Prove `UndefStatus::AlwaysDefined` for more expressions
Follow-up to #2698, which sets `UndefStatus::AlwaysDefined` for the results of the following additional expressions: `BOUND(variable)`, `EXISTS`, `RAND()`, `UUID()`, `STRUUID()`, `BNODE()`. Note that this is not necessarily true for `BNODE(label)` because `label` could be undefined. Also set the result of a logical and...
diff --git a/src/engine/sparqlExpressions/ExistsExpression.h b/src/engine/sparqlExpressions/ExistsExpression.h index 3c1bebed22..d031c9b92b 100644 --- a/src/engine/sparqlExpressions/ExistsExpression.h +++ b/src/engine/sparqlExpressions/ExistsExpression.h @@ -83,6 +83,20 @@ class ExistsExpression : public SparqlExpressi...
3
3
2
[{"id": "G0", "claim": "The base implementation should either return false or be pure-virtual instead of assuming every childless expression is always defined, and childless expressions that can be undefined (such as UUID/RANDOM) should have isResultAlwaysDefined implemented manually.", "category": "design", "verdict":...
null
ad-freiburg__qlever__2735
ad-freiburg/qlever
2,735
defect
9f1e9be7dfa4ae629590c6a5168edd71824db7ff
49e2c27033edfa8e41123b95921c7bb3f578ab2e
Faster compilation with type-erased `StringExpression`
The `sparqlExpression` module is expensive to compile because of its many templates. This change implements facilities to alternatively implement them using type erasure, which is cheaper to compile, but reduces the performance at runtime; a worthwhile trade-off during development and debugging. The alternative impleme...
diff --git a/CMakeLists.txt b/CMakeLists.txt index a374df4141..5ebc209d06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,14 @@ add_compile_definitions(BOOST_ASIO_DISABLE_AWAITABLE_FRAME_RECYCLING) # contribute to the precompiled headers, then it might be beneficial to deactivate precompiled headers. op...
19
12
0
[{"id": "G0", "claim": "The added `geoExpressionOnly` CMake target is used nowhere and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The leftover commented-out `/* originally: ... */` blocks in GeoExpression.cpp should be rem...
null
ad-freiburg__qlever__2736
ad-freiburg/qlever
2,736
defect
5c6a72a24f114afb4136ea733e443571c11660d4
51f598f6e9e1e627faf8627ae159907852a36b21
Add non-owning variants of `LiteralOrIri`, `Iri`, and `Literal`
Refactor `LiteralOrIri`, `Iri`, and `Literal` into `BasicLiteralOrIri<isOwning>`, `BasicIri<isOwning>`, and `BasicLiteral<isOwning>` templates to support both owning and non-owning variants (based on `std::string_view`). No change in functionality of the existing code
diff --git a/src/parser/LiteralOrIri.cpp b/src/parser/LiteralOrIri.cpp index 1d8611aeb3..ee655bbb6a 100644 --- a/src/parser/LiteralOrIri.cpp +++ b/src/parser/LiteralOrIri.cpp @@ -1,6 +1,12 @@ -// Copyright 2023, University of Freiburg, -// Chair of Algorithms and Data Structures. -// Author: Benedikt Ma...
7
5
1
[{"id": "G0", "claim": "The `iriref` factory should take `std::string_view` instead of `const std::string&`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The `fromStringRepresentation` of the non-owning `LiteralOrIriView` now duplicates what the...
null
ad-freiburg__qlever__2737
ad-freiburg/qlever
2,737
defect
a14e0a0fab70ed6fedb0def5ae54a241e54d1b26
e2c44f310195f23622c8e10c759263e1addbe321
Add operation `vacuum-delta-triples` that removes redundant update triples
Inserting a triple that already exists or deleting a triple that does not exist is redundant. QLever does not check this for an update operation for efficiency reasons (it would require reading and decompressing index blocks). But redundant update triples can accumulate over time and slow down query processing. The ...
diff --git a/src/engine/Server.cpp b/src/engine/Server.cpp index bea941717c..82ec2aaefa 100644 --- a/src/engine/Server.cpp +++ b/src/engine/Server.cpp @@ -459,6 +459,25 @@ CPP_template_def(typename RequestT, typename ResponseT)( handle); auto countAfterClear = co_await std::move(coroutine); response ...
19
18
3
[{"id": "G0", "claim": "No automatic timeout is set up for the vacuum operation's cancellation handle, so the cancellation path described in the comment will probably never occur; set it up using the existing helper.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
ad-freiburg__qlever__2742
ad-freiburg/qlever
2,742
defect
afdc5a30bd378311afb2d3a58444db38d591ac07
9cdb74386faf0093198a1b3117b36d3688b197b6
Compute `BIND` column via materialized view if possible
Implement infrastructure that can "push down" a `BIND` operation in the query execution tree until the child is an index scan of a materialized view. When that index scan can provide the respective column, the `BIND` operation is eliminated. Currently, the following operations can push down a `BIND` operation: `Join`, ...
diff --git a/src/engine/IndexScan.cpp b/src/engine/IndexScan.cpp index 71dbe10265..3fe98e6894 100644 --- a/src/engine/IndexScan.cpp +++ b/src/engine/IndexScan.cpp @@ -11,9 +11,12 @@ #include <string> #include <utility> +#include "engine/MaterializedViews.h" #include "engine/QueryExecutionTree.h" +#include "engine/...
12
9
1
[{"id": "G0", "claim": "The `makeTreeWithBindColumn` declaration should get a short comment naming a possible usage, such as the materialized view where the bind might be cheaper to compute.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `cove...
null
ad-freiburg__qlever__2743
ad-freiburg/qlever
2,743
defect
a14e0a0fab70ed6fedb0def5ae54a241e54d1b26
78c71021917c4704eb2cff9c28a21e5024356571
Update most GitHub workflows to `Ubuntu 24.04`
`Ubuntu 24.04` is the latest distribution and we were recently having trouble installing modern `gcc` versions on `Ubuntu 22.04`. The `clang-16` workflow still runs on `Ubuntu 22.04` because that compiler cannot easily be installed on Ubuntu 24.04 (neither Canonical nor LLVM provide Debian packages for that distributio...
diff --git a/.github/workflows/check_index_version.yml b/.github/workflows/check_index_version.yml index 180edc38e2..888da4c416 100644 --- a/.github/workflows/check_index_version.yml +++ b/.github/workflows/check_index_version.yml @@ -23,7 +23,7 @@ jobs: warnings: [ "-Wall -Wextra -O1 " ] build-type:...
2
1
0
[{"id": "G0", "claim": "The `runner: [ubuntu-24.04]` entry added to the compiler matrix in native-build.yml looks weird and needs cleaning up (see the follow-up comment for clarification).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fallback in `r...
null
ad-freiburg__qlever__2745
ad-freiburg/qlever
2,745
defect
a14e0a0fab70ed6fedb0def5ae54a241e54d1b26
8fe75f7bcdbf9e6731285f4ead90f2898eca8d7d
Fix regression involving `useGraphPostProcessing_`
This change fixes a regression from #2708, which introduced the `useGraphPostProcessing_` flag in `CompressedRelationReader`. However, setting this to `false` also deactivated the deletion of the graph column, which is necessary when it is not selected. Now the deletion of the graph column is also performed when `useGr...
diff --git a/src/engine/MaterializedViews.cpp b/src/engine/MaterializedViews.cpp index 725c1832eb..29f2ee6474 100644 --- a/src/engine/MaterializedViews.cpp +++ b/src/engine/MaterializedViews.cpp @@ -517,6 +517,7 @@ SparqlTripleSimple MaterializedView::makeScanConfig( // contains multiple instances of `MaterializedVi...
1
1
1
[{"id": "G0", "claim": "The reviewer does not see how #2708 would have introduced the regression (suspecting #2632/#2647 instead) and expects the real cause is missing logic that properly accounts for \"missing columns\" — if only columns with indices 4 and 5 are requested they become columns 0 and 1 of the resulting I...
null
ad-freiburg__qlever__2753
ad-freiburg/qlever
2,753
defect
c21e686ca36bb4d25dcddcb1332857f653d41bb8
fdeb276c48be621ab2464a33e58abb64f32cc5dd
Let `Permutation` know to which `MaterializedView` it belongs, it any
This allows code that only has a `Permutation` (e.g., in methods from `IndexScan`) to discover which materialized view it belongs to, if any. Preparation for #2742 and #2746
diff --git a/src/engine/MaterializedViews.cpp b/src/engine/MaterializedViews.cpp index 725c1832eb..b5f7c1c210 100644 --- a/src/engine/MaterializedViews.cpp +++ b/src/engine/MaterializedViews.cpp @@ -382,6 +382,12 @@ std::shared_ptr<const Permutation> MaterializedView::permutation() const { return permutation_; } ...
4
3
0
[{"id": "G0", "claim": "In the materialized-view matcher, either Pointee already performs the null check, making the Ne(nullptr) matcher redundant, or, if it does not, the matchers must be evaluated in order with gtest short-circuiting before the Pointee dereferences a null pointer — please double-check which holds.", ...
null
ad-freiburg__qlever__2755
ad-freiburg/qlever
2,755
defect
c21e686ca36bb4d25dcddcb1332857f653d41bb8
3ef7c1c648cd8222c816dffe4aabe36309fd0a02
Add internal function `ql:prefix-match`
QLever has an optimized, very fast implementation for prefix search in literals, which avoids (expensive) vocabulary lookups and instead uses binary searches (based on QLever's "monotonic" `Id`s) to determine the ranges of matching literals. In particular, this is useful for fast autocompletion queries. This optimiz...
diff --git a/src/engine/sparqlExpressions/RegexExpression.cpp b/src/engine/sparqlExpressions/RegexExpression.cpp index bfb59d46b6..a6431ed930 100644 --- a/src/engine/sparqlExpressions/RegexExpression.cpp +++ b/src/engine/sparqlExpressions/RegexExpression.cpp @@ -356,4 +356,29 @@ SparqlExpression::Ptr makeRegexExpressio...
1
1
0
[{"id": "G0", "claim": "The makeSimilarPrefixExpression tests should use AD_EXPECT_THROW_WITH_MESSAGE instead of plain EXPECT_THROW so the expected error messages are checked, not just the exception type.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ad-freiburg__qlever__2758
ad-freiburg/qlever
2,758
defect
c21e686ca36bb4d25dcddcb1332857f653d41bb8
40ddf3921a94a8c4437b12dd179b14df50f6378a
Allow to completely bypass QLever's cache
There is now a new runtime parameter `disable-caching`, which is `false` by default, and which when set to `true`, disables caching completely. This is set on the level of a `QueryExecutionContext`. Operations associated with this context will then neither read from nor write to the cache, and therefore also don't have...
diff --git a/src/engine/Operation.cpp b/src/engine/Operation.cpp index 5751179d96..fe35c765e5 100644 --- a/src/engine/Operation.cpp +++ b/src/engine/Operation.cpp @@ -337,6 +337,11 @@ std::shared_ptr<const Result> Operation::getResult( updateRuntimeInformationOnFailure(timer.msecs()); } ...
2
1
0
[{"id": "G0", "claim": "The new `disableCaching` test in QleverTest.cpp should also verify that the setting actually prevents caching (e.g. by running the plan twice), and the opposite in the block where caching is enabled.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": ...
null
ad-freiburg__qlever__2763
ad-freiburg/qlever
2,763
defect
afdc5a30bd378311afb2d3a58444db38d591ac07
b7f869e1312c0f8d5e4baf62b6e51d98e45fe49d
Add `tryGet` method to `LRUCache` and `LRUCacheWithStatistics`
So far, the only way to look up a key in the `LRUCache` was via `getOrCompute`, which always inserts a new entry on a cache miss. Now there is a `tryGet` method that returns a `boost::optional<const &>` on a hit (promoting the key to most recently used) and `boost::none` on a miss, without inserting anything. The `LRUC...
diff --git a/src/util/LruCache.h b/src/util/LruCache.h index 3ef8f056fa..b864b529b3 100644 --- a/src/util/LruCache.h +++ b/src/util/LruCache.h @@ -8,7 +8,9 @@ #include <absl/container/flat_hash_map.h> #include <cstdint> +#include <functional> #include <list> +#include <optional> #include "backports/concepts.h" ...
7
5
1
[{"id": "G0", "claim": "The return type of `tryGet` should be `boost::optional<const V&>`, which supports references and is used in other places in the codebase.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment about moving the accessed key to ...
null
ad-freiburg__qlever__2769
ad-freiburg/qlever
2,769
defect
cf7ea57592b09e74c3d67930d124ef6e77bde3bd
0159c2d6868b1462c4ab1acf183990e53f1cb8fa
Let `SpatialJoin` use bounding boxes from an underlying materialized view
Assume you have written and loaded a materialized view which contains at least the following: ```sparql SELECT ?subject ?intermediate ?geometry ?lower_left ?upper_right { ?subject geo:hasGeometry ?intermediate . ?intermediate geo:asWKT ?geometry . BIND (ql:envelopeLowerLeft(?geometry) AS ?lower_left) BIND...
diff --git a/src/engine/QueryPlanner.cpp b/src/engine/QueryPlanner.cpp index 6cc1e41040..a682140c19 100644 --- a/src/engine/QueryPlanner.cpp +++ b/src/engine/QueryPlanner.cpp @@ -57,6 +57,7 @@ #include "engine/sparqlExpressions/NaryExpression.h" #include "engine/sparqlExpressions/RelationalExpressions.h" #include "e...
8
7
1
[{"id": "G0", "claim": "The duplicated code in `prefilterGeoByBoundingBox` should be unified so that getting a possibly optional bounding box (from the argument or from the vocab) happens once, with a single call to `intersects` and `boundingBoxToUtilBox` (or a bound lambda called twice).", "category": "maintainability...
null
ad-freiburg__qlever__2772
ad-freiburg/qlever
2,772
defect
576a8beb9f4b1311424fc692d845d9490a3f7e9e
640913c4f5f65c452915a6d6972bfa2b10add4d1
Store `UndefStatus` for each column of a materialized view
So far, all columns of an index scan of a materialized view had `UndefStatus::AlwaysDefined`. This is correct for ordinary index scans, but for a materialized view, a column can originate from an arbitrary computation, which may result in `UNDEF` values. The fact whether a column of a materialized view contains `UNDEF`...
diff --git a/src/engine/IndexScan.cpp b/src/engine/IndexScan.cpp index 71dbe10265..928ebe6631 100644 --- a/src/engine/IndexScan.cpp +++ b/src/engine/IndexScan.cpp @@ -246,12 +246,14 @@ VariableToColumnMap IndexScan::computeVariableToColumnMap() const { return !varsToKeep_.has_value() || varsToKeep_.value().contain...
3
3
0
[{"id": "G0", "claim": "The PR should use `ad_utility::HashSet` instead of `std::unordered_set` for the possibly-undefined column sets.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's touched `columnOriginatesFromGraphOrUndef` check in IndexScan....
null
ad-freiburg__qlever__2776
ad-freiburg/qlever
2,776
defect
576a8beb9f4b1311424fc692d845d9490a3f7e9e
d182abaee99a9f7015cb499f9afd467124da8fdf
Rewrite star join to scan on materialized view if possible
With this change, QLever can detect a star join in a query and rewrite it to an `IndexScan` operation on a materialized view, if possible. For now, the rewrite works if and only if the query is a superset of or equal to the basic graph pattern in the materialized view (different variable names are okay). The view must ...
diff --git a/src/engine/MaterializedViewsQueryAnalysis.cpp b/src/engine/MaterializedViewsQueryAnalysis.cpp index 84c7b8983e..6a7445bed3 100644 --- a/src/engine/MaterializedViewsQueryAnalysis.cpp +++ b/src/engine/MaterializedViewsQueryAnalysis.cpp @@ -9,15 +9,18 @@ #include "engine/MaterializedViewsQueryAnalysis.h" ...
8
8
0
[{"id": "G0", "claim": "The predicate member of `StarArm` should be a stronger type such as `IRI`, or at least a comment should quickly say what a `StarArm` is.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring of `makeScanForStar` is not unde...
null
ad-freiburg__qlever__2790
ad-freiburg/qlever
2,790
defect
cf7ea57592b09e74c3d67930d124ef6e77bde3bd
4199304c5ae7474b05f8b3ee00db1414ef408510
Extend `IndexScan` descriptor to include all scanned columns
So far the descriptor of the `IndexScan` operation only provides the names of the first three columns (where each name is a variable or a fixed term). With this change, wenn additional columns are scanned, their variable names are included in the descriptor as well. In particular, this is relevant for index scans of ma...
diff --git a/src/engine/IndexScan.cpp b/src/engine/IndexScan.cpp index 68f18c4145..adb5cab0b8 100644 --- a/src/engine/IndexScan.cpp +++ b/src/engine/IndexScan.cpp @@ -162,9 +162,14 @@ bool IndexScan::canResultBeCachedImpl() const { // _____________________________________________________________________________ str...
1
1
0
[{"id": "G0", "claim": "The transformation in getDescriptor probably does a string copy and might be a tiny bit more efficient if the lambda returned decltype(auto).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ad-freiburg__qlever__2809
ad-freiburg/qlever
2,809
defect
9ec88a09010c354c0ba4b0366b84718b0b5e109f
d51bd644dd219b6f06b1bb6f61f0d1a44440a9be
Make `disable-caching` runtime parameter accessible via `HTTP`
This was an omission from #2758, which only cared about making this work for `libqlever`
diff --git a/src/engine/Operation.cpp b/src/engine/Operation.cpp index 380007e3d2..ddffe75b32 100644 --- a/src/engine/Operation.cpp +++ b/src/engine/Operation.cpp @@ -350,6 +350,9 @@ std::shared_ptr<const Result> Operation::getResult( }); if (_executionContext->disableCaching()) { + if (computa...
1
1
1
[{"id": "G0", "claim": "Add a simple unit test covering the case where a computation with ComputationMode::ONLY_IF_CACHED returns nullptr because caching is disabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ad-freiburg__qlever__2822
ad-freiburg/qlever
2,822
defect
94f93b535fcdd3b63ae99e1af955a51175c26729
a2e5e32a3e2569140274dccdf297f6225b7368f2
Compute diff between two snapshots and remap IDs to the new index
When rebuilding the index while the server is running with live updates, new delta triples may arrive between the start of the rebuild and its completion. This change adds the infrastructure to compute and carry over those "missed" delta triples to the new index. The core addition is `DeltaTriples::addFromSnapshotDiff`...
diff --git a/src/index/DeltaTriples.cpp b/src/index/DeltaTriples.cpp index d479454d0b..72d6a41462 100644 --- a/src/index/DeltaTriples.cpp +++ b/src/index/DeltaTriples.cpp @@ -20,6 +20,7 @@ #include "index/ExportIds.h" #include "index/Index.h" #include "index/IndexImpl.h" +#include "index/IndexRebuilder.h" #include ...
9
8
0
[{"id": "G0", "claim": "Snapshot only the DeltaTriples (a single permutation) instead of all permutations, so more of the original code can be reused and much storage saved (one flat vector of triples instead of six full block sets).", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}...
null
ad-freiburg__qlever__672
ad-freiburg/qlever
672
defect
91ade5c2a54f3b25faf4b13ed20439fab8e96e04
36934dfa6df74b0ca1e4639ae1de553b091146bd
Enable parallel execution of tests
This PR adds functions in the test `CMakeLists.txt` to register tests that should always be run in serial. Tests that require this also use this new function. These safeguards make it possible to also run `ctest` with multiple jobs (`-jn`). Using more than one job currently **halves the time required to run the test...
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 81632e93f7..13f8440645 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,6 +23,12 @@ function(linkAndDiscoverTest basename) gtest_discover_tests(${basename} ${basename}) endfunction() +function(linkAndDiscoverTestSerial basename) + ...
5
3
0
[{"id": "G0", "claim": "The PR author dislikes doubling the function (linkAndDiscoverTestSerial/addLinkAndDiscoverTestSerial as separate wrappers) and thinks it should be possible to do it in the existing functions while keeping ARGN intact.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "sc...
null
ad-freiburg__qlever__699
ad-freiburg/qlever
699
defect
4466921c3df85bd46095e224088443154394587c
030465282671ef7f7c772225a6af56c6d235a099
Parse property paths using ANTLR
TODO: - [x] Tests - [x] Determine Support for `pathNegatedPropertySet` and `pathOneInPropertySet` @joka921 - [x] Determine if the preprocessing SparqlParser.cpp:374-391 can be (partly) integrated
diff --git a/src/parser/CMakeLists.txt b/src/parser/CMakeLists.txt index 9187985da2..6fe2febd62 100644 --- a/src/parser/CMakeLists.txt +++ b/src/parser/CMakeLists.txt @@ -11,7 +11,6 @@ add_library(parser Tokenizer.h Tokenizer.cpp ContextFileParser.cpp ContextFileParser.h ParallelParseBuffer.h...
10
9
3
[{"id": "G0", "claim": "The new stateless `parseWithAntlr` overload in SparqlParser.h should get a docstring, be marked `static`, and take an additional PrefixMap parameter defaulted to empty, with the existing consuming overload implemented in terms of this new variant.", "category": "design", "verdict": "supported", ...
null
ad-freiburg__qlever__784
ad-freiburg/qlever
784
defect
ce6f5bab87a8ed12b76d3c6a13408ebf292dc3a7
374e70d5062e6984835ce3a4ae20f686fa4d0dab
Parse SelectQuery using ANTLR
TODO: - [x] more Tests - [x] better Matchers - [x] fix wrong selected Variables / grouping check (see `SparqlQleverVisitor.cpp:578`)
diff --git a/src/parser/SparqlParser.cpp b/src/parser/SparqlParser.cpp index 22fbba5778..bdda38e10b 100644 --- a/src/parser/SparqlParser.cpp +++ b/src/parser/SparqlParser.cpp @@ -34,17 +34,21 @@ vector<SparqlPrefix> convertPrefixMap( // _____________________________________________________________________________ Par...
15
14
5
[{"id": "G0", "claim": "If the select case never reaches this code any more, use `AD_CHECK(hasConstructClause)` and move the code out of the inner `if`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dataset-clause error should use the revie...
null
adafruit__Adafruit_CircuitPython_CharLCD__16
adafruit/Adafruit_CircuitPython_CharLCD
16
defect
ee2a9ad49ba8ae8d5c3407f28b800d98d43a3ae3
2719125e75a418b1adfbd5547e52d53cd145a15e
enable non-PWM pins for backlight color, add kattni's pi-specific simpletest
Rationale: pulseio isn't available on CPython Linux systems (i.e. the Pi), this mimics the design of the original Adafruit_Python_CharLCD. Adds `enable_pwm` parameter (defaults to `True`) to Character_LCD_RGB constructor, and conditionalizes handling of the color pins on this value. If PWM is disabled, pins should...
diff --git a/adafruit_character_lcd/character_lcd_rgb.py b/adafruit_character_lcd/character_lcd_rgb.py index 25421f6..6a6f9e4 100755 --- a/adafruit_character_lcd/character_lcd_rgb.py +++ b/adafruit_character_lcd/character_lcd_rgb.py @@ -90,7 +90,7 @@ _LCD_5X8DOTS = const(0x00) # Offset for up to 4 rows....
3
2
1
[{"id": "G0", "claim": "Instead of adding an enable_pwm flag that the caller must set, the code should detect how to drive the RGB pins by checking the pin objects' attributes (or their types, e.g. isinstance).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
adafruit__tinyuf2__104
adafruit/tinyuf2
104
defect
633a5d73ed1459823b578f974680a965bac0196e
7eae8a014a9a8e51a54d6a985f4a08a00750c9bd
Followup ghostfat test
follow up to #94 to separate native build tests from cross-compile (for target hardware). `NO_TINYUF2_BUILD` is used for this purpose (along with SKIP_NANOLIB, some later ports especially non-ARM may skip this lib as well). NO_TINYUF2_BUILD introduced in recent PR to allow make.mk and rule.mk to build other executable ...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c319fd65..88861e2c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,13 +27,8 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 - - name: Setup Node.js - uses: actions/setup-nod...
1
1
0
[{"id": "G0", "claim": "The stray '//------------- Board -------------//' text pasted onto the closing brace of the DumpBuffer loop looks like an accidental paste and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
adafruit__tinyuf2__150
adafruit/tinyuf2
150
defect
c4605b091cf05360188337a794c2b6c2d30e16f8
96fca4a44ad83db0a9b559be67f22c9b35e1debd
Added support for I2C power control during boot2 phase
Added support for I2C TCA9554 peripheral power control during the boot2 phase. Uses software I2C. Made a small change to the neopixel reset timing (increased to 1000usec) as it seems to be needed on this board. I tested this timing with another neopixel equipped board (Gravitech Cucumber) and it worked.
diff --git a/ports/esp32s2/boards/espressif_hmi_1/board.h b/ports/esp32s2/boards/espressif_hmi_1/board.h index 32825a3be..cfb7f88cb 100644 --- a/ports/esp32s2/boards/espressif_hmi_1/board.h +++ b/ports/esp32s2/boards/espressif_hmi_1/board.h @@ -46,7 +46,7 @@ #define NEOPIXEL_PIN 21 // Brightness percentage...
1
1
1
[{"id": "G0", "claim": "The neopixel reset delay was moved before the neopixel is set off without reason, so it should be moved back to its original location after the neopixel is turned off.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
adafruit__tinyuf2__189
adafruit/tinyuf2
189
defect
262e74c83d5a1d4886dcabc5aad06600da66b431
1633e6c40d295529bd3aef42ce821e729c4120f8
[STM32F4] Add bootloader overwrite self-protection
**For review read the commits in separation** Driven by a remark that bootloader protection is still pending I implemented it for the STM32F4 family. For broader use a new board level function is introduced `board_flash_protect_bootloader()`. All other ports are currently implemented as stubs. On the STM32F4 f...
diff --git a/ports/espressif/boards/board_flash.c b/ports/espressif/boards/board_flash.c index 7e42a24e7..5714444a2 100644 --- a/ports/espressif/boards/board_flash.c +++ b/ports/espressif/boards/board_flash.c @@ -121,6 +121,11 @@ void board_flash_write (uint32_t addr, void const *data, uint32_t len) memcpy(_fl_buf +...
5
3
1
[{"id": "G0", "claim": "Write-protecting the whole 64 KB block (sectors 0-3) irrespective of the actual bootloader size would break usage that stores firmware settings/EEPROM emulation in the later 16 KB sectors; only the sectors the tinyuf2 linker script reserves (the first two, 32 KB) should be locked.", "category": ...
null
adaltas__node-http-status__49
adaltas/node-http-status
49
defect
71a991bc4efa131985e97e35248f41bb59c62e6b
bfa092962e80c4948a6aa2c674b4ed423f1c8a38
fix(types): improve TypeScript strict typing for numeric keys in HttpStatus
The TypeScript type inference for numeric keys in the HttpStatus interface was previously unspecific, causing issues in strict typing scenarios. This fix removes unnecessary declarations, ensuring more accurate and strict TypeScript typing for numeric keys. It also includes updates to unit tests to reflect and validate...
diff --git a/lib/index.d.ts b/lib/index.d.ts index aa81727..18f458c 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -4,15 +4,6 @@ declare const httpStatus: httpStatus.HttpStatus; declare namespace httpStatus { interface HttpStatus { - readonly [key: number]: string | undefined; - - readonly [key: string...
1
1
0
[{"id": "G0", "claim": "The pull request should keep the type casts to HttpStatus (and the corresponding casts in the tests below) that it removes from test/types.ts.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
adamchainz__time-machine__298
adamchainz/time-machine
298
defect
522b647acd2af817d29de427765108e64036986d
011a8f3b15c4ce58fb0fd3b4df44ea3419404cbd
Add support for dt.timedelta to travel class
Adds support to pass a datetime.timedelta object to `travel`. To avoid potential abuse this feature is blocked when already traveling, since the `shift` API would provide similar functionality and should be simpler. This should open an API to implement #247 fixes #38
diff --git a/src/time_machine/__init__.py b/src/time_machine/__init__.py index 6b8cc7ca..9f5881b6 100644 --- a/src/time_machine/__init__.py +++ b/src/time_machine/__init__.py @@ -77,6 +77,7 @@ int, float, dt.datetime, + dt.timedelta, dt.date, str, ] @@ -117,6 +118,12 @@ def extract_timestam...
3
3
1
[{"id": "G0", "claim": "No need to use the escape hatch API internally; use the internal coordinates_stack check instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message should match the lowercase class name: \"timedelta destination is n...
null
adamchainz__time-machine__404
adamchainz/time-machine
404
defect
f2510607d8e676c0ce7c6a51b64b426e3cabaae1
9b1c15ac6ee149e8bc0c5ef3575b50e66ed27790
Fix class decorator for classmethod overrides
Is related to #402 The problem is reproduced when setUpClass calls another method: `cls` in this case is of base class type.
diff --git a/tests/test_time_machine.py b/tests/test_time_machine.py index 163ec2b5..0546d127 100644 --- a/tests/test_time_machine.py +++ b/tests/test_time_machine.py @@ -558,6 +558,31 @@ class Something: assert excinfo.value.args == ("Can only decorate unittest.TestCase subclasses.",) +@time_machine.travel(EP...
1
1
1
[{"id": "G0", "claim": "If adding a failing test case, do not skip it with @pytest.mark.skip; either leave it failing or use xfail.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
adamchainz__time-machine__499
adamchainz/time-machine
499
defect
728d0a6ec442d9b76ebc03f3ad7fcee94ffe6b24
e9398ae657f3b1fa331afac4e4e3e8fac32ef34c
Add marker support to pytest plugin
This patch fixes a very niche scenario: 1. When you have a fixture that depends on time. 2. When you need to modify the time before the test is executed. 3. AND be able to change the time while inside the test ```python import time @pytest.fixture def current_time(): return time.time() def test_norm...
diff --git a/docs/changelog.rst b/docs/changelog.rst index f6352303..b60a2a96 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,10 @@ Changelog 2.18.0 (2025-08-18) ------------------- +* Add a pytest marker fixture supporting initial time setting and in-test time shifting. + + Thanks to Javier Bu...
4
4
0
[{"id": "G0", "claim": "The changelog entry for this PR was accidentally placed under the heading of the already-released 2.18.0 version instead of the unreleased section.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The quick mention and single...
null
adamchainz__time-machine__521
adamchainz/time-machine
521
defect
6ad6e771f4021536347a4f0ef3fd198fced35106
dca323fb8bd73a8e01abfdfa9f8ce7c012dba37e
Build Python 3.14 wheels
Python 3.14.0rc1 is out so it's now encouraged to build these wheels and upload them to PyPI 🙂.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 847932ea..ee3e89c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,9 @@ concurrency: group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + CIBW_VERSION: "3.1.2" + jobs: ...
1
1
0
[{"id": "G0", "claim": "The cibuildwheel version should stay inline in the run command rather than being hoisted into a CIBW_VERSION env variable that is used in only one place.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
adamgell__cmtraceopen__48
adamgell/cmtraceopen
48
defect
8f184ffd29959a657f32ca9fc720a329cea6fc09
e08eb27c4fc0ba22f89dcb29029b52f6f8d88177
Consolidate GUID resolution and expose registry to frontend
## Changes - **Version bump**: Update Cargo.lock to 0.6.0-pre1 - **GUID registry consolidation**: Extract common GUID-to-app-name resolution logic into shared functions in `guid_registry.rs`: - `extract_app_id()` — unified AppId/Id extraction - `extract_app_name()` — unified ApplicationName/Name/SetUpFilePath extr...
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index c142d17dc..6417b7065 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -511,7 +511,7 @@ dependencies = [ [[package]] name = "cmtrace-open" -version = "0.5.1" +version = "0.6.0-pre1" dependencies = [ "chrono", "criterion", diff --git a...
1
1
0
[{"id": "G0", "claim": "Add a small test that builds a registry with a couple of entries (different GuidNameSources), calls to_serializable(), and asserts the resulting map (and optionally serde JSON) matches expected name/source values to prevent contract regressions.", "category": "testing", "verdict": "supported", "...
null
adamthedash__poe_data_tools__7
adamthedash/poe_data_tools
7
defect
389828af8c36468923bec3bafe08519b38689ca1
adc4dd9fb4aa1755971250b1029f0f48c0685f38
Add cache for current version and auto-getted schema
I now am ok with the state of this. The passing the cache_dir around is mildly clunky, but - Benchmarks now work (name conflict before) and aren't going to brutalize the version socket - Test now works on any machine
diff --git a/benches/fs.rs b/benches/fs.rs index ee934a5..ed3ac53 100644 --- a/benches/fs.rs +++ b/benches/fs.rs @@ -7,49 +7,45 @@ use poe_tools::{ }; fn fs_benchmark_steam(c: &mut Criterion) { - let fs = from_steam(steam_folder_search("2").expect("Can't find steam folder")); - read_some_files("steam", c, fs,...
1
1
1
[{"id": "G0", "claim": "The new cdn_base_url crashes when no cache file exists yet (fs::metadata(&cache_file)? errors on a missing file instead of falling through to fetch the URL), and the version is used twice in the cache path, e.g. \"/home/adam/.cache/poe_data_tools/cdn_url/2/2\".", "category": "correctness", "verd...
null
adbar__htmldate__30
adbar/htmldate
30
defect
d6d34d3ae82d43ce7a2549a51d62584a5afb078f
1fcbc59d9f5a5a42c755f6fdd4b3cfbe10d48341
Port improvements from go-htmldate
## Overview While porting this library into Go language, I've tried to made some improvements to make the extraction more accurate. After more testing, it looks like those improvements are good and stable enough to use so I decided to implement those improvements back to Python here. ## Changes There are three...
diff --git a/README.rst b/README.rst index bed1c0ab..598c1974 100644 --- a/README.rst +++ b/README.rst @@ -94,8 +94,8 @@ Python Package Precision Recall Accuracy F-Score Time articleDateExtractor 0.20 0.817 0.635 0.556 0.714 3.5x date_guesser 2.1.4 0.809 0...
11
6
3
[{"id": "G0", "claim": "The multi-line variable initializations in regex_parse_multilingual should be written as one-liners, which are usually faster and more pythonic.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The many changes in regex_parse_m...
null
adbar__simplemma__126
adbar/simplemma
126
defect
6049223c9d06ec32c5ec01d8e20390bb5b125e97
126a3a4cea31f0b3c438b5ca32e882c2b2f478cf
Feat/simplify is known function
Partially solves #125 We still need to redo the dictionaries, etc.
diff --git a/simplemma/lemmatizer.py b/simplemma/lemmatizer.py index 18e55d1f..93557684 100644 --- a/simplemma/lemmatizer.py +++ b/simplemma/lemmatizer.py @@ -80,30 +80,6 @@ def __init__( self._fallback_lemmatization_strategy = fallback_lemmatization_strategy self._cached_lemmatize = lru_cache(maxsize...
1
1
0
[{"id": "G0", "claim": "Add a multilingual test of is_known (e.g. is_known(\"espejos\", lang=(\"en\", \"es\"))) to make sure everything keeps working as intended in the future.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
adbar__simplemma__50
adbar/simplemma
50
defect
e013a3fd56eb10cc42c342199174bbfefd41b4d5
8f92e730c5468a19c2844bbbf812e5e8e4a027ef
feat: add posibility to customize token sampler
Closes #45
diff --git a/simplemma/langdetect.py b/simplemma/langdetect.py index fd10f65b..34a53730 100644 --- a/simplemma/langdetect.py +++ b/simplemma/langdetect.py @@ -12,34 +12,34 @@ SPLIT_INPUT = re.compile(r"[^\W\d_]{3,}") -def prepare_text(text: str, splitting_regex: Pattern[str] = SPLIT_INPUT) -> List[str]: - """Ex...
1
1
0
[{"id": "G0", "claim": "The `tokenSampler` parameter should be renamed to `token_sampler` to follow Python naming style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
adbar__simplemma__54
adbar/simplemma
54
defect
1f3707bec868ec3e5ec8165b1b7e5e1539118f15
79618314e829474037fee218f554fc7234d01fed
refactor: solve linting issues and simplify some methods complexity
This solves many of the complaints from flake8. The diff might seems big but if you look closely it's mainly removing nested conditions in favour of guard clauses. As you see, there are no real changes on the tests. Everything just pass all the same.
diff --git a/simplemma/dictionary_factory.py b/simplemma/dictionary_factory.py index 6d0d7a70..c4079386 100644 --- a/simplemma/dictionary_factory.py +++ b/simplemma/dictionary_factory.py @@ -40,11 +40,12 @@ def __init__(self, cache_max_size: Optional[int] = 8): ) def get_dictionaries( - self, lan...
4
4
1
[{"id": "G0", "claim": "Fix the mypy --strict error at simplemma/dictionary_factory.py:47 — a non-overlapping equality check comparing Tuple[str, ...] with List[str].", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Fix the pylint R1721 hint at simp...
null
adbar__simplemma__69
adbar/simplemma
69
defect
001cd49094c11c359a0b002ddaa098f861e2de52
20d65bd1c70db847ba7b29905bfb219d20f06f91
Better DE rules
Getting rid of unnecessary rules. The corresponding dictionary needs to be adapted before merging.
diff --git a/simplemma/rules/de.py b/simplemma/rules/de.py index c7a09201..a0babc22 100644 --- a/simplemma/rules/de.py +++ b/simplemma/rules/de.py @@ -2,24 +2,27 @@ from typing import Optional + NOUN_ENDINGS_DE = re.compile( - r"(?:bold|[^kl]ling|ment)(e?[ns]?)?$|" + r"(?:erei|heit|keit|ion|schaft|tät|[^jlz...
1
1
0
[{"id": "G0", "claim": "The German rules should be fully independent of the greedy search — ideally by removing the greedy gate from apply_de or alternatively by splitting the rules into APPLY_RULES and APPLY_GREEDY_RULES so the lemmatizer can try normal rules and then greedy rules.", "category": "design", "verdict": "...
null
adbar__simplemma__70
adbar/simplemma
70
defect
43627a1ff9d08e5370b68741f4aee025cf80a3fe
a7910002b84d5fb5054407764f173c9dfad37cdc
Simplify lemmatizing code
The code can be simplified to be more readable. The prefix search is also moved upward (no incidence on performance for the concerned languages).
diff --git a/simplemma/lemmatizer.py b/simplemma/lemmatizer.py index 743e4506..53e6d861 100644 --- a/simplemma/lemmatizer.py +++ b/simplemma/lemmatizer.py @@ -9,7 +9,7 @@ from .constants import CACHE_SIZE from .dictionary_factory import DictionaryFactory from .tokenizer import Tokenizer -from .rules import APPLY_RUL...
4
4
1
[{"id": "G0", "claim": "The _affix_search and _greedy_search logic should be wrapped in their own function(s) so they can be included in the block of searches in _return_lemma.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The apply_rules and prefix-loo...
null
adbar__simplemma__85
adbar/simplemma
85
defect
b575330e558851c728af74bb62208af445d6a283
6a263e0c50d18d5972ee6517e0160bd7b9cad265
Refactor/move training files to own folder
Closes #49
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4ebd08b6..c73b5527 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -86,11 +86,11 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Code format wit...
3
2
2
[{"id": "G0", "claim": "CI type checking fails because mypy cannot find the 'training' package after the files were moved (\"Can't find package 'training'\").", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "After the upstream merge changed import loc...
null
addyosmani__critical__76
addyosmani/critical
76
defect
b45733d1cfba60d78fb36382d5ab5adae5b7a798
fe4d47aea2c92ed5874c60ba6234c4a118f3f94b
Allows pathPrefix to be set through options.
Defaults to "/" but does not add "/" automatically since this would prevent people from using this to set paths to be relative (if you specify pathPrefix to "" it will make your paths relative paths instead of absolute). Fixes #51
diff --git a/index.js b/index.js index 045c587a..fea4a52f 100644 --- a/index.js +++ b/index.js @@ -146,8 +146,8 @@ exports.generate = function (opts, cb) { // create path relative to opts.base var relativeToBase = path.relative(path.resolve(opts.base), path.resolve(path.join(di...
3
2
1
[{"id": "G0", "claim": "The pathPrefix handling should perhaps always prepend a leading slash (e.g. path.join('/', opts.pathPrefix || '', relativeToBase)) instead of letting pathPrefix fully replace the default '/'.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
adelsz__pgtyped__266
adelsz/pgtyped
266
defect
df45b7a12a26f86d146a6cebe567ef83dfbb3508
cc8b128a31e5c61ef49c542667ae1b910f83410c
Remove unused code
Removes some dead code that isn't used (in the spirit of trying to improve on-boarding to the code base).
diff --git a/packages/cli/src/generator.ts b/packages/cli/src/generator.ts index ea97e3587..3775d4fe2 100644 --- a/packages/cli/src/generator.ts +++ b/packages/cli/src/generator.ts @@ -62,7 +62,7 @@ export async function queryToTypeDeclarations( queryData = processSQLQueryAST(parsedQuery.ast); } - const type...
2
2
0
[{"id": "G0", "claim": "The dynamically generated files under packages/query/src/loader/sql/parser/ should be ignored (left unmodified) so the pull request does not produce diffs on the next generator run.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
adelsz__pgtyped__377
adelsz/pgtyped
377
defect
d790e9f04f0335fa0f836a7a909b5b4814f98dc0
f9fd0561ff94c9128e7eca8fd49a2d81c308d969
feat: Output nullability overriding with aliases
This the implements the feature request proposal of: #284 that discusses a possible workaround for Postgres' limited nullability information for output columns (see also #375) You can set nullability hints on output columns using column aliases such as `AS "name?"` for enforcing a nullable type or `AS "name!"` for a...
diff --git a/docs-new/docs/sql-file.md b/docs-new/docs/sql-file.md index 7528ef87b..85cc5efb1 100644 --- a/docs-new/docs/sql-file.md +++ b/docs-new/docs/sql-file.md @@ -28,6 +28,7 @@ PgTyped has a number of requirements for SQL file contents: 4. Queries can contain parameters. Parameters should start with a colon, ex....
5
5
0
[{"id": "G0", "claim": "Instead of extending the ANTLR grammar for nullability hints, achieve the same effect by suffix checks on field names and a runtime layer that strips the ?/! marks and maps the marked result fields to unmarked ones.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_...
null
adelsz__pgtyped__414
adelsz/pgtyped
414
defect
f2ea887956383291b9b76bc299a15f085a880392
51442e8bcc1fad68baac1bb3187a1cb28cd09352
Include column comments in generated types
Postgres lets you attach comments to columns via the `COMMENT` command: https://www.postgresql.org/docs/current/sql-comment.html This PR includes those as JSDoc / TSDoc comments in the types files that PgTyped generates. This has the advantage of making the comments appear in contextually appropriate places in edito...
diff --git a/packages/cli/src/generator.test.ts b/packages/cli/src/generator.test.ts index 5ded03f54..d4f184345 100644 --- a/packages/cli/src/generator.test.ts +++ b/packages/cli/src/generator.test.ts @@ -36,6 +36,7 @@ describe('query-to-interface translation', () => { columnName: 'payload', t...
3
2
1
[{"id": "G0", "claim": "The comment interpolated into the generated interface should be encoded to handle the case where it contains `*/`, which would prematurely close the emitted /** */ comment and break the generated types.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
adelsz__pgtyped__456
adelsz/pgtyped
456
defect
cd2d27ac00272bb02ba5cae649895d346d4b0424
75fd9a1481d2a63183a4f24b56b6fb507f36ead0
fix: emit Json type when required by JsonArray
Fixes #323
diff --git a/packages/cli/src/types.test.ts b/packages/cli/src/types.test.ts index 1285dbecb..defda82cb 100644 --- a/packages/cli/src/types.test.ts +++ b/packages/cli/src/types.test.ts @@ -8,4 +8,17 @@ describe('TypeAllocator', () => { }); expect(types.use('foo')).toEqual('bar'); }); + + // Covers issue #...
1
1
0
[{"id": "G0", "claim": "The object keys 'Json' and 'JsonArray' in the new test are unnecessarily quoted and should be unquoted so the linter is happy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
adelsz__pgtyped__51
adelsz/pgtyped
51
defect
daabfda71488e5aefec6ec248671f6c06bca040e
eaa455259460cec99eb6bff80600052b79be3a4e
Implement postgres types for JSON, timestamps, and bytes
This only has a basic unit test. I was going to add something to example package just so i could test it. is there anywhere else for an integration test? I've given a nod to your suggestion that people may want different type aliases with my refactor of the type mapping. Currently this allows you to provide an alter...
diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.json index 333afc10a..0cf87c259 100644 --- a/packages/cli/package-lock.json +++ b/packages/cli/package-lock.json @@ -4,6 +4,26 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@pgtyped/query": { + "version": "0.6.0", + "re...
3
2
1
[{"id": "G1", "claim": "Keep the type-mapping naming DB-neutral (e.g. not `PostgresType`) to make porting to other databases a little easier.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Consider adding an `inline: boolean` option to TypeAlias...
null
adelsz__pgtyped__520
adelsz/pgtyped
520
defect
3c4174bd507a3d1c529342e2723d07b07edff92a
31755f7c4ffd4c39a01904941b3e8d971dd9c316
feat: Typed sql overload functions
Hi @adelsz, I hope you’re doing well! Here is my shot at implementing the typed SQL tag functionality as also mentioned in #495. I think the best developer experience would be to generate one file with all the sql overload functions found in a project, so you would only need to import the sql function from one plac...
diff --git a/packages/cli/src/config.ts b/packages/cli/src/config.ts index 7a73eae10..31db93475 100644 --- a/packages/cli/src/config.ts +++ b/packages/cli/src/config.ts @@ -1,14 +1,14 @@ /** @fileoverview Config file parser */ -import { createRequire } from 'module'; +import { Type } from '@pgtyped/query'; import *...
1
1
1
[{"id": "G0", "claim": "The `/* eslint-disable */` comment prepended to the generated typed-SQL file breaks type-completion for the generated sql function and should be removed from contentStart.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
adelsz__pgtyped__66
adelsz/pgtyped
66
defect
d99453afbc80844bf538ebd917bdbfa025dbcc53
af535dd15dbcf13256732fcb40f64aabfe3327bd
Use unions to represent Postgres enum types
This provides assignability between enum-mapped types from different query files where Typescript enums would be incompatible. Also harness up pacakges/example as a form of integration/smoke test in CI. fixes #65
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7864d0b2c..e0248d9f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,13 +3,22 @@ name: CI on: [push, pull_request] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkou...
2
2
1
[{"id": "G0", "claim": "The wait script should use pg_isready instead of psql, since pg_isready can also check for the database to be created.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The integration-test CI step should run `npm run test:integratio...
null
aden-hive__hive__1408
aden-hive/hive
1,408
defect
eba75249553436a0fb47e9da4e21a64d66808447
da757283b73ffdd0bb93399f2a2ca2630318ec7c
fix(csv_sql): prevent SQL injection via DuckDB parameter binding
Fixes #1256 ## Description Prevents SQL injection in `csv_sql` by removing SQL string interpolation and using DuckDB parameter binding for CSV paths. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Changes Made - Replaced DuckDB SQL f-string interpolation with parameter binding ...
diff --git a/tools/src/aden_tools/tools/csv_tool/csv_tool.py b/tools/src/aden_tools/tools/csv_tool/csv_tool.py index 15daccbbcb..d41d9ea2eb 100644 --- a/tools/src/aden_tools/tools/csv_tool/csv_tool.py +++ b/tools/src/aden_tools/tools/csv_tool/csv_tool.py @@ -330,9 +330,9 @@ def csv_sql( if not query or not...
3
3
0
[{"id": "G0", "claim": "Add a test that uses a path containing a single quote (e.g. O'Reilly.csv) to lock in the parameter-binding behavior and avoid regressions on valid filenames.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The substring keyword ch...
null
aden-hive__hive__1814
aden-hive/hive
1,814
defect
bedc0eadf3640bb95503247798b0c4b133c8f909
e7e0c14355fe45697f22472a5e0cc448094193fd
Feat/wikipedia search tool
## Description This PR adds a new `wikipedia_tool` to the Aden Tools library. This tool enables agents to search Wikipedia and retrieve article summaries directly using the public REST API, without requiring any external API keys. It handles HTML stripping from snippets to provide clean text output for the agent. ...
diff --git a/tools/README.md b/tools/README.md index 9f5b9787ecb..fa97860082c 100644 --- a/tools/README.md +++ b/tools/README.md @@ -75,6 +75,7 @@ python mcp_server.py | `web_search` | Search the web (Google or Brave, auto-detected) | | `web_scrape` | Scrape and extract content from webpages ...
3
3
0
[{"id": "G0", "claim": "Remove the debug print() call on line 56 of wikipedia_tool.py (the error path should not print to stdout).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should patch \"aden_tools.tools.wikipedia_tool.wikipedia_tool...
null
aden-hive__hive__1834
aden-hive/hive
1,834
defect
6d0a3b952a6c830b228416ee718af48575bbaadc
0304b392b272c83ba9566483bacb2182d691e49c
feat(observability): structured logging for trace context
## Description Introducing structured logs so transactions become traceable via logging. There is a human-readable logging for developers focused on readability and a machine-parseable JSON format logging focused on observability tools compatibility. ## Type of Change - [ ] Bug fix (non-breaking change that ...
diff --git a/core/framework/graph/executor.py b/core/framework/graph/executor.py index 6144653728..5bcb3cd9d9 100644 --- a/core/framework/graph/executor.py +++ b/core/framework/graph/executor.py @@ -32,6 +32,7 @@ from framework.graph.output_cleaner import CleansingConfig, OutputCleaner from framework.graph.validator ...
2
2
1
[{"id": "G0", "claim": "Adding the shared JSON handler directly to the third-party child loggers while propagate=True would pass each record up to the root's same handler, causing a double log; the addHandler(handler) line should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
aden-hive__hive__3694
aden-hive/hive
3,694
defect
ffa4096390ae7990043a3b149704684963b7bb3e
f643e1fd107328e31815a768be0644a8d89524aa
fix: write node outputs to memory before edge evaluation (#3599)
## Description Fixes conditional edges with direct key access by writing node outputs to SharedMemory immediately after execution, before edge evaluation. Previously, expressions like `score > 80` failed with NameError because outputs were only written during input mapping, which happens after edge evaluatio...
diff --git a/core/framework/graph/executor.py b/core/framework/graph/executor.py index c40870df4b..b035ef9e50 100644 --- a/core/framework/graph/executor.py +++ b/core/framework/graph/executor.py @@ -364,6 +364,13 @@ async def execute( if len(value_str) > 200: ...
2
2
1
[{"id": "G0", "claim": "The pull request should add an automated regression test for the execution-order fix, since the diff contains no test file even though the PR description lists 10 manual test scenarios and this kind of bug is easy to regress on.", "category": "testing", "verdict": "supported", "priority": "P1", ...
null
aden-hive__hive__4869
aden-hive/hive
4,869
defect
0c7ea272db250480eb855d65c8096762a8f82c8f
a8f34f426794f1ae4a6cfa9302009cce954fb1d3
fix(graph): harden JSON parsing for async safety and large LLM outputs
## Summary Optimized and hardened `find_json_object` in `core/framework/graph/node.py` to prevent CPU-bound event-loop blocking when parsing large LLM outputs. Added `find_json_object_async` with cooperative yielding, and a comprehensive 58-test adversarial regression suite. Fixes #4120 ## What Changed ##...
diff --git a/core/framework/graph/node.py b/core/framework/graph/node.py index 954ac992bd2..590006e8da6 100644 --- a/core/framework/graph/node.py +++ b/core/framework/graph/node.py @@ -19,7 +19,7 @@ import inspect import logging from abc import ABC, abstractmethod -from collections.abc import Callable +from collecti...
6
4
2
[{"id": "G0", "claim": "The implementation is over-engineered for the problem (~1100 lines duplicating the incremental parser in sync + async forms and copy-pasting _extract_json into _extract_json_async) and should be replaced with the suggested minimal approach: a json.loads fast path in find_json_object plus asyncio...
null
aden-hive__hive__5231
aden-hive/hive
5,231
defect
9c781ed78ea54a63f3feae21f7a77ec54041986d
a0d14b8a25a953eec9f6b8afaa02d2b9e1fb3a69
fix(core): support local LLMs (Ollama, vLLM, LM Studio, Llama.cpp) in AgentRunner #3994
## Summary Fixes #3994, #5154 — [AgentRunner](cci:2://file:///c:/Users/RAHUL/hive_aden/memo/hive/core/framework/runner/runner.py:312:0-1658:22) crashes when configured with local LLMs like Ollama that don't require API keys. ## Problem [_setup()](cci:1://file:///c:/Users/RAHUL/hive_aden/memo/hive/core/framewo...
diff --git a/core/framework/runner/runner.py b/core/framework/runner/runner.py index b13ac3530b..9715c16a4b 100644 --- a/core/framework/runner/runner.py +++ b/core/framework/runner/runner.py @@ -788,31 +788,38 @@ def _setup(self) -> None: extra_headers={"authorization": f"Bearer {api_key}"}, ...
4
4
3
[{"id": "G0", "claim": "The pull request removes the accounts_prompt argument from the create_agent_runtime() call in _setup_agent_runtime, which silently breaks connected-account context injection into agent system prompts, and the kwarg should be restored.", "category": "correctness", "verdict": "supported", "priorit...
null
aden-hive__hive__5272
aden-hive/hive
5,272
defect
002da153757b7ea24a1079f8629ac4f588de01da
4961d3ba8cd8f5129e464a5ae1ac495876c1c0a0
fix(web_scrape): reorder status checks before wait & replace hardcoded sleep with networkidle
## Description [web_scrape](cci:1://file:///home/santhankumar/Documents/GitHub/hive/tools/src/aden_tools/tools/web_scrape_tool/web_scrape_tool.py:33:4-185:55) had two bugs: (1) HTTP status checks ran *after* a hardcoded 2-second sleep, so errors like 404 waited 2s before being detected, and (2) the code used `wait_f...
diff --git a/tools/src/aden_tools/tools/web_scrape_tool/README.md b/tools/src/aden_tools/tools/web_scrape_tool/README.md index d5bbd6adcc..6e65c6818c 100644 --- a/tools/src/aden_tools/tools/web_scrape_tool/README.md +++ b/tools/src/aden_tools/tools/web_scrape_tool/README.md @@ -14,7 +14,6 @@ Use when you need to read t...
2
2
1
[{"id": "G0", "claim": "Rather than removing the documented respect_robots_txt parameter from the docs, implement actual robots.txt support in the scrape tool, since respecting robots.txt is standard best practice for scraping tools.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
aden-hive__hive__5896
aden-hive/hive
5,896
defect
85c204a4423b8446625ac64828dd85c14055fdc3
66ef40cbd59ee429d634bc6893876ca8f0a3f1db
fix: add minimax provider mapping and stream fallback
## Description This PR adds MiniMax support in Hive’s LLM path by wiring provider-specific API key/env mapping and adding a safe non-stream fallback for MiniMax responses when LiteLLM stream chunk parsing fails. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-b...
diff --git a/core/framework/llm/litellm.py b/core/framework/llm/litellm.py index 7cef868068..075510e321 100644 --- a/core/framework/llm/litellm.py +++ b/core/framework/llm/litellm.py @@ -735,6 +735,77 @@ def _tool_to_openai_format(self, tool: Tool) -> dict[str, Any]: }, } + def _is_minimax_mo...
4
3
3
[{"id": "G0", "claim": "MiniMax support is not fully wired: there is no MiniMax provider configuration in LiteLLMProvider, no quickstart menu selection, no minimax coding-subscription support, and extra LLM provider support must be wired to ~/.hive/configuration.json.", "category": "correctness", "verdict": "supported"...
null
aden-hive__hive__6028
aden-hive/hive
6,028
defect
86ef6fd8c5de734d0335d6922e452770617e1715
acfb2ad74531e50056ef61b4d95a372d7a2d9779
feat(quickstart): add Local (Ollama) LLM provider option
## Description Adds **Local (Ollama)** as an LLM provider option in both `quickstart.sh` and `quickstart.ps1`. When Ollama is installed, users can select it from the menu, pick a model from `ollama list`, and the script writes `~/.hive/configuration.json` with no API key required. This supports first-class local LLM...
diff --git a/core/framework/config.py b/core/framework/config.py index 236f9be69a..99b4cd8038 100644 --- a/core/framework/config.py +++ b/core/framework/config.py @@ -432,6 +432,11 @@ def get_llm_extra_kwargs() -> dict[str, Any]: "store": False, "allowed_openai_params": ["store"], ...
16
13
10
[{"id": "G0", "claim": "quickstart.sh L998 still says `1-11` instead of `1-12` in the else branch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Add unit tests for `_is_ollama_model()`, `_ensure_ollama_chat_prefix()`, and the `num_ctx` injection in `g...
null
aden-hive__hive__6217
aden-hive/hive
6,217
defect
a79d7de48214c2a772a62a62dab56b4f987252f8
e9f85f48fa64f6bb83904da64f22c06c6994739e
Add command sanitizer module and enhance command validation
## Description This PR hardens command execution against prompt/shell injection in the tools layer. It adds a shared command sanitizer, validates commands before execution in both execution paths, and includes comprehensive tests for safe/blocked command behavior. It also includes a follow-up fix to normalize `.e...
diff --git a/tools/coder_tools_server.py b/tools/coder_tools_server.py index fc40d94b6d..3b9fd82adf 100644 --- a/tools/coder_tools_server.py +++ b/tools/coder_tools_server.py @@ -52,6 +52,63 @@ def _patched_console_init(self, *args, **kwargs): from fastmcp import FastMCP # noqa: E402 +# Import command sanitizer —...
4
4
2
[{"id": "G0", "claim": "_extract_executable does not strip directory prefixes, so path-prefixed executables like /usr/bin/curl bypass the blocklist; apply basename normalization before matching.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The python...
null
aden-hive__hive__6241
aden-hive/hive
6,241
defect
b48465b778ac45c47bf10369de8653654dd4c9b2
f70311dba240347ffc0cbefbb866d9a49b1f23b2
fix: preserve custom session ids in runtime logs
Closes #6240. ## Summary - treat any execution stored under `sessions/<id>` as a session-backed run for runtime logging, even when the ID does not start with `session_` - write and discover unified runtime logs for custom session IDs instead of falling back to deprecated `runs/` storage - include custom worker session...
diff --git a/core/framework/graph/executor.py b/core/framework/graph/executor.py index b81e080110..9741351f27 100644 --- a/core/framework/graph/executor.py +++ b/core/framework/graph/executor.py @@ -403,6 +403,14 @@ async def _phase_llm_compact_split( ) return s1 + "\n\n" + s2 + def _get_runtime_...
1
1
1
[{"id": "G0", "claim": "Removing the session_ prefix filter in handle_list_worker_sessions means any stray directory under sessions/ shows up as a ghost entry in the UI; the reviewer asks to keep the session_ prefix as a fast path and fall back to checking state.json for custom IDs.", "category": "correctness", "verdic...
null
aden-hive__hive__6319
aden-hive/hive
6,319
defect
52b1a3f472a84bf8bd9b01b5bbe4931c9ea9fd2d
d433cda209036b7b248a06607e57aa972d2c46ea
fix: use CredentialStoreAdapter in sap_tool instead of raw os.getenv()
Fixes #6318 ## Description The `sap_tool` accepted a `credentials` parameter but never used it — all credential resolution went through `os.getenv()` directly. This fix aligns `sap_tool` with the standard pattern used by every other tool in the repo, following the n8n tool pattern as suggested by @Antiarin. ##...
diff --git a/tools/src/aden_tools/tools/sap_tool/sap_tool.py b/tools/src/aden_tools/tools/sap_tool/sap_tool.py index 51159d23b5..ec141cba9a 100644 --- a/tools/src/aden_tools/tools/sap_tool/sap_tool.py +++ b/tools/src/aden_tools/tools/sap_tool/sap_tool.py @@ -8,25 +8,13 @@ import base64 import os -from typing import...
3
2
1
[{"id": "G0", "claim": "When a CredentialStoreAdapter is provided, SAP_* env vars are never consulted (so env-only configuration fails despite valid env vars), and credentials.get() may raise a KeyError for unknown keys that escapes _get_config() unhandled.", "category": "correctness", "verdict": "supported", "priority...
null
aden-hive__hive__6854
aden-hive/hive
6,854
defect
c3c30756106315cea105857e224b5575aaf67867
6dcf9ae6cc4d53311b21e6d88bd483de423a0757
fix: propagate contextvars to tool executor threads
## Description Fix MCP tool context params (data_dir, etc.) being silently lost when tool executors run in thread pool workers, causing save_data, serve_file_to_user, and other data tools to fail with "Missing required argument: data_dir". ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [...
diff --git a/core/framework/graph/event_loop/tool_result_handler.py b/core/framework/graph/event_loop/tool_result_handler.py index 7b045b6a269..156b850ca7b 100644 --- a/core/framework/graph/event_loop/tool_result_handler.py +++ b/core/framework/graph/event_loop/tool_result_handler.py @@ -8,6 +8,7 @@ from __future__ im...
2
1
0
[{"id": "G0", "claim": "The new test file should add `from __future__ import annotations` and explicit return annotations on its function signatures, as required by the repo's coding guidelines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
aden-hive__hive__6876
aden-hive/hive
6,876
defect
eba75249553436a0fb47e9da4e21a64d66808447
214c5dd24287a1a2127b88e86c84d175ea7bcfb3
fix(security): prevent path traversal in session_store
## Description Prevent path traversal in `SessionStore.get_session_path()` by validating that the resolved session path stays within the sessions directory. Based on the approach from PR #2127 by @Alearner12, adapted for the current codebase where session management has moved from `agent_builder_server.py` to `sessio...
diff --git a/core/framework/storage/session_store.py b/core/framework/storage/session_store.py index eeb7c6cdd7f..8bf3d828ea8 100644 --- a/core/framework/storage/session_store.py +++ b/core/framework/storage/session_store.py @@ -62,8 +62,14 @@ def get_session_path(self, session_id: str) -> Path: Returns: ...
1
1
1
[{"id": "G0", "claim": "The new ValueError raised by SessionStore.get_session_path is unhandled at the non-critical call site: _write_run_event() in core/framework/runtime/execution_stream.py only catches OSError, so a malformed execution_id can now break execution flow instead of being ignored; add a caller-side try/e...
null
aden-hive__hive__6879
aden-hive/hive
6,879
defect
d5ba985e2921d83f26f154e0705cd08dc438fd91
f9863159de9de156534e575570e9bd645aaf7880
fix(security): add SSRF protection to web_scrape tool
## Description Add SSRF protection to the Playwright-based web_scrape tool. Validates URLs against internal network ranges before requests, and intercepts Playwright navigation to catch redirect-based SSRF bypasses. Based on the approach from PR #2296 by @Harshitk-cp, rewritten for the current Playwright-based implem...
diff --git a/tools/src/aden_tools/tools/web_scrape_tool/web_scrape_tool.py b/tools/src/aden_tools/tools/web_scrape_tool/web_scrape_tool.py index b02aac4eca3..0aac2160fda 100644 --- a/tools/src/aden_tools/tools/web_scrape_tool/web_scrape_tool.py +++ b/tools/src/aden_tools/tools/web_scrape_tool/web_scrape_tool.py @@ -4,1...
6
2
2
[{"id": "G0", "claim": "The `_is_internal_address` predicate misses the non-global shared/CGNAT range 100.64.0.0/10, so the proposed `not addr.is_global` fix must also keep `is_multicast` blocking (e.g. `not addr.is_global or addr.is_multicast`).", "category": "security", "verdict": "supported", "priority": "P1", "scop...
null
aden-hive__hive__6894
aden-hive/hive
6,894
defect
cf3296984c1a056ad058572afbe487b94a302864
d9f5ee52d26119bbc28105b0a14bbbdc668f660a
fix: use os.access for cross-platform executable check in skill validator
## Description Replace Unix-only permission bit check with `os.access(path, os.X_OK)` in skill validator. Fixes Windows CI failure on main. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Related Issues Fixes #6893 ## Changes Made - Replaced `stat.S_IXUSR | S_IXGRP | S_IXOTH` bit che...
diff --git a/core/framework/skills/validator.py b/core/framework/skills/validator.py index 865b7171a8b..5cca3315e20 100644 --- a/core/framework/skills/validator.py +++ b/core/framework/skills/validator.py @@ -7,7 +7,7 @@ from __future__ import annotations -import stat +import os from dataclasses import dataclass,...
3
1
1
[{"id": "G0", "claim": "The implementation gates the scripts executable check with sys.platform != 'win32' (skipping the whole validation loop on Windows) instead of using os.access(script_path, os.X_OK) as specified in issue #6893, diverging from the intended cross-platform approach.", "category": "design", "verdict":...
null
aden-hive__hive__6898
aden-hive/hive
6,898
defect
c8a25a0287308754ff1de49b9ad25edfd0b21b01
42fd1ec8d1b2909c954a04d258c40c25bcf88eb2
micro-fix(security): mitigate ast.Pow DoS and enforce safe_eval timeout
## Description Mitigates denial-of-service vectors in `framework.graph.safe_eval` by hardening power evaluation and enforcing a bounded execution timeout for edge-condition expressions. The change is intentionally scoped to `safe_eval` so existing graph execution behavior stays intact outside of rejecting patholo...
diff --git a/core/framework/graph/safe_eval.py b/core/framework/graph/safe_eval.py index 6c32a8da41..101cb329c2 100644 --- a/core/framework/graph/safe_eval.py +++ b/core/framework/graph/safe_eval.py @@ -1,7 +1,76 @@ import ast import operator +import signal +import threading +import time +from contextlib import conte...
5
2
2
[{"id": "G0", "claim": "The `_execution_timeout()` context manager replaces the process-wide SIGALRM handler and timer without preserving existing timer state, so a safe_eval() call can silently cancel or lose any pre-existing ITIMER_REAL timer elsewhere in the host process.", "category": "correctness", "verdict": "sup...
null
aden-hive__hive__6955
aden-hive/hive
6,955
defect
2e5670ace6878eca5efd4f438fa675e0a1871347
ff323c5a8706e03ce036576eb88994633ade0880
fix(ci): unbreak main - playwright deps + framework test suite
## Description Unbreak CI on `main`. Three buckets of breakage, all fallout from the large refactors that landed recently (c7e85aa9 GCU + Timothy's hive-v1). ### 1. Test Tools / Lint — playwright extra + orphan script `web_scrape_tool.py` imports playwright at module level, but c7e85aa9 moved playwright from main `d...
diff --git a/tools/pyproject.toml b/tools/pyproject.toml index d22f2f048a..8f2a85ef6e 100644 --- a/tools/pyproject.toml +++ b/tools/pyproject.toml @@ -26,6 +26,8 @@ dependencies = [ "fastmcp>=2.0.0", "diff-match-patch>=20230430", "python-dotenv>=1.0.0", + "playwright>=1.40.0", + "playwright-stealth...
2
1
0
[{"id": "G0", "claim": "Add the missing type annotations in tools/tests/test_browser_tools_comprehensive.py: test_file_upload (tmp_path: Path and -> None), mock_cdp (tab_id: int, method: str, params: dict[str, Any] | None and -> dict[str, Any]) and test_evaluate_passes_script_through_to_bridge (-> None).", "category": ...
null
aden-hive__hive__7059
aden-hive/hive
7,059
defect
589c5b06fe2ecf529c1a9e4dd9cd1e636b640157
0f40a597b35db03e8d1c65702adc09bee16acac5
fix(tests): resolve test failures across framework and tools
## Description Fix 103 test failures (52 framework + 52 tools + flaky colony fork) to restore CI test checks on main. Depends on #7058 (lint fix). ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Related Issues Partial fix for #7057 ## Changes Made **Framework tests (52 ...
diff --git a/core/tests/test_colony_runtime_overseer.py b/core/tests/test_colony_runtime_overseer.py index 1f5e65fa8a..e3032938c4 100644 --- a/core/tests/test_colony_runtime_overseer.py +++ b/core/tests/test_colony_runtime_overseer.py @@ -44,6 +44,8 @@ class MockStreamingLLM(LLMProvider): consumption. Each worke...
7
1
1
[{"id": "G0", "claim": "The renamed test method test_all_seven_skills_exist should carry an explicit `-> None` return type hint per the repository coding guidelines.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new placeholder cleanup `pro...
null
aden-hive__hive__7061
aden-hive/hive
7,061
defect
e5a93b059f9ca1ea8489a9aadd98668b2ee44895
07f2eb579839aac11b84886efe206bcea3c5093c
fix(tests): resolve Windows CI failures
## Description Fix 3 test failures that only occur on Windows CI runners. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Related Issues Partial fix for #7057 ## Changes Made - **`test_background_job_start_poll_and_complete`**: use `sys.executable` and double quotes instead of single...
diff --git a/core/framework/orchestrator/safe_eval.py b/core/framework/orchestrator/safe_eval.py index 85dced4df0e..8cc2723689a 100644 --- a/core/framework/orchestrator/safe_eval.py +++ b/core/framework/orchestrator/safe_eval.py @@ -11,8 +11,10 @@ MAX_POWER_ABS_EXPONENT = 1_000 MAX_POWER_RESULT_BITS = 4_096 # Typica...
1
1
1
[{"id": "G0", "claim": "Line 451 of tools/tests/tools/test_file_system_toolkits.py can still fail on Windows environments where sys.executable contains spaces, so the interpreter path should be quoted in the command string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aden-hive__hive__918
aden-hive/hive
918
defect
cdbcac68b8a3ec18d3e68c76e2eef26f378488d8
d6b05bf337e511c78015ca2f37d02e6d683220f8
Handle malformed JSON tool arguments in LiteLLMProvider
Fixes #909 This PR prevents silent failures when tool call arguments contain malformed JSON. Instead of defaulting to an empty dict, invalid arguments are surfaced to the LLM and tool execution is skipped. Changes: - Detect JSONDecodeError when parsing tool arguments - Return a tool error message instead of ...
diff --git a/core/framework/llm/litellm.py b/core/framework/llm/litellm.py index ad78a0a60c..683cc6a26b 100644 --- a/core/framework/llm/litellm.py +++ b/core/framework/llm/litellm.py @@ -222,8 +222,14 @@ def complete_with_tools( # Parse arguments try: args = json.l...
3
3
1
[{"id": "G0", "claim": "The new test test_complete_with_tools_invalid_json_arguments_are_handled is indented poorly (nested inside the previous function) and will never run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FakeFunction, FakeToolCall, ...
null
adhocteam__pushup__94
adhocteam/pushup
94
defect
348a6c0583607108eec4f31885ba9639e53efd43
27355ad7b4a171e4b8fc78bc5e1e90b366cc37c0
Add CI linting
- add a github workflow to run `golangci-lint` - add a `make lint` command - fix all the nits that it uncovered, or add ignore comments
diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml new file mode 100644 index 0000000..1141815 --- /dev/null +++ b/.github/workflows/golang-lint.yml @@ -0,0 +1,25 @@ +name: golangci-lint +on: + push: + tags: + - v* + branches: + - main + pull_request: +permissions: + c...
1
1
1
[{"id": "G0", "claim": "Leave the plain `flags.Parse(arguments)` calls at the four command constructors (new, build, run, routes) instead of wrapping them in `if err := ...; log.Fatalf`, since `flag.FlagSet.Parse`'s error return does not report argument parsing failures.", "category": "design", "verdict": "supported", ...
null