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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shogun-toolbox__shogun__4555 | shogun-toolbox/shogun | 4,555 | defect | 66e9864175f998050e4af1ab1c825bb94581ed95 | 36863f814fce00b72101ee3277d0263929c203ff | Add cumulative moving average function | Moving average is implemented in the form average_n = (1-alpha)*average_{n-1} + alpha*x. This has an additional multiplication compared to average_n = average_{n-1} + alpha*(x-average_n), but it should has less rounding error when alpha is small (not sure). | diff --git a/src/shogun/evaluation/MachineEvaluation.cpp b/src/shogun/evaluation/MachineEvaluation.cpp
index e59df44ff98..89cefbb2b64 100644
--- a/src/shogun/evaluation/MachineEvaluation.cpp
+++ b/src/shogun/evaluation/MachineEvaluation.cpp
@@ -10,7 +10,6 @@
#include <shogun/evaluation/MachineEvaluation.h>
#include <... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new code added in Statistics.h should get a round of clang-format to fix its indentation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cumulative_moving_average should return the result rather than write it through ... | null |
shogun-toolbox__shogun__4581 | shogun-toolbox/shogun | 4,581 | defect | 554df99219df75772a49d6c13870ff6c99a163e1 | 02c12ce2ac4870c3fb62d175bbd1d43ac68f8e17 | [WIP] implementation of array SGObject::get | ***NO_CI***
@geektoni I will try to finish this tomorrow. Let me know if you have thoughts | diff --git a/examples/meta/generator/targets/cpp.json b/examples/meta/generator/targets/cpp.json
index 5fb8265cb65..6eb220b45c5 100644
--- a/examples/meta/generator/targets/cpp.json
+++ b/examples/meta/generator/targets/cpp.json
@@ -102,7 +102,8 @@
"get_int_string_list": "$object->get<SGStringList<int32_t>... | 9 | 4 | 1 | [{"id": "G0", "claim": "The std::vector branch of the new indexed getter calls element_at, a method std::vector does not have (it has at).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new CSGObject::get(CDynamicObjectArray*, index_t) should su... | null |
shogun-toolbox__shogun__4590 | shogun-toolbox/shogun | 4,590 | defect | e601ae3690be197611a23f04369f1eabfae63cd7 | a5f505bb3fc652e3045dd4c3e8fdec8327ba9e43 | Create ObservedValue from AnyParameter and extend put() | * Add method to generate an `ObservedValue` from an `AnyParameter`;
* Extend `put()` to emit also an ObservedValue; | diff --git a/src/shogun/base/SGObject.h b/src/shogun/base/SGObject.h
index eeaafa9a16e..02fa9ede9aa 100644
--- a/src/shogun/base/SGObject.h
+++ b/src/shogun/base/SGObject.h
@@ -373,6 +373,7 @@ class CSGObject
}
ref_value(value);
update_parameter(_tag, make_any(value));
+ observe(ObservedValue::make_observ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The observe(...) call added inside put() in SGObject.h does not compile because ObservedValue is only forward-declared there and including its header would create a cyclic dependency, so another approach is needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "... | null |
shogun-toolbox__shogun__4633 | shogun-toolbox/shogun | 4,633 | defect | 287f02d11d5914ded2d410ab9c6f38712e11ca2b | c322ee9c5db41b357d4c2cc2af369cd567a64ac2 | Refactor LDA classifier to make it more "observable". | * Removed getter and setters in favour of the `get`/`put` architecture;
* Use `put()` to set weights and bias;
* Correct LDA unit tests; | diff --git a/examples/meta/generator/targets/cpp.json b/examples/meta/generator/targets/cpp.json
index 9691184f85c..45f13915132 100644
--- a/examples/meta/generator/targets/cpp.json
+++ b/examples/meta/generator/targets/cpp.json
@@ -108,6 +108,7 @@
"MethodCall": {
"Default": "$object->$method($arg... | 3 | 2 | 1 | [{"id": "G0", "claim": "Avoid the string-based put() of parameters in C++ class methods (use for swig only); assign features and labels directly instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the set_features() type checks are removed from LD... | null |
shogun-toolbox__shogun__4636 | shogun-toolbox/shogun | 4,636 | defect | 1dd09c5ddee30dfb6b738b1f2a7c1ec9eef65122 | 5dd5f026399dfe8dd75b982f07301c71ac99706f | Move feature weights to CombinedFeature class | This is to reduce the state of DotFeatures, and for better abstraction. | diff --git a/src/shogun/features/CombinedDotFeatures.cpp b/src/shogun/features/CombinedDotFeatures.cpp
index 8d7f09b1e56..6ff24131048 100644
--- a/src/shogun/features/CombinedDotFeatures.cpp
+++ b/src/shogun/features/CombinedDotFeatures.cpp
@@ -11,6 +11,8 @@
using namespace shogun;
+const float64_t CCombinedDotFea... | 8 | 7 | 3 | [{"id": "G0", "claim": "Make the static member initial_weight constexpr instead of const.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pass the weights to set_subfeature_weights by const reference instead of by value.", "category": "performance", "verd... | null |
shogun-toolbox__shogun__4647 | shogun-toolbox/shogun | 4,647 | defect | f30aff1c2c84491d876b54be9d39816600c1548b | 6399610b515933fe00573d4696adf88a7622d1a5 | Constrain parameter values | Here is a design I came up with to constrain parameter values. At compile time we know the constraints so it can all be wrapped into a tuple that is "evaluated" and should be inlined properly at O3. The issue is the casting from any to the respective type, which is expensive, but then we can "ignore" the parameter type... | diff --git a/src/shogun/base/AnyParameter.h b/src/shogun/base/AnyParameter.h
index 2ed017c4650..7c430443c9a 100644
--- a/src/shogun/base/AnyParameter.h
+++ b/src/shogun/base/AnyParameter.h
@@ -11,8 +11,8 @@
#include <shogun/lib/any.h>
#include <shogun/lib/bitmask_operators.h>
-#include <memory>
#include <list>
+#i... | 6 | 4 | 1 | [{"id": "G0", "claim": "The fold expression in composition.h's apply_helper requires C++17 although the same logic could easily be written in C++14.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constraint-violation error message is user fa... | null |
shogun-toolbox__shogun__4662 | shogun-toolbox/shogun | 4,662 | defect | 94bdf4decf2b064833b984610593012758da4c30 | dc4b849cbcd6a7ba248e22c124e9fd04894d68b2 | Implement SGVector slicing | This will be useful for replacing raw pointers. A slice can be reference counted, and we keep track of an offset, which is needed in deallocation.
Why this is useful?
When we want to do an operation with only a part of a vector. For example
```C++
float64_t CCombinedDotFeatures::dense_dot(int32_t vec_idx1, const ... | diff --git a/src/shogun/lib/SGVector.cpp b/src/shogun/lib/SGVector.cpp
index a5a913b45f9..47679f2f493 100644
--- a/src/shogun/lib/SGVector.cpp
+++ b/src/shogun/lib/SGVector.cpp
@@ -70,23 +70,24 @@ SGVector<T>::SGVector() : SGReferencedData()
init_data();
}
-template<class T>
+template <class T>
SGVector<T>::SGVec... | 2 | 2 | 0 | [{"id": "G0", "claim": "SGVector-style slicing should also be available for SGMatrix, e.g. [[1,2,3],[4,5,6],[7,8,9]].slice(0,2) returning the first two columns.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Slicing in SGMatrix and SGVector should be uni... | null |
shogun-toolbox__shogun__4681 | shogun-toolbox/shogun | 4,681 | defect | 035a2d06a99609c2533da0d5d622d08193a430c0 | 7879939bb4e07625e797bb0daa69a98f18a2c84e | Feature iterator | * Adds an iterator to iterable feature and label classes. ~~If a feature has a subset it will sort the subset in order to reduce cache misses.~~ No sorting is performed as it slows down performance significantly.
According to micro benchmarks done on my laptop using an iterator is consistently faster than using a for... | diff --git a/src/shogun/base/subset_iterators.h b/src/shogun/base/subset_iterators.h
new file mode 100644
index 00000000000..5c587302a5b
--- /dev/null
+++ b/src/shogun/base/subset_iterators.h
@@ -0,0 +1,86 @@
+/*
+ * This software is distributed under BSD 3-clause license (see LICENSE file).
+ *
+ * Authors: Gil Hoben
... | 14 | 7 | 3 | [{"id": "G0", "claim": "It is unclear whether the iterator should reference-count the object pointer it holds, and if the feature object were on the stack the referencing would cause issues.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "clang-format ... | null |
shogun-toolbox__shogun__4687 | shogun-toolbox/shogun | 4,687 | defect | 6fb8b6f613a6aada95cd9f53b588111ccff6279b | dd6194c08f2e80dacaed2b88be53ef60d6d29613 | Use aligned malloc for SGVector and SGMatrix allocation | @vigsterkr I made SG_ALIGNED_MALLOC reduce to SG_MALLOC if aligned malloc is not available, so as to not repeat the macroed if statement. But now SG_CALLOC is turned to aligned malloc followed by std::fill, so I'm not sure. | diff --git a/src/shogun/lib/SGMatrix.cpp b/src/shogun/lib/SGMatrix.cpp
index adde27c41c5..0fb97079474 100644
--- a/src/shogun/lib/SGMatrix.cpp
+++ b/src/shogun/lib/SGMatrix.cpp
@@ -53,7 +53,9 @@ template <class T>
SGMatrix<T>::SGMatrix(index_t nrows, index_t ncols, bool ref_counting)
: SGReferencedData(ref_counting)... | 4 | 2 | 1 | [{"id": "G0", "claim": "When aligned malloc is not available the build should emit a compile-time warning that the memory is not actually aligned, using #pragma message on MSVC where #warning is unsupported.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
shogun-toolbox__shogun__4761 | shogun-toolbox/shogun | 4,761 | defect | c948611b1e075b731d92c109d22abe79279b0a77 | 4d4b05d0bbbb0bdb35d7f1e20e3ee5b24bd9ff57 | Interface SGObject::get visitor pattern | Visitor pattern to have a single SGObject::get for Python API without trial and error | diff --git a/src/interfaces/python/swig_typemaps.i b/src/interfaces/python/swig_typemaps.i
index 139982eb9ad..d7dfa9c0e3d 100644
--- a/src/interfaces/python/swig_typemaps.i
+++ b/src/interfaces/python/swig_typemaps.i
@@ -1029,22 +1029,6 @@ TYPEMAP_SPARSEFEATURES_OUT(PyObject, NPY_OBJECT)
%pythoncode %{
import sy... | 8 | 7 | 2 | [{"id": "G0", "claim": "The sg_to_npy_type specializations in shogun.i should perhaps be centralised somewhere instead of being defined inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "%ignore shogun::CSGObject::get and %ignore CSGObject::... | null |
shogun-toolbox__shogun__4801 | shogun-toolbox/shogun | 4,801 | defect | 03a0a2cafbc14d2725667ad260d8a9aee4ce62cb | 71c111202ef061957533e0cb2b5b0a49186046b1 | Add unit tests for utils::safe_convert | Fixes https://github.com/shogun-toolbox/shogun/issues/4580 | diff --git a/tests/unit/utils/converter_unittest.cc b/tests/unit/utils/converter_unittest.cc
new file mode 100644
index 00000000000..cd31b5fa659
--- /dev/null
+++ b/tests/unit/utils/converter_unittest.cc
@@ -0,0 +1,84 @@
+#include "sg_gtest_utilities.h"
+
+#include <gtest/gtest.h>
+#include <shogun/lib/sg_types.h>
+#in... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add the fix to the safe_convert converter utility so the tests disabled with the TODO (Infinity/NaN conversions) can be enabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Do not write the 'fails for long double' notice... | null |
shogun-toolbox__shogun__4810 | shogun-toolbox/shogun | 4,810 | defect | e900a9e602763e1ddc8ac98bb0448ad0a68593e0 | a71ab40adabea9b7dcc7b8f7bb60ff3071ba3f17 | Fix 4795 | Fix #4795 | diff --git a/src/shogun/multiclass/tree/CARTree.cpp b/src/shogun/multiclass/tree/CARTree.cpp
index 51877da44e1..aa72b0b35f9 100644
--- a/src/shogun/multiclass/tree/CARTree.cpp
+++ b/src/shogun/multiclass/tree/CARTree.cpp
@@ -109,7 +109,30 @@ std::shared_ptr<MulticlassLabels> CARTree::apply_multiclass(std::shared_ptr<Fe... | 12 | 8 | 2 | [{"id": "G0", "claim": "The explicit `shogun::` namespace qualification on SGMatrix here is unnecessary and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Allocating an empty SGMatrix and then writing to feature_matrix.matrix ... | null |
shogun-toolbox__shogun__4869 | shogun-toolbox/shogun | 4,869 | defect | 51b09e7e487bf2db020237dcbb82168ebcfa3fe6 | 700e23aa0890c915b075ce84069a605b248b231c | add feature importances for CARTree | fix #4851 | diff --git a/src/shogun/multiclass/tree/CARTree.cpp b/src/shogun/multiclass/tree/CARTree.cpp
index 51877da44e1..8288f2b1311 100644
--- a/src/shogun/multiclass/tree/CARTree.cpp
+++ b/src/shogun/multiclass/tree/CARTree.cpp
@@ -244,7 +244,7 @@ bool CARTree::train_machine(std::shared_ptr<Features> data)
auto dense_featur... | 7 | 6 | 3 | [{"id": "G0", "claim": "The feature importances should be exposed through the parameter machinery - an SG_ADD of m_feature_importances rather than a watch_method on get_feature_importance - so they can be retrieved with .get() from the SWIG interfaces.", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
shogun-toolbox__shogun__4955 | shogun-toolbox/shogun | 4,955 | defect | 1385cc18e7d14c89c493be0638d2a6e538fe566b | d087dcd646e6fe6ff0230bc640a150817dbd4ea0 | Refactor RKS | Tried to refactor some code using our linalg interface.I've deliberately left some parts as I've some doubts regarding it. I've done the benchmarks, here are the results
**Without changes**

**Wi... | diff --git a/src/shogun/features/RandomFourierDotFeatures.cpp b/src/shogun/features/RandomFourierDotFeatures.cpp
index ae37f9e8e3d..40fd8c512d2 100644
--- a/src/shogun/features/RandomFourierDotFeatures.cpp
+++ b/src/shogun/features/RandomFourierDotFeatures.cpp
@@ -8,7 +8,7 @@
#include <shogun/features/RandomFourierDot... | 10 | 6 | 0 | [{"id": "G0", "claim": "The rewritten GAUSSIAN branch draws a single random number and adds it to the vector without zeroing it first, instead of drawing from the distribution vlen times.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A unit test sh... | null |
shogun-toolbox__shogun__4962 | shogun-toolbox/shogun | 4,962 | defect | ad94fd806a8388600c22d70e6292d49711df797c | 044545dd5289e6a662e9bcc18768cfc56a90de64 | Change KMeans "mus" parameter | fix #4847 | diff --git a/src/shogun/clustering/KMeans.cpp b/src/shogun/clustering/KMeans.cpp
index aa4743ec6fc..3e9a06753f1 100644
--- a/src/shogun/clustering/KMeans.cpp
+++ b/src/shogun/clustering/KMeans.cpp
@@ -133,7 +133,7 @@ void KMeans::Lloyd_KMeans(SGMatrix<float64_t> centers, int32_t num_centers)
}
else
{
... | 6 | 6 | 3 | [{"id": "G0", "claim": "The SG_ADD of cluster_centers in KMeansBase::init() should be replaced by the watch_method, and a separate SG_ADD for the initial cluster centres should be added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "KMeans needs a way t... | null |
shogun-toolbox__shogun__5008 | shogun-toolbox/shogun | 5,008 | defect | d9258da32b627f9fec3e3f5ebfa84a2d3f322135 | a8908a8dfa2a5f0f056b6b4180e38a0ea9b56e4b | Added Elementwise division | Added elementwise division with [Eigen's division operator](https://eigen.tuxfamily.org/dox/classEigen_1_1VectorwiseOp.html#aa154a8407885a9ad51504180f6d7a163) one thing to note however, the case whereby there is division by zero isn't yet handled | diff --git a/src/shogun/mathematics/linalg/LinalgBackendBase.h b/src/shogun/mathematics/linalg/LinalgBackendBase.h
index 5ec6e05d264..3bd8c0212e3 100644
--- a/src/shogun/mathematics/linalg/LinalgBackendBase.h
+++ b/src/shogun/mathematics/linalg/LinalgBackendBase.h
@@ -404,6 +404,56 @@ namespace shogun
BACKEND_GE... | 6 | 4 | 1 | [{"id": "G0", "claim": "The transpose variants of element_div are unnecessary, add a lot of code and compile time, and should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Division by zero in element_div yields Eigen's inf/NaN (undefined for... | null |
shogun-toolbox__shogun__5075 | shogun-toolbox/shogun | 5,075 | defect | 3d99460a74f40649645488f095a75ea21be38df6 | e87eeb696edca0736898daf068707cf7aca66e6b | Refactor KernelMachine | i think `KernelMachine` is the only left part of the non-parametric model but maybe have other edge cases. | diff --git a/src/shogun/machine/KernelMachine.cpp b/src/shogun/machine/KernelMachine.cpp
index d8813cabb54..fa233833da6 100644
--- a/src/shogun/machine/KernelMachine.cpp
+++ b/src/shogun/machine/KernelMachine.cpp
@@ -38,13 +38,13 @@ struct S_THREAD_PARAM_KERNEL_MACHINE
};
#endif // DOXYGEN_SHOULD_SKIP_THIS
-KernelM... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the extra blank line the PR added after the `protected:` accessor in KRRNystrom.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The KernelMachine kernel/copy constructors should delegate to KernelMachine() instea... | null |
shogun-toolbox__shogun__5080 | shogun-toolbox/shogun | 5,080 | defect | bb84313c7161411dcc5c2dbe6168399385f1776a | 6ff961ac85d3f97c3d5c20121d90b0fe3ac4bb64 | Add kernel support to RFGP | Following are the main things I've changed along with some accommodations.
1. Move sample method to ShiftInvariant Kernel
2. Add RandomMixin to ShiftInvariant Kernel
3. Minor cleanups
4. Add new constructor to RFGP
I've took the liberty to remove doc strings here and there, so feel free to point out mistakes!
... | diff --git a/src/shogun/kernel/GaussianKernel.cpp b/src/shogun/kernel/GaussianKernel.cpp
index 264ec722828..d1d2595036c 100644
--- a/src/shogun/kernel/GaussianKernel.cpp
+++ b/src/shogun/kernel/GaussianKernel.cpp
@@ -121,3 +121,18 @@ float64_t GaussianKernel::distance(int32_t idx_a, int32_t idx_b) const
{
return Shi... | 13 | 9 | 5 | [{"id": "G0", "claim": "The class and file should be renamed away from RandomFourierGaussPreproc (the author proposed \"RandomFourierPreprocessor\", later \"RFPreprocessor\") now that the preprocessor has been made kernel-independent.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"... | null |
shomali11__go-interview__2 | shomali11/go-interview | 2 | defect | 6e07854b2084a8519765ea3b43fabe95a16f2001 | 145cfeed234361c6a88fb62eda8aa87017ada270 | Add common set functions to hash_set.go | Union, intersection, symmetric difference, subtraction, and a copy utility function | diff --git a/datastructures/sets/hashsets/hash_set.go b/datastructures/sets/hashsets/hash_set.go
index 8a58e24..597cc67 100644
--- a/datastructures/sets/hashsets/hash_set.go
+++ b/datastructures/sets/hashsets/hash_set.go
@@ -84,3 +84,53 @@ func (s *HashSet) IsEmpty() bool {
func (s *HashSet) Size() int {
return len(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comments of the exported functions should be updated to start with the name of the function, as the linter would otherwise complain.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shopspring__decimal__123 | shopspring/decimal | 123 | defect | 501661573f6073b905cf2543d17904af87099881 | 0e940a34bf97842ed323278a2c71832f2ef9d6f4 | Add Copy func | There is need to make independence copy of Decimal in any cases. I think it's better have special function for it due to clean code. | diff --git a/decimal.go b/decimal.go
index 4876f8c9..beff48a4 100644
--- a/decimal.go
+++ b/decimal.go
@@ -1553,7 +1553,7 @@ func (d Decimal) Sin() Decimal {
sign = !sign
j -= 4
}
- z := d.Sub(y.Mul(PI4A)).Sub(y.Mul(PI4B)).Sub(y.Mul(PI4C)) // Extended precision modular arithmetic
+ z := d.Sub(y.Mul(PI4A)).Sub... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks habuvo to revert the whitespace-only modification of the Sin() modular-arithmetic line so it stays as it is on master, offering to address any gofmt issue in a separate PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id":... | null |
shopspring__decimal__166 | shopspring/decimal | 166 | defect | 408a2507e1149855f0f3dbce6cd8bc665ddba5a9 | d2fe51b87b2e0a076c7e9b8192d128118c80d3dc | remove 15 interval RoundCash | Addresses: https://github.com/shopspring/decimal/issues/89
Original PR: https://github.com/shopspring/decimal/pull/66
Not sure why 15 interval was included in the original PR as there is no information online about it. @SchumacherFM could you explain? | diff --git a/decimal.go b/decimal.go
index 914e704a..ca702c50 100644
--- a/decimal.go
+++ b/decimal.go
@@ -844,10 +844,9 @@ func (d Decimal) RoundBank(places int32) Decimal {
// RoundCash aka Cash/Penny/öre rounding rounds decimal to a specific
// interval. The amount payable for a cash transaction is rounded to the ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should not only remove the 15-interval code but also the comments in decimal.go that still document the 15 rounding interval.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "References to interval = 15 shoul... | null |
shopspring__decimal__192 | shopspring/decimal | 192 | defect | 66332b32a9d5bfdf6cfcf6c997a5b5cae39dccb9 | f74a52bd67bc1432d1d080e3d23180253980d4b5 | Added XML support for NullDecimal | * Added UnmarshalText and MarshalText support for NullDecimal
* Add tests for XML operations on NullDecimal | diff --git a/decimal.go b/decimal.go
index c0404f1d..524f2890 100644
--- a/decimal.go
+++ b/decimal.go
@@ -1307,6 +1307,31 @@ func (d NullDecimal) MarshalJSON() ([]byte, error) {
return d.Decimal.MarshalJSON()
}
+// UnmarshalText implements the encoding.TextUnmarshaler interface for XML
+// deserialization
+func (... | 4 | 3 | 1 | [{"id": "G0", "claim": "The empty-string branch in NullDecimal.UnmarshalText may be unnecessary; the following if statement might be enough.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a short comment above the empty-string check denoting that it ha... | null |
shopspring__decimal__234 | shopspring/decimal | 234 | defect | cc4584f0a5ded403bad41e0a4f58e0748aa38fdd | 9d34c3adda54788b4c22805760f4201202028d79 | add NewNullDecimal | Since `NullDecimal{d, true}` is discouraged (and static analysis tools like `go vet` will alert about it) adding `NewNullDecimal` seems like a nice way make code a bit more readable
```
nd := NewNullDecimal(d)
// vs
nd := NullDecimal{Decimal: d, Valid: true}
``` | diff --git a/decimal.go b/decimal.go
index 4f6d81ae..d2c0c518 100644
--- a/decimal.go
+++ b/decimal.go
@@ -1411,6 +1411,13 @@ type NullDecimal struct {
Valid bool
}
+func NewNullDecimal(d Decimal) NullDecimal {
+ return NullDecimal{
+ Decimal: d,
+ Valid: true,
+ }
+}
+
// Scan implements the sql.Scanner in... | 2 | 2 | 0 | [{"id": "G0", "claim": "In TestNewNullDecimal, use `Errorf` with an appropriate error message instead of `t.FailNow()` for the `!nd.Valid` check, to stay consistent with the rest of the tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Te... | null |
shopspring__decimal__253 | shopspring/decimal | 253 | defect | 2ae6f298b86af9c8c8c6f8c1c85a0bd651aefe84 | 75f3d7445e4227daf0a6e208a321ae3ad3530c67 | Fix binary marshalling of zero value | It seems that the recent release has trouble to unmarshal the zero value of the Decimal struct because it is now checking for a correct size of the exponent plus the value while a nil big Int will be encoded with no byte. | diff --git a/decimal.go b/decimal.go
index 7686af12..9f5c40f1 100644
--- a/decimal.go
+++ b/decimal.go
@@ -1353,9 +1353,9 @@ func (d Decimal) MarshalJSON() ([]byte, error) {
// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface. As a string representation
// is already used when encoding to text, thi... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new comment should use \"may\" instead of \"can\" (\"The GOB encoded value may be empty\").", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error message should be updated to \"expected at least 4 bytes\" to match th... | null |
shopspring__decimal__288 | shopspring/decimal | 288 | defect | f55dd564545cec84cf84f7a53fb3025cdbec1c4f | f3eac4fb6504eb4c706bd4f71a0362bf9858d11a | Add NewFromBigRat function | This adds a convenience helper function that converts a `big.Rat` to a `Decimal`. Since it is impossible to guarantee an exact accuracy, a precision attribute is used.
Just as the `Div` method has a `DivRounded` method counterpart, perhaps this convenience function should have one as well? It could use the `Division... | diff --git a/decimal.go b/decimal.go
index c614ea79..c833a979 100644
--- a/decimal.go
+++ b/decimal.go
@@ -125,6 +125,25 @@ func NewFromBigInt(value *big.Int, exp int32) Decimal {
}
}
+// NewFromBigRat returns a new Decimal from a big.Rat. The numerator and
+// denominator are divided and rounded to the given prec... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc-comment examples call NewFromBigRat as `d1, err := ...` although the method returns no error, and the reviewer also asks to leave the output next to those examples.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shopspring__decimal__356 | shopspring/decimal | 356 | defect | d00399e16190da4f5ec2ac9d06a1fa08bc727f07 | 6e15183b56ed2af36015bcacb4624e5cbee288cf | Optimize NumDigits | Dividing BitLen by math.Log2(10) is what math/big does underneath
Not including the Int64/Uint64 check makes this slightly slower than old method for small integers
Included 2 benchmarks, for 10 digit numbers & 100 digit numbers:
```
-- before
> go test -bench=NumDigit -run=NumDigit
goos: linux
goarch: amd... | diff --git a/decimal.go b/decimal.go
index eed845f7..941aae49 100644
--- a/decimal.go
+++ b/decimal.go
@@ -129,11 +129,10 @@ func NewFromBigInt(value *big.Int, exp int32) Decimal {
//
// Example:
//
-// d1 := NewFromBigRat(big.NewRat(0, 1), 0) // output: "0"
-// d2 := NewFromBigRat(big.NewRat(4, 5), 1) ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new NumDigits is wrong for large decimals (e.g. 500 digits in base and 500 in fractional part returns 999 instead of 1000) because the error-correction check is applied unconditionally instead of only when check >= 0.", "category": "correctness", "verdict": "supported", "priority": "P0", "sc... | null |
shopspring__decimal__403 | shopspring/decimal | 403 | defect | a1bdfc355e9c71119322b748c95f7d6b82566e30 | 5a62cf40a4b3828c1bc9ba23b0669458529e1c55 | `UnmarshalJSON`, `Scan` and `NewFromString` performance improvements | This PR improves `UnmarshalJSON` performance by reducing unnecessary allocation caused by `unquoteIfQuoted` function. This also touches on `Scan` method to split `default` case into `string` and `[]byte` cases.
This PR also slightly touches `NewFromString` function by making so scientific notation and dots are chec... | diff --git a/decimal.go b/decimal.go
index a37a2301..0b223a89 100644
--- a/decimal.go
+++ b/decimal.go
@@ -182,8 +182,23 @@ func NewFromString(value string) (Decimal, error) {
var intString string
var exp int64
- // Check if number is using scientific notation
- eIndex := strings.IndexAny(value, "Ee")
+ // Check ... | 1 | 1 | 1 | [{"id": "G0", "claim": "For consistency with the dot handling below, the loop should, on finding an 'e' or 'E' when eIndex is already set, return an error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shopspring__decimal__54 | shopspring/decimal | 54 | defect | d5fda14026cb2f519715d2714468043fa0ace48e | 98d65af965646b36582ab19b4c7f2203b61389f9 | added GT, GTE, LT, LTE | closes #53 | diff --git a/decimal.go b/decimal.go
index cf0f3ce8..18122c5a 100644
--- a/decimal.go
+++ b/decimal.go
@@ -423,6 +423,28 @@ func (d Decimal) Equals(d2 Decimal) bool {
return d.Equal(d2)
}
+// Greater Than (GT) returns true when d is greater than d2.
+func (d Decimal) GT(d2 Decimal) bool {
+ return d.Cmp(d2) == 1
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comparison methods should be named explicitly GreaterThan, GreaterThanOrEqual, LessThan, and LessThanOrEqual instead of GT, GTE, LT, LTE, since out of context it is hard to tell at a glance what e.g. number.LT(otherNumber) does.", "category": "design", "verdict": "supported", "priority": "P2... | null |
showwin__speedtest-go__125 | showwin/speedtest-go | 125 | defect | e4a8852e08bc77061d59df88937d659a3b24cd95 | 9e9c499cd8a7189347f2aab85c352cf08d2b06fc | feat: add download, upload, ping tests duration | In this PR I added a ping, download and upload duration. Plus one common function to measure all the things at once (one by one of course). | diff --git a/speedtest/request.go b/speedtest/request.go
index 15455d0..1243cbc 100644
--- a/speedtest/request.go
+++ b/speedtest/request.go
@@ -91,11 +91,15 @@ func (s *Server) downloadTestContext(ctx context.Context, downloadRequest downlo
dbg.Println("Download test disabled")
return nil
}
+ start := time.Now... | 9 | 7 | 0 | [{"id": "G0", "claim": "The new test-duration reporting should also include the time spent fetching user information and servers, not only the tests themselves.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestDuration should use values instead of poin... | null |
showwin__speedtest-go__91 | showwin/speedtest-go | 91 | defect | b1ddc48cb6a22ad09b5f6ca27fd0e76db79868a0 | 6e7c38cb3ad04adf53ee9000b9ef6f9c3c488a50 | feature: Adding custom-url support | Hoping to resolve #74 with this one! This adds a little helper function in the `speedtest` module that creates a new *Server object from a URL. Example:
```go
s, err := speedtest.CustomServer("https://example.com/upload.php")
checkError(err)
...
```
This can be used directly from the CLI app here ... | diff --git a/README.md b/README.md
index cf5b066..0b677e2 100644
--- a/README.md
+++ b/README.md
@@ -31,15 +31,16 @@ $ speedtest --help
usage: speedtest-go [<flags>]
Flags:
- --help Show context-sensitive help (also try --help-long and --help-man).
- -l, --list Show available speed... | 4 | 4 | 1 | [{"id": "G0", "claim": "The custom-url if block should be moved down so that showCityList/showUser handling is not skipped when --custom-url is used, and to minimize the scope of the if-else.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CustomServe... | null |
shuakami__qq-chat-exporter__361 | shuakami/qq-chat-exporter | 361 | defect | deacb7fef7f0016142d94dc1844fb853d5663a1e | fb68bfb623a5070e5f5fe7b36d5846dc712ddc61 | feat: add group member name export option | ## Summary
- add a selectable `preferGroupMemberName` export option for single export, batch export, and scheduled export
- wire the option through frontend requests, backend export options, and scheduled export config
- make both parser chains respect the option so group exports can switch between group member names a... | diff --git a/plugins/qq-chat-exporter/lib/api/ApiServer.ts b/plugins/qq-chat-exporter/lib/api/ApiServer.ts
index cd750277..1e5da588 100644
--- a/plugins/qq-chat-exporter/lib/api/ApiServer.ts
+++ b/plugins/qq-chat-exporter/lib/api/ApiServer.ts
@@ -3666,6 +3666,7 @@ export class QQChatExporterApiServer {
... | 2 | 2 | 2 | [{"id": "G0", "claim": "ScheduledExportManager should default the newly added `preferGroupMemberName` to `true` (with `??`) so scheduled tasks created before this change keep the legacy group-card-first naming instead of silently flipping to nickname/QQ-number naming.", "category": "correctness", "verdict": "supported"... | null |
shuakami__qq-chat-exporter__401 | shuakami/qq-chat-exporter | 401 | defect | a89bfb594d945721bc923bea92e6ddb715820659 | 52992272de6861e998b003bd2390f6857496e98a | feat(auth): one-click login URL and richer token-finding help (#287) | ## Summary
Framework 模式下用户没有内嵌登录入口,每次都得手动从 `~/.qq-chat-exporter/security.json` 抠 `accessToken` 粘贴;QQ 大版本更新或重新登录后 token 还会突然失效,文档里也没说清楚。这个 PR 把入口体感拉一档:
- `ApiServer` 启动日志多打一行「一键登录」URL,把 `accessToken` 直接拼进 `/qce-v4-tool/auth?token=...`。Production 模式从 `serverAddresses.external/local` 拼绝对地址;development 模式从 `frontendStatu... | diff --git a/plugins/qq-chat-exporter/lib/api/ApiServer.ts b/plugins/qq-chat-exporter/lib/api/ApiServer.ts
index 8040d3ef..bc8ce099 100644
--- a/plugins/qq-chat-exporter/lib/api/ApiServer.ts
+++ b/plugins/qq-chat-exporter/lib/api/ApiServer.ts
@@ -5494,15 +5494,26 @@ export class QQChatExporterApiServer {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "When a user is already authenticated and opens a one-click URL like /qce-v4-tool/auth?token=..., the early return redirects immediately and skips the later replaceState cleanup, so the token-bearing URL remains in browser history/address-bar navigation; the token query should be removed before r... | null |
shuding__nextra__1645 | shuding/nextra | 1,645 | defect | 993f9469e59ba3e488d96f2c8822c322f65e8fd9 | 1700d196a24016d2f6f30cf78e2cdd338ae086b6 | Support for Custom Header Ids - replaces #553 | Replaces #553
Sometimes it's helpful to be able to specify a slug for a header in the Markdown source, e.g., to shorten it, to avoid collisions in a way that is robust to re-ordering, or to avoid having Unicode characters in URLs:
### This is a really long title for a long section [#long-section]
This PR adds ... | diff --git a/examples/swr-site/pages/docs/_meta.en-US.json b/examples/swr-site/pages/docs/_meta.en-US.json
index c99bbcf571..f24d76878d 100644
--- a/examples/swr-site/pages/docs/_meta.en-US.json
+++ b/examples/swr-site/pages/docs/_meta.en-US.json
@@ -36,6 +36,7 @@
"newWindow": true
},
"wrap-toc-items": "Wrap... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the Spanish and Russian custom-header-ids example pages because a translation is not needed for this change, and instead add tests for the feature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Implement the feature witho... | null |
shuding__nextra__2151 | shuding/nextra | 2,151 | defect | bf2636a20a7b81a850476a549b73e1b6dc20c278 | 951e9078ebe68be890dc0ee3daa63bbf7e25ac88 | use github-slugger for custom heading ids to prevent duplicated headings | As noticed by @uonr on his issue at [vercel/swr-site#530](https://github.com/vercel/swr-site/pull/530), same headings generate the same anchor ids. This PR adds checking of existent headings before pushing, and, if necessary, adds a prefix based on the closest lower depth heading.
Here's a comparision from the SWR's... | diff --git a/packages/nextra/src/mdx-plugins/remark-headings.ts b/packages/nextra/src/mdx-plugins/remark-headings.ts
index ad3e0ba25d..980a16c684 100644
--- a/packages/nextra/src/mdx-plugins/remark-headings.ts
+++ b/packages/nextra/src/mdx-plugins/remark-headings.ts
@@ -46,7 +46,33 @@ export const remarkHeadings: Plugi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR's custom duplicate-heading prefixing should be replaced by letting github-slugger handle duplicates via slugger.slug((node.data?.hProperties as HProperties)?.id || value), and the custom-id handling should also apply to h1 since a page can contain multiple h1 headings.", "category": "corr... | null |
shuding__nextra__3338 | shuding/nextra | 3,338 | defect | 82fc267e8acca22a7c9cc16bc38632da703bbcee | 404a256ad9c40134319330d5c7c2ac6f787a3314 | add logo for golang (#3337) | <!--
Thank you for contributing to this project! You must fill out the information below before we can review this pull request. By explaining why you're making a change (or linking to an issue) and what changes you've made, we can triage your pull request to the best possible team for review.
-->
### Why:
I'd ... | diff --git a/.changeset/rare-ravens-guess.md b/.changeset/rare-ravens-guess.md
new file mode 100644
index 0000000000..6047ec0296
--- /dev/null
+++ b/.changeset/rare-ravens-guess.md
@@ -0,0 +1,5 @@
+---
+'nextra': patch
+---
+
+Added golang logo for code blocks.
diff --git a/packages/nextra/src/client/icons/go.svg b/pac... | 2 | 2 | 1 | [{"id": "G0", "claim": "The golang logo icon looks bad on dark mode.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changeset should mark all three packages as minor instead of 'nextra': patch.", "category": "correctness", "verdict": "supported", "pr... | null |
shuding__nextra__3460 | shuding/nextra | 3,460 | defect | 875842bcc79d6cc1167c92c8067c65290d4496a5 | f2e76ac2689586dae9ec19314f35463d468bfd19 | [v4] avoid duplicate keys for search result item | <!--
Thank you for contributing to this project! You must fill out the information below before we can
review this pull request. By explaining why you're making a change (or linking to an issue) and
what changes you've made, we can triage your pull request to the best possible team for review.
-->
## Why:
Clo... | diff --git a/docs/app/docs/guide/advanced/mermaid/page.mdx b/docs/app/docs/guide/advanced/mermaid/page.mdx
index 32bb266d94..c9651fefc4 100644
--- a/docs/app/docs/guide/advanced/mermaid/page.mdx
+++ b/docs/app/docs/guide/advanced/mermaid/page.mdx
@@ -1,4 +1,3 @@
-import { useMDXComponents } from 'nextra-theme-docs'
im... | 1 | 1 | 1 | [{"id": "G0", "claim": "The sub-results are not really duplicates because they are different, so keying search result items by URL plus index is the wrong fix; the duplicate keys come from the shared toggle-visibility-section component, which needs a custom heading id set up instead.", "category": "correctness", "verdi... | null |
shuding__nextra__4149 | shuding/nextra | 4,149 | defect | 2c752aa639496ea2f668b4d6c91b59178eb33385 | e9cccac04e7854668a73a968dec9a85980353e26 | fix: normalize path with nextjs `normalizeAppPath` utility function | ## Why:
Closes: #4148
<!-- If there's an existing issue for your change, please link to it above. -->
## What's being changed (if available, include any code snippets, screenshots, or gifs):
Use Next.js utility function `normalizeAppPath` to align path normalization behavior.
## Check off the following:
... | diff --git a/.changeset/friendly-windows-count.md b/.changeset/friendly-windows-count.md
new file mode 100644
index 0000000000..8cc7f1f3f1
--- /dev/null
+++ b/.changeset/friendly-windows-count.md
@@ -0,0 +1,5 @@
+---
+"nextra": patch
+---
+
+fix route group within `app/` dir crash the `convertToPageMap`
diff --git a/do... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefix the comment above the disabled Tailwind config with `TODO:` so it reads `// TODO: Enable once \\`eslint-plugin-tailwindcss\\` will support Tailwind CSS v4`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shuding__nextra__4334 | shuding/nextra | 4,334 | defect | 8d5762772285d2d78c4d543aefa152c91cafdb89 | 3f6c902c4a054e1bf58d56313c6d9c63ce1f7c22 | feat: adapt original GitHub Alerts | Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
## Why:
Closes: #4310 #2352
## What's being changed (if available, include any code snippets, screenshots, or gifs):
Most of the changes are already described in the issue which will be closed.
Another thing is that I copied all icons of GitHub Alerts from G... | diff --git a/.changeset/adapt-original-gh-alerts.md b/.changeset/adapt-original-gh-alerts.md
new file mode 100644
index 0000000000..537f2414b4
--- /dev/null
+++ b/.changeset/adapt-original-gh-alerts.md
@@ -0,0 +1,7 @@
+---
+"nextra-theme-blog": patch
+"nextra-theme-docs": patch
+"nextra": patch
+---
+
+feat: adapt orig... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `type?: CalloutType | GitHubAlertType` union is redundant because `CalloutType` already has all union types of `GitHubAlertType`, so the suggestion is to declare it as just `type?: CalloutType`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
shuding__nextra__4778 | shuding/nextra | 4,778 | defect | a8e642ff6687be1d0cf8ad24d5f3523c2fe61336 | 4f39d2fc0b07633c05c9d868049bd7d792c17736 | fix copy page button does not return the correct page contents due to cached MDX compiler | closes https://github.com/shuding/nextra/issues/4773 | diff --git a/.changeset/brave-shrimps-slide.md b/.changeset/brave-shrimps-slide.md
new file mode 100644
index 0000000000..87ac481f07
--- /dev/null
+++ b/.changeset/brave-shrimps-slide.md
@@ -0,0 +1,8 @@
+---
+'nextra-theme-docs': minor
+'nextra': minor
+---
+
+fix copy page button does not return the correct page conte... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changeset description should name the prop as `copyPageButton` (no stray spaces inside the backticks) instead of ` copyPageButton `.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shurcooL__markdownfmt__3 | shurcooL/markdownfmt | 3 | defect | 7a6ce01697d17c7f7a28f1ca731f23fe8437cd2c | df6aebcfbe76de5c2828256f61db21408ffceab1 | Adjust header for wide character. | Character width and the number of bytes are different in some languages.
input
```
# 日本語
```
currently
```
日本語
=========
```
should be
```
日本語
======
```
| diff --git a/Godeps b/Godeps
index 9eca64d..210f469 100644
--- a/Godeps
+++ b/Godeps
@@ -7,6 +7,11 @@
"Comment": "null-125",
"Rev": "88fa3094706609347d6fa1e362d946bbc207fceb"
},
+ {
+ "ImportPath": "github.com/mattn/go-runewidth",
+ "Comment": "go1",
+ "Rev": "ce86f93d9cc06f69ba0441bbe37c8845e0dc9204"... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use runewidth.StringWidth(out.String()[textMarker:]) instead of runewidth.StringWidth(string(out.Bytes()[textMarker:])).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Swap the order of the diff() call's parameters to dif... | null |
shurcooL__markdownfmt__45 | shurcooL/markdownfmt | 45 | defect | 5ba28a0bf0048ea9b00cecd23688dcf6cfb23fe5 | 34a80237d81b3fcd2c320e76b57c62953dd3696e | Refactor testcases | Refactor the test cases into input/output files to make it simpler to add
and modify them.
Test cases can now be defined by creating a file inside
`testdata/default` (for the default test suite) or by creating a new
directory in `testdata`. This new directory should contain a set of
input files (`*.in.md`) and m... | diff --git a/markdown/main_test.go b/markdown/main_test.go
index 0af1336..93ecdbc 100644
--- a/markdown/main_test.go
+++ b/markdown/main_test.go
@@ -2,329 +2,97 @@ package markdown_test
import (
"bytes"
+ "encoding/json"
+ "flag"
"io/ioutil"
"log"
"os"
"os/exec"
+ "path/filepath"
+ "strings"
"testing"
... | 5 | 5 | 0 | [{"id": "G0", "claim": "Revert the two examples so they continue to show up in the package documentation on godoc.org.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the update flag slightly so its name is consistent with the naming used ... | null |
shurcooL__vfsgen__86 | shurcooL/vfsgen | 86 | defect | 92b8a710ab6cab4c09182a1fcf469157bc938f8f | 9128c8bbf590ba477ac2cbe1caccd0f89393aaf7 | Enable BestCompression for Gzip Writer | Fixes: https://github.com/shurcooL/vfsgen/issues/85 | diff --git a/generator.go b/generator.go
index a9c8dd6..43f95b7 100644
--- a/generator.go
+++ b/generator.go
@@ -170,7 +170,10 @@ func writeCompressedFileInfo(w io.Writer, file *fileInfo, r io.Reader) error {
return err
}
sw := &stringWriter{Writer: w}
- gw := gzip.NewWriter(sw)
+ gw, err := gzip.NewWriterLevel(... | 2 | 2 | 0 | [{"id": "G0", "claim": "Simplify the code to `gw, _ := gzip.NewWriterLevel(sw, gzip.BestCompression)` because gzip.BestCompression is a valid level and the returned error is guaranteed to be nil, making the error check dead code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
shuttle-hq__shuttle__1349 | shuttle-hq/shuttle | 1,349 | defect | bf6161cfeac9c11776b378bc8fbd156869fc5ad2 | bcbfed90770fec4472619e7c95f90cde001c4fca | fix(deployer): handle cargo fetch without blocking logs, use async channels | ## Description of change
<!-- Please write a summary of your changes and why you made them. -->
<!-- Be sure to reference any related issues by adding `Closes #`. -->
Fixes #1322 and some more
- Using blocking crossbeam channels was causing logs to be delayed. Switched over to tokio channels everywhere possible... | diff --git a/Cargo.lock b/Cargo.lock
index b6bc4fc576..fe3b92e0c0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1137,7 +1137,6 @@ dependencies = [
"chrono",
"clap",
"clap_complete",
- "crossbeam-channel",
"crossterm 0.27.0",
"dialoguer",
"dirs 5.0.1",
@@ -4504,15 +4503,6 @@ version = "0.1.0"
source = "regis... | 10 | 4 | 2 | [{"id": "G0", "claim": "The build_failed error log should keep the structured `error` field (used in Honeycomb/DD) instead of the PR's inline `{error}` formatting.", "category": "observability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `trace!(?line, \"received build ... | null |
shuttle-hq__shuttle__144 | shuttle-hq/shuttle | 144 | defect | 23e6c91583ce2db29f9af459176436e5404c3021 | 442b9a59b4f7b1408c71fd7c55a0bdc023da0b6e | feat: implement secrets | I spent a considerable amount of time trying out different ways of doing this but ultimately settle on a pretty simple system wherein `PgPool` implements a `SecretStore` which fetches secrets stored in a table appropriately named `secrets` in the database. Storing secrets directly in the user-accessible database allows... | diff --git a/Cargo.lock b/Cargo.lock
index 68d98e5503..3637badde5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -362,6 +362,7 @@ dependencies = [
"cargo",
"cargo_metadata",
"dirs",
+ "futures",
"reqwest",
"reqwest-middleware",
"reqwest-retry",
@@ -2613,8 +2614,10 @@ dependencies = [
"anyhow",
"async-trait... | 5 | 4 | 0 | [{"id": "G0", "claim": "Fix the doc-comment typo on get_secret: \"Will an error\" should read \"Will error\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The secrets module (currently gated on sqlx-postgres) should maybe be behind its own secre... | null |
shuttle-hq__shuttle__166 | shuttle-hq/shuttle | 166 | defect | 9d184a1a8a65f7ecbab790f6c4893c54e2c0ca65 | d05198a651bf9aeeeb931dd19ddd498aef5bc4e3 | fix: failing cargo shuttle deploy returns successful exit code | `cargo shuttle deploy` and `cargo shuttle status` will now return shell error/failure code (i.e. non-zero value) should the deployment in question be in the 'error' state.
Closes #138 | diff --git a/cargo-shuttle/src/client.rs b/cargo-shuttle/src/client.rs
index b66deb671e..80d3a36290 100644
--- a/cargo-shuttle/src/client.rs
+++ b/cargo-shuttle/src/client.rs
@@ -34,7 +34,7 @@ pub(crate) async fn auth(api_url: ApiUrl, username: String) -> Result<ApiKey> {
))
}
-pub(crate) async fn delete(api_ur... | 2 | 1 | 1 | [{"id": "G0", "claim": "Go for a dedicated command-status type (something like `CommandStatus`) instead of reusing `DeploymentStateMeta`, to prevent the unexpected tagging of auth and login with a deployment state.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
shuttle-hq__shuttle__172 | shuttle-hq/shuttle | 172 | defect | b7637e5686e3bacff48ac6d5bbe45781955a3fb4 | 251ecce2f7de58d59d6aa112356b2dc8cc37bc37 | add support to tide framework | closes #103 | diff --git a/api/users.toml b/api/users.toml
index d3cac43206..40ddeb1cd0 100644
--- a/api/users.toml
+++ b/api/users.toml
@@ -5,4 +5,5 @@ projects = [
'postgres-rocket-app',
'hello-world-axum-app',
'authentication-rocket-app',
+ 'hello-world-tide-app',
]
diff --git a/e2e/tests/tide.rs b/e2e/tests/ti... | 4 | 4 | 1 | [{"id": "G0", "claim": "Confirm whether tide really has an internal type that does not implement Sync, since the docs state tide::Server is Sync — implying the sync_wrapper dependency added to the tide example may be unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
shuttle-hq__shuttle__184 | shuttle-hq/shuttle | 184 | defect | 443de25d7d63c2ed765495adcbea39bcb7619ce5 | fa3d156fafaeac0855acd4833d023b3b958730cb | Feat: #176 test on deploy | Fixes #176 .
- I couldn't see any tests relating to this area, but feel free to point me in the right direction if these are needed.
- Currently the tests run by default, personally I think this is the best option but in the original issue it was up for debate.
- No test_args ([cargo::ops::run_tests](https://do... | diff --git a/.gitignore b/.gitignore
index eadf7a7543..f219b03481 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,9 @@ Cargo.lock
# VS Code
.vscode/
+# OS Specific
+.DS_Store
+
# Terraform
**/secret*
**/.terraform*
diff --git a/cargo-shuttle/src/args.rs b/cargo-shuttle/src/args.rs
index abb2acd4ab..d9ac566... | 3 | 1 | 1 | [{"id": "G0", "claim": "The `TestOptions` in `run_tests` should be built with `..Default::default()` instead of listing every field, since field-by-field construction might fail if `TestOptions` does not implement `Default`.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}... | null |
shuttle-hq__shuttle__1991 | shuttle-hq/shuttle | 1,991 | defect | ca4e667571e1f3cbdaa81407270489f7e0fc0d6f | 8d2bd984673c621bc4fed814c7d31fbf0a86621a | feat: impl live reloading for local runs | fixes #1967
| diff --git a/cargo-shuttle/src/args.rs b/cargo-shuttle/src/args.rs
index af6468d43..18ba22ccc 100644
--- a/cargo-shuttle/src/args.rs
+++ b/cargo-shuttle/src/args.rs
@@ -354,6 +354,9 @@ pub struct RunArgs {
/// Don't display timestamps and log origin tags
#[arg(long)]
pub raw: bool,
+ /// Uses bacon cr... | 7 | 4 | 1 | [{"id": "G0", "claim": "The default_value = \"false\" on the bacon clap flag is redundant for a boolean flag and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The kill command uses pkill, which may not be available on all pla... | null |
shuttle-hq__shuttle__238 | shuttle-hq/shuttle | 238 | defect | 036f2ac9f856a789817b6194fb73fb911abb3651 | 3bde51ce36b9a7fe2438df10c529bef9535de625 | Implement `cargo shuttle init --axum|rocket|tide|tower` | ## Motivation
This PR closes #175. It adds 4 flags to `cargo shuttle init` command and generates the corresponding boilerplate code for each framework.
## Changes
Added 3 crates: `url`, `indoc` and `tempfile`.
- `url` is needed for handling `cargo-edit`-related operations.
- `indoc` is required to format raw s... | diff --git a/Cargo.lock b/Cargo.lock
index 7791cc33a6..4c111a192e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1048,6 +1048,7 @@ dependencies = [
"dirs",
"env_logger",
"futures",
+ "indoc",
"log",
"portpicker",
"reqwest",
@@ -1064,6 +1065,7 @@ dependencies = [
"tokiotest-httpserver",
"toml",
"toml_edi... | 2 | 1 | 0 | [{"id": "G0", "claim": "Put the framework boilerplate templates into static/template files rather than keeping them inline in the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Return an `Err` when the user did not specify a framework flag... | null |
shuttle-hq__shuttle__303 | shuttle-hq/shuttle | 303 | defect | 1e798c996f1c3b12f6ed96b2a3a8440142aaae49 | 67aedb1fe6fd7ae8003391adcb6a50ef51a8bd44 | feat: serenity integration | This PR implements `Service` for `serenity::Client`. This enable Discord bot-developers using Serenity to easily deploy bots with with or without databases. I've added two usage examples, a basic `hello-world` bot and a `todo-list` bot with `shared::Postgres` for persistence.
~~The integration works in it's current ... | diff --git a/cargo-shuttle/src/args.rs b/cargo-shuttle/src/args.rs
index 8d55ed7598..edb54f3aad 100644
--- a/cargo-shuttle/src/args.rs
+++ b/cargo-shuttle/src/args.rs
@@ -98,20 +98,23 @@ pub struct RunArgs {
#[derive(Parser, Debug)]
pub struct InitArgs {
/// Initialize with axum framework
- #[clap(long, confl... | 5 | 4 | 0 | [{"id": "G0", "claim": "It would be good to also support `cargo shuttle init --serenity` so writing a bot is simple.", "category": "feature", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer is unsure whether the DIRECT_MESSAGES gateway intent in the example does any... | null |
shuttle-hq__shuttle__324 | shuttle-hq/shuttle | 324 | defect | dbfb0eec7fc3d52c84db18e48e30d1ed2e029d69 | 759eb9182d2c4b0b2f71df0c69a8c2c8e9766cad | feat(tracing): auto register tracing layer | This registers `tracing` as the default layer for logs
Fixes #280
Most of the changes were taken from this [tmp commit](https://github.com/shuttle-hq/shuttle/commit/72ad972e32c5fafbdf7b5abc1b6f8b91abfc5071).
Feel free to comment about the implementation, feedback is welcome.
### Action items
- [x] Move imp... | diff --git a/.gitignore b/.gitignore
index f580141b5c..a513160e73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
# Rust
+.cargo
# Generated by Cargo
# will have compiled files and executables
**/target/
diff --git a/Cargo.lock b/Cargo.lock
index c5e36a052d..ea1619106c 100644
--- a/Cargo.lock
+++ b/Cargo.l... | 9 | 7 | 0 | [{"id": "G0", "claim": "The `log` dependency in common/Cargo.toml should be removable now that the PR moves logging to tracing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Logger's `filter` field is no longer used now that EnvFilter does ... | null |
shuttle-hq__shuttle__767 | shuttle-hq/shuttle | 767 | defect | 915a53c50ba57962bde2f1c5061ce99573dca0b7 | d7d5da4252dee95ca552c4f658ffed13ac9189f8 | feat: compile an entire workspace | ## Description of change
Allows compiling of an entire workspace. With this, a deploy / local run works from a workspace. For the time being a `Shuttle.toml` is needed to know the name of the project.
Closes #417
## How Has This Been Tested (if applicable)?
New tests have been added. A local deployer and the l... | diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs
index 4a4807c94e..c8cbe07c29 100644
--- a/cargo-shuttle/src/lib.rs
+++ b/cargo-shuttle/src/lib.rs
@@ -37,7 +37,7 @@ use git2::{Repository, StatusOptions};
use ignore::overrides::OverrideBuilder;
use ignore::WalkBuilder;
use shuttle_common::models::{pro... | 3 | 3 | 1 | [{"id": "G0", "claim": "Indexing `runtimes[0]` can panic because the vector returned by build_workspace can be empty.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Users have no way to choose which workspace package to run — the PR simply starts th... | null |
shuttle-hq__shuttle__857 | shuttle-hq/shuttle | 857 | defect | b1e5448b933282220fb2dc41f81cfa41ccbd0564 | 995eb5cfb213e34d7906f1c3f820a5e20383e8b7 | feat: allow resetting a user's API-key | A user should be able to reset their api-key, this is important functionality to have in case users leak their key. This should generate a new api-key and persist it in the users table.
Fixes #838. | diff --git a/Cargo.toml b/Cargo.toml
index b1ba4fd0d5..1397f0da01 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,6 +36,7 @@ shuttle-service = { path = "service", version = "0.15.0" }
anyhow = "1.0.66"
async-trait = "0.1.58"
axum = { version = "0.6.0", default-features = false }
+axum-sessions = "0.4.1"
base64 = "0... | 3 | 2 | 1 | [{"id": "G0", "claim": "The reset-key endpoint should identify the account to reset from the session or API key instead of taking an arbitrary account name from the URL, so a user can only reset their own key (and the CLI no longer needs the account name, which is the GitHub id).", "category": "security", "verdict": "s... | null |
shuttle-hq__synth__302 | shuttle-hq/synth | 302 | defect | 7c3a047ad1fd197559bc73024daf01b16e568f32 | fd4690db87de1fbc2b836ba96c8120487e58a983 | feat: adds --scenario to `generate` | This is the first PR in this direction and only adds the ability to create scenarios by filtering collections | diff --git a/Cargo.lock b/Cargo.lock
index 5950e84f..2de571b6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3284,6 +3284,7 @@ dependencies = [
"log",
"mongodb",
"num_cpus",
+ "paste",
"posthog-rs",
"querystring",
"rand 0.8.4",
diff --git a/core/src/schema/mod.rs b/core/src/schema/mod.rs
index 5e587abc..96aae... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer suggests --scenario could also accept a full path such as `users/scenarios/users.json`, while acknowledging that this may be incoherent with the --collection interface.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
shyiko__mysql-binlog-connector-java__250 | shyiko/mysql-binlog-connector-java | 250 | defect | bb937bb86b899b2280cd510073761d17933342fc | 638b5864ff9f1cacaee50913031473bfb72c6fca | don't commit GTID to GtidSet until we hit COMMIT | Hey @shyiko,
Been working on https://github.com/zendesk/maxwell/issues/1129, the tl;dr of which is that a maxwell user has a GTID-enabled connection to the mysql master that seems to drop fairly frequently. If this connection drops in the middle of processing a transaction, maxwell will attempt to reconnect the bi... | diff --git a/src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java b/src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java
index 736b8165..34678034 100644
--- a/src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java
+++ b/src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.ja... | 6 | 5 | 4 | [{"id": "G0", "claim": "gtidSet is no longer protected by gtidSetAccessLock after the PR restructured updateGtidSet.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR needs to call ensureEventDataDeserializer(EventType.QUERY, ...) in connect() s... | null |
siconos__siconos__250 | siconos/siconos | 250 | defect | 58579af5df9417f880a3bbc503afdd3f1d8f9c7e | 4bc615478ec50b622fa9f49be2e46c5810ffac07 | Nsm diag indices trivial | I propose to simplify the routine
```
CS_INT* NSM_diag_indices(NumericsMatrix* M)
```
The previous implementation is really expensive and causes huge slow down of the ADMM solvers. the new implementation in
```
CS_INT* NSM_diag_indices_trivial(NumericsMatrix* M)
```
is a quite naive implementation, but more... | diff --git a/numerics/numerics_tests.cmake b/numerics/numerics_tests.cmake
index 6eb022db3c..352bb0a7fe 100644
--- a/numerics/numerics_tests.cmake
+++ b/numerics/numerics_tests.cmake
@@ -31,6 +31,7 @@ if(WITH_${COMPONENT}_TESTING)
NEW_TEST(NumericsMatrix_row_prod_non_square NumericsMatrix_row_prod_non_square.c)
N... | 5 | 3 | 2 | [{"id": "G0", "claim": "NSM_diag_indices_trivial gives incorrect results when the sparse matrix is missing diagonal elements, so the PR should adopt an approach guaranteed to always return the right answer (e.g. find all the diagonal indices trivially and, if some are missing, fall back to the general NSM_diag_indices ... | null |
siconos__siconos__286 | siconos/siconos | 286 | defect | d65e2143b673da409e1432b159032156775b2cdc | fa2f55c1abbac2e1ce2e5fb169ba762acbd26633 | MPI support for numerics solvers and activation for MUMPS linear solver. | This pull request :
- enables the usage of MPI for numerics solvers not only for MUMPS. The MPI communicator is stored in NumericsMatrix internalData and is initialized to MPI_COMM_WORLD if the user does not set it explicitely (note that MPI_init and MPI_Finalize have been supressed from numerics and must be called be... | diff --git a/cmake/FindMUMPS.cmake b/cmake/FindMUMPS.cmake
index c4f414adfc..0a0604cc3d 100644
--- a/cmake/FindMUMPS.cmake
+++ b/cmake/FindMUMPS.cmake
@@ -15,36 +15,68 @@ INCLUDE(FindPackageHandleStandardArgs)
IF(IDONTWANTMPI)
SET(__MUMPS_NAMES dmumps_seq dmumps)
ELSE(IDONTWANTMPI)
- SET(__MUMPS_NAMES dmumps)
+# ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Add a comment explaining what the new ELSE branch in add_siconos_swig_sub_module sets for the numerics component.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doxygen comment for NM_convert is missing a \\return entry... | null |
siddharthvaddem__openscreen__233 | siddharthvaddem/openscreen | 233 | defect | 0f123283b3d97b1e36f97b6d102c5700dee6c44a | de18a2f46faee737acde293640fc2ac68248112d | fix: avoid false early decode failures | # Pull Request Template
## Description
The problem is a mismatch between:
- what the recorded .webm file says its duration is
- how many video frames are actually decodable near the end
## Motivation
<!-- Explain why this change is needed. What problem does it solve? -->
## Type of Change
- [ ] New Featur... | diff --git a/src/lib/exporter/streamingDecoder.test.ts b/src/lib/exporter/streamingDecoder.test.ts
new file mode 100644
index 0000000000..18b06727d2
--- /dev/null
+++ b/src/lib/exporter/streamingDecoder.test.ts
@@ -0,0 +1,40 @@
+import { describe, expect, it } from "vitest";
+import { shouldFailDecodeEndedEarly } from ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `completedSegments >= segmentsLength` early return is true for any export where the decoder reached the last kept segment, because the flush loop advances `segmentIdx` after cloning `heldFrame` to `segment.endSec`, so in the common single-segment/no-trim case a genuinely truncated source ret... | null |
siddharthvaddem__openscreen__295 | siddharthvaddem/openscreen | 295 | defect | b101820ab8e1f2a18d0057ad26c263c9021abd22 | d6933813bdcdd841fdbe038703fb9ef7e110134e | feat: add Cancel Recording button to HUD | ## Description
Adds a Cancel button to the recording HUD that discards the current recording and returns the app to idle - without saving the footage or opening the editor.
## Motivation
The existing HUD offers Stop (saves + opens editor) and Restart (discards + restarts immediately). There was no way to simply ab... | diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index f1b66b850d..d1185e80d4 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -5,6 +5,7 @@ import { FaRegStopCircle } from "react-icons/fa";
import { FaFolderOpen } from "reac... | 1 | 1 | 0 | [{"id": "G0", "claim": "Inside the evaluate callback, setCurrentVideoPath should be awaited so it completes before switchToEditor() closes the HUD window, and the empty catch block should not silently swallow all errors, including legitimate failures from setCurrentVideoPath().", "category": "correctness", "verdict": "... | null |
siddharthvaddem__openscreen__313 | siddharthvaddem/openscreen | 313 | defect | b101820ab8e1f2a18d0057ad26c263c9021abd22 | e5430eed399d2abd9686788d0b88e833f5276a2a | feat: add arrow key frame-by-frame playhead navigation | ## Summary
Closes #302
- Add ArrowLeft/ArrowRight keyboard shortcuts to move the video editor playhead backward/forward by exactly one frame (1/60 sec ≈ 16.67ms)
- Register shortcuts as fixed (non-configurable) entries in the keyboard shortcuts panel
- Add i18n labels for all 3 locales (en, es, zh-CN)
## Changes
| ... | diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index 304d10f44d..9cd467a2f3 100644
--- a/src/components/video-editor/VideoEditor.tsx
+++ b/src/components/video-editor/VideoEditor.tsx
@@ -20,6 +20,7 @@ import {
type GifSizePreset,
VideoExporter,
} from "@/lib/... | 5 | 5 | 3 | [{"id": "G0", "claim": "The arrow-key frame-step guard only bypasses HTMLInputElement and HTMLTextAreaElement and then preventDefault()s in a capture-mode listener, so arrow keys stop working for other form controls such as the locale <select>; the editable-control guard should be expanded (at least HTMLSelectElement, ... | null |
siddharthvaddem__openscreen__345 | siddharthvaddem/openscreen | 345 | defect | 11788ad703df2760767fc02d00b5dbfef8e158a9 | 79201569c5701dc470881402c92433cbb5df4287 | feat: Add webcam size with slider | # Pull Request Template
## Description
Continues and improves the webcam resize feature from PR https://github.com/siddharthvaddem/openscreen/pull/289. Merges the original work with main, resolves all conflicts (including new `webcamMaskShape` feature), fixes broken type-checking and missing wiring, and replaces th... | diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx
index 7e556b85d8..c2d66ffa38 100644
--- a/src/components/video-editor/SettingsPanel.tsx
+++ b/src/components/video-editor/SettingsPanel.tsx
@@ -52,10 +52,11 @@ import type {
PlaybackSpeed,
WebcamLayoutPreset,
... | 5 | 1 | 1 | [{"id": "G0", "claim": "Handle NaN before the fraction math in webcamSizeToFraction, since Math.min/Math.max propagate NaN and a malformed webcamSizePreset would turn the resulting layout rect into NaN for direct callers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
siddharthvaddem__openscreen__352 | siddharthvaddem/openscreen | 352 | defect | f3d761b28d2420c14ee9c0f4655a962b1d58fe85 | e4672811de73ff06d00cf58b70066063c87fa7be | fix(security): prevent path traversal in IPC file read handlers | # Pull Request Template
## Description
Fixes a high-severity path traversal vulnerability in the read-binary-file and get-cursor-telemetry IPC handlers that allowed the renderer process to read arbitrary files from the host machine.
Reported by Abhay Kumar ([@abhayclasher](https://github.com/abhayclasher)) via r... | diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index 78d83448ae..f848a099a3 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -14,6 +14,7 @@ import {
import {
normalizeProjectMedia,
normalizeRecordingSession,
+ type ProjectMedia,
type RecordingSession,
type StoreRecorded... | 3 | 2 | 2 | [{"id": "G0", "claim": "Auto-approval logic may be overly permissive for project-referenced paths: approveReadableVideoPath automatically approves any existing path with a video extension, so a malicious .openscreen project file could get video files anywhere on the filesystem auto-approved for reading; project-referen... | null |
siddhi-io__siddhi__1055 | siddhi-io/siddhi | 1,055 | defect | f9ddb7f28d151ed4ab098d1eeb44ca98d8c41b16 | bc3a464ec5dbcde0198db08fc3d572c3ff2a43cf | Add chunking capability to the batch window | ## Purpose
> Resolve the issue #853
## Approach
> Chunk the batch stream into multiple chunks and add a reset event at the end of each chunk.
| diff --git a/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/processor/stream/window/BatchWindowProcessor.java b/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/processor/stream/window/BatchWindowProcessor.java
index 2022ffc442..c7e6b0daaa 100644
--- a/modules/siddhi-core/src/main/java/org/wso... | 3 | 3 | 0 | [{"id": "G0", "claim": "The expire clone of each stream event should be created inside the `if (outputExpectsExpiredEvents)` branch instead of unconditionally for every event.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assertion assertEquals... | null |
siddhi-io__siddhi__1221 | siddhi-io/siddhi | 1,221 | defect | 5082278e8baecd64165d9027de0b68aaa1ecf35e | 6be013a72a0958bf6deedc736a8976c8f38cc6b3 | Validate the extension specific parameters of siddhi App with the patterns specified by a new annotation @ParameterOverload in the extension class | ## Purpose
> Currently the siddhi extension developer should write the extension specific parameter validation logic in the init method. But this validation logic must be handled at java annotation level. This PR brings the init method specific parameter validation logic to the java annotation level so that future ext... | diff --git a/modules/siddhi-annotations/src/main/java/io/siddhi/annotation/Extension.java b/modules/siddhi-annotations/src/main/java/io/siddhi/annotation/Extension.java
index 800e1bfcc5..39a79b0b4f 100644
--- a/modules/siddhi-annotations/src/main/java/io/siddhi/annotation/Extension.java
+++ b/modules/siddhi-annotations... | 4 | 4 | 0 | [{"id": "G0", "claim": "License headers are missing from the newly added files (ParameterOverload.java and others such as ProcessorAnnotationValidator.java) and should be added everywhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assig... | null |
siddhi-io__siddhi__1312 | siddhi-io/siddhi | 1,312 | defect | 432365b7a579ab16d84fa2a5c522dde7bda70e34 | f85977485d5ab423a588a2369d224bcd6542d712 | [5x][Incremental Aggregation] Optimise distributed aggregation querying | ## Purpose
Optimize distributed aggregation querying
## Goals
Reduce memory consumption when distributed aggregations are queried.
## Approach
Rather than loading ongoing aggregation regardless of shard ID to the memory, the needed data (Applying on condition, within the time period) is executed on the lower g... | diff --git a/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java b/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java
index d3ae291a15..99a407449c 100644
--- a/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java
+++ b/mo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The recreateInMemoryData() call in AggregationRuntime.find() should be synchronised.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
siddhi-io__siddhi__1377 | siddhi-io/siddhi | 1,377 | defect | 292593d5c8e87656f51df9f335f1612c5eeb3dcb | 6b934118078d3b3c27c25bd458d83a3b9e5ed0ae | add cache test case classes to testng | ## Purpose
> Cache test cases should run in maven build
## Security checks
- Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
- Ran FindSecurityBugs plugin and verified report? yes
- Confirmed that this PR doesn't commit any keys, passwords, tokens,... | diff --git a/modules/siddhi-core/src/test/java/io/siddhi/core/query/table/cache/CacheExpiryAndReloadTestCase.java b/modules/siddhi-core/src/test/java/io/siddhi/core/query/table/cache/CacheExpiryAndReloadTestCase.java
index d015d6d2c3..a8aef5ba81 100644
--- a/modules/siddhi-core/src/test/java/io/siddhi/core/query/table/... | 3 | 3 | 1 | [{"id": "G0", "claim": "The CacheLRU test case fails intermittently and should be fixed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out dependsOnMethods left on the cacheLRUTestCase0 @Test annotation.", "category": "maintainabil... | null |
siddhi-io__siddhi__1406 | siddhi-io/siddhi | 1,406 | defect | 3c0373cd5236ff4aba14f4852ec20092acb420af | 592c21edb43b8f88fa169d4413dd610773b6a2c7 | User Attributes feature. | ## Purpose
This PR allows users inserting arbitrary instances in such way they become available to custom constructs (Sinks, Sources, etc...) through SiddhiAppContext.
## Goals
Shared application (host) state can be seen by custom components or extensions, avoiding the use of global or singleton objects.
## App... | diff --git a/modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiAppRuntime.java b/modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiAppRuntime.java
index ee8044b25a..57dbf5d81e 100644
--- a/modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiAppRuntime.java
+++ b/modules/siddhi-core/src/main/java/io/siddhi/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The typed UserAttribute/UserAttributes key machinery is unnecessary, so replace it with a simple concurrent HashMap and rename the map reference from userAttributes to properties so it can also carry other parameters in the future.", "category": "design", "verdict": "supported", "priority": "P1"... | null |
siddhi-io__siddhi__1637 | siddhi-io/siddhi | 1,637 | defect | 617e3e5f6df120e31d758a79bc35ebcec51a9fc4 | 49a61f78f2f36a229112e83fbe170469638cd907 | Make time zone configurable in aggregation | ## Purpose
The aggregation time period follows GMT timezone regardless of the user time zone before this feature. This may be inconvenient for users who want aggregations to happen according to their local timezones. This change makes time zone a configurable parameter in deployment.yaml as follows,
siddhi:
prop... | diff --git a/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java b/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java
index 908c01d7d3..1494e3f5d1 100644
--- a/modules/siddhi-core/src/main/java/io/siddhi/core/aggregation/AggregationRuntime.java
+++ b/mo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request does not seem to include all the changes that were discussed in the review, and the author should update it so it can be merged.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
siddhi-io__siddhi__926 | siddhi-io/siddhi | 926 | defect | 951f4ca93aaf800e943960dc7dfa3074eb983e30 | 5f49accccb7f6554b4a861ebb869770b8372f782 | Siddhi delay window | ## Purpose
>The purpose of this PR is to add a new window feature to the siddhi stream processing. A siddhi developer may need to capture the events that has arrived and hold them for a specified time period before processing. In the current window implementations there is no direct implementation for this.
## Goal... | diff --git a/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/processor/stream/window/DelayWindowProcessor.java b/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/processor/stream/window/DelayWindowProcessor.java
new file mode 100644
index 0000000000..28febbbae6
--- /dev/null
+++ b/modules/siddh... | 5 | 5 | 0 | [{"id": "G0", "claim": "The public test class should include a java doc comment, as all public classes should have one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test cases should use TestNG's description annotation to document what each ... | null |
siderolabs__bldr__162 | siderolabs/bldr | 162 | defect | 6eaf7ab3fc75a4ff6ce759402d5c4246904eaf0e | 7d419a58a698e8e7f777be782db576ce7a1566b8 | feat: support platform override. | feat: support platform override.
Support setting `platform` for dependencies and also allow overriding `platform` for a specific package.
Signed-off-by: Noel Georgi <git@frezbo.dev> | diff --git a/Dockerfile b/Dockerfile
index 9309898..1b14131 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,8 @@
-# syntax = docker/dockerfile-upstream:1.6.0-labs
+# syntax = docker/dockerfile-upstream:1.7.0-labs
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
-# Generated on 2024-03-05T05:52:53Z... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new cache-map key type should be named `cacheKey` instead of `cacheState`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The convertPlatform helper is not related to the graph and should be moved out to be a function... | null |
siderolabs__bldr__166 | siderolabs/bldr | 166 | defect | a7ac3b03bac4281bb14362fe2b72a45ec3132b1b | 37c92896a18202625f152d28d1359eaa8e5b7cfc | chore: set `PKG_NAME` environment variable | Set `PKG_NAME` environment variable.
This allows to validate extensions. | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 4a8b1bd..13a5470 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
-# Generated on 2024-03-05T05:52:53Z by kres latest.
+# Generated on 2024-05-2... | 2 | 1 | 1 | [{"id": "G0", "claim": "Doubts whether dropping the PkgYaml exclusion from the local-context exclude patterns is needed, and suggests injecting the package name into the build as an environment variable instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
siderolabs__bldr__55 | siderolabs/bldr | 55 | defect | 39b6665ea6be1ad25c9b3ea781a7422f24d33f6f | f812c1bd4d1f1844bc284b7e5e2ac1678a99186f | feat: build bldr for linux/amd64 and linux/arm64 | `bldr` frontend auto-detects build/target platform and adjusts for it.
Add integration tests for multi-platform builds.
Bump Go, golangci-lint, dependencies, etc. Clean up linting errors.
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> | diff --git a/Dockerfile b/Dockerfile
index a21e3cf..7897b5b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,11 @@
# syntax = docker/dockerfile-upstream:1.1.2-experimental
-FROM golang:1.13.6-alpine AS base
+FROM golang:1.14-alpine AS base
ENV GO111MODULE on
ENV GOPROXY https://proxy.golang.org
ENV CGO_ENABLE... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Makefile variable names should match the buildx arguments and use PLATFORM as other projects do, instead of BUILD_PLATFORM and PLATFORMS.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
siderolabs__sidero__411 | siderolabs/sidero | 411 | defect | c24038157bc8ec43e479fcca8dd2abb8a576e1ac | 9d455af3278e466078e22755aa7503ed03ad9d24 | feat: add label selector to serverclass | Adds field `selector` to the root of the ServerClassSpec.
This implements the same schema/logic for selecting Servers as is
used in several builtin Kubernetes APIs.
Tests have been added to show the behavior when both `selector` and
`qualifiers` are used, as well as when neither are used.
https://kubernetes.... | diff --git a/app/metal-controller-manager/api/v1alpha1/serverclass_filter.go b/app/metal-controller-manager/api/v1alpha1/serverclass_filter.go
index c4f422563..99552006d 100644
--- a/app/metal-controller-manager/api/v1alpha1/serverclass_filter.go
+++ b/app/metal-controller-manager/api/v1alpha1/serverclass_filter.go
@@ ... | 7 | 7 | 2 | [{"id": "G0", "claim": "The rewritten serverclasses.md does not follow sembr style (one sentence per line), which the repo's linters are meant to enforce, though the reviewer is not blocking on it since the linting does not catch it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int... | null |
siderolabs__talos-cloud-controller-manager__156 | siderolabs/talos-cloud-controller-manager | 156 | defect | 22e398449c48cedb1a6ea7a1080fa1bd4c4c453c | a8d00a4a15cb103878e53e9a257d6963051da68e | feat: node transformer feature flags | Introduce feature flags:
* PublicIPDiscovery enables the Cloud Controller Manager (CCM) to identify global/public IPs on the node.
# Pull Request
<!--
## Note to the Contributor
We encourage contributors to go through a proposal process to discuss major changes.
Before your PR is allowed to run through CI, ... | diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml
index 5d47899..0a10953 100644
--- a/.github/workflows/build-test.yaml
+++ b/.github/workflows/build-test.yaml
@@ -37,7 +37,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v5
with:
- version: ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PublicIPDiscovery feature flag could be a non-pointer bool instead of *bool, simplifying the nil-check around it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__10374 | siderolabs/talos | 10,374 | defect | 58661dea71a706eaf57f9813b9672395e820e756 | 8b44f489ec9438a6afcdc8bbfbee4ed2ad997e34 | Ignore digest part of images when checking version in pre-flight | # Pull Request
<!--
## Note to the Contributor
We encourage contributors to go through a proposal process to discuss major changes.
Before your PR is allowed to run through CI, the maintainers of Talos will first have to approve the PR.
-->
## What? (description)
Ignore the digest part of container image... | diff --git a/cmd/installer/pkg/install/preflight.go b/cmd/installer/pkg/install/preflight.go
index d7a86b964bb..4baa580769f 100644
--- a/cmd/installer/pkg/install/preflight.go
+++ b/cmd/installer/pkg/install/preflight.go
@@ -258,7 +258,7 @@ func kubernetesVersionFromImageRef(ref string) (*compatibility.KubernetesVersio... | 1 | 1 | 0 | [{"id": "G0", "claim": "The digest-stripping in kubernetesVersionFromImageRef needs a better fix from a coding point of view than the inline strings.Split expression.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__10750 | siderolabs/talos | 10,750 | defect | f90c79474b50da35ab8e285ee9723957e4b6cf00 | 87f06003717f300d77e95ac8a56bbdd6dbde3b7e | fix: sync PCR extension with volume provisioning lifecycle | Ensure volumes are not locked to the wrong value of PCR.
Fixes #10665
| diff --git a/internal/app/machined/pkg/controllers/block/internal/volumes/close.go b/internal/app/machined/pkg/controllers/block/internal/volumes/close.go
index d6bf7778776..c5670e98cfb 100644
--- a/internal/app/machined/pkg/controllers/block/internal/volumes/close.go
+++ b/internal/app/machined/pkg/controllers/block/i... | 1 | 1 | 0 | [{"id": "G0", "claim": "The controller doc comment should say that PCRStatusController populates PCR status instead of PCI device information.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__10874 | siderolabs/talos | 10,874 | defect | f7891c3018de248c7c66483562227b614689413c | e5b36573ebd52cfb22093bfd83b592f01210a345 | fix: suppress duplicate platform config updates | Fixes #10845
See also #10865
If the platform code emits duplicate network configuration, we don't need to trigger the code which mounts STATE and saves new platform configuration.
| diff --git a/internal/app/machined/pkg/controllers/network/platform_config.go b/internal/app/machined/pkg/controllers/network/platform_config.go
index f39d0fff1a4..8634e07b415 100644
--- a/internal/app/machined/pkg/controllers/network/platform_config.go
+++ b/internal/app/machined/pkg/controllers/network/platform_confi... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests should be added around the new PlatformNetworkConfig.Equal method to make sure empty fields are omitted.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
siderolabs__talos__11382 | siderolabs/talos | 11,382 | defect | 3f35b83ae35a85bb4d31eb93e6848de1b9d92aeb | eceddc26ff43ced0adc49bc5005a5247d33a90e9 | chore(machined): remove deprecated Endpoints | Remove deprecated core/v1.Endpoints in favor of discovery/v1.EndpointSlices.
Fixes #11322
Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
| diff --git a/internal/app/machined/pkg/controllers/k8s/endpoint.go b/internal/app/machined/pkg/controllers/k8s/endpoint.go
index 43ac97fafb2..f199cdeb877 100644
--- a/internal/app/machined/pkg/controllers/k8s/endpoint.go
+++ b/internal/app/machined/pkg/controllers/k8s/endpoint.go
@@ -17,6 +17,7 @@ import (
"github.co... | 4 | 2 | 2 | [{"id": "G0", "claim": "In watchEndpointsOnWorker the PR should list the kubernetes EndpointSlices by label (there is one per IP family) and aggregate them instead of a single Get by name.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The kubernetesEndp... | null |
siderolabs__talos__11485 | siderolabs/talos | 11,485 | defect | c1e65a34256944743e768613b119c0caa517b54d | 23e3f7ce5f150956690b74e45fe3610ca63be42f | feat: implement `talos.config.early` command line arg | Fixes #11449
| diff --git a/cmd/talosctl/cmd/mgmt/cluster/create/create.go b/cmd/talosctl/cmd/mgmt/cluster/create/create.go
index 8342d5ff6d3..6441ea81772 100644
--- a/cmd/talosctl/cmd/mgmt/cluster/create/create.go
+++ b/cmd/talosctl/cmd/mgmt/cluster/create/create.go
@@ -1433,7 +1433,7 @@ func (slb *siderolinkBuilder) SetKernelArgs(e... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added documentation line should read \"For both arguments\" instead of \"For bot arguments\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__11559 | siderolabs/talos | 11,559 | defect | b66b995d34306192cbaa4ef68fe39f821b37d1f0 | 238883109a97f0e7154ae7dcf2c7e0cc97174ff1 | fix: dial with proxy | Fixes #11536
| diff --git a/cmd/talosctl/cmd/talos/root.go b/cmd/talosctl/cmd/talos/root.go
index ecaf3a861c9..41407d3f5b5 100644
--- a/cmd/talosctl/cmd/talos/root.go
+++ b/cmd/talosctl/cmd/talos/root.go
@@ -21,6 +21,7 @@ import (
"github.com/siderolabs/talos/cmd/talosctl/pkg/talos/global"
"github.com/siderolabs/talos/pkg/cli"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The proxy dialer should be injected in the machinery client itself rather than set only in talosctl's root.go: move the dialer package into pkg/machinery and make it a default dial option of pkg/machinery/client.New so that it applies to everyone including non-talosctl users, enabled by default ... | null |
siderolabs__talos__11952 | siderolabs/talos | 11,952 | defect | 3472d6e79caa13fd42df7774101397b0a30f62f5 | 5b1d737282b50e55332a2f6d12c34dc933bc9e6e | refactor: remove the go-blockdevice v1 completely | This is driven by a bug in `nocloud`, but it was long overdue to nuke the old version of the library completely and rely on new code.
This refactors all four platforms which do load something from a mounted disk into one implementation.
Fixes #11948
| diff --git a/go.mod b/go.mod
index e6426ca4af8..0a6c1a76b3a 100644
--- a/go.mod
+++ b/go.mod
@@ -144,7 +144,6 @@ require (
github.com/siderolabs/discovery-client v0.1.13
github.com/siderolabs/gen v0.8.5
github.com/siderolabs/go-api-signature v0.3.8
- github.com/siderolabs/go-blockdevice v0.4.8
github.com/sidero... | 1 | 1 | 0 | [{"id": "G0", "claim": "A detached read-only mount should not need a target path at all, so the unused target in ReadFromVolume (the volume config's TargetPath and the mount manager's WithTarget(mnt), needed only until #11950) could be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ... | null |
siderolabs__talos__12104 | siderolabs/talos | 12,104 | defect | d69305a670ac982ba7dd00cfc8e7cf736cbfb385 | 768108378786dea21d11fa7d1c794b80d188a28d | feat: add full disk volumes | `volumeType` in UserVolumeConfig can be set to `disk`.
When set to `disk`, a full block device is used for the volume.
When `volumeType = "disk"`:
- Size specific settings are not allowed in the provisioning block (`minSize`, `maxSize`, `grow`).
Closes #11847 | diff --git a/hack/release.toml b/hack/release.toml
index 76d67ded862..3baae4027eb 100644
--- a/hack/release.toml
+++ b/hack/release.toml
@@ -151,6 +151,16 @@ When `volumeType = "directory"`:
Note: this mode does not provide filesystem-level isolation and inherits the EPHEMERAL partition capacity limits.
It should n... | 3 | 2 | 2 | [{"id": "G0", "claim": "Another integration test is needed for LVM instead of raw disk.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The label-based locator match (labelVolumeMatch) should be dropped, since a disk cannot be matched on a label and the ... | null |
siderolabs__talos__12115 | siderolabs/talos | 12,115 | defect | 2f42202a7ccee0e33e43b2081929b5510db5d713 | 9edcb2356019f068cb8a7881868e45182fdc7cd2 | feat: implement logs persistence | Implement a log persistence controller, rotate logs and bufferize writes.
Fixes #11461
| diff --git a/internal/app/machined/pkg/controllers/block/volume_config_test.go b/internal/app/machined/pkg/controllers/block/volume_config_test.go
index 96ee86b48a1..a872efabced 100644
--- a/internal/app/machined/pkg/controllers/block/volume_config_test.go
+++ b/internal/app/machined/pkg/controllers/block/volume_config... | 4 | 4 | 1 | [{"id": "G0", "claim": "The buffered writer should be reused via bufio.Writer.Reset instead of allocating a new bufio.Writer each time the file is opened.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The buf field should be a bufio.Writer value ra... | null |
siderolabs__talos__12362 | siderolabs/talos | 12,362 | defect | 82027eb9b30aa128099b27f638098d78857ecb4b | 394c291f1c56240326b2fed9dfb40835deab44dd | feat: implement SSA sync for manifests | * add SSA via the new go-kubernetes library implementation to talosctl `upgrade-k8s` command
* add SSA via direct ResourceInterface call into talos (machined) with a manual inventory update
* add an integration test for ssa functionality
* only support ssa if both client and server are newer than v1.13.0
Fixes #1... | diff --git a/go.mod b/go.mod
index d90e22240da..f66b50446e1 100644
--- a/go.mod
+++ b/go.mod
@@ -146,7 +146,7 @@ require (
github.com/siderolabs/go-debug v0.6.1
github.com/siderolabs/go-kmsg v0.1.4
github.com/siderolabs/go-kubeconfig v0.1.1
- github.com/siderolabs/go-kubernetes v0.2.28
+ github.com/siderolabs/go-... | 4 | 4 | 1 | [{"id": "G0", "claim": "The manifest apply controller should join `err` and `applyErr` with `errors.Join()` so that both errors are available.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The inventory-update error should be wrapped as `updating i... | null |
siderolabs__talos__12421 | siderolabs/talos | 12,421 | defect | f871ab241c0f034401fbf61e32e7201cced49441 | 07a43a2123b4f70411b3012e3804377743c0e85d | fix: exclude new Virtual IPs configured with new config | Do same exclusions as we applied to "old-style" config:
* not a node IP
* not applicable as etcd endpoint
Fixes #12410
| diff --git a/go.mod b/go.mod
index 6e84f41c049..d90e22240da 100644
--- a/go.mod
+++ b/go.mod
@@ -162,7 +162,6 @@ require (
github.com/siderolabs/siderolink v0.3.15
github.com/siderolabs/talos/pkg/machinery v1.12.0-alpha.2
github.com/sirupsen/logrus v1.9.3
- github.com/smallfz/libnfs-go v0.0.7
github.com/spf13/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "Drop the go.mod/go.sum dependency changes (the removal of github.com/smallfz/libnfs-go) from this pull request, so the PR is easier to backport.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__12600 | siderolabs/talos | 12,600 | defect | 34f09a3004fe1b77c16dd33b04adca95fb6876a5 | f685336ad7f4733e21704332602f224b7ea65c7a | fix: sort mirrors and tls configs when generating the machine config | As registry mirrors are using map to save all defined options without sort it is not deterministic. | diff --git a/pkg/machinery/config/generate/generate_test.go b/pkg/machinery/config/generate/generate_test.go
index 8c3e0e46576..14d4d4a8679 100644
--- a/pkg/machinery/config/generate/generate_test.go
+++ b/pkg/machinery/config/generate/generate_test.go
@@ -9,10 +9,13 @@ import (
"fmt"
"testing"
+ "github.com/stre... | 1 | 1 | 1 | [{"id": "G0", "claim": "The sort comparator for the generated TLS config and registry mirror documents is wrong because not all documents are named — it should compare by Kind first and, when the kinds are equal, sort by name (only when both documents are named).", "category": "correctness", "verdict": "supported", "pr... | null |
siderolabs__talos__12602 | siderolabs/talos | 12,602 | defect | 7033275a7a22d51e83c9e760ba37d2ad6ab22f28 | b28d62384dc5491202cc85664ac9b08c456e4455 | fix: make OOM controller more precise by considering separate cgroup PSI | This should reduce false triggers due to high IO activity and similar
events increasing global memory PSI despite free memory being available.
Fixes: #12526
Signed-off-by: Dmitrii Sharshakov <dmitry.sharshakov@siderolabs.com>
| diff --git a/internal/app/machined/pkg/controllers/runtime/internal/oom/oom.go b/internal/app/machined/pkg/controllers/runtime/internal/oom/oom.go
index a9202aeb061..1edc9fddd0b 100644
--- a/internal/app/machined/pkg/controllers/runtime/internal/oom/oom.go
+++ b/internal/app/machined/pkg/controllers/runtime/internal/oo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The default OOM trigger CEL expression added by this PR is hard to read and should be restructured into a weighted sum over per-QoS PSI values, e.g. using CEL macros or functions, to be more readable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__12622 | siderolabs/talos | 12,622 | defect | d4ed13d9394b087e8877eba25950f344894803a1 | d08fae3bd3645abd80e904ea513764eef688fcc7 | feat: add support for negative max size | Add support for negative max size values in volume configuration. Negative max size represents the amount of space to be left free on the device, rather than the size the volume should consume. For example, a max size of "-10GiB" means the volume can grow to the device size minus 10GiB.
Closes #12405
Signed-off-b... | diff --git a/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/system_volumes.go b/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/system_volumes.go
index 03da19f494d..6a7943fd0e7 100644
--- a/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/sys... | 6 | 5 | 3 | [{"id": "G0", "claim": "ProvisioningSpec.MaxSizeNegative calls itself instead of returning the negativity of the underlying ProvisioningMaxSize field, causing infinite recursion and a stack overflow at runtime.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "... | null |
siderolabs__talos__12634 | siderolabs/talos | 12,634 | defect | cf70f05fa40312c30d8345c2fb15ce8eda86a7a7 | b62c2ccc52e374ace0f75d3e2655664763c24168 | fix: improve warnings in 802.3ad and add fallback for memory modules | - **fix: add warnings to 802.3ad bond**
In case some settings are missing that might be impacting the usage of 802.3ad, present a warning to users.
- **fix: fallback to /proc/meminfo for memory modules**
If SMBIOS does not report memory information, fall back to `/proc/meminfo` and expose a dummy memory module... | diff --git a/internal/app/machined/pkg/controllers/hardware/system.go b/internal/app/machined/pkg/controllers/hardware/system.go
index d487e4181af..75a24ff88a0 100644
--- a/internal/app/machined/pkg/controllers/hardware/system.go
+++ b/internal/app/machined/pkg/controllers/hardware/system.go
@@ -12,6 +12,7 @@ import (
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the CleanupOutputs mechanism instead of the manual destroy of the UNKNOWN memory module resource when real memory devices appear.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siderolabs__talos__12637 | siderolabs/talos | 12,637 | defect | 41720951251102f1c174e501a3103e55720a1d8b | c590176b21bcaf74eb7b7b0faa44430dc9773ebe | feat: support aws cert manager in imager | Add support for using certificates stored in AWS Certificate Manager to sign secureboot images in imager. | diff --git a/go.mod b/go.mod
index 08c8efc7a59..57216038f1d 100644
--- a/go.mod
+++ b/go.mod
@@ -214,11 +214,12 @@ require (
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 // indirect
- github.com/a... | 3 | 3 | 2 | [{"id": "G0", "claim": "The integration test's env-var skip list should include AWS_CERT_ARN, since the new ACM-signer test block the PR adds would otherwise run (and fail) when that variable is unset.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
siderolabs__talos__12757 | siderolabs/talos | 12,757 | defect | 2628eb2ece05d7f817fc42e12b979d3f8ca9710c | a5eb63c57cc970e3cdb37bc56c04e959a32dc523 | refactor: split locate and provision | Fixes #12650
Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
| diff --git a/internal/app/machined/pkg/controllers/block/internal/volumes/locate.go b/internal/app/machined/pkg/controllers/block/internal/volumes/locate.go
index 7df465b423e..16d47b23271 100644
--- a/internal/app/machined/pkg/controllers/block/internal/volumes/locate.go
+++ b/internal/app/machined/pkg/controllers/bloc... | 2 | 2 | 1 | [{"id": "G0", "claim": "Disk volumes located via Locator.DiskMatch record the first matching discovered volume in matchedVol, which can be a partition, so Status.Location gets set to the partition device instead of the whole disk; restrict disk-volume DiskMatch matching to top-level disk entries (or derive Location fro... | null |
siderolabs__talos__12771 | siderolabs/talos | 12,771 | defect | a16392559a488993c3e26810df57da3cae5c24c5 | f0e2a65f2d52503e0c475ed4d525eae5fb5b72ec | fix: ignore volumes in wave calculation without provisioning | The waves are used in the volume manager to order provisioning of volumes on disk (allocating a partition, etc.), so that system volumes are done first, and only then user volumes are allocated.
The wave calculation logic had a bug though with volumes which don't have provisioning instructions (they can be only loca... | diff --git a/internal/app/machined/pkg/controllers/block/internal/volumes/volumes.go b/internal/app/machined/pkg/controllers/block/internal/volumes/volumes.go
index 03768ee3907..97a270205ee 100644
--- a/internal/app/machined/pkg/controllers/block/internal/volumes/volumes.go
+++ b/internal/app/machined/pkg/controllers/b... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new provisioning-first comparison in CompareVolumeConfigs is inverted: cmpBool(value.IsZero(a), value.IsZero(b)) sorts volumes without provisioning instructions last instead of first, and the new test case encodes the inverted expectation (expected 1 instead of -1), contradicting the stated ... | null |
siderolabs__talos__12887 | siderolabs/talos | 12,887 | defect | 55b872185285d890934235d07abe6b8335aa8da1 | 7e6789e959fa2062cca1130cc33d4a099bcd58f0 | feat: add trusted roots generation to stdpatches | This PR would add the ability to generate a standardized document for trusted roots. Ran into wanting this with the vsphere provider and I generally feel like we should try to extend the available standard patches here over time. | diff --git a/pkg/machinery/config/generate/stdpatches/stdpatches.go b/pkg/machinery/config/generate/stdpatches/stdpatches.go
index 46d08a98a7e..81235e862b0 100644
--- a/pkg/machinery/config/generate/stdpatches/stdpatches.go
+++ b/pkg/machinery/config/generate/stdpatches/stdpatches.go
@@ -6,6 +6,8 @@
package stdpatches... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error branch of WithTrustedRoots should return nil instead of []byte(\"\").", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
siderolabs__talos__12999 | siderolabs/talos | 12,999 | defect | eff89d1ed46e5f3c709305a8cb134dabae925420 | 270b2f644e714e859a3d53bc1a6d29eea530e389 | fix(machined): clear stale bond ARP/NS targets on decode |
# Pull Request
## What? (description)
Reset ARPIPTargets and NSIP6Targets at the start of BondMasterSpec.Decode.
## Why? (reasoning)
Without this, repeated decode calls on the same struct can retain old target entries after config removes them, which makes linkspec of the bond interface drift from current bon... | diff --git a/internal/app/machined/pkg/adapters/network/bond_master_spec.go b/internal/app/machined/pkg/adapters/network/bond_master_spec.go
index 65df4e58ff9..c9a10c64bf7 100644
--- a/internal/app/machined/pkg/adapters/network/bond_master_spec.go
+++ b/internal/app/machined/pkg/adapters/network/bond_master_spec.go
@@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "If the same spec can be decoded twice, stale ARPIPTargets/NSIP6Targets persist and accumulate, so Decode should clear the whole spec (not only the two target fields).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
siderolabs__talos__13040 | siderolabs/talos | 13,040 | defect | aa5946dd385a2b99d572f9318e4eeeeee441b51b | 0d6709d97a535195243ae0ff7cb771f57963da99 | fix: incorrect route source for on-link routes | when processing on-link routes, the source address was incorrectly set to the first address of the interface. This caused issues when the interface had multiple addresses, as the source address may not have been valid for the route. The source address is now set to an empty string, which allows the kernel to automatica... | diff --git a/internal/app/machined/pkg/runtime/v1alpha1/platform/nocloud/metadata.go b/internal/app/machined/pkg/runtime/v1alpha1/platform/nocloud/metadata.go
index a82de887eb4..cf4afca2403 100644
--- a/internal/app/machined/pkg/runtime/v1alpha1/platform/nocloud/metadata.go
+++ b/internal/app/machined/pkg/runtime/v1alp... | 3 | 3 | 1 | [{"id": "G0", "claim": "The on-link route handling is still wrong: an on-link route to the gateway as destination should be created for both IPv4 and IPv6, but the code only handles it when the gateway is IPv4, so on-link IPv6 routes are not handled as the ticket describes.", "category": "correctness", "verdict": "supp... | null |
siderolabs__talos__13075 | siderolabs/talos | 13,075 | defect | 55815e0fa545de42997b89beaa7bf15ef9aa36f3 | b07569d5cf838dd54e20f6b2b1485a98d29a632d | fix: don't set xattrs while decompressing extensions | When decompressing extensions, we might not be able to set xattrs (e.g. running rootless), so instead of setting xattrs, save them in memory and push to mksquashfs as pseudo definitions.
| diff --git a/internal/pkg/extensions/compress.go b/internal/pkg/extensions/compress.go
index 2a2418ca083..ff7ce70506b 100644
--- a/internal/pkg/extensions/compress.go
+++ b/internal/pkg/extensions/compress.go
@@ -9,9 +9,11 @@ import (
"fmt"
"io"
"io/fs"
+ "log"
"os"
"os/exec"
"path/filepath"
+ "slices"
... | 6 | 5 | 3 | [{"id": "G0", "claim": "Compress unconditionally passes -no-xattrs to mksquashfs, which drops filesystem xattrs for callers that pass xattrsMap == nil; consider adding the flag only when pseudo xattr definitions are supplied.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
siderolabs__talos__13122 | siderolabs/talos | 13,122 | defect | e3e8f01ca66ee74898ebba5dadf4f199775d278e | 638200fee8b82a8bfc2efbde5f2239f39b5a770a | test: allow more tests to run in FIPS strict mode | Remove the skip statements/rework the code to allow FIPS builds to do Wireguard by wrapping Wireguard operations into `fips140.WithoutEnforcement` blocks.
Using Wireguard (or not using it) is still a user's choice, but this allows tests to run in strict mode.
There might be more fixes required for FIPS strict, ri... | diff --git a/go.mod b/go.mod
index ed872a03fe1..b93422baed9 100644
--- a/go.mod
+++ b/go.mod
@@ -336,7 +336,7 @@ require (
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/locker v1.0.1 // indirect
- github.com/moby/spdystream v0.5.0 // indir... | 4 | 1 | 0 | [{"id": "G0", "claim": "kubespan identity GenerateKey() enters fips140.WithoutEnforcement twice (once for GeneratePrivateKey and again for PublicKey()); the author should consider computing both the private and public key within a single WithoutEnforcement block to minimize enforcement toggles and keep the bypass scope... | null |
siderolabs__talos__13142 | siderolabs/talos | 13,142 | defect | f3817d1d1c90bb2f2c19c209af154dc1a93eb507 | a57d2b85ccc19675bfb980047ce0cc0c1fe0727a | fix: audit trustd code for security | There are no security issues fixed.
Drop username/password creds - they were not used.
Improve security of token interceptor.
| diff --git a/internal/app/trustd/main.go b/internal/app/trustd/main.go
index 1ed85d66036..07a4f7431ad 100644
--- a/internal/app/trustd/main.go
+++ b/internal/app/trustd/main.go
@@ -104,6 +104,7 @@ func trustdMain() error {
®.Registrator{Resources: resources},
factory.WithDefaultLog(),
factory.WithUnaryInter... | 5 | 4 | 2 | [{"id": "G0", "claim": "subtle.ConstantTimeCompare returns immediately when the byte slices have different lengths, so the token comparison is not actually constant-time in the common case of length-mismatched tokens; the tokens should be hashed (or otherwise made equal-length) before the constant-time comparison.", "c... | null |
siderolabs__talos__13146 | siderolabs/talos | 13,146 | defect | be58eafaba98bb7b1bcd20ac1ed8f8b03734c7e0 | d862165cd3e179f4eb15372bc7595c420b9e3aaf | fix: reduce memory dashboard usage | Many small changes, memory reduction measured to be aroun -20MiB.
Reduce cgroup memory limit.
Changes:
* limit updates to 2fps
* batch log updates
* reuse/maps slices to reduce allocations
| diff --git a/internal/app/dashboard/debug.go b/internal/app/dashboard/debug.go
new file mode 100644
index 00000000000..b8ceaf0a3eb
--- /dev/null
+++ b/internal/app/dashboard/debug.go
@@ -0,0 +1,24 @@
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was no... | 4 | 4 | 4 | [{"id": "G0", "claim": "UpdateSeries transferring old.Series into the new node and shifting slices in-place mutates the previous tick's data already published to the UI, which can cause a data race with the UI goroutine and/or partially blank graphs; the reviewer asks to keep reusable buffers private to the gatherer or... | null |
siderolabs__talos__13149 | siderolabs/talos | 13,149 | defect | 5e3f301887546bfc83b9819bbc3ae05fe92f3471 | 6a3798d401ef7dac3bb2179b8e2f42b9df40781b | fix: do not publish fatal event on expected sequence termination | Sequences that intentionally terminate the machine (reboot, shutdown, upgrade, etc.) return a reboot signal to the sequencer when they complete. This was being treated as a sequence failure and published as a fatal event, which downstream consumers (including the machine stage tracking) interpreted as the machine enter... | diff --git a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go
index c0b6b8d59aa..8f318a9f4bd 100644
--- a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller.go
+++ b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_contr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The fatal-NOOP handling should be filtered in the MachineStatus controller instead of in the v1alpha1 sequencer, because catching RebootError there might have unintended consequences.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.