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
uber__NullAway__316
uber/NullAway
316
defect
8fce284386a7ae604de4cea7e853009c499552a1
47b0ef52d8602e9f8461a5dfb8670c0f45859e8e
Add support for Jar to Jar transformation to JarInfer
This adds support for annotating jar files, as opposed to creating an astubx file on the side. Summary of changes: - Added support to annotate jar files with the annotations inferred by the analysis in JarInfer. - Added a flag in JarInfer CLI to enable annotating jar files. - Tested annotated jar files by chec...
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 8a6a63c8f5..fc18fa8f3d 100755 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -15,6 +15,7 @@ */ def versions = [ + asm : "7.1", checkerFramework : "2.5.5", errorProne : ...
13
11
1
[{"id": "G0", "claim": "The toy test package name should keep `unannotated`, since that code is still unannotated from NullAway's point of view.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded javax annotation descriptors in BytecodeAnnotato...
null
uber__NullAway__317
uber/NullAway
317
defect
7a29a31a34b480f21708f68b53914795a31590f2
1be8a2265a223a1650bccc8a2d05737602759f2e
Refactor the driver and annotation summary type in JarInfer
* Refactored DefinitelyDerefedParamsDriver to maintain state in the object and use instance methods. * Refactored the Map and Set types used to hold the method annotations that are inferred by the analysis.
diff --git a/jar-infer/jar-infer-cli/src/main/java/com/uber/nullaway/jarinfer/JarInfer.java b/jar-infer/jar-infer-cli/src/main/java/com/uber/nullaway/jarinfer/JarInfer.java index 28133e9cfc..1ca01f9b71 100644 --- a/jar-infer/jar-infer-cli/src/main/java/com/uber/nullaway/jarinfer/JarInfer.java +++ b/jar-infer/jar-infer-...
1
1
0
[{"id": "G0", "claim": "Take this opportunity to rename the WriteAnnotations method to lowercase (writeAnnotations).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
uber__NullAway__319
uber/NullAway
319
defect
7d71b85dfb1af6675fbefb6689c14500667b973c
f61de8f982af0225d000198bffceb7023ca773b0
Minor refactor and cleanup in JarInfer-lib
• Extracted couple of methods for readability • Some other minor typos and cleanups
diff --git a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/DefinitelyDerefedParams.java b/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/DefinitelyDerefedParams.java index 8317a17125..98bb0e6c4d 100644 --- a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/Definitely...
1
1
0
[{"id": "G0", "claim": "The new method should be named with a verb or verb phrase, e.g. analyzeReturnValue or performReturnValueAnalysis, instead of returnValueAnalysis.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
uber__NullAway__342
uber/NullAway
342
defect
eadcd3a9aae63f56097ceaef72c89979128e1111
31125bad4b34cb162a664f02bd4fb715da60730c
Handle cases when there are no annotations on methods or parameters in JarInfer
Issue #341 When there are no annotations on the methods or parameters of methods, the corresponding field in `MethodNode` would be `null`. This change handles those cases appropriately. Since the testing strategy used here is to have 'Expect*' annotations wherever actual annotations are expected, we cannot use ...
diff --git a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java b/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java index ddfb55c19a..03096e5af6 100644 --- a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java...
3
3
1
[{"id": "G0", "claim": "In BytecodeAnnotator the addAnnotationIfNotPresent calls that follow the visitAnnotation/visitParameterAnnotation calls should be moved into else branches, otherwise the code always performs a redundant check that behaves as a no-op after an annotation was just created.", "category": "correctnes...
null
uber__NullAway__368
uber/NullAway
368
defect
f1307b06a1324b8b65d0fae269ff6c74d54b194d
97b713deaf1ecead3f31c75e9eeb6ac5c3386683
Handle Nullchk operator
Handles `Nullchk` unary operator. Fixes #366
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index 0518b9a505..0958e4a1dc 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -25,6 +25,7 @@ import static com....
3
3
3
[{"id": "G0", "claim": "The Nullchk-stripping branch in stripParensAndCasts must set the `someChange` variable so the enclosing loop re-runs and combinations like parens/casts around a Nullchk operator are fully stripped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
uber__NullAway__380
uber/NullAway
380
defect
f247a89c4764a286a2d2cfae15eb30d767eac6f1
5522f0251243c0643d3b8e015197f6c18ce5b292
Give line numbers for uninitialized fields when reporting error on an initializer
This adds the line numbers for uninitialized fields when reporting error on an initializer. As a response to issue #95. Summary of changes: -Edit function errMsgForInitializer() in ErrorBuilder. -Create a new function GetLineforField() which gives back a source line number. -Adjust the expected error messages ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java old mode 100644 new mode 100755 index 5db16a78ec..488fab1cc0 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.j...
6
6
1
[{"id": "G0", "claim": "Add a comment over the cast documenting the assumption that Tree is a JCTree and thus implements DiagnosticPosition, while keeping the code crashing early rather than returning a dummy line number.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
uber__NullAway__403
uber/NullAway
403
defect
bf3de0fb10884e5adde21e3c945a638922582e9c
4ee7c6bfe650c61046fa8898bcafabc7c4c2d3ec
Fix new Error Prone 2.4.0 detected issues.
This removes the suppressions introduced in #400 and makes more permanent fixes. Fixes #402.
diff --git a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java b/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java index f2d2b64d06..c0ef25eab7 100644 --- a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java...
4
4
0
[{"id": "G0", "claim": "Use forEach() on the stream instead of collecting the jar entries into an intermediate list and looping over it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Collect the jar/aar entry names directly with a stream map-an...
null
uber__NullAway__404
uber/NullAway
404
defect
7f9aacb6b6cf54e1b6765cfe87cdba20dcb58985
b841a3b5b41ca6d90d5c362d3dcc2ba18a0a94d4
Prevent memory copy of list of Jar entries inside BytecodeAnnotator.
See #403 discussion, credit for this optimization goes to @Stephan202. Note the comment edit for the AAR case. ZipFile is just surprisingly hostile to copy-free for-each iteration.
diff --git a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java b/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java index b657593e87..d7c8c594f5 100644 --- a/jar-infer/jar-infer-lib/src/main/java/com/uber/nullaway/jarinfer/BytecodeAnnotator.java...
3
3
0
[{"id": "G0", "claim": "The loop in BytecodeAnnotator.annotateBytecodeInAar (line 323) still copies the zip entries into a list just to get around the Stream<? extends ZipEntry> compile error; avoid the copy, e.g. via an anonymous Iterable class as first suggested, or via a while loop over the stream's iterator as msri...
null
uber__NullAway__471
uber/NullAway
471
defect
c9487c1d4723ab2b39b65fb07482a18455303d9a
f11f28bfb1681925c3e7e331104753c07bfee26d
Also test NullAway on Error Prone 2.6.0
Leveraging #470, add a CI job to build and test NullAway on Error Prone 2.6.0 (the latest release). Getting our tests to pass required adjusting to some API changes in the Error Prone test helpers APIs. Now, all tests pass on EP 2.6.0 and 2.4.0
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 955b735d84..6c9a9ee561 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -6,20 +6,28 @@ on: - master jobs: build: - name: "JDK ${{ ma...
3
2
0
[{"id": "G0", "claim": "The Coveralls job gives no actionable per-file coverage feedback, so it should not block CI, and the project should (eventually) switch to a tool like Codecov that actually supports JaCoCo output.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": ...
null
uber__NullAway__493
uber/NullAway
493
defect
8ccf291bea539959c08226d64043bce82ffc877f
68e07550dadb23b4ddaec36e1f31af40cfc31008
Initial support for JSpecify's @NullMarked annotation.
This is the first step towards NullAway adoption of the JSpecify standard. Our support for JSpecify must be understood as **EXPERIMENTAL** for the time being. Currently, all we do is ensure that we treat any `@NullMarked` third-party packages as `@NonNull`-by-default, using the existing semantics NullAway app...
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 8c22b7e8b1..3caf2ac7e4 100755 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -64,6 +64,7 @@ def build = [ checkerDataflow : "org.checkerframework:dataflow-nullaway:${versions.checkerFramework}", guava ...
15
12
4
[{"id": "G0", "claim": "The PR should do stricter override checking when a class extends a third-party class (e.g. from a jar) that sits in a @NullMarked package.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With this change @NullMarked wins over any u...
null
uber__NullAway__544
uber/NullAway
544
defect
bde8d50fb51e41ab1e3440f6f94b1d63168f207a
5325ba38371c7fca8193ea5a5d7cc40fbda53c42
Better fix for crash on member selects inside module-info.java
Now, in `matchMemberSelectTree()`, we check if the `MemberSelectTree` represents a reference to a module. If it does, we do not check if its base expression could be `null`. This change gives us a stronger invariant in `mayBeNullExpr()`: any `IdentifierTree` or `MemberSelectTree` passed to `mayBeNullExpr()` should ha...
diff --git a/jdk17-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayModuleInfoTests.java b/jdk17-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayModuleInfoTests.java index 0f3cffc506..386c91d505 100644 --- a/jdk17-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayModuleInfoTests.java +++ b/jdk17...
1
1
0
[{"id": "G0", "claim": "Add a small comment to the new two-level-deref test case (next to the added `requires java.base;` line) explaining that the identifier `java` matches as the base expression.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__NullAway__547
uber/NullAway
547
defect
63ec845dc23a5c909ba6c52cb19dcc92d75d4391
442c5d375834ffca9cad9fb990db4c03fee8aeb5
Tweak handling of assignments in dataflow
We add two small tweaks to assignment handling (found while reading the code): 1. If we see an assignment `e.f = ...`, treat `e` as non-null on the non-exceptional successor (since the dereference succeeded), if it's an access path that we can track. We already did this for assignments to array elements; we should ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPathNullnessPropagation.java b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPathNullnessPropagation.java index 81e434e939..b4184acc88 100644 --- a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPathNullnessPropagation.java +++ b/nu...
2
1
0
[{"id": "G0", "claim": "The PR adds an extra ASTHelpers.getType(...) call in exchange for not tracking the update, and its cost is unmeasured, so the author should run the performance benchmarks to see what, if anything, the optimization gains.", "category": "performance", "verdict": "supported", "priority": "P2", "sco...
null
uber__NullAway__580
uber/NullAway
580
defect
7385c79465c1e08002547ff99788d18b2a3dda81
c1652d462b901614431a08b36f38e46208d3ea6a
Fix bug in handling of TreatGeneratedAsUnannotated.
There was a bug introduced in #493 (and thus not part of our last release), which caused `@Generated` annotations on inner classes to be ignored for the purposes of the `TreatGeneratedAsUnannotated=true` option. This is of particular relevance to Lombok builders, where the `@Builder` annotation on clas `Foo`, wil...
diff --git a/nullaway/build.gradle b/nullaway/build.gradle index 8ca3132def..40b930be49 100644 --- a/nullaway/build.gradle +++ b/nullaway/build.gradle @@ -55,6 +55,7 @@ dependencies { testImplementation deps.test.springBeans testImplementation deps.test.springContext testImplementation deps.test.grpcCore...
1
1
0
[{"id": "G0", "claim": "The explanatory comment added to LombokDTO (that NullAway issues no error due to the field being uninitialized) is unclear and should be reworded as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__NullAway__584
uber/NullAway
584
defect
f3c1ebfc20e06249369115e8be12aac66cb77ea4
97b5cbe5af39ee99952d79017381d37669286908
Fixes line breaks and tabs in serializing errors.
At this moment, NullAway will produce the following output when serializing reporting errors: ```java foo(X.m() ? X.m2() : null) foo (Object bar) { } ``` ``` PASS_NULLABLE passing @Nullable parameter 'X.m() ? X.m2() : null' where @Non...
diff --git a/nullaway/src/main/java/com/uber/nullaway/fixserialization/Serializer.java b/nullaway/src/main/java/com/uber/nullaway/fixserialization/Serializer.java index 614f746968..91d59f0470 100644 --- a/nullaway/src/main/java/com/uber/nullaway/fixserialization/Serializer.java +++ b/nullaway/src/main/java/com/uber/nul...
5
3
0
[{"id": "G0", "claim": "The encodeEscapeSequences method and the escapes map should live in ErrorInfo, the only place they are used, so that both can be private to that class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The escaping method should get ...
null
uber__NullAway__603
uber/NullAway
603
defect
87890752afe0c68ba2452b29b4b44c1a36f96f79
e8b8c513fd44c24321f553d542b557102af35349
Cleanups to AccessPath representation and implementation
This cleans up how we represent the root of an access path. Previously we used a `Root` class which contained an `Element`, with a boolean field indicating if the root was actually the receiver (`this`, which has no `Element`). Now, we just make the root a `@Nullable Element`, with `null` representing the receiver. ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java index 462b787050..c5503e16c3 100644 --- a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java +++ b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPat...
3
2
0
[{"id": "G0", "claim": "Asks whether using getClass() comparison instead of instanceof in AccessPath.equals has any significant differences, assuming lack of subtyping support is acceptable since AccessPath is final.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "...
null
uber__NullAway__608
uber/NullAway
608
defect
fcf045b27a27c4eafc739ad44f81af4fe2bdebd4
cea4fb83db3f178f0f4f867d796f3666d0ff3959
Add support for Preconditions.checkArgument through custom CFG translation
See #47 for discussion. This PR adds support for `Preconditions.checkArgument(...)` and `Preconditions.checkState(...)` throw a new `PreconditionsHandler` handler. In order to implement said handler, we need a custom CFG translation pipeline in NullAway (`NullAwayCFGBuilder`) which subclasses the Checker Fram...
diff --git a/build.gradle b/build.gradle index 166f1d38f4..d7dd0e2929 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,7 @@ buildscript { repositories { mavenCentral() google() // For Gradle 4.0+ + mavenLocal() // TODO: Remove! } dependencies { @@ -45,6 +46,7 @@ plugin...
4
4
1
[{"id": "G0", "claim": "The pull request will not build (and should not land) until the corresponding Checker Framework PR is landed and a new CF version is cut, and the dependency must be changed from the unreleased 3.22.2-SNAPSHOT to that release before landing.", "category": "build", "verdict": "supported", "priorit...
null
uber__NullAway__643
uber/NullAway
643
defect
1eefabd37e2c1c754e856cbedc82e87a0a5e6c15
c469e7d6bf0ec6fc4a2db9178ef9ba17ace14803
Augment error serializarion info
This PR augments error information serialized by NullAway. At current state, if `SerializeFixMetada` is active, all reporting errors will be serialized to `errors.tsv` output file where each row has the format below: ``` MESSAGE_TYPE MESSAGE CLASS METHOD ``` The above information does not contain any informa...
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java index ec9a0b1011..b440bc31a2 100755 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java @@ -139,7 +139,7 @@ p...
7
7
3
[{"id": "G0", "claim": "The pull request should not delete the explanatory comment about a shorter message version being present in expected test output.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ErrorDisplay.hashCode() should include all the...
null
uber__NullAway__658
uber/NullAway
658
defect
19bbb915357a323dbb0b449449520f360b237221
c918f21735e2de3d4ce301814c71db765d6e99d4
Fix #657 by splitting field initialization region into smaller regions
Note: This PR can wait until the next release of NullAway (`0.10.2`). This PR resolves #657 by splitting the field initialization region into smaller regions. We currently only consider the value "null", for all `errors/fixes` reported in this regions. In large classes which they have many number of field, this can ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/fixserialization/out/ClassAndMethodInfo.java b/nullaway/src/main/java/com/uber/nullaway/fixserialization/out/ClassAndMemberInfo.java similarity index 53% rename from nullaway/src/main/java/com/uber/nullaway/fixserialization/out/ClassAndMethodInfo.java rename to null...
2
1
0
[{"id": "G0", "claim": "The javadoc-style comment (/** ... */) above the fields reads as API documentation for the member below rather than a general note about both fields, so it should be rewritten as a plain // line comment.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_exist...
null
uber__NullAway__663
uber/NullAway
663
defect
e3e93938517d9492cbf1b8ce403f2381311003ce
c8fdd73c71a82496c37192fca92c25aad5b49ba2
Report an error when casting @Nullable expression to primitive type
This can cause an NPE due to unboxing. Fixes #661
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index 823e8728bd..132733bea7 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -170,7 +170,8 @@ public class Null...
1
1
0
[{"id": "G0", "claim": "If NullAway supports `var`, a test case for a cast in a `var` declaration context (e.g., `var v1 = (int) i`) should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__NullAway__668
uber/NullAway
668
defect
92d94a7eabd2229a7be2be7ce5da2e3e56fa7df7
dfc3d5c14632c966712efa470c78c09e9bd59d79
PreconditionsHandler reflects Guava Preconditions exception types
Note that this shouldn't impact analysis as the throw statement is added after the preconditions method invocation, thus we cannot be confident the method invocation doesn't throw _other_ types of exceptions. This is meant to ensure the code follows [principle of least astonishment](https://en.wikipedia.org/wiki/Princi...
diff --git a/nullaway/src/main/java/com/uber/nullaway/handlers/PreconditionsHandler.java b/nullaway/src/main/java/com/uber/nullaway/handlers/PreconditionsHandler.java index ff42995dea..a6e82ed8b2 100644 --- a/nullaway/src/main/java/com/uber/nullaway/handlers/PreconditionsHandler.java +++ b/nullaway/src/main/java/com/ub...
1
1
0
[{"id": "G0", "claim": "A comment should be added to PreconditionsHandler explaining why the error type used for the inserted throw doesn't really matter (or, alternatively, the same error type like IllegalArgumentException should be used for both cases).", "category": "documentation", "verdict": "supported", "priority...
null
uber__NullAway__686
uber/NullAway
686
defect
01e2c29f06dbfd1a5b4a808df299f912aee499bf
7b1bda4f74df8112b29d9262632d5e329193432f
Report more unboxing errors in a single compilation
Previously, if an expression contained multiple `@Nullable` sub-expressions that were being unboxed, we would only report an error for one of them in a single compilation. Now we report errors for all of them in a single compile. In a few other places we may report more errors in a single run as well, e.g., for `arr[...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index edc7655100..34cefb4611 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -459,7 +459,7 @@ public Descriptio...
1
1
1
[{"id": "G0", "claim": "With the return-expression unboxing check now called unconditionally inside the `isPrimitiveOrVoid()` branch, unboxing of `void` may not still work and a `null` `retExpr` may trip it up.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__NullAway__712
uber/NullAway
712
defect
ab0a17df03fa12bc8a9b747c681f6114e802c6cf
383440f899bfeabe152ee4bdb9d42be828690d49
Don't do checks for type casts and parameterized trees in unannotated code
Fixes #711
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index 0be1a4edc1..a9f4dba424 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -655,6 +655,9 @@ public Descriptio...
1
1
1
[{"id": "G0", "claim": "A test should be added for the new skip-in-unannotated-code guard in matchParameterizedType, since only the type-cast-in-unannotated-code case has a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__NullAway__714
uber/NullAway
714
defect
ab0a17df03fa12bc8a9b747c681f6114e802c6cf
56dd64b50d7cf091797a825bd31b35a1cdac88dc
Update path serialization for reported errors and fixes.
This PR updates serialization services to serialize the actual `Path` instead of `URI` for all reporting errors and fixes.
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java index 1c5b0b28ff..5ec665415a 100755 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorBuilder.java @@ -139,7 +139,14 @@ ...
4
3
1
[{"id": "G0", "claim": "pathToSourceFileFromURI should reject every non-\"file\" scheme (the suggested `if (!\"file\".equals(uri.getScheme()))`) instead of only checking for a null scheme, which is the patch lazaroclapp needed to get this to run with buck.", "category": "correctness", "verdict": "supported", "priority"...
null
uber__NullAway__715
uber/NullAway
715
defect
c4c7c4bbb0f874127a74c0d28111eaf9137e5783
3fb81c9d7bf1a22ac59afcc5a6e147ca80edb730
JSpecify: initial checks for generic type compatibility at assignments
This pull request adds the identical type parameter nullability checks for both sides of an assignment. for example `NullableTypeParam<@Nullable String> nullableTypeParam = new NullableTypeParam<String>();` should generate an error as the type parameters of both sides of the assignment do not have the same Nullabili...
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java b/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java index 753f49431b..bb1395a6bf 100644 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java @@ -53,6 +53,7 @@ pub...
13
13
2
[{"id": "G0", "claim": "The formatting of the embedded test source (over-long lines, inconsistent indentation, closing-brace placement) is hard to read and should be fixed throughout the new tests.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "...
null
uber__NullAway__734
uber/NullAway
734
defect
14d3693a6fc15967562c3aba46d0a6f9761244f0
b37c0abe23e951cbaa4ce6f652a7b5198f2aae02
Add JSpecify checking for return statements
This pull request includes the following: - Check whether the return type of the method matches the type of the actual return statement for the generics for example: ` static A<@Nullable String> test() { return new A<String>(); }` For the method return type, the type parameter is @Nullable Stri...
diff --git a/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java b/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java index bb1395a6bf..f451a921a8 100644 --- a/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java +++ b/nullaway/src/main/java/com/uber/nullaway/ErrorMessage.java @@ -54,6 +54,7 @@ pub...
3
3
0
[{"id": "G0", "claim": "The return-type tests should match on the \"mismatched nullability of type parameters\" part of the diagnostic message instead of the broader \"Cannot return\", which is easier to confuse with other nullability warnings.", "category": "testing", "verdict": "supported", "priority": "P2", "scope":...
null
uber__NullAway__765
uber/NullAway
765
defect
c1741b305948d2fcc5299cc3bcb02e281fd9230c
50f9fc0e59c0869896c78074477ec72b25a4252b
Fix error inside Lombok generated code for @Nullable @Builder.Default
When given code such as: ``` @Builder public class LombokDTO { @Nullable @Builder.Default private String fieldWithNullDefault = null; } ``` Lombok internally generates the following method: ``` @java.lang.SuppressWarnings(value = "all") @lombok.Generated() private static String $default$fieldWithNull...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index a4e50a328d..ed75f7ec17 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -822,8 +822,17 @@ private Descript...
2
1
0
[{"id": "G0", "claim": "The handler method `onOverrideMethodInvocationReturnNullability` is now used for more than just invocations, so it should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A fix should also be proposed upstream i...
null
uber__NullAway__807
uber/NullAway
807
defect
9a427678f0e75d9a136b03e0ae94aa2ebed68086
364adc6e8d8ea2d922308dd1df2795d6eb7ff275
Allow library models to define custom stream classes.
This is needed to support both fully custom stream libraries, as well as backports/shadowed versions of existing stream libraries.
diff --git a/nullaway/src/main/java/com/uber/nullaway/LibraryModels.java b/nullaway/src/main/java/com/uber/nullaway/LibraryModels.java index d801d40036..a0816b3712 100644 --- a/nullaway/src/main/java/com/uber/nullaway/LibraryModels.java +++ b/nullaway/src/main/java/com/uber/nullaway/LibraryModels.java @@ -22,9 +22,11 @...
3
3
0
[{"id": "G0", "claim": "The comment lines inside getStreamNullabilityPropagatorFromModels (the awkwardly wrapped \"// records, ... // here.\" note) need formatting cleanup.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new addStreamTypeFrom...
null
uber__NullAway__808
uber/NullAway
808
defect
c42b0f789bbea95c0174c404fc2f5f9360f82cb2
cfdda5f67dc5eb22b765eea5a5c7b3dd751f6e50
Properly check generic method overriding in explicitly-typed anonymous classes
This completes a task lingering from #755, which did not handle overriding in anonymous classes. This case is slightly tricky as javac does not preserve annotations on type arguments in the types it computes for anonymous classes. To fix, we pass a `Symbol` where we were passing a `Type` in a couple places, as then w...
diff --git a/nullaway/build.gradle b/nullaway/build.gradle index 5b6346f4a9..90d52caf86 100644 --- a/nullaway/build.gradle +++ b/nullaway/build.gradle @@ -139,6 +139,10 @@ def jdk8Test = tasks.register("testJdk8", Test) { classpath = testTask.classpath testClassesDirs = testTask.testClassesDirs jvmArgs "...
3
3
2
[{"id": "G0", "claim": "In overrideExplicitlyTypedAnonymousClass, both true-positive cases are on the parameter and both true-negative cases are on the return value, so the test should mix the combinations to cover more cases.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
uber__NullAway__834
uber/NullAway
834
defect
ab387b9ec28411497bbff49711780128c3df1fe8
3f64acf0250e9e4c08821695e2ce85e526fa030d
Run recent JDK tests on JDK 21
Added test for null case in switch statements (covering #831) and changed JDK 17 to JDK 21 for testing recent language features
diff --git a/code-coverage-report/build.gradle b/code-coverage-report/build.gradle index e9d3da6bcd..3e5420f298 100644 --- a/code-coverage-report/build.gradle +++ b/code-coverage-report/build.gradle @@ -20,12 +20,12 @@ plugins { id 'jacoco' } -// Use JDK 17 for this module, via a toolchain. We need JDK 17 sinc...
2
2
0
[{"id": "G0", "claim": "Add a comment on the ignored test indicating that it is ignored because of a crash in the dataflow library.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The in-test NOTE comment saying NullAway should report a bug for nul...
null
uber__NullAway__837
uber/NullAway
837
defect
790a9ec1549e6b616ab1529bdf6d0f360f92b718
5fcf5acc1b9eb86f933ddcaf8951acd1510d40b5
JSpecify: initial handling of generic enclosing types for inner classes
This is a step towards fixing #836. We now properly handle the case of a generic enclosing type for an inner class type, both in checking matching of type argument nullability and in pretty-printing for error messages. We still don't handle `NewClassTree` types correctly which is why #836 is not yet fixed. Also fi...
diff --git a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java index ce31aebbef..315fe46133 100644 --- a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java +++ b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java @@ -129,9 +12...
2
2
0
[{"id": "G0", "claim": "There is no comment noting that the wildcard-type handling in PrettyTypeVisitor is untested and unsupported, and the reviewer suggests adding one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code relies on getEnclosi...
null
uber__NullAway__847
uber/NullAway
847
defect
2d2b829f47c13ac9cfb1a5b5e339b07b82a240be
fbdd616775512d4b5ab3a165d1031ac9488e6632
JSpecify: handle return types of method references in Java Generics
Adding new test case and the logic to handle the negative scenario of the test case where we were getting a false positive earlier. ```Java class Test { interface A<T1 extends @Nullable Object> { T1 function(Object o); } static @Nullable String foo(Object o) { return o.toString(); ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java index ce31aebbef..8edd318a95 100644 --- a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java +++ b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java @@ -735,8 +73...
3
3
1
[{"id": "G0", "claim": "The similar null-check code at lines 702-706 is no longer needed and removing it should fix the code coverage issue.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ternary in overriddenMethodReturnsNonNull should be r...
null
uber__NullAway__854
uber/NullAway
854
defect
def015aaf1816ca8a2dbbd268c83ea64b0166c54
0947ce38e3f4143a7356c6bf4ddcfc363f06cd27
JSpecify: handle Nullability for return types of lambda expressions for Generic Types.
```java class Test { interface A<T1 extends @Nullable Object> { T1 function(Object o); } static void testPositive() { // BUG: Diagnostic contains: returning @Nullable expression from method with @NonNull return type A<String> p = x -> null; } static void testNegative...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index d4ce4e827d..6efb7b0604 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -873,6 +873,13 @@ private Descript...
1
1
1
[{"id": "G0", "claim": "The new generics nullness check does not work when the lambda is written as a block body `x -> { return null; }`: the tree passed to checkReturnExpression is the ReturnTree rather than the lambda itself, producing a false positive; msridhar suggests adding a `@Nullable Tree lambdaTree` parameter...
null
uber__NullAway__856
uber/NullAway
856
defect
5fc285b2256bf3ccd8c69664e809807b50a5d4e4
fff179d98d410047ae260c316b3453d9fd783f8e
JSpecify: fix crash with calls to static methods
After adding com.google.common to annotated packages for buildWithNullAway in JSpecify Mode, we got the following exception: ```java error: An unhandled exception was thrown by the Error Prone static analysis plugin. return findEnclosingMethodOrLambdaOrInitializer(path, ImmutableSet.of()); com.google.comm...
diff --git a/nullaway/build.gradle b/nullaway/build.gradle index 8000dbc9e3..90ac062418 100644 --- a/nullaway/build.gradle +++ b/nullaway/build.gradle @@ -152,7 +152,7 @@ tasks.register('buildWithNullAway', JavaCompile) { sourceSets.main.compileClasspath) options.errorprone.enabled = true options...
2
2
0
[{"id": "G0", "claim": "The test should be a standalone case for the core issue of static method calls of the form X.foo() with X explicit, rather than pulling in Guava or adding the makeHelperWithGuava() helper.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
uber__NullAway__858
uber/NullAway
858
defect
5aeb32cc0f310a4789c0ba47b790e2f7737db810
95d3e8ee8e628777bf230b488c405db0339f0f70
JSpecify: handling the return of a diamond operator anonymous object method caller
In reference to the [exception](https://github.com/uber/NullAway/issues/791#issuecomment-1803020173) mentioned in the discussion for #791 . Adding the test case to reproduce the same issue: ```java class Test { static class B<T>{ String build(){return "x";} } static String testNegative()...
diff --git a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java index ef56490473..152f5b9b39 100644 --- a/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java +++ b/nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java @@ -787,6 +78...
1
1
0
[{"id": "G0", "claim": "Instead of the special-case diamond-operator block, store the result of the getTreeType() call in a local variable after the existing condition and return Nullness.NONNULL when it is null, so getTreeType() is not called twice — a more general approach.", "category": "maintainability", "verdict":...
null
uber__NullAway__875
uber/NullAway
875
defect
5fbee1ff8682762cd2f291070491fe3e476787cf
4a53079816f937cf94a048083a64acba90c52045
JSpecify: Reason about nullability of reads from arrays
This is a continuation of #850 where the behavior of `@Nullable` annotations on the array was modified. With this PR, the aim is to allow `@Nullable` annotations on array contents **in JSpecify mode**, and to process these annotations when handling _reads_ from arrays. This PR does not handle checking writes to array...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index f7ee780e5b..af6f2483ae 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -83,10 +83,12 @@ import com.sun.s...
5
4
4
[{"id": "G0", "claim": "The array-contents nullability logic in mayBeNullExpr should be restructured (the ARRAY_ACCESS case moved to where other leaf cases are handled) and extracted into a shared utility method instead of being inlined with a TODO.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
uber__NullAway__885
uber/NullAway
885
defect
ce415992e46e726925b84f66fc728186277d672d
75fd08120df791e5506c9c271af252fabd394cf5
Add support for AssertJ as() and describedAs() in AssertionHandler
Fixes #877
diff --git a/nullaway/src/main/java/com/uber/nullaway/handlers/AssertionHandler.java b/nullaway/src/main/java/com/uber/nullaway/handlers/AssertionHandler.java index 2a24923c5c..676d3b4743 100644 --- a/nullaway/src/main/java/com/uber/nullaway/handlers/AssertionHandler.java +++ b/nullaway/src/main/java/com/uber/nullaway/...
2
2
0
[{"id": "G0", "claim": "The warning about not checking the symbol owner should be moved into the method's docstring, since isMethodAssertJDescribedAs is named like the other methods that do check the owner and the caveat should be explicit to avoid future misuses.", "category": "documentation", "verdict": "supported", ...
null
uber__NullAway__904
uber/NullAway
904
defect
1badf682255ed048eecc0e36ce4f6a9e2f520b4b
37b710d21ad57db231dc767a0abf8b9dc9e6b939
Fix handling of static imports from subclasses
Fixes #764
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index a23438ad3a..98a0587b90 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -400,29 +400,29 @@ public Descript...
1
1
0
[{"id": "G0", "claim": "The conditional-sounding old code suggested we want methodSymbol with baseSymbol only resolved under certain conditions, but the updated code unconditionally returns baseSymbol, so the reviewer asks whether always wanting baseSymbol is intended (questioning the new unconditional behavior, which ...
null
uber__NullAway__929
uber/NullAway
929
defect
1c497a7cff1c4d37a0f51abdf98e0759c0b7539a
0ca53f9246ffeb8b5a8e0d9cab7d90070bf6f8b8
JSpecify: Handle @Nullable assignments to @Nonnull arrays
Handles cases in JSpecify mode where a `@Nullable` element is assigned to an unannotated array. Added relevant unit tests. **Current Behavior** Both are valid assignments. ``` String [] foo = new String[10]; @Nullable String [] bar = new String [10]; foo[1] = null; bar[1] = null; ``` **New Behavior** ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index 12e7370d92..9292b03936 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -32,6 +32,7 @@ import static com....
3
3
1
[{"id": "G0", "claim": "The diagnostic message \"assigning @Nullable expression to @NonNull field.\" is inappropriate for array writes and the check should use the ErrorBuilder APIs with a new ErrorMessage message type.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
uber__NullAway__958
uber/NullAway
958
defect
5d3e2642f3a1cc32524aefe01bd445a2a21cc06e
765e1ec58e215b9631e4deb8570e33a8f833010e
Don't report @Nullable type argument errors for unmarked classes
Thank you for contributing to NullAway! Please note that once you click "Create Pull Request" you will be asked to sign our [Uber Contributor License Agreement](https://cla-assistant.io/uber/NullAway) via [CLA assistant](https://cla-assistant.io/). Before pressing the "Create Pull Request" button, please provide ...
diff --git a/nullaway/src/main/java/com/uber/nullaway/NullAway.java b/nullaway/src/main/java/com/uber/nullaway/NullAway.java index e5de3a9e1b..02d2061c51 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullAway.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullAway.java @@ -738,9 +738,13 @@ public Descripti...
5
5
0
[{"id": "G0", "claim": "The new isNullUnmarked code should be moved under the `if (config.isJSpecifyMode())` check, and the logic simplified so that the call to `checkInstantiationForParameterizedTypedTree` is skipped entirely when `isNullUnmarked` is true, which would avoid changing `GenericsChecks`.", "category": "de...
null
uber__NullAway__963
uber/NullAway
963
defect
87ec10d4f26630d4bb91aefe5ff7c0fc181f030a
da7c17b2f2a32572109f7becc0782bcac1a9852a
JSpecify: Handle @Nonnull elements in @Nullable content arrays
Handles unexpected error cases in JSpecify mode where an index is asserted `@Nonnull` (`fizz[x]!=null`) but the array elements itself could be null (`@Nullable String [] fizz`). **Example** ``` @Nullable String [] fizz ={"1"} if (fizz[i] != null) { fizz[i].toString(); } ``` **Current Behavior** This thr...
diff --git a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java index 784d0d0806..60a097e7ea 100644 --- a/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPath.java +++ b/nullaway/src/main/java/com/uber/nullaway/dataflow/AccessPat...
9
9
5
[{"id": "G0", "claim": "ArrayIndexElement should not always use a String for the index; for a local-variable index it should hold something like an Element (and the reviewer questions why the field is @Nullable).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
uber__NullAway__980
uber/NullAway
980
defect
76115d49ca6619100dfee292317708eae5779bb1
dfa9945213aedbef022c330ac24871681cc43fe5
Bug fixes for array subtyping at returns / parameter passing
In certain places we were bailing out for types without type arguments, but those bailouts are wrong now that we check array subtyping. Also, for identifiers, we now get the type from the `Symbol` which is more reliable.
diff --git a/nullaway/src/main/java/com/uber/nullaway/generics/GenericsChecks.java b/nullaway/src/main/java/com/uber/nullaway/generics/GenericsChecks.java index ffe45190ea..52d54fabc9 100644 --- a/nullaway/src/main/java/com/uber/nullaway/generics/GenericsChecks.java +++ b/nullaway/src/main/java/com/uber/nullaway/generi...
1
1
0
[{"id": "G0", "claim": "Add test cases calling `takeNullableFoosVarargs(p1, p2)` with two arguments, and also the case of calling `takeFoosVarargs(p2, p1)` with the non-nullable array first.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__aresdb__14
uber/aresdb
14
defect
cea51eb7997af3ed92a76fb6957d28c2de4f5d06
db42d16d4013937df06c4c4375a7bec285dbe9f8
read big file
Current stream reader cannot read file > 1gb. This pull requests fix that
diff --git a/api/ui/swagger/swagger.json b/api/ui/swagger/swagger.json index fa015b20..76745e1d 100644 --- a/api/ui/swagger/swagger.json +++ b/api/ui/swagger/swagger.json @@ -473,7 +473,7 @@ "x-go-name": "Message" } }, - "x-go-package": "code.uber.internal/data/ares/utils" + "x-go-p...
2
2
1
[{"id": "G0", "claim": "The Read loop should read into bs[bytesRead:] instead of bs, since reading into bs on every iteration overwrites the bytes already read.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The big bytes slice test should also asse...
null
uber__aresdb__143
uber/aresdb
143
defect
aff212d878e5e0d9e6dc54fb69ee772e10167bc4
328bdc4a860fff6fd98651a5d6031c3ee6a83d4f
Optimize ingestion
Testing data: trips 8.8 GB redologs Hosts: ares-dev Before optimization: 3m5s After optimization: 5m30s
diff --git a/memstore/common/mocks/LiveVectorParty.go b/memstore/common/mocks/LiveVectorParty.go index 8d4e774d..4854338a 100644 --- a/memstore/common/mocks/LiveVectorParty.go +++ b/memstore/common/mocks/LiveVectorParty.go @@ -11,13 +11,12 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...
2
2
0
[{"id": "G0", "claim": "The doc comment added above GetColumnIfNonNilDefault says \"GetColumnDeletions returns...\", which does not match the function it documents.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When columnMode is AllValuesDefault...
null
uber__aresdb__154
uber/aresdb
154
defect
aff212d878e5e0d9e6dc54fb69ee772e10167bc4
e8490caf8a7956916da21b2852c436e1a3f0fafb
fix pre filter problem
when slideIndex, the last range of upperbound/lowerbound should be vp.length + 1
diff --git a/memstore/vector_party.go b/memstore/vector_party.go index 1350f884..d971b3a7 100644 --- a/memstore/vector_party.go +++ b/memstore/vector_party.go @@ -412,8 +412,12 @@ func (vp *cVectorParty) SliceByValue(lowerBoundRow, upperBoundRow int, value uns // party. func (vp *cVectorParty) SliceIndex(lowerBoundRo...
1
1
1
[{"id": "G0", "claim": "The new `vp.length+1` end bound (with the conditional `startIndex -= 1` guard around it) in SliceIndex looks wrong and should presumably be `vp.length`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__aresdb__159
uber/aresdb
159
defect
05ff3aace91397dc2c76c3eb30c790405c593695
ff06980b1f0bf86b63b023e524a0a6fe6260de7c
refactor non agg query execution
After this PR we should be able to remove non-agg query result size limit from engine level. - refactor post processor: extract flushContext and flush function - non-agg query executor will flush result after each batch processing - update non-agg query memory estimation
diff --git a/api/query_handler.go b/api/query_handler.go index a0a1bc8f..48b2d5ec 100644 --- a/api/query_handler.go +++ b/api/query_handler.go @@ -273,7 +273,7 @@ func (w *JSONQueryResponseWriter) ReportQueryContext(qc *query.AQLQueryContext) // ReportResult writes the query result to the response. func (w *JSONQue...
5
3
2
[{"id": "G0", "claim": "expand expands dimensionVectorD[0] into dimensionVectorD[1] while postExec copies dimensionVectorD[0] to the host, so dimensionVectorD[0] and dimensionVectorD[1] likely need to be swapped in expand.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"...
null
uber__aresdb__173
uber/aresdb
173
defect
d28f200a6f40c185423e5633879f9cedb4946eed
262113311d421e992663dd8ec0779861d9ba1c06
eager flush results for single non aggregate query
this will reduce TTFB for non-agg queries from 10+s to milliseconds.
diff --git a/api/query_handler.go b/api/query_handler.go index 48b2d5ec..7b3b9d7f 100644 --- a/api/query_handler.go +++ b/api/query_handler.go @@ -90,7 +90,7 @@ func (handler *QueryHandler) handleAQLInternal(aqlRequest AQLRequest, w http.Res var qcs []*query.AQLQueryContext var statusCode int - defer func() { + d...
1
1
1
[{"id": "G0", "claim": "It is awkward that Compile takes the http.ResponseWriter as a parameter; the response writer should instead be assigned to the AQLQueryContext outside of Compile.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__aresdb__19
uber/aresdb
19
defect
b57e0489fba98be219c190b4a5b0f921eb7f244e
9d9bf61622294c64375d5fcc0cb4ef6016e4e274
Update upsert batch version
add version number to upsert batch and update upsert batch format to include arrival time
diff --git a/memstore/common/upsert_batch_builder.go b/memstore/common/upsert_batch_builder.go index 0072cf3a..1b70700e 100644 --- a/memstore/common/upsert_batch_builder.go +++ b/memstore/common/upsert_batch_builder.go @@ -39,6 +39,10 @@ const ( MaxColumnUpdateMode ) +const ( + UpsertBatchVersion uint32 = 0xFEED00...
6
4
0
[{"id": "G0", "claim": "The comment on `size := 4 // version number` should clarify that the 4 is the size reserved for the magic version number.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining the magic number 12 in `heade...
null
uber__aresdb__191
uber/aresdb
191
defect
32ccdec3b2c0e0f1d07d6d423ad58cd0f089b577
9b2ffc1d07e13b4bc7999ee3402828e02dd81eab
fix controller ingestion assignment bug and tests random failures
1. remove etcd embed server 2. use gomock and in memory kv.Store implementation for testing 3. fix ingestion assignment bug: add waiting for leader election result before actual assignment loop starts
diff --git a/controller/mutators/etcd/assignment_mutator_test.go b/controller/mutators/etcd/assignment_mutator_test.go index c9eaad28..d6d978f2 100644 --- a/controller/mutators/etcd/assignment_mutator_test.go +++ b/controller/mutators/etcd/assignment_mutator_test.go @@ -14,10 +14,9 @@ package etcd import ( + "githu...
2
2
0
[{"id": "G0", "claim": "ListNamespaces failing should be fatal as well, not just logged.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated '// periodic updates' comment left in the select statement is a nit that should be cleaned up.", "...
null
uber__aresdb__206
uber/aresdb
206
defect
af66ad70b63c169f2b79b6d75179172c083b7507
07327e7e6216495ada10373453d5ec25bb14c81a
Hash reduction processor hookup and host concurrent unordered map implementation
1. the hash reduction may not work very well for non-atomic operations like avg. For those operations, we better use sort reduction 2. hash reduction may not work very well when the number of dim values is small. 3. in other cases, hash reduction beat sort reduction almost by 2x
diff --git a/CMakeLists.txt b/CMakeLists.txt index 38a23a87..44df4687 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,10 +62,10 @@ set(CMAKE_CUDA_SEPARABLE_COMPILATION ON) link_directories(${CMAKE_BINARY_DIR}/lib) # HASH_REDUCTION right now is only support in device mode and when CXX standard is C++14. -if ...
4
1
0
[{"id": "G0", "claim": "The SupportHashReduction function does not belong in memory.go and should be moved elsewhere.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetFlags should return the HASH_REDUCTION_SUPPORT constant instead of the hardcoded value 0...
null
uber__aresdb__224
uber/aresdb
224
defect
885a9225c41f546520c6a70af8c0087c7f5dfdc6
9ca02a35a1cc8c420ad19d0c1a0723d3515adc42
fix schema fetch job
- continue table processing after reporting failure - remove validation for new column with deletion error, as it's valid during migrations
diff --git a/metastore/disk_metastore_test.go b/metastore/disk_metastore_test.go index 3007dfab..83f6b3b2 100644 --- a/metastore/disk_metastore_test.go +++ b/metastore/disk_metastore_test.go @@ -231,7 +231,7 @@ var _ = ginkgo.Describe("disk metastore", func() { writeLock: sync.Mutex{}, basePath: ...
2
1
0
[{"id": "G0", "claim": "The reviewer questions whether no check is needed: the PR's removal of the ErrNewColumnWithDeletion validation may leave columns marked deleted unchecked.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Error reports in applySch...
null
uber__aresdb__246
uber/aresdb
246
defect
1f0acc4fc93f0cbfe3871b015ac153b753c69b06
b486ccebb4ca2a37b2c6f2ff233f7ec2240f298d
upsert batch update to support array type
DataType DataValue UpsertBatch UpsertBatchBuilder change to support Array type for ingestion
diff --git a/memstore/common/data_type.go b/memstore/common/data_type.go index 78f3e035..a59f7400 100644 --- a/memstore/common/data_type.go +++ b/memstore/common/data_type.go @@ -16,6 +16,8 @@ package common import ( "bytes" + "encoding/json" + "errors" "fmt" "github.com/gofrs/uuid" "math" @@ -33,9 +35,10 @@...
9
8
0
[{"id": "G0", "claim": "Consider supporting a notation like \"Bool[]\" instead of repeating every type in a separate Array* constant list.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment and example documenting the string form of array value...
null
uber__aresdb__248
uber/aresdb
248
defect
f6cdc61f188af03c9b3b018144e2c211c3edd864
e9f9a55152a4053f2788d565888d8a037134ecde
bootstrap non-initializing shard first
1. bootstrap non initializing (available and leaving) shards first 2. on server start, only wait for non initializing shards readiness
diff --git a/cmd/aresd/cmd/cmd.go b/cmd/aresd/cmd/cmd.go index 04c814b4..e6028601 100644 --- a/cmd/aresd/cmd/cmd.go +++ b/cmd/aresd/cmd/cmd.go @@ -252,8 +252,6 @@ func start(cfg common.AresServerConfig, logger common.Logger, queryLogger common // start datanode in distributed mode func startDataNode(cfg common.Ares...
2
1
0
[{"id": "G0", "claim": "The comment above checkShardReadiness should be updated to explain what the function actually does (instead of the stale, miswritten one-liner).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The restart timer metric remove...
null
uber__aresdb__25
uber/aresdb
25
defect
83906537d54c7629bb77b424f21632c3ef5c9bd7
73fb74f373dd76e4e48a0186df3767d773f6c3f1
fetch schema job impl
- fetch schema job impl - ares controller client impl - updateTable impl in diskstore
diff --git a/clients/clients_suite_test.go b/clients/clients_suite_test.go new file mode 100644 index 00000000..6f865d41 --- /dev/null +++ b/clients/clients_suite_test.go @@ -0,0 +1,13 @@ +package clients_test + +import ( + "testing" + + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" +) + +func TestClients(t *...
4
4
1
[{"id": "G0", "claim": "The misspelled parameter name 'heasers' in NewControllerHTTPClient should be renamed to 'headers'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The SchemaFetchJob field 'interval' should be renamed to 'intervalInSeconds...
null
uber__aresdb__258
uber/aresdb
258
defect
2ab3fc4bb8d31fdc24b691afc066f855814cade9
fe5da566ff47b502a999c73ce5b31ddb09217ba9
add health checking topology
- add HealthTrackingDynamicTopology - move topology interfaces to common next: mark host healhiness in broker
diff --git a/cluster/topology/healthtracking_dynamic.go b/cluster/topology/healthtracking_dynamic.go new file mode 100644 index 00000000..8e4541d0 --- /dev/null +++ b/cluster/topology/healthtracking_dynamic.go @@ -0,0 +1,133 @@ +// Copyright (c) 2016 Uber Technologies, Inc. +// +// Permission is hereby granted, free of...
2
2
0
[{"id": "G0", "claim": "The purpose of the new HealthTrackingDynamicTopology versus the existing DynamicTopology/StaticTopology should be clarified — either explain the difference or automatically filter out unhealthy nodes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
uber__aresdb__277
uber/aresdb
277
defect
5038e4c7fc27c7eab8c01195504fd6496bcf083c
e968f253da2f717b7ec095b85fe68a7613107012
Suns
1. Update etcdConfig to support uns 2. Update etcdConfig loading 3. Refactor etcd heartbeat registration 4. Only load aresdb instances from jobAssignment if sinkmode is aresDB 5. Update GetDataValue if type is not string. 6. Set sarama publisher manual partition for fact table
diff --git a/client/schema.go b/client/schema.go index 126a9eae..35a05055 100644 --- a/client/schema.go +++ b/client/schema.go @@ -228,7 +228,7 @@ func (cf *CachedSchemaHandler) PrepareEnumCases(tableName, columnName string, en "ColumnID", columnID, "newEnumCasesSet", newEnumCases, "caseInsensitive", caseIn...
3
3
1
[{"id": "G0", "claim": "The default case in RestartEtcdHBService's select turns the loop into a busy spin instead of sleeping until an etcd event arrives.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The interface{}-to-DataValue conversion code in...
null
uber__aresdb__308
uber/aresdb
308
defect
e44301b3cd5d9935b25df83ad24e298c65989643
30171efb0ee551c03424d10285f8cabdba1cc175
broker bug fix: 1. send rewritten query to datanode 2. return empty hll result correctly 3. resultSize is not len(result)
1. send rewritten query to data node which will rewrite enum string value to number 2. return empty hll result correctly 3. resultSize is not len(result) 4. rewritten dim not passed back
diff --git a/broker/broker_schema_mutator_test.go b/broker/broker_schema_mutator_test.go index a6fbb507..4a9138cc 100644 --- a/broker/broker_schema_mutator_test.go +++ b/broker/broker_schema_mutator_test.go @@ -17,7 +17,7 @@ package broker import ( "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - common2 "git...
1
1
0
[{"id": "G0", "claim": "In buildSubPlan and NewNonAggQueryPlan the GetRewrittenQuery call sits inside the per-host loop and should be moved outside the loop, making a copy of the query once instead of recalculating it on every iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "i...
null
uber__aresdb__329
uber/aresdb
329
defect
617d4ec8c4534b3020e85a667caf078ba483a467
1886517e217c67bc4513c6025db923134291da95
block int64 for binary transformations
int64 type can not be used for binary transformations for now. currently query fail until c++ type binding phase, add validation logic to fail those in compilation time.
diff --git a/broker/query_compiler.go b/broker/query_compiler.go index afa4a10a..367b15d4 100644 --- a/broker/query_compiler.go +++ b/broker/query_compiler.go @@ -489,6 +489,11 @@ func (qc *QueryContext) Rewrite(expression expr.Expr) expr.Expr { return expression } + if err := blockInt64(e.LHS, e.RHS); err !=...
1
1
0
[{"id": "G0", "claim": "Add a TODO comment at the blockInt64 call site in query/aql_compiler.go to mark that binary operations on int64 types are currently blocked.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
uber__aresdb__93
uber/aresdb
93
defect
91d2f655522f1353b1b40675b0751f099535a565
d323770a6bacc8c657938b749378f38f14a47dd5
provide default table configs
fix #90
diff --git a/api/schema_handler.go b/api/schema_handler.go index d4222851..d86970d6 100644 --- a/api/schema_handler.go +++ b/api/schema_handler.go @@ -128,6 +128,8 @@ func (handler *SchemaHandler) GetTable(w http.ResponseWriter, r *http.Request) { func (handler *SchemaHandler) AddTable(w http.ResponseWriter, r *http.R...
2
2
1
[{"id": "G0", "claim": "A schema_handler unit test should cover the newly added behavior of applying the default table config in AddTable.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The validator should also include a rule enforcing a valid BatchSiz...
null
uber__baseweb__5391
uber/baseweb
5,391
defect
0dafd566b86143a5836ec73e21af95bb44ae03d7
d990b3afb83c5baa4580064e692cac54e4aca7d6
[datepicker] Add fixes for composed date range selections
#### Description Fixes a couple of bugs with the existing [Composed Date Range picker](https://baseweb.design/components/datepicker/#composed-range-pickers) implementation: 1.) Setting time incrementally was not possible 2.) Having a minDate / maxDate didn't get respected at all You can now set a start time m...
diff --git a/documentation-site/examples/datepicker/composed-range-pickers.tsx b/documentation-site/examples/datepicker/composed-range-pickers.tsx index 03317f4a9f..38c1843307 100644 --- a/documentation-site/examples/datepicker/composed-range-pickers.tsx +++ b/documentation-site/examples/datepicker/composed-range-picke...
4
1
1
[{"id": "G0", "claim": "The PR's breaking onChange behaviour for composed date ranges requires a major release, so the version in package.json must be bumped accordingly.", "category": "release", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "onChange is invoked for composed ra...
null
uber__h3-go__19
uber/h3-go
19
defect
6a17d1465578cf66af95f8db44f1ee565fa07c0c
dfc86ace173746d6877678e1834df1cd1ab51be6
Add polyfill function support
Due to the way cgo works, all of the inputs and outputs must be copied between C and Go structs, which adds some overhead. This change includes unit tests and a benchmark for this function. Addresses #15 and partially #2.
diff --git a/bench_test.go b/bench_test.go index 286de4f..43633d1 100644 --- a/bench_test.go +++ b/bench_test.go @@ -1,6 +1,8 @@ package h3 -import "testing" +import ( + "testing" +) // buckets for preventing compiler optimizing out calls var ( @@ -49,3 +51,9 @@ func BenchmarkHexRange(b *testing.B) { h3idxs, ...
4
4
0
[{"id": "G0", "claim": "GeoCoord.toC can be dried up by dereferencing the pointer version: return *g.toCPtr().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the GeoPolygon field documentation from the struct doc comment to the individual f...
null
uber__h3-go__61
uber/h3-go
61
defect
ff107fde46b390522573858f4bd5c4d441249d05
d2a5c295c80f33f85b97d525c56706116da71d63
added cellToChildPos and childPosToCell
4.1.0 comes with additional features to compute a child cell at a specific positions without generating all children in memory. This PR adds: ```go func ChildPosToCell(position int, a Cell, resolution int) Cell func (c Cell) ChildPosToCell(position int, resolution int) Cell func CellToChildPos(a Cell, resol...
diff --git a/h3.go b/h3.go index bbb8d2d..061e8ae 100644 --- a/h3.go +++ b/h3.go @@ -27,6 +27,7 @@ package h3 #include <h3_h3Index.h> */ import "C" + import ( "errors" "fmt" @@ -604,6 +605,42 @@ func UncompactCells(in []Cell, resolution int) []Cell { return cellsFromC(cout, false, true) } +// ChildPosToCel...
3
3
1
[{"id": "G0", "claim": "The test variables named `childrens` in TestChildPosToCell and TestChildPos should be renamed to `children`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In TestChildPos, the hardcoded resolution 5 should be replaced wi...
null
uber__h3-go__73
uber/h3-go
73
defect
1ce71fccf536d87df847eecdbd3ecb041961a63d
917b205249f3a5e768f6868ee13d5b1280678aea
feat: added error codes
Breaking changes are introduced to the package's API. Closes #56
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36335b2..c852120 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ["1.20"] + go-version: ["1.21"] st...
4
3
1
[{"id": "G0", "claim": "The pull request drops Go 1.20 (raising the minimum to 1.21 in go.mod and removing it from the CI matrix) without a stated reason for needing 1.21.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The errMap should be keyed by C.uint3...
null
uber__h3-go__84
uber/h3-go
84
defect
5c18e4a2776b0f71fa1171fd27fb83c66520280c
39ae0da1ac9eee392074fa2aa7b65311c465ce72
feat: Implement GridDisksUnsafe, GridDiskDistancesUnsafe, GridDiskDistancesSafe
Implements remaining bindings for C library functions. This includes: - GridDisksUnsafe - GridDiskDistancesUnsafe - GridDiskDistancesSafe which are listed in the API Reference[0]. - 0: https://h3geo.org/docs/api/traversal
diff --git a/h3.go b/h3.go index 781762c..d230781 100644 --- a/h3.go +++ b/h3.go @@ -230,7 +230,34 @@ func (c Cell) GridDisk(k int) ([]Cell, error) { return GridDisk(c, k) } +// GridDisksUnsafe produces cells within grid distance k of all provided origin +// cells. +// +// k-ring 0 is defined as the origin cell, k...
4
3
0
[{"id": "G0", "claim": "On error, GridDisksUnsafe should return nil instead of a potentially partially filled result alongside the error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be worth adding a benchmark case to verify that implementing...
null
uber__h3-go__95
uber/h3-go
95
defect
4d04ed6b823a65bdc98bc5a599f4718399eea278
20183ebe6cb4593ecc5bff9149eb7740b8e77989
feat: introduce CellFrom/ToString
The preexisting `IndexFromString` and `IndexToString` utils aren't strongly typed with `Cell`s which requires casting between `uint64` <> `Cell` to use them. Introduce `CellFromString` and `CellToString` functions for a quality of life improvement.
diff --git a/bench_test.go b/bench_test.go index 10c799f..38f431e 100644 --- a/bench_test.go +++ b/bench_test.go @@ -26,8 +26,7 @@ func BenchmarkToString(b *testing.B) { func BenchmarkFromString(b *testing.B) { for range b.N { - //nolint:gosec // IndexFromString returns uint64 and fixing that to detect integer ov...
1
1
1
[{"id": "G0", "claim": "Instead of the breaking change of making IndexFromString return Cell, add a CellFromString function (and perhaps deprecate IndexFromString if it is not providing value).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__h3-go__96
uber/h3-go
96
defect
e3ab92b7ee627668255511fed8a145bfff56eec1
0b460334cff59570398c8097dbcd3eb81faa04f2
feat: breaking: introduce Vertex typedef
With the existing implementation, `Vertex`es don't have a separate typedef. This is inconsistent with the `DirectedEdge` implementation which has its own typedef. As vertex mode[0] is a distinct mode, let's update these methods with its own typedef. This is a breaking change. - 0: https://h3geo.org/docs/library/i...
diff --git a/.golangci.yml b/.golangci.yml index 952bad1..7505443 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,6 +58,13 @@ linters: list-mode: lax allow: - "github.com/uber/h3-go/v4" + exclusions: + rules: + - path: _test\.go + linters: + - dupl + ...
1
1
0
[{"id": "G0", "claim": "The duplicated from-C index conversion logic (two distinct implementations plus one super-implementation) might be worth refactoring into a generic — nice to have, not required.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__h3__1024
uber/h3
1,024
defect
73cf9110ef217aac1ec3efb1fb66d2e66906ce20
c92717deef6369fbd374e89a344dd1c1f82513f1
getIndexDigit
#1022 This adds functions for retrieving index digits and the reserved bits from indexes. The reserved bits may be of interest for directedEdge / vertex mode where knowing which one it is are helpful. Note that I chose to allow getIndexDigit to read unused digits; we could instead choose to disallow reading those...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f66ab2c1f..bbde103343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The public API of this library consists of the functions declared in file [h3api.h.in](./src/h3lib/include/h3api.h.in). ## [Unreleased] +### Added +- Added `getIndexDigit` function for...
7
6
1
[{"id": "G0", "claim": "The docs should not show usage tabs for bindings (Java, JavaScript, Python, Go, DuckDB) before getIndexDigit is actually implemented in those bindings.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new function's input...
null
uber__h3__1056
uber/h3
1,056
defect
08a2ee9ca4124654fbf81b7245ba1a2c6ddf4a76
4ac27d1e9277bdb25bdc72193150764d515b14dd
Add isValidIndex function
## Summary Implements a general validation function `isValidIndex()` that checks if an H3 index is valid for any mode (cell, directed edge, or vertex), as requested in #1043. ## Changes Made - **API Addition**: Added `isValidIndex()` function declaration to `h3api.h.in` - **Implementation**: Implemented function in `h...
diff --git a/src/apps/testapps/testH3Index.c b/src/apps/testapps/testH3Index.c index 929eb90171..cfd258647d 100644 --- a/src/apps/testapps/testH3Index.c +++ b/src/apps/testapps/testH3Index.c @@ -212,4 +212,39 @@ SUITE(h3Index) { "matches existing definition"); } } + + TEST(isValid...
3
3
1
[{"id": "G0", "claim": "The test comment claiming that incrementing an H3Index yields a neighboring cell is wrong — incrementing will almost never give a neighboring cell, so the directed-edge test should obtain a real neighbor another way.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
uber__h3__1136
uber/h3
1,136
defect
1d5346bb30082e10b8da60a6d288bc1998295d61
1034c4e1caa3f11ff0ad4af32afaf8f1ea9b9ba7
Replace cellsToLinkedMultiPolygon backend with cellsToMultiPolygon
# Changes - `cellsToLinkedMultiPolygon` now uses `cellsToMultiPolygon` internally (#1126, #1133, #1136) - `cellsToLinkedMultiPolygon` (and `cellsToMultiPolygon`) now return errors for invalid cells (`E_CELL_INVALID`), mixed resolutions (`E_RES_MISMATCH`), and duplicate cells (`E_DOMAIN`) instead of producing u...
diff --git a/.gitignore b/.gitignore index c2a55a7e60..4ec6b538ec 100644 --- a/.gitignore +++ b/.gitignore @@ -99,6 +99,7 @@ coverage.cleaned.info .idea .vscode .ipynb_checkpoints +.claude # Generated by `make binding-functions` binding-functions diff --git a/CHANGELOG.md b/CHANGELOG.md index 73f71e5dee..8d1da51...
1
1
0
[{"id": "G0", "claim": "The CHANGELOG entry should include PR numbers — the reviewer asks to add the PR number to the `cellsToLinkedMultiPolygon` entry and to add all PR numbers that implemented the new cellsToMultiPolygon feature set.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
uber__h3__1145
uber/h3
1,145
defect
006ba2c73a944691777e6bbf08e3754bf5cc9212
a06d1687b1a4fce286a769c9965bef82fb19e507
Vec3d indexing refactor
# Summary ## Vec3d refactor Based on @holoskii 's work in https://github.com/uber/h3/pull/1052, we cherry pick out just the `Vec3d` indexing refactor. The indexing path on `master` currently operates on "geo" lat/lng coordinates: ``` latLngToCell (old, on master) ├── _geoToFaceIjk → FaceIJK │ ├── _geoT...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ab9fbef9..6a9ad24594 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,6 @@ set(LIB_SOURCE_FILES src/h3lib/lib/polyfill.c src/h3lib/lib/h3Index.c src/h3lib/lib/vec2d.c - src/h3lib/lib/vec3d.c src/h3lib/lib/vertex.c src/h3lib/...
9
6
2
[{"id": "G0", "claim": "Variable naming in the new faceijk.c code mixes camelCase and snake_case (e.g. p2_on_tangent alongside northDir/eastDir) and should be made consistent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "vec3ToCell should perh...
null
uber__h3__173
uber/h3
173
defect
6af4914752f82c95fe8e4230de50ea43eaa01025
624420aff2b42ac9c2e6ec303d8d8caa5f98d312
ENH: Include defined constants for current library version
Resolves #148. Splits version string in CMakeLists.txt and configures a new header file, `version.h`, with number constants.
diff --git a/.gitignore b/.gitignore index 98be742b5e..11569aa01a 100644 --- a/.gitignore +++ b/.gitignore @@ -96,3 +96,6 @@ binding-functions # These KML files are generated by `make kml` KML/res*cells.kml KML/res*centers.kml + +# Generated header files +src/h3lib/include/version.h \ No newline at end of file diff ...
4
3
1
[{"id": "G0", "claim": "All build jobs fail because `make format` tries to run on the generated version.h file that has not been built yet.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The .gitignore entry for src/h3lib/include/version.h is no lon...
null
uber__h3__176
uber/h3
176
defect
6af4914752f82c95fe8e4230de50ea43eaa01025
b2dfdbc8f64c609c1940490ddf06e83e811f1e08
Add function to get all base cells
Resolves #174. You could instead export a defined constant with all 122 base cells. What do you think?
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c5ced43c1..58b7f9b90d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The public API of this library consists of the functions declared in file [h3api.h](./src/h3lib/include/h3api.h). ## [Unreleased] +### Added +- `getBaseCells` function for getting all b...
10
9
2
[{"id": "G0", "claim": "The new test file's copyright header still says 2017-2018 and should say 2019.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should free the allocated baseCells buffer, since that makes real leaks easier to spot w...
null
uber__h3__234
uber/h3
234
defect
fa76f88c06293ff23c050d691a579a6e8f30919b
4f4f4f97c7713e42b9bf4446b1ebfe489de88a00
Consistent pentagon local IJ coords
Change failed directions so that more than one face cannot be crossed when unfolding a pentagon. This should fix #184 by disallowing this kind of line.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 564aeaff40..0c8ded434e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The public API of this library consists of the functions declared in file [h3api.h.in](./src/h3lib/include/h3api.h.in). ## [Unreleased] +### Changed +- Local coordinate spaces cannot cr...
3
3
1
[{"id": "G0", "claim": "Fix the typo in the FAILED_DIRECTIONS doc comment: \"due failure cases\" should read \"due to failure cases\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new CHANGELOG entry overstates the change — nrabinowitz asks ...
null
uber__h3__253
uber/h3
253
defect
caee920de334f12db562c836d690470ab7f88d90
83be76d2a0e99c6b9c8c098254dc3a6e18398e8a
Implement h3GetFaces
Implements `h3GetFaces` per the discussion in #236, as well as the helper function `maxFaceCount` (using the same pattern as `maxKRingSize` etc). The `h3GetFaces` function takes an H3 index and an output array and fills the output array with all the icosahedron faces the index intersects. It returns 1 or 2 faces for he...
diff --git a/CMakeLists.txt b/CMakeLists.txt index bd6bbb940e..5e0796fe69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2017, 2018 Uber Technologies, Inc. +# Copyright 2017-2019 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not u...
14
10
1
[{"id": "G0", "claim": "The removed INVALID and CENTER faceNeighbors direction macros are unused.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add one test for a res 15 pentagon to confirm the code doesn't accidentally try to get a child below...
null
uber__h3__279
uber/h3
279
defect
4bdb15c5326414009113928fe252fd193a14241d
56d2ff59e2698f1ac236f3e0f9756116df3f4cc8
trivial fix to bboxHexRadius to guarantee containment
Fixes #136 , at least in my usecases.
diff --git a/CHANGELOG.md b/CHANGELOG.md index c486b16a99..aeab105063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The public API of this library consists of the functions declared in file ## [Unreleased] ### Fixed - `compact` handles zero length input correctly. (#278) +- `bboxHexRadius` scaling fac...
8
6
2
[{"id": "G0", "claim": "The pull request fails the polyfill tests.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "It's possible that the test itself encoded a bad fill and was not noticed.", "category": "testing", "verdict": "supported", "priority": "P1...
null
uber__h3__430
uber/h3
430
defect
b04c78fa08adbd6857aa6f4b2a0f8e08a4ce2ead
b4fbc82f1e4299138d2b2a5763e95231da80f7fb
Add bounds checks for some base cell accesses
Partial update of #423 with tests (thanks @alexey-milovidov). These fix potential crashes (segfault) or otherwise out of bounds reads. I did not port two of the checks in baseCells.c since I could not readily test them. They could be added in a future PR. Benchmark results (release configuration, recent MacBook Pro)...
diff --git a/src/apps/testapps/testH3Api.c b/src/apps/testapps/testH3Api.c index 64b25750fd..933a415bdc 100644 --- a/src/apps/testapps/testH3Api.c +++ b/src/apps/testapps/testH3Api.c @@ -100,6 +100,12 @@ SUITE(h3Api) { t_assertBoundary(h3, &boundary); } + TEST(h3ToGeoInvalid) { + GeoCoord coor...
4
2
0
[{"id": "G0", "claim": "The before and after benchmark results in the pull request description may be in the wrong order, since every benchmark appears to improve slightly when compared.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new asserti...
null
uber__h3__478
uber/h3
478
defect
4b574f04829ea7ca0edb73048ac4ef4833301f05
4d38c6c160c3d9206ab37d7f892c9034a27b0522
Add error return codes to polygonToCells
Fairly straight forward, also added memory tests for `polygonToCells`. While changing this, I noticed we should adjust `maxPolygonToCellsSize` to provide the size as `int64_t`. This also requires changes in `polygonToCells`.
diff --git a/src/apps/applib/include/utility.h b/src/apps/applib/include/utility.h index dfe5e30cda..0ae5d576e9 100644 --- a/src/apps/applib/include/utility.h +++ b/src/apps/applib/include/utility.h @@ -56,6 +56,6 @@ void iterateBaseCellIndexesAtRes(int res, void (*callback)(H3Index), ...
1
1
0
[{"id": "G0", "claim": "The assertion message typo \"alloc called otwicence\" should read \"alloc called twice\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uber__h3__503
uber/h3
503
defect
4b574f04829ea7ca0edb73048ac4ef4833301f05
8eab27f9d943fddef194fcd00f0552bcbac55380
Add error return codes to h3Index.c (part 1)
Applies the error return codes RFC to h3Index.c with the exception of some commonly used functions that return true/false.
diff --git a/examples/distance.c b/examples/distance.c index 1c674d9625..d64a53e09a 100644 --- a/examples/distance.c +++ b/examples/distance.c @@ -48,9 +48,11 @@ double haversineDistance(double th1, double ph1, double th2, double ph2) { int main(int argc, char *argv[]) { // 1455 Market St @ resolution 15 - H...
5
3
0
[{"id": "G0", "claim": "maxFaceCount should presumably also return an error when the int64 input is not a valid H3 index, to be added later on.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new checkChildren helper implies there are no errors i...
null
uber__h3__507
uber/h3
507
defect
897f9ca345ca18d03cf0fac50cd39f48c8f79490
712402a51a5ab1d609d91a7c43a7baff7a31cee1
Add error returns to gridPath/gridDistance functions
Adds consistent error returns to the gridPathCells, gridDistance, and localIj series of functions. These functions mostly already had error codes but they were not consistent with `H3Error`. Changes to traversal.mdx might need to be rebased with #505. I'm moving functions to pass int64_t when it refers to a numbe...
diff --git a/examples/distance.c b/examples/distance.c index d64a53e09a..9f8a35b728 100644 --- a/examples/distance.c +++ b/examples/distance.c @@ -21,6 +21,7 @@ // mean Earth radius #define R 6371.0088 +#include <assert.h> #include <h3/h3api.h> #include <math.h> #include <stdio.h> @@ -58,13 +59,16 @@ int main(in...
2
2
2
[{"id": "G0", "claim": "There are no tests covering the specific E_CELL_INVALID error return in h3ToLocalIjk for an out-of-range origin base cell, and one should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There are no tests covering the sp...
null
uber__h3__508
uber/h3
508
defect
897f9ca345ca18d03cf0fac50cd39f48c8f79490
f96b25f4f417ad81f88797017b792a4db9cc6df7
Add error returns to vertex functions
These functions are not documented on the website yet, so no documentation update here.
diff --git a/src/apps/testapps/testVertex.c b/src/apps/testapps/testVertex.c index b09b039ddd..c1d7514b5d 100644 --- a/src/apps/testapps/testVertex.c +++ b/src/apps/testapps/testVertex.c @@ -89,13 +89,14 @@ SUITE(Vertex) { TEST(cellToVertex_badVerts) { H3Index origin = 0x823d6ffffffffff; - t_asse...
1
1
1
[{"id": "G0", "claim": "cellToVertex should return a more specific error code than E_FAILED for an invalid vertexNum input, so developers can tell bad input apart from a processing failure.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__h3__551
uber/h3
551
defect
be8387258d57b83af58bfc9aa2092cab4440d852
6bf160138cc470cf0af6b2ab040ec78296f042e0
Add error returns to maxGridDiskSize
This PR also changes the signature for this function to support `k` values where the number of cells is more than an `int32_t` can represent (i.e. `k=26755, maxGridDiskSize(26755)=2147570341`)
diff --git a/examples/neighbors.c b/examples/neighbors.c index 2482c029db..ce6f7c7aeb 100644 --- a/examples/neighbors.c +++ b/examples/neighbors.c @@ -27,7 +27,8 @@ int main(int argc, char *argv[]) { // Distance away from the origin to find: int k = 2; - int maxNeighboring = maxGridDiskSize(k); + int6...
4
2
0
[{"id": "G0", "claim": "The benchmarks should check the error condition of maxGridDiskSize instead of assuming fallible functions are correct.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test assertion messages misspell \"invalid\" as \"i...
null
uber__h3__553
uber/h3
553
defect
be8387258d57b83af58bfc9aa2092cab4440d852
02abb9980337bd010acc100ded661266e23b15fe
Add more fuzzers and libFuzzer harness
This adds additional fuzzing harnesses (consult `README.md` in the PR for which functions should be covered and uncovered - a few are left uncovered since they are trivial) and also adds an adapter from AFL++ to libFuzzer. The idea being we can move the fuzzer harness from https://github.com/google/oss-fuzz/blob/master...
diff --git a/.github/workflows/test-fuzzer.yml b/.github/workflows/test-fuzzer.yml new file mode 100644 index 0000000000..6ced437e63 --- /dev/null +++ b/.github/workflows/test-fuzzer.yml @@ -0,0 +1,42 @@ +name: test-fuzzer + +on: + push: + branches: [master, stable-*] + pull_request: + branches: [master, stable...
5
3
1
[{"id": "G0", "claim": "GitHub Actions is not expanding the `bin/fuzzers*` glob in the run-fuzzers step, so the loop needs to be rewritten in whatever way GitHub Actions expands.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G5", "claim": "Because mismatched arra...
null
uber__h3__586
uber/h3
586
defect
8bd135b45c19aa0f1862ac639ef5b0e5d339fdeb
fc1f282f548cbdee4cafb83e5faf9ed6bcf8b635
Rename experimentalLocalIjToH3 to localIjToCell
Renames `experimental...` functions to no longer be experimental, as they have been in the library for some time now. Also renames the functions to be in line with the naming RFC.
diff --git a/CHANGELOG.md b/CHANGELOG.md index b3ed98b397..9a405ec2af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The public API of this library consists of the functions declared in file [h3api.h.in](./src/h3lib/include/h3api.h.in). ## [Unreleased] +### Breaking changes +- `experimentalH3ToLocalIj...
3
3
0
[{"id": "G0", "claim": "The renamed localIjToCell/cellToLocalIj should include the mode argument that was agreed as part of dropping the experimental prefix, so future versions can be added without breaking users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "...
null
uber__h3__603
uber/h3
603
defect
64ffb1ebb21de6904c9ff02e993e2d4c7f4eab15
8b21565a8146fa6d2b4c7051cdad14e9616a7c1b
FIX: Fix polyfill bug when vertex latitude exactly matches cell center
Fixes #595 The issue here (I think?) is that rays cast directly through a vertex of the polygon were being counted twice, once for each adjoining segment. This uses the same "bias in an arbitrary direction" approach we used for longitude matches, which should also ensure no overlap between contiguous polygons, whic...
diff --git a/src/apps/testapps/testPolygon.c b/src/apps/testapps/testPolygon.c index 9f3015d909..4a638da3ea 100644 --- a/src/apps/testapps/testPolygon.c +++ b/src/apps/testapps/testPolygon.c @@ -48,10 +48,22 @@ SUITE(polygon) { BBox bbox; bboxFromGeoLoop(&geoloop, &bbox); + // For exact point...
2
2
1
[{"id": "G0", "claim": "Adding DBL_EPSILON when the latitude is already maximally north means a point exactly at the north pole can never be contained in any polygon (and could theoretically affect pointInsideLinkedGeoLoop), so the assumption that only cell centers or vertices are compared against user input should be ...
null
uber__h3__636
uber/h3
636
defect
6c77803da8d4b7669ac6d07bb91ba75243f20b44
ead400532ca6490265aab808825e89532f98d65b
Fix undefined behavior in polygonToCells test
* Fixes a test that had an invalid read. This was found by running the tests with `ENABLE_FUZZERS`, which enabled ASAN etc. We don't run this in CI but perhaps should. * Added a couple tests that exercise what happens when non-finite values are passed into polygonToCells. We previously had some casts from double to in...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f80a7e38fe..f0643b5d92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The public API of this library consists of the functions declared in file [h3api.h.in](./src/h3lib/include/h3api.h.in). ## [Unreleased] +### Fixed +- `polygonToCells` returns an error i...
2
2
0
[{"id": "G0", "claim": "The TODO in bboxHexEstimate to return an error should be addressed now that the function returns H3Error — getPentagons' error should be propagated instead of ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The same...
null
uber__h3__637
uber/h3
637
defect
6c77803da8d4b7669ac6d07bb91ba75243f20b44
08e9100fc69e63cacf8f390ba6a58ff4ff52d224
Code coverage improvement for vertex functions
Covers an a couple additional branches in vertex.c. This is not required for #633. I didn't add a changelog entry as this is purely a test / coverage exclusion change.
diff --git a/src/apps/testapps/testVertex.c b/src/apps/testapps/testVertex.c index 4bb6c98fee..13be918e4c 100644 --- a/src/apps/testapps/testVertex.c +++ b/src/apps/testapps/testVertex.c @@ -183,4 +183,11 @@ SUITE(Vertex) { t_assert(H3_EXPORT(vertexToLatLng)(invalid, &latLng) != E_SUCCESS, "I...
1
1
0
[{"id": "G0", "claim": "Remove the now-invalid comment '// This case should be unreachable; invalid verts fail earlier' above the INVALID_DIGIT check in cellToVertex.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
uber__h3__685
uber/h3
685
defect
f581626150e2e2b02f0ee1636084dfb8a4563abf
42c638b63af533b86a631f949b385ae7b2d9aec8
Fix memory leak in compactCells
This branch was previously thought unreachable, but evidently is. It resulted in a memory leak which allowed us to detect it. I added a test based on a specific bad input and assert that it returns failure, plus rely on Valgrind to detect if a leak happens; it may be possible to minify the test case even further. We...
diff --git a/src/apps/testapps/testCompactCells.c b/src/apps/testapps/testCompactCells.c index 8770ced464..6dd7b34988 100644 --- a/src/apps/testapps/testCompactCells.c +++ b/src/apps/testapps/testCompactCells.c @@ -307,6 +307,62 @@ SUITE(compactCells) { "compactCells returns E_RES_MISMATCH on bad input (pa...
2
2
0
[{"id": "G0", "claim": "The zero-initialized output array in the compactCells_parentError2 test would be more legible written as `H3Index output[43] = {0}`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment in compactCells_parentError2 ...
null
uber__h3__686
uber/h3
686
defect
f581626150e2e2b02f0ee1636084dfb8a4563abf
f1f771652bf0b6b17ba10a06f1864c9cfb601612
Prevent signed integer overflow in maxGridDiskSize
Signed integer overflow is undefined behavior in C, so we cannot add, multiply, etc. arbitrary integer inputs. This adds a hard cap on the maxGridDiskSize function based on knowledge of the grid system itself.
diff --git a/src/apps/testapps/testCompactCells.c b/src/apps/testapps/testCompactCells.c index 8770ced464..5cbc88f579 100644 --- a/src/apps/testapps/testCompactCells.c +++ b/src/apps/testapps/testCompactCells.c @@ -83,7 +83,9 @@ SUITE(compactCells) { H3Index *compressed = calloc(arrSize, sizeof(H3Index)); ...
3
2
0
[{"id": "G0", "claim": "The magic threshold 13780510 in maxGridDiskSize should be assigned to a named constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A new function taking the resolution should be created and recommended over maxGridDis...
null
uber__h3__710
uber/h3
710
defect
0d450072aac1b25d7b130150df923c3403ac7673
4cf76d9575209bb2a449877ff28b20534426456e
ratio for calculation of bbox area should always be > 1 (#708)
Description and discussion is here: https://github.com/uber/h3/issues/708
diff --git a/src/apps/testapps/testBBox.c b/src/apps/testapps/testBBox.c index 4157dc3cb5..ab2a5e3d2c 100644 --- a/src/apps/testapps/testBBox.c +++ b/src/apps/testapps/testBBox.c @@ -246,6 +246,20 @@ SUITE(BBox) { "bboxHexEstimate of invalid resolution fails"); } + TEST(bboxHexEstimate_ratio...
2
2
2
[{"id": "G0", "claim": "The PR should suggest some tests to validate the change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new unit test has two errors that the author will fix.", "category": "correctness", "verdict": "supported", "priority": "...
null
uber__h3__719
uber/h3
719
defect
fe96f1f5cc639089c47546cdf126d128e6f002a3
6b4b382787270fed687d91021e772edc4448974d
Feature: Add cellToChildPos and childPosToCell
Adds two new functions: - `cellToChildPos` gives the position of the child in an ordered list of all the children of the cell's parent at a given resolution. The "ordered list" here is the same order as returned by `cellToChildren`, which I believe is numerically sorted by index. Essentially, this function allows yo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 957d204807..f1b6607456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The public API of this library consists of the functions declared in file [h3api.h.in](./src/h3lib/include/h3api.h.in). ## [Unreleased] +### Added +- Functions for `cellToChildPos` and ...
8
7
2
[{"id": "G0", "claim": "The unchecked cellToParent call in cellToChildPos's pentagon loop is probably a good spot for a `NEVER` assertion once #720 lands.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test file's copyright header should be updat...
null
uber__h3__735
uber/h3
735
defect
ab09177189516318c6c2b78bb17f4929ec27354e
975a7ff423282029bc0de20533aa4c6d72ff2d01
Fix upAp7 signed integer overflow
Adds versions of _upAp7/_upAp7r that check for signed integer overflow on integer operations, for use in the LocalIJ functions. Replaces #733.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 508e9bf65c..010cd6d792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ The public API of this library consists of the functions declared in file ### Fixed - Fixed possible signed integer overflow in `h3NeighborRotations` (#707) -- Fixed possible signed i...
5
3
2
[{"id": "G0", "claim": "The new SUM_INT32S_OVERFLOWS and SUB_INT32S_OVERFLOWS macros carry only '// TODO: Verify' markers and lack tests demonstrating they work as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new _upAp7Checked and _upAp7...
null
uber__h3__78
uber/h3
78
defect
1d3360f5c50590f70fb4ae86fa7c68e7eb70d00c
a25f18cdea4dbf854873c1178d0f547b4485b1c4
Fix for edge directions in getH3UnidirectionalEdgeBoundary
Fixes #75. This isn't the most elegant fix, but it does get the vertices into the correct order. Longer term, I think the best option here is to do what we do in `h3SetToVertexGraph`, getting the edges and then walking them. But at the moment this was a bit too clunky to implement; it might be easier after a refacto...
diff --git a/src/apps/testapps/testH3UniEdge.c b/src/apps/testapps/testH3UniEdge.c index 70ee46fccc..331667688f 100644 --- a/src/apps/testapps/testH3UniEdge.c +++ b/src/apps/testapps/testH3UniEdge.c @@ -21,6 +21,7 @@ #include <stdlib.h> #include "constants.h" +#include "geoCoord.h" #include "h3Index.h" #include "...
10
10
3
[{"id": "G0", "claim": "The current test approach fails at resolutions above 12 because of the geo comparison precision, and this limitation (and why not all resolutions are tested) should be noted in a comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
uber__h3__796
uber/h3
796
defect
6c1b00307fa7f2b3babf68006190120ac640c06c
61d3e5bcac518db1945311635b6a3bf662417cd5
Add support for full containment and overlapping modes in polygonToCellsExperimental
Adds support for full containment mode and overlapping modes in `polygonToCellsExperimental`. - Defines an enum for the containment modes. My assumption here is that the lowest 4 bits of the 32-bit flag are reserved for containment modes (not sure that we'd need more than 7, but wanted to be on the safe side), and t...
diff --git a/scripts/make_countries.js b/scripts/make_countries.js index 4e8a495d43..42c0a39746 100644 --- a/scripts/make_countries.js +++ b/scripts/make_countries.js @@ -131,6 +131,7 @@ async function makeCountries(sourceUrl, targetPath) { #include "h3api.h" #include "mathExtensions.h" #include "polyfill.h" +#inclu...
4
4
1
[{"id": "G0", "claim": "The containment enum value names should get a prefix (e.g. POLYGON_CENTER_CONTAINMENT) so that it is clear a valid enum is being fed into polygonToCells.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The containment enum values s...
null
uber__h3__805
uber/h3
805
defect
9af7218f239813851ae37d1770c8d200a96346dd
795def8341baa61909e0c18b1938da4257d76c1e
Alternate maxPolygonToCellsSize implementation
Adds an alternate implementation of `maxPolygonToCellsSize`, based on a coarse run of `polygonToCellsExperimental`. This approach is slower than the current `maxPolygonToCellsSize`, but should accommodate the new modes and fix cases where we were previously underestimating the new polyfill algo around the poles. It gen...
diff --git a/scripts/make_countries.js b/scripts/make_countries.js index 8e810dff3b..8741de46ec 100644 --- a/scripts/make_countries.js +++ b/scripts/make_countries.js @@ -140,9 +140,8 @@ const GeoPolygon COUNTRIES[${polygons.length}] = {${ BEGIN_BENCHMARKS(); int MAX_RES = 5; -// Max size of largest polygon at res ...
5
3
1
[{"id": "G0", "claim": "The polygonToCells tests are failing in CI, apparently because they hardwire maxPolygonToCellsSize outputs (and use 3 instead of CONTAINMENT_INVALID as the first invalid mode).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "maxPo...
null
uber__h3__816
uber/h3
816
defect
8207a9c7af073635c97e6a93bbaf99a08ed98d4c
3762955299afda2b260c5b12fb6f15ca7caa5eac
Add fixes and tests for 0-, 1-, and 2-vertex geoloops and holes
This includes the fixes from #800, plus one more fix for estimating a 1-vertex polygon. Includes the following tests: - 0-vertex polygon, all modes - 1-vertex polygon, all modes - 2-vertex polygon, all modes - polygon with 0-vertex hole, all modes - polygon with 1-vertex hole, all modes - polygon with 2-vertex ho...
diff --git a/src/apps/testapps/testPolygonToCellsExperimental.c b/src/apps/testapps/testPolygonToCellsExperimental.c index 4d48c3c1d6..47a29a6fc2 100644 --- a/src/apps/testapps/testPolygonToCellsExperimental.c +++ b/src/apps/testapps/testPolygonToCellsExperimental.c @@ -54,14 +54,22 @@ static LatLng invalid2Verts[] = {...
3
2
1
[{"id": "G0", "claim": "The near-identical null-polygon tests could be collapsed into one test that loops over the containment flags, which would be easier to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test for polygonToCellsPointPol...
null
uber__h3__831
uber/h3
831
defect
afaa41a64f13e97c37ecc692fa6eec7a7e721680
1d5bbf58ffc86d21e537baa4cef262a580938102
Enable build warnings/errors on Windows
src/h3lib/lib/coodijk.c: (73,10): warning C4244: '=': conversion from 'double' to 'int', possible loss of data (74,10): warning C4244: '=': conversion from 'double' to 'int', possible loss of data (133,25): warning C4244: '=': conversion from 'double' to 'int', possible loss of data (137,25): warn...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b035fe1aa..54d2a64b09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,11 +90,15 @@ endif() set(H3_COMPILE_FLAGS "") set(H3_LINK_FLAGS "") +if(WIN32) + list(APPEND H3_COMPILE_FLAGS /W2) +else() + list(APPEND H3_COMPILE_FLAGS -Wall) +endif() + if(NOT ...
3
2
1
[{"id": "G0", "claim": "Prefix the warning-flags block with a CMake option (e.g. option(ENABLE_WARNINGS \"Enables compiler warnings\" ON)) so the compiler-warning flags can be disabled and the old behavior recovered.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
uber__h3__84
uber/h3
84
defect
518b324f30549244d31fedc242a3a97dc59916af
6383f58c3925a1b62c343d22ab50fc286865340a
Feature: clear unused memory for pentagon children
This is a fantastic library! I've encountered an inconsistency between `h3ToChildren` and `kRing`: The later sets memory to zero for pentagons. This left me confused when using `h3ToChildren` on pentagons which in my case returned valid indices (left over in memory from other calls) for the children that are skipped...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b5f89f6e4d..d9880c86f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The public API of this library consists of the functions declared in file ## [Unreleased] ### Added - Added Direction enum, replacing int and defined constants (#77) +- Ensured unused me...
2
2
1
[{"id": "G0", "claim": "The single H3_INVALID_INDEX write will not zero enough of the buffer in all cases, since a recursive h3ToChildren call can have generated more than one index; it should zero bufferChildStep indexes instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
uber__kraken__183
uber/kraken
183
defect
928fd7bc89a96ba0dd1c317d17e8b0701caf0898
5d45502e546e21d3360d30eda1634c6c0bfaec82
Add pagination support to backend
Closes #22 The backend's `Client` interface's `List` method is modified to add an addition parameter `ListOptions`. These parameters control pagination and potentially more settings in the future. `List` also returns an additional value, which is the continuation token. This will be an empty string if there is no m...
diff --git a/build-index/tagserver/server.go b/build-index/tagserver/server.go index e83f74a4b..759f74cd0 100644 --- a/build-index/tagserver/server.go +++ b/build-index/tagserver/server.go @@ -244,7 +244,7 @@ func (s *Server) listHandler(w http.ResponseWriter, r *http.Request) error { if err != nil { return handle...
4
4
0
[{"id": "G0", "claim": "The List signature should return a ListResult struct that carries the continuation token (and names) instead of a bare extra string return value; the reviewer also asks why a pointer ListOptions is needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
uber__kraken__464
uber/kraken
464
defect
77df40a3d4b7fde24ea00b859851212be56729d6
23e156c2253870d3be7278de950cf1af3a515d36
[store] Improve blob cache clean up with heuristics
This is a follow-up of #461, #462, and #463 (read for more context). This PR defines some heuristics that can be used to prioritize blobs for deletion when clearing the origin's blob cache during aggressive cache cleanup.
diff --git a/lib/store/cleanup.go b/lib/store/cleanup.go index 5b0fba2b4..9fad16554 100644 --- a/lib/store/cleanup.go +++ b/lib/store/cleanup.go @@ -16,6 +16,7 @@ package store import ( "fmt" "os" + "slices" "sync" "time" @@ -30,17 +31,18 @@ import ( // CleanupConfig defines configuration for periodically...
5
2
1
[{"id": "G0", "claim": "The cleanup doc comment misspells the config field as 'AggressiveLowerThresholdand' where it should be 'AggressiveLowerThreshold'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The YAML tag 'aggressive_ttL' has inconsisten...
null
uber__kraken__467
uber/kraken
467
defect
5d241b7ec90daae922679bbdbd99e35a435f15e4
8942050fbba47d1b1eb96579af85fc439015749f
feat(proxyserver): Add PrefetchImage V2 API that is idempotent
In #402 , a new PrefetchImage API was added to proxy, which prefetches the image in the origin cluster, preheating it to serve the image to the agents. This PR adds a PrefetchImage v2 API that is more efficient, lightweight, and mostly idempotent. The main improvement is that to trigger the origins to cache the blob...
diff --git a/mocks/origin/blobclient/client.go b/mocks/origin/blobclient/client.go index ca39c0078..8ef989f9e 100644 --- a/mocks/origin/blobclient/client.go +++ b/mocks/origin/blobclient/client.go @@ -79,7 +79,7 @@ func (m *MockClient) DeleteBlob(d core.Digest) error { } // DeleteBlob indicates an expected call of ...
2
1
0
[{"id": "G0", "claim": "Fix the misspelling in the preparePrefetch doc comment: 'occurrs' should be 'occurs'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Using errors.Join() inside fmt.Errorf with %w double-wraps the joined error and produces c...
null
uber__kraken__472
uber/kraken
472
defect
994acf8520e2c7669e0f228003cdc3317c622df1
158954413d4ff626615039267736ea46b997074f
feat(lib/store): setup memory cache config in castore
## What? This PR builds over https://github.com/uber/kraken/pull/471 to setup configs for further implementation of the memory cache ## Why? We need these configs to determine the properties of the cache ## How? Update `CAStoreConfig` and add `MemoryCacheConfig` and also add defaults and validations.
diff --git a/lib/store/ca_store.go b/lib/store/ca_store.go index d33968674..53c8d80bf 100644 --- a/lib/store/ca_store.go +++ b/lib/store/ca_store.go @@ -42,6 +42,10 @@ type CAStore struct { func NewCAStore(config CAStoreConfig, stats tally.Scope) (*CAStore, error) { config = config.applyDefaults() + if err := conf...
3
2
1
[{"id": "G0", "claim": "The validation error message references 'memory_cache_ttl' and 'memory_cache_enabled', which do not match the struct field names 'TTL'/'Enabled' or the yaml tags 'memory_cache.ttl'/'memory_cache.enabled'; it should be reworded to match.", "category": "documentation", "verdict": "supported", "pri...
null