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
serde-rs__serde__2303
serde-rs/serde
2,303
defect
55cf0ac51a1c737a65d1a26b4b29184425e465a5
90d28fc314747039a710d2561a5ca2007d9378ad
Serialize and deserialize a tagged newtype variant over unit () as if it was a unit variant
Let's say we have the following enum: ```rust #[derive(Serialize, Deserialize, Debug)] #[serde(tag = "result", rename_all = "snake_case")] enum Response<T> { Success(T), Error { ... }, } ``` This PR makes it possible to serialize and deserialize `Response::Success(())` into and from `{"re...
diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index f0697d64f..6af958e39 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -1262,6 +1262,17 @@ mod content { { match self.content { Content::Unit => visitor.visit_unit(), + + // As ...
2
2
1
[{"id": "G0", "claim": "The extra assert_ser_tokens call duplicates the same input already tested by the assert_tokens call above it and should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added Content::Seq arm in the in...
null
serde-rs__serde__2387
serde-rs/serde
2,387
defect
a13c6382b6a4644be01b9b6c331b0cc32d32bc58
f5e0fbcb141b2a111adf3bb16a5f1a4850ed70d3
Make #[serde(alias)] works in #[serde(flatten)] context
fix #1504
diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index a703adaf7..679086e61 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -2400,7 +2400,8 @@ fn deserialize_struct_as_struct_visitor( .collect(); let fields_stmt = { - let field_names = field_names_idents.iter().map...
3
1
1
[{"id": "G0", "claim": "The pull request should also add a few tests for a struct like the one from the issue (aliases on a flattened struct).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The struct still only has a length of 3, since three fields are...
null
serde-rs__serde__2403
serde-rs/serde
2,403
defect
54671259aaaf2617b0f27dce6cc519058d4f3a90
9615f302de409af19900ccf09e34dd69c7dfab6a
Allowed Enum variants to be individually marked as untagged
This should hopefully resolve #1402. This can be thought of as applying the following transformation ```rust #[derive(Serialize, Deserialize) enum Test { A(u32, u32), B(u32), #[serde(untagged)] C(u32), #[serde(untagged)] D(u32, u32), } ``` to ```rust #[derive(Serialize, Deserialize) enum T...
diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index 884c6335c..37fd4764b 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -1165,6 +1165,29 @@ fn deserialize_enum( params: &Parameters, variants: &[Variant], cattrs: &attr::Container, +) -> Fragment { + match variants + ...
6
6
2
[{"id": "G0", "claim": "Rename the misspelled function deserialize_homogenious_enum to deserialize_homogeneous_enum.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment at the untagged-variant match in deserialize_enum stating that it i...
null
serde-rs__serde__2475
serde-rs/serde
2,475
defect
8a4dfa72319667e4f2eab303af96dd6daf0a32d7
9fef892f6dafc6759a83852bf73f5b86c46487d1
Add `Deserializer::deserialize_identifier` support for adjacently tagged enums
Adjancently tagged enum should behave like a struct with 2 elements, the tag and the content such as ```rust struct Foo<'a, T> { tag: &'a str, content: T } ``` This is the case for most format until you come across a format that serialize structs with fields identifier other than `&str`. for exemple aut...
diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index f0a0ee683..6678df252 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -915,7 +915,7 @@ mod content { where D: Deserializer<'de>, { - deserializer.deserialize_str(self) + deseria...
1
1
0
[{"id": "G0", "claim": "Comments should be added to the test tokens indicating which ones represent the tag and which the content, for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serde-rs__serde__2505
serde-rs/serde
2,505
defect
03da66c805499a9e79a5b6cb11fa21ef6da636eb
066dce275da512f969be773df5596fb60150de5a
Revisit of the representation of adjacently tagged enums tag
This PR is a follow on #2496. This is a proof of concept to evaluate if such feature would be interesting. I've run some tests with `serde_json` and the output is the same, but still allow some format to take advantage of `variant_index` during serialization. If it looks promising I can continue to work on it
diff --git a/serde/src/private/ser.rs b/serde/src/private/ser.rs index 4dd45edae8..d3029d9303 100644 --- a/serde/src/private/ser.rs +++ b/serde/src/private/ser.rs @@ -1308,3 +1308,28 @@ where Ok(()) } } + +pub struct AdjacentlyTaggedEnumVariantSerializer { + tag: &'static str, + variant_index: u32,...
2
1
1
[{"id": "G0", "claim": "The generated variant type and its trait impls should live in serde::__private::de instead of emitting a whole new type and set of trait impls into every single use of adjacently tagged enums.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
serde-rs__serde__2613
serde-rs/serde
2,613
defect
ddc1ee564b33aa584e5a66817aafb27c3265b212
09993a904a7d2346955899feaa8b43668a3fb667
"cannot infer type" from Deserialize derive macro with simple variants and untagged variants
This produces an error: ```rust #[derive(Deserialize)] #[serde(tag = "t")] enum Data { A, #[serde(untagged)] Var(u32), } ``` ``` error[[E0282]](https://doc.rust-lang.org/stable/error_codes/E0282.html): type annotations needed --> src/lib.rs:3:10 | 3 | #[deriv...
diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index ee8a23766..4c39b7ca1 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -1737,7 +1737,6 @@ fn deserialize_untagged_enum_after( quote!(__deserializer), )) }); - let attempts = first_attempt.into_...
3
2
1
[{"id": "G0", "claim": "Adding the type annotation in the attempts as well would let the logic stay shared between first_attempt and attempts instead of duplicating it.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For an internally tagged enum...
null
serde-rs__serde__2709
serde-rs/serde
2,709
defect
74d06708ddff495161187ea490c4616291216346
fbb8bbfa7c5d9ad01995c15f717220ce3aaa86e9
Implement Ser+De for Saturating<T>
This implementation is heavily inspired by the existing trait implentation for `std::num::Wrapping<T>`. fix #2708
diff --git a/serde/build.rs b/serde/build.rs index fe5486a7a5..0074df63f4 100644 --- a/serde/build.rs +++ b/serde/build.rs @@ -64,6 +64,12 @@ fn main() { if minor < 64 { println!("cargo:rustc-cfg=no_core_cstr"); } + + // Support for core::num::Saturating and std::num::Saturating stabilized in Rust...
3
3
3
[{"id": "G0", "claim": "std::num::Saturating<T> was added in Rust 1.74, which is above Serde's minimum supported Rust version, so the new impls do not compile on older compilers and the PR needs a way to handle that (how should this be handled?).", "category": "correctness", "verdict": "supported", "priority": "P0", "s...
null
serde-rs__serde__2769
serde-rs/serde
2,769
defect
8e6637a1e44c30dffd37322a7107d434cd751722
611b2e62088fbeddac13df48def98c3d86e557b7
Add ui test of unsatisfied serde trait bound
Test the diagnostic created by https://github.com/serde-rs/serde/pull/2767.
diff --git a/test_suite/tests/ui/on_unimplemented.rs b/test_suite/tests/ui/on_unimplemented.rs new file mode 100644 index 0000000000..fab56751bd --- /dev/null +++ b/test_suite/tests/ui/on_unimplemented.rs @@ -0,0 +1,23 @@ +use serde::de::Deserialize; +use serde::ser::Serialize; + +fn to_string<T>(_: &T) -> String +wher...
1
1
0
[{"id": "G0", "claim": "The committed .stderr expected output of the new ui test contains an exhaustive list of every type implementing the trait, which the reviewer flags as absurd (cc'ing the rustc diagnostics maintainer).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serenedb__serenedb__158
serenedb/serenedb
158
defect
c3d94886b4bbd108b6911a2edbbb932053169731
1103cfb547529381b7056ee100c6568c38e50b38
Update primary keys
# Update Primary Keys Support ## Overview This PR implements support for updating primary key columns in UPDATE statements. Previously, SereneDB required deleting and re-inserting rows to change primary keys - now users can directly update PK columns: ```sql UPDATE users SET user_id = 12345 WHERE user_id = 99...
diff --git a/server/catalog/table_options.h b/server/catalog/table_options.h index 36ee9bf2ca..21bb363527 100644 --- a/server/catalog/table_options.h +++ b/server/catalog/table_options.h @@ -20,6 +20,7 @@ #pragma once +#include <absl/strings/match.h> #include <absl/strings/numbers.h> #include <absl/strings/str_c...
11
9
1
[{"id": "G0", "claim": "The comment above RocksDBInsertDataSink::appendData describes UPDATE-specific behavior that does not apply to the INSERT sink and should be removed or clarified.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate ...
null
serenedb__serenedb__180
serenedb/serenedb
180
defect
8c61ef9e8888e0ac07a4d3569198319927ee0149
3030a641c6c444808a5e2212198bbb7611ed5ffc
Move Min/Max to libpg macro
Move `Min/Max` to libpg macro in order to avoid compilation error(e.g., macros `Min/Max` in `c.h` in postgres and `Min/Max` methods in scorer in iresearch). Also, partially remove unnecessary includes of postgres.h Related issue: https://github.com/serenedb/serenedb/issues/178
diff --git a/libs/iresearch/include/iresearch/search/score_function.hpp b/libs/iresearch/include/iresearch/search/score_function.hpp index 4281b3049a..788b0e851d 100644 --- a/libs/iresearch/include/iresearch/search/score_function.hpp +++ b/libs/iresearch/include/iresearch/search/score_function.hpp @@ -112,12 +112,12 @@...
2
1
0
[{"id": "G0", "claim": "Revert the parenthesization of the Min and Max member function names in ScoreFunction (void(Min)(score_t arg) / score_t(Max)()).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using a non-PG error (SDB_THROW with ERROR_BA...
null
serenedb__serenedb__209
serenedb/serenedb
209
defect
9245c161dbf586295e9139aabdfe75e6c30c2e2a
5af15c020e1d388095f326e66068190616b92ccf
Support read your own writes
Add 'read your own writes' support and data source improvements. - Save N RocksDB iterators (where N is the number of columns), which required disabling async IO. - Use `adaptive_readahead` rocksdb read option to improve reading latency. - Leverage `iterate_upper_bound` option for the same purpose. - Get rid of ext...
diff --git a/scripts/junk/launch_psql.py b/scripts/junk/launch_psql.py index f357eda9f1..a55553a326 100755 --- a/scripts/junk/launch_psql.py +++ b/scripts/junk/launch_psql.py @@ -32,7 +32,8 @@ def execute_update(self, sql: str, timeout: int = 30) -> Tuple[int, str, float]: try: result = subprocess...
8
8
1
[{"id": "G0", "claim": "The pull request removed the HasRocksDBWrite assert from EnsureRocksDBTransaction; the reviewers ask that the assert be kept (Dronplane suggests updating it to something like Write OR RYOW, MBkkt says removing it isn't correct).", "category": "correctness", "verdict": "supported", "priority": "P...
null
serenedb__serenedb__228
serenedb/serenedb
228
defect
42d2a15847644247b217a83c3946ef7da594710c
165a5a21a17a3dd141d979da0703f36df5f8cc3d
Make inverted index writers aware of columns
+ Add indexing only specified columns + Add column validation for inverted index + Add column validation for PK columns + Add index writers for delete operation + Fix bug - generated PK column should not be rewritten during PK update. + Fix bug - all column ids was not filled for updates with index
diff --git a/server/catalog/index.cpp b/server/catalog/index.cpp index 4d9bdd42d8..b1dbe58b24 100644 --- a/server/catalog/index.cpp +++ b/server/catalog/index.cpp @@ -38,8 +38,38 @@ ResultOr<std::shared_ptr<catalog::Index>> CreateInvertedIndex( return std::make_shared<InvertedIndex>(inverted_options); } +Result V...
9
6
0
[{"id": "G0", "claim": "The column-filter setup added to SearchSinkInsertBaseImpl should be moved to some generic place so it is not written a second time for secondary or other indexes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new constructor ...
null
serenedb__serenedb__259
serenedb/serenedb
259
defect
afaf6cb3367d3bb4c5ec123d7b9795bbbd608931
f0067122065ee05c69d79d2d8821c9387dd78a27
Query search index - 1
Added usage of inverted index in FROM clause for running queries. Fixed usage of weak_from_this in the inverted index. Fixed assertion in vacuum with non-existent table name Added PHRASE support. For now segmentation analyzer is hard-coded for VARCHAR columns see. followups. Followups: Make analyzers pooled and ...
diff --git a/libs/basics/bit_utils.hpp b/libs/basics/bit_utils.hpp index f8ce55cd79..b730f6e2e0 100644 --- a/libs/basics/bit_utils.hpp +++ b/libs/basics/bit_utils.hpp @@ -25,6 +25,7 @@ #include <cstddef> #include <utility> +#include "basics/assert.h" #include "basics/shared.hpp" namespace irs { diff --git a/ser...
3
3
0
[{"id": "G0", "claim": "The phrase registration line should be written as {\"phrase\", {\"pg_phrase\", false}}, (trailing comma before }) as in the suggestion, because the committed form is bad clang-format/codestyle.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
serenedb__serenedb__295
serenedb/serenedb
295
defect
a7b157bed239ca97fcfc85163129011e1e4494ba
f5213d60715e5a90d53815704b7c2ef1dea3e845
feat: pattern tokenizer
Regex tokenizer Is part of https://github.com/serenedb/serenedb/issues/28
diff --git a/libs/iresearch/include/iresearch/CMakeLists.txt b/libs/iresearch/include/iresearch/CMakeLists.txt index 1a579dec3f..c6340483c9 100644 --- a/libs/iresearch/include/iresearch/CMakeLists.txt +++ b/libs/iresearch/include/iresearch/CMakeLists.txt @@ -71,6 +71,7 @@ set(IResearch_core_sources ./analysis/word...
6
5
1
[{"id": "G0", "claim": "The Options member should not carry a redundant default initializer, i.e. `std::string pattern;` instead of `std::string pattern = \"\";`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The member initializations currentl...
null
serenedb__serenedb__298
serenedb/serenedb
298
defect
9772d0ea938251fea77696b43bc37de3beb3b60d
05c61330ab57d8b66e40daecdf4e0d613399b61b
Add TERM_xx functions for SEARCH
Added TERM_.. functions to explicitly filter indexed strings by verbatim terms. This allows querying inverted index with any tokenizer used. It is up to user to provide particular filter terms. Search function prototype tightened to move validation logic to the SQL parser/analyzer whenever possible.
diff --git a/server/connector/search_filter_builder.cpp b/server/connector/search_filter_builder.cpp index 487f5573e8..ccf4a70d19 100644 --- a/server/connector/search_filter_builder.cpp +++ b/server/connector/search_filter_builder.cpp @@ -185,11 +185,9 @@ Result SetupTermFilter(irs::ByTerm& filter, std::string& field_n...
1
1
1
[{"id": "G0", "claim": "The new term-function constants are declared `constexpr inline`, which is the same as `static constexpr` (internal linkage); they should be `inline constexpr`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
serenedb__serenedb__328
serenedb/serenedb
328
defect
050bef33fd3e16ceda0def94aa8cd764fba4d1a8
2aab03596561f8246f81b8bd8273c5ae71cf284e
fix: Fix variadic phrase boost
- fix: Fix variadic phrase boost - refactor: Avoid using FreqAttr - refactor: Remove FilterBoost attribute
diff --git a/libs/iresearch/include/iresearch/analysis/normalizing_tokenizer.cpp b/libs/iresearch/include/iresearch/analysis/normalizing_tokenizer.cpp index bb12b6f06a..d5469abc1f 100644 --- a/libs/iresearch/include/iresearch/analysis/normalizing_tokenizer.cpp +++ b/libs/iresearch/include/iresearch/analysis/normalizing...
1
1
0
[{"id": "G0", "claim": "Suggests adding an assertion SDB_ASSERT(_left_in_leaf < IteratorTraits::kBlockSize) before reading _freqs in PostingIteratorBase::GetFreq.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serenedb__serenedb__365
serenedb/serenedb
365
defect
f03a7459c20a6f0454f33f261af76ee607fed169
e2e9ec8d60f7db67cf6bbee66f6a015a68e1a33d
Add text dictionary definition for inverted index
VARCHAR fields should now have opclass defining text dictionary. Dictionary has indexes as dependencies so it can not be dropped while used except during cascade drop of entire schema. Opclass options yet not supported. Default text dictionary yet not supported.
diff --git a/libs/iresearch/include/iresearch/analysis/analyzers.cpp b/libs/iresearch/include/iresearch/analysis/analyzers.cpp index 96ea5eb380..d4cfd77bbb 100644 --- a/libs/iresearch/include/iresearch/analysis/analyzers.cpp +++ b/libs/iresearch/include/iresearch/analysis/analyzers.cpp @@ -204,7 +204,9 @@ bool MakeAnal...
6
5
1
[{"id": "G0", "claim": "Making the identity case construct a fresh StringTokenizer in MakeAnalyzer abandons the global pool of such objects that existed before, which may cost performance.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Registe...
null
serenedb__serenedb__43
serenedb/serenedb
43
defect
3b0fff0ae2cebc48ca0bb7e12d3d3a3acaaa0c70
caa073adb49f251acbfe3cee88c6739e8154bdcf
Improve DataSink locking and write performance
Improves DataSink locking (closes https://github.com/serenedb/cluster/issues/5 ) by locking only keys and bypass regular rocksdb concurrency controls. Improves general performance by reducing calls to memory reclaim (as it is quite slow) - reclaim starts only when at least 10Mb is allocated. Input Kind checks are...
diff --git a/server/connector/data_sink.cpp b/server/connector/data_sink.cpp index 4dff2a233d..feba21f1c9 100644 --- a/server/connector/data_sink.cpp +++ b/server/connector/data_sink.cpp @@ -63,7 +63,7 @@ namespace sdb::connector { RocksDBDataSink::RocksDBDataSink( rocksdb::Transaction& transaction, rocksdb::Colu...
6
3
1
[{"id": "G0", "claim": "In RocksDBDeleteDataSink::appendData the key variable is used before being initialized with the base prefix, so the acquired row locks use incorrect lock keys.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The test should us...
null
serenedb__serenedb__491
serenedb/serenedb
491
defect
f95eafcbc937668d9765a48df299762ff3807b4a
4ce418461fd50471599c84d3767d0f36b7f5a388
Add Union Tokenizer
Fixes #440 ## Summary This PR adds a new `union` tokenizer that runs multiple child tokenizers on the same input and merges their output into a single token stream. ## Behavior - `reset(data)` resets every child on the same input - `next()` interleaves child tokens by each child tokenizer's own logical ...
diff --git a/libs/iresearch/include/iresearch/CMakeLists.txt b/libs/iresearch/include/iresearch/CMakeLists.txt index 108b0b3e8d..99fb9570db 100644 --- a/libs/iresearch/include/iresearch/CMakeLists.txt +++ b/libs/iresearch/include/iresearch/CMakeLists.txt @@ -58,6 +58,7 @@ set(IResearch_core_sources ./analysis/stop...
7
7
1
[{"id": "G0", "claim": "Union as part of a pipeline should be supported (it is, per pipe_with_union) and, if it works, offsets must be rejected when any pipeline step contains union, with a test covering pipeline-with-union offsets.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
serenedb__serenedb__51
serenedb/serenedb
51
defect
8357b7d3f21835d9e9f1bf1318dc3041d078d704
f527114fb8f6eab56c3a67aab2b4e8a2b64b3e1b
Use binary numerics as key parts in connector
Change RocksDB key format to use Table ObjectId + Column id as BE encoded numerics. Add utility functions for key building
diff --git a/server/connector/CMakeLists.txt b/server/connector/CMakeLists.txt index f3c67207e2..ae83a2949f 100644 --- a/server/connector/CMakeLists.txt +++ b/server/connector/CMakeLists.txt @@ -5,6 +5,7 @@ add_library( primary_key.cpp data_source.cpp serenedb_connector.cpp + key_utils.cpp ) targe...
4
4
0
[{"id": "G0", "claim": "The SDB_ASSERT message in the RocksDBDataSink constructor refers to \"RocksDBDataSource\" and should say \"RocksDBDataSink: object key is empty\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SDB_ASSERT message in the R...
null
serenedb__serenedb__560
serenedb/serenedb
560
defect
9b7f1187154afc035a8e53720c5cb7c481766714
af87b524b66de72805218fa275bf4588deb81782
feat: Proximity PHRASE (rebased)
Add proximity feature for PHRASE function. Text patterns could be now interleaved with integral gaps PHRASE ('quick', 2, 'fox') - > matches "quick" and "fox" that has exactly 2 arbitrary words in between. PHRASE ('quick', [1, 2], 'fox') - > matches "quick" and "fox" that has 1 or 2 arbitrary words in between. Por...
diff --git a/server/connector/functions/search.cpp b/server/connector/functions/search.cpp index 75b4e1fb72..c791e1e257 100644 --- a/server/connector/functions/search.cpp +++ b/server/connector/functions/search.cpp @@ -167,11 +167,17 @@ void TsLexizeFunction(duckdb::DataChunk& args, duckdb::ExpressionState& state, voi...
2
2
0
[{"id": "G0", "claim": "The switch case should end with `} break;` on one line instead of a separate `break;` followed by a closing brace, matching the project's style.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PHRASE parsing code should use the...
null
serenedb__serenedb__571
serenedb/serenedb
571
defect
ae703fe0a1bc3fea17fa3f71b2dc343825a11ed3
56465283503478c8911dcc94f22696caa8a29f6a
refactor: Use little-endian instead of big-endian to store integers for IResearch
<!-- PR title will become the squash commit message. Use conventional commits: feat:, fix:, refactor:, test:, docs:, chore: This description becomes the commit body -- explain *why*, not *what*. -->
diff --git a/libs/iresearch/include/iresearch/formats/column/common.cpp b/libs/iresearch/include/iresearch/formats/column/common.cpp index fedcc06326..b4139404c0 100644 --- a/libs/iresearch/include/iresearch/formats/column/common.cpp +++ b/libs/iresearch/include/iresearch/formats/column/common.cpp @@ -154,8 +154,8 @@ C...
5
5
2
[{"id": "G0", "claim": "The switch to absl::little_endian in numeric_utils.cpp's Encode/Decode is incorrect — these values must remain big-endian, float/double in particular, because they are used for memcmp-based comparison.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"},...
null
serenedb__serenedb__87
serenedb/serenedb
87
defect
7911ac98341b0125748b9847a2022703988ee28d
043b9f5c5580fed03086f3c8b77affcc86815853
Add ability to write a batch of Documents in the iresearch index
In order to implement writing a batch of rows in "by Column" mode we need to be able to ingest field by field for batch of documents. To achieve this PR adds batch_size argument for Document. And modifies SegmentWriter so it allocates "batch_size" document contexts at the begin phase. Created "Document" object now ha...
diff --git a/libs/iresearch/include/iresearch/index/index_writer.cpp b/libs/iresearch/include/iresearch/index/index_writer.cpp index 69e325e526..fe5673baeb 100644 --- a/libs/iresearch/include/iresearch/index/index_writer.cpp +++ b/libs/iresearch/include/iresearch/index/index_writer.cpp @@ -657,15 +657,19 @@ IndexWriter...
4
1
0
[{"id": "G0", "claim": "The TODO comment on line 150 of segment_writer.hpp contains a typo in the username \"TODO(Dronplane)\" which should be verified or corrected.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In InsertBatch the doc_id passed t...
null
serengil__deepface__1032
serengil/deepface
1,032
defect
14bbc2f93827901e610c280960d6d41dbb61dc9d
1d53ca1bd1feab1be1359d5d31518b31976a8804
Simplify find data initialization
This simplifies the cyclomatic complexit of data initialization in `find` function. - Ensures a pickle file always exists (although might be empty) - Removes two `if` branches and duplicated code - Early bailout if no representations Thank you for your patience and attention.
diff --git a/deepface/modules/recognition.py b/deepface/modules/recognition.py index e8545b152..3b835589a 100644 --- a/deepface/modules/recognition.py +++ b/deepface/modules/recognition.py @@ -100,6 +100,7 @@ def find( file_name = f"representations_{model_name}.pkl" file_name = file_name.replace("-", "_").low...
2
2
0
[{"id": "G0", "claim": "The f.close() calls inside with-statement blocks in find() are redundant and should be removed, since the with statement already closes the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Found N new images and ...
null
serengil__deepface__1072
serengil/deepface
1,072
defect
ad53a9bb2808b895a17b3b76a55b422322b23d03
259add4a13ca9ca282025e6690955fa874044455
Feat task 0702 find enhancements
## Tickets - https://github.com/serengil/deepface/issues/1061 - https://github.com/serengil/deepface/issues/1060 - https://github.com/serengil/deepface/issues/1049 ### What has been done With this PR, 1- some improvements done in find function: detect replaced images, store column names in the pickle. 2-...
diff --git a/README.md b/README.md index d0ea40a4a..317cbec23 100644 --- a/README.md +++ b/README.md @@ -312,9 +312,11 @@ $ deepface analyze -img_path tests/dataset/img1.jpg You can also run these commands if you are running deepface with docker. Please follow the instructions in the [shell script](https://github.co...
3
3
2
[{"id": "G0", "claim": "find_hash_of_file reads the whole image file into memory and passes the entire content to the hashing function, which could cause OOM with (maybe malicious) extremely large files; better to read and hash the file in chunks.", "category": "performance", "verdict": "supported", "priority": "P1", "...
null
serengil__deepface__1306
serengil/deepface
1,306
defect
ff03dc6ece5bc5b38536228766d94b873087d4ed
6eeaeb46f2f69d0410d6587989f14c1153fdde33
Update internal db storage
### What has been done With this PR, the performance of the `in` and `update` operations has been improved by replacing `list` with `set` in the `recognition` module. ## How to test ```shell make lint && make test ```
diff --git a/deepface/modules/recognition.py b/deepface/modules/recognition.py index f755a73fb..8537337d4 100644 --- a/deepface/modules/recognition.py +++ b/deepface/modules/recognition.py @@ -1,7 +1,7 @@ # built-in dependencies import os import pickle -from typing import List, Union, Optional, Dict, Any +from typin...
3
2
2
[{"id": "G0", "claim": "With refresh_database=False, new_images and old_images are no longer initialized (the PR removed their initialization at lines 163-164), so lines 195-196 calling .update() on them will throw an exception; initializing them as empty sets there would sort the problem.", "category": "correctness", ...
null
serengil__deepface__1309
serengil/deepface
1,309
defect
8365f1483edfa632947308d2b2bdee362383cc44
6f224a7ce18e8749b175abc76c32d47c60fecdbe
Verification
### What has been done With this PR: 1. The calculation of distances between faces has been updated to optimize memory consumption; 2. Duplicate code for obtaining face embeddings has been moved into a single function. ## How to test ```shell make lint && make test ```
diff --git a/deepface/modules/verification.py b/deepface/modules/verification.py index a18ad0584..c6ee5bcfc 100644 --- a/deepface/modules/verification.py +++ b/deepface/modules/verification.py @@ -105,79 +105,47 @@ def verify( ) dims = model.output_shape - # extract faces from img1 - if isinstance(img...
8
6
3
[{"id": "G0", "claim": "The new internal helper should be given a proper name and a docstring instead of the generic extract_faces_from_img with a one-line comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper's parameters and retur...
null
serengil__deepface__1351
serengil/deepface
1,351
defect
1475aa838d20a7600ce963c5e378bf9cfecff429
ad0cbaf2dce255e488440f0ca9168012a8a4a05a
Recognition find batched
## Tickets https://github.com/serengil/deepface/issues/1332 ### What has been done With this PR, the `find_batched` method was developed as a batched version of the `find` method. The main difference of that method is using numpy arrays instead of `pd.DataFrame` and using batched distance calculation instead o...
diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index 5848d7b2d..7d7e81f15 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -276,7 +276,8 @@ def find( silent: bool = False, refresh_database: bool = True, anti_spoofing: bool = False, -) -> List[pd.DataFrame]: + batched: bool = F...
8
5
0
[{"id": "G0", "claim": "The l2_normalize helper duplicated inside recognition.py should not duplicate the existing verification.l2_normalize; the axis/keepdims parameters the batched code needs should be added to the original in the verification module instead.", "category": "design", "verdict": "supported", "priority"...
null
serengil__deepface__1396
serengil/deepface
1,396
defect
ca6afd98efb87dc61fb022ddd2892da23dc75f68
ffbba7fe83c81c880ace6724d91b008428cb6b1f
Feat/batch predict age and gender
## Tickets https://github.com/serengil/deepface/issues/441 https://github.com/serengil/deepface/issues/678 https://github.com/serengil/deepface/issues/1069 https://github.com/serengil/deepface/issues/1101 ### What has been done This PR introduces a new `predict` function designed to support batch prediction...
diff --git a/deepface/models/Demography.py b/deepface/models/Demography.py index ad9392029..1dcef4171 100644 --- a/deepface/models/Demography.py +++ b/deepface/models/Demography.py @@ -1,4 +1,4 @@ -from typing import Union +from typing import Union, List from abc import ABC, abstractmethod import numpy as np from de...
12
12
6
[{"id": "G0", "claim": "The batch logic should not live in a separate predicts function: predict should accept both a single image and a list of images, redirect list input internally, get unit tests, return Union[np.float64, np.ndarray], and the DeepFace.py interface should be updated.", "category": "design", "verdict...
null
serengil__deepface__1397
serengil/deepface
1,397
defect
e73bdb813801e91cc54c016ffc651daa138ea922
38261e07e5fe4f6e987b5a56c7f82920229caf9f
[FEATURE]: adding yolov11 into face detection portfolio
## Tickets feature request: https://github.com/serengil/deepface/issues/1392 ### What has been done This PR introduces YOLOv11[s,n,m]-face as face detector and face embedding generation Unexpectedly yolo-facev11 is not generating any keypoint
diff --git a/README.md b/README.md index c51652a9f..cbd1dc1d3 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,8 @@ backends = [ 'retinaface', 'mediapipe', 'yolov8', + 'yolov11n', + 'yolov11m', 'yunet', 'centerface', ] diff --git a/benchmarks/Evaluate-Results.ipynb b/benchmarks/Evaluate-Results....
19
19
10
[{"id": "G0", "claim": "The build_model docstring in deepface/DeepFace.py is missing the facial recognition model names the pull request added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The verify docstring in deepface/DeepFace.py is missing ...
null
serengil__deepface__1420
serengil/deepface
1,420
defect
fea8b11cf5b49fe5d3a2baaf432d34d5f7d0f389
6a7505269cff4663908598e4bd44e62f9cab4291
Optimizations for deepface.recognition.find, Optimization and New Iterator Functionality in image_utils
### What has been done With this PR, I have made optimizations and opinionated changes to `deepface.modules.recognition` as well as `deepface.commons.image_utils`. The optimizations include better use of sets, delayed object creation, and ahead of time creation for set objects used in tight loops. The modificatio...
diff --git a/deepface/commons/image_utils.py b/deepface/commons/image_utils.py index b72ce0b43..b984f9193 100644 --- a/deepface/commons/image_utils.py +++ b/deepface/commons/image_utils.py @@ -1,7 +1,7 @@ # built-in dependencies import os import io -from typing import List, Union, Tuple +from typing import Generator...
2
1
0
[{"id": "G0", "claim": "Store the image_exts and pil_exts definitions once at module level (after the imports) in deepface/commons/image_utils.py instead of repeating them inside both list_images and yield_images.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
serengil__deepface__1423
serengil/deepface
1,423
defect
5bab888411089d814e2493c09d3adab0993963b0
4f0fa6ee22170ced65d78fd1e7ee35b756408694
load_image now accepts file objects that support being read
### What has been done With this PR, `deepface.commons.image_utils.load_image` now accepts file objects that support being read. Objects that support being read but not seeked are handled by reading the data into a new `io.BytesIO` object which is automatically closed before returning the data or raising an excep...
diff --git a/deepface/commons/image_utils.py b/deepface/commons/image_utils.py index 868eaf25f..10d177f55 100644 --- a/deepface/commons/image_utils.py +++ b/deepface/commons/image_utils.py @@ -1,7 +1,7 @@ # built-in dependencies import os import io -from typing import Generator, List, Union, Tuple +from typing impor...
5
5
1
[{"id": "G0", "claim": "The test variable `defualt_embedding_objs` is misspelled and should read `default_embedding_objs`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "load_image_from_io_object should raise an error when the io object is not a...
null
serengil__deepface__1459
serengil/deepface
1,459
defect
96a7b98f337c57d0080203b708dcef3ceccca277
9523214c1fa8630ee9ba95dc447d4066d6da8e2a
feature: Add Angular Distance as a Distance Metric
## Tickets https://github.com/serengil/deepface/issues/1451 ### What has been done feature: Added Angular Distance as a Distance Metric ## How to test ```shell make lint && make test ``` You'll notice the calculation for cosine similarity was repeated rather than calling the find_cosine_distance funct...
diff --git a/README.md b/README.md index d2c1276cd..8edf306c0 100644 --- a/README.md +++ b/README.md @@ -150,10 +150,10 @@ Conducting experiments with those models within DeepFace may reveal disparities Face recognition models are regular [convolutional neural networks](https://sefiks.com/2018/03/23/convolutional-au...
4
4
2
[{"id": "G0", "claim": "Use double quotes for 'angular' in the README metrics example and the distance_metric docstrings of verification.py and streaming.py, to match the quoting style used for the other metrics.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai...
null
serengil__deepface__1492
serengil/deepface
1,492
defect
66ba76dab3f2829df3dd4f07a799c4ec0925276f
5e90be91009eae73be0181e705c5d2f008832fce
Pass test suite with python 3.8
Fix the test suite to pass with python 3.8 Include additional constraints to requirements.txt to avoid incompatible recent versions. ```shell uv venv --python 3.8 uv pip install -r requirements.txt -r requirements-dev.txt source .venv/bin/activate make test ```
diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 000000000..ccaadb01f --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +pytest>=8.3.5 diff --git a/requirements.txt b/requirements.txt index afb1518af..e6cafcb92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,9 +7,10 @@...
3
3
2
[{"id": "G0", "claim": "test_invalid_verify sends an \"img\" key, but the verify endpoint requires \"img1\" and \"img2\" keys, so the test data is wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of committing an invalid.jpg file into t...
null
serenity-rs__serenity__1073
serenity-rs/serenity
1,073
defect
99c27fed410bc7792c6c6d6979a10fbefa6a1175
e49e47331f05ba6c03c82567a719b91081396c53
Update VoiceState model
The VoiceState model now contains the following additional fields: * guild_id (optional) * member (optional) * self_video Due to the member object as serialized by Discord lacking a guild_id field, a custom deserializer was implemented. When a member object is received, it is used to update the cache. This i...
diff --git a/src/model/event.rs b/src/model/event.rs index 788aa03975f..c9ee2ea3469 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -1355,6 +1355,10 @@ impl CacheUpdate for VoiceStateUpdateEvent { if let Some(guild) = cache.guilds.write().await.get_mut(&guild_id) { + if let S...
1
1
0
[{"id": "G0", "claim": "The Field, PartialMember and VoiceStateVisitor types should be placed inside the deserialize function below, since outside of deserializing VoiceState they are useless and pollute the module's namespace.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sergelogvinov__proxmox-csi-plugin__368
sergelogvinov/proxmox-csi-plugin
368
defect
2a0f8c75fde0fd3cf421dbba7167f0ca46f505b7
d2b9062c488b56e81f3e56586617f30e5e3603a5
feat: configurable maximum volume attachments per node
Add the ability to configure the maximum number of volume attachments to a node via node labels # 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 CCM will fi...
diff --git a/docs/options.md b/docs/options.md index 1a0fe961..74c45f85 100644 --- a/docs/options.md +++ b/docs/options.md @@ -1,3 +1,19 @@ +# Node + +Individual Kubernetes Nodes can be configured using a set of labels specific to the driver. + +```yaml +apiVersion: v1 +kind: Node +metadata: + ... + labels: + # Ma...
1
1
1
[{"id": "G0", "claim": "NodeGetInfo should check the parsed max-volume-attachments label for negative values and cap it at a maximum of 30, falling back to the default value otherwise.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sergelogvinov__proxmox-csi-plugin__445
sergelogvinov/proxmox-csi-plugin
445
defect
1cf812b09e659ee22c69d5946f79e86e5c90c314
1340b71d98eca00932f7d1349d9d94e1cbb6888e
feat: update distroless debian image
# 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 CCM will first have to approve the PR. --> ## What? (description) Move to distroless/base-debian13 base...
diff --git a/Dockerfile b/Dockerfile index 7d34b77a..b946d4a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -# syntax = docker/dockerfile:1.15 +# syntax = docker/dockerfile:1.18 ######################################## -FROM golang:1.25.1-bookworm AS develop +FROM golang:1.25.3-trixie AS develop WORKDI...
3
1
0
[{"id": "G0", "claim": "Fix the Dockerfile COPY syntax so that the destination of the three-argument array-form COPY in both the develop stage (line 7) and the builder stage (line 17) ends with a trailing slash, complying with Hadolint DL3021.", "category": "maintainability", "verdict": "supported", "priority": "P3", "...
null
sergelogvinov__proxmox-csi-plugin__453
sergelogvinov/proxmox-csi-plugin
453
defect
704946adac50c2caf1f013ee4aa0e099c50f81e3
4b7a6aa3e57e063f480bdfb738e347155e269c1d
feat: full copy snapshot
# 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 CCM will first have to approve the PR. --> ## What? (description) Proxmox does not support backup, rest...
diff --git a/docker-compose.yml b/docker-compose.yml index 4afb6890..952f20ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,6 +60,23 @@ services: - type: bind source: ./hack target: /etc/kubernetes + csi-snapshotter: + image: registry.k8s.io/sig-storage/csi-snapshotter:v8....
25
8
4
[{"id": "G0", "claim": "The docker-compose csi-snapshotter service pins image tag v8.4.0, which does not exist upstream, so the container will fail to pull at runtime; update it to v8.3.0.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The example V...
null
sergelogvinov__proxmox-csi-plugin__457
sergelogvinov/proxmox-csi-plugin
457
defect
f8acb553d183b55bb120202c9af9e629dae2bf1e
de579ab4f536f682722a8de8e827fc54bacc6971
fix: volume snapshot limits
# 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 CCM will first have to approve the PR. --> ## What? (description) Add additional check of cloning reque...
diff --git a/docs/volume-snapshot-restore.yaml b/docs/volume-snapshot-restore.yaml index 508dc366..871919b0 100644 --- a/docs/volume-snapshot-restore.yaml +++ b/docs/volume-snapshot-restore.yaml @@ -17,7 +17,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 55Gi + storage: 10Gi --- api...
2
1
0
[{"id": "G0", "claim": "When a volume already exists with a different capacity and no source snapshot is involved, the code now only logs the discrepancy and the later response returns CapacityBytes: volSizeBytes (the requested size) rather than the actual volume size in `size`, violating the CSI specification; the rev...
null
sergelogvinov__proxmox-csi-plugin__462
sergelogvinov/proxmox-csi-plugin
462
defect
c8ee6dd05234fbef4661e5b23290743d3aabc362
f19f792a4a22496edd433cfdd3ee6592a399217b
refactor: storage class parameters
# 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 CCM will first have to approve the PR. --> ## What? (description) Refactoring StorageClass parameters. ...
diff --git a/pkg/csi/controller.go b/pkg/csi/controller.go index 23d974b2..c8239a6a 100644 --- a/pkg/csi/controller.go +++ b/pkg/csi/controller.go @@ -125,7 +125,7 @@ func (d *ControllerService) CreateVolume(ctx context.Context, request *csi.Creat return nil, status.Error(codes.InvalidArgument, "VolumeCapabilities m...
3
1
1
[{"id": "G0", "claim": "unmarshalTag parses integers with strconv.Atoi, so the intermediate value stays an int and f.Set panics with 'value of type int is not assignable to type int64' when the destination field is int64 (e.g. StorageParameters.ResizeSizeBytes), crashing ExtractParameters/NodeStageVolume as soon as res...
null
sergelogvinov__proxmox-csi-plugin__468
sergelogvinov/proxmox-csi-plugin
468
defect
78b4b19012247782e7467d0bcbc23f5ce1edb64b
736eb4c5db516f2487abf653ca3ca8d9a6499771
refactor: logging verbosity
# 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 CCM will first have to approve the PR. --> ## What? (description) Adjust the logger levels as follows: ...
diff --git a/pkg/csi/node.go b/pkg/csi/node.go index 8c090f26..7634e7ca 100644 --- a/pkg/csi/node.go +++ b/pkg/csi/node.go @@ -128,7 +128,7 @@ func (n *NodeService) NodeStageVolume(_ context.Context, request *csi.NodeStageV return &csi.NodeStageVolumeResponse{}, nil } - klog.V(3).InfoS("NodeStageVolume: mount de...
3
3
0
[{"id": "G0", "claim": "The NodeStageVolume resize log at pkg/csi/node.go:208 uses klog.V(5).Infof while the rest of the file consistently uses structured InfoS logging; use structured logging for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
sergelogvinov__proxmox-csi-plugin__471
sergelogvinov/proxmox-csi-plugin
471
defect
1faa701e3d76939576884c78b87a90bb9e7f555c
cfe6c75700b5bcc8cc416968c04ff5b81b741771
feat: discovery service by smbios
# 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 CCM will first have to approve the PR. --> ## What? (description) CloudInit uses SMBIOS parameters that...
diff --git a/cmd/node/main.go b/cmd/node/main.go index 8c332eb9..a346ebeb 100644 --- a/cmd/node/main.go +++ b/cmd/node/main.go @@ -28,6 +28,7 @@ import ( "google.golang.org/grpc" "github.com/sergelogvinov/proxmox-csi-plugin/pkg/csi" + "github.com/sergelogvinov/proxmox-csi-plugin/pkg/utils/node" metav1 "k8s.io...
8
5
3
[{"id": "G0", "claim": "ParseNodeID validation only runs on the NODE_NAME fallback branch, so an operator-supplied --node-id=<bad value> proceeds unchecked, undoing the validation the PR intended; move the parse after the conditional so both flag and env sources are verified.", "category": "correctness", "verdict": "su...
null
sergelogvinov__proxmox-csi-plugin__507
sergelogvinov/proxmox-csi-plugin
507
defect
d7d31cad770cc8c1607013adc63624b17b079234
d49b1f48d094ac0b7d7e94a27aba2f7b08054197
refactor: optimization
# 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 CCM will first have to approve the PR. --> ## What? (description) We do not require the Sys.Audit permi...
diff --git a/pkg/csi/controller.go b/pkg/csi/controller.go index e6f5e5dd..58a568dd 100644 --- a/pkg/csi/controller.go +++ b/pkg/csi/controller.go @@ -211,11 +211,18 @@ func (d *ControllerService) CreateVolume(ctx context.Context, request *csi.Creat } if zone == "" { - if zone, err = cl.GetNodeForStorage(ctx, pa...
10
5
2
[{"id": "G0", "claim": "If GetNodesForStorage returns an empty slice with no error, CreateVolume logs but then accesses zones[0] and will panic with index out of range; the empty case should return an error instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G...
null
sergelogvinov__proxmox-csi-plugin__537
sergelogvinov/proxmox-csi-plugin
537
defect
7df74dff49340ef793b5e27e27fe2ea8885f07ed
bf323b3c5b926172527ce7df3729703569b10ab0
fix: pv migrate watch
# 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 CCM will first have to approve the PR. --> ## What? (description) The watcher could not receive the eve...
diff --git a/.gitignore b/.gitignore index 5bdfbb3b..82d82ae8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ go.work /hack/kubeconfig* /hack/*.yaml kubeconfig +clusters.yaml .cache/ /log diff --git a/pkg/csi/controller.go b/pkg/csi/controller.go index a39ffe2e..026548a7 100644 --- a/pkg/csi/controlle...
3
1
1
[{"id": "G0", "claim": "The errors.IsNotFound(err) guard in ControllerUnpublishVolume is dead code because getVMIDbyNode wraps every error in a gRPC status.Error, so the block never executes and every node-not-found case propagates an error to the caller instead of treating the volume as already unpublished; the review...
null
serialport__serialport-rs__266
serialport/serialport-rs
266
defect
bb57f176426f5e586a0fe5346fa946d91d1d1f0c
5c6014b27c23db9d73f3fcfdcf3e3a91ea7814b7
unix: Use flock to ensure exclusive access
Some applications, e.g. [picocom](https://github.com/npat-efault/picocom), use `flock` to ensure exclusive access to the serial port, but don't seem to use the `tiocexcl` ioctl. This means that, without using `flock`, it is currently possible to connect to a port using picocom first, and then connect using this crate. ...
diff --git a/src/posix/tty.rs b/src/posix/tty.rs index 8e6caea3..816ae7fb 100644 --- a/src/posix/tty.rs +++ b/src/posix/tty.rs @@ -4,7 +4,7 @@ use std::path::Path; use std::time::{Duration, Instant}; use std::{io, mem}; -use nix::fcntl::{fcntl, OFlag}; +use nix::fcntl::{fcntl, FlockArg, OFlag}; use nix::{libc, uni...
4
2
0
[{"id": "G0", "claim": "Opening a port should acquire its locks all-or-nothing and gracefully retreat on failure instead of leaving the port locked in one way or the other.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A note should be added documenting h...
null
sermant-io__Sermant__1798
sermant-io/Sermant
1,798
defect
34cada1856b554c23ffd309ff2b9d54098622f21
a527862bafa716e918923b45d60debba6318528b
Support httpclient5.x for tag transmission
What type of PR is this? Feature What this PR does / why we need it? Describe it. Support httpclient5.x for tag transmission Which issue(s) this PR fixes? Fixes #1784 Does this PR introduce a user-facing change? No <!-- Follow this checklist to help us incorporate your contribution quickly and ...
diff --git a/.github/actions/common/plugin-change-check/action.yml b/.github/actions/common/plugin-change-check/action.yml index 55b2e56478..591a3d5558 100644 --- a/.github/actions/common/plugin-change-check/action.yml +++ b/.github/actions/common/plugin-change-check/action.yml @@ -311,6 +311,25 @@ runs: shell: ...
4
4
4
[{"id": "G0", "claim": "The environment variable written for the httpclientV5 changed-path step is misnamed httpclientV4TagTransmissionChanged and should be httpclientV5TagTransmissionChanged.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The mvn p...
null
sermant-io__Sermant__1808
sermant-io/Sermant
1,808
defect
28d6c76b20b001cd9c7c75d971015268b5355066
1b1400618555c30d58d02c2f75a8847e94cc5636
feat(dynamic config): implement apollo dynamic config crud methods
support ApolloDynamicConfigService and implement CRUD operations for configs **What type of PR is this?** Feature **What this PR does / why we need it?** Describe it. **Which issue(s) this PR fixes?** Fixes #1806 **Does this PR introduce a user-facing change?** No <!-- Follow this checklist ...
diff --git a/pom.xml b/pom.xml index 3587cf3adb..e8d8732d11 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,7 @@ <nexus.staging.plugin.version>1.6.7</nexus.staging.plugin.version> <central.publishing.maven.plugin.version>0.5.0</central.publishing.maven.plugin.version> <frontend.plugin.version...
10
9
1
[{"id": "G0", "claim": "Add copyright headers to the new files added by this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The string literals \"app.id\" and \"apollo.access-key.secret\" in ApolloApplicationProvider.getProperty ca...
null
serpapi__google-search-results-python__69
serpapi/google-search-results-python
69
defect
936f201d25b821e8a4266829d81569b7425feed9
240dfa1a5f39865c69a1255890e14ace3fc1828f
Suggested upgrade to the SerpApiClient.get_html() method
My suggestion to fix the [open issue 66](https://github.com/serpapi/google-search-results-python/issues/66). Since the returned object from `requests.get` isn't necessarily an HTML, I approached this by accessing the JSON returned from `get_dictionary` and performing another `requests.get` on the `raw_html_file`. ...
diff --git a/serpapi/serp_api_client.py b/serpapi/serp_api_client.py index f52075f..2c1ddfb 100644 --- a/serpapi/serp_api_client.py +++ b/serpapi/serp_api_client.py @@ -61,11 +61,11 @@ def get_results(self, path='/search'): """ return self.get_response(path).text - def get_html(self): + def ge...
4
4
3
[{"id": "G0", "claim": "The assertIn(\"<html>\", data) assertion added to test_get_html may not be appropriate because the <html> tag is not necessarily bare - it can carry attributes - so the test should check for \"<html\" instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
serpapi__nokolexbor__14
serpapi/nokolexbor
14
defect
52ae6ed33ab8b9483cf513de48b5588f3e9ea02a
44b899f4aded676cda2b5ef9921083dabf932e7c
Optimize #at_css and #css initialization
Before ``` Nokolexbor at_css: 138765.3 i/s Nokolexbor css: 10132.0 i/s ``` After ``` Nokolexbor at_css: 202963.7 i/s Nokolexbor css: 10209.4 i/s ```
diff --git a/README.md b/README.md index 9d9ca88..36c4110 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CI](https://github.com/serpapi/nokolexbor/actions/workflows/ci.yml/badge.svg)](https://github.com/serpapi/nokolexbor/actions/workflows/ci.yml) -Nokolexbor is a drop-in replacement for Nokogiri. It's ...
5
5
3
[{"id": "G0", "claim": "pthread_key_create is fallible and can fail to allocate a key, and the unchecked failure would lead to undefined behaviour in later pthread_get/setspecific calls.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When lxb_css_pa...
null
serpapi__nokolexbor__20
serpapi/nokolexbor
20
defect
efc5abcd1ab2ed913c2c33742dbf66376b17ed0a
9f9a9e0fd46e9ab787326cee7998430cbf67e4ce
Thread safe css parser allocation
Fixes a thread-safety bug in `nl_node_find()` where static CSS parser/selector instances were shared across threads, causing data races and `Nokolexbor::Lexbor::UnexpectedDataError` errors (with misleading error message `Invalid syntax` pointing at perfectly valid selectors) under concurrent use. - https://github.co...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f93a624..4e3ee3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,8 +58,25 @@ jobs: - name: Run tests run: bundle exec rake test:asan + # Check for data races with TSan (ThreadSanitizer) + tsan-check: + ...
4
4
1
[{"id": "G0", "claim": "Consolidate the css-parser and selectors init error checks into the common one-line pattern, e.g. `if ((status = lxb_css_parser_init(css_parser, NULL, NULL)) != LXB_STATUS_OK) goto cleanup;`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
serpapi__serpapi-python__22
serpapi/serpapi-python
22
defect
aadba86565ad7ad50381723661dd2b293e158356
b08b1353237576922d1abedc89718df36b850e63
`serpapi.HTTPError` missing the essential status code and error
Related https://github.com/serpapi/serpapi-python/issues/17 The status code is essential to determine the issue with the API, which we documented in [Status and Error Codes](https://serpapi.com/api-status-and-error-codes). This PR add the info to the `serpapi.HTTPError` exception.
diff --git a/serpapi/exceptions.py b/serpapi/exceptions.py index f501189..f046d95 100644 --- a/serpapi/exceptions.py +++ b/serpapi/exceptions.py @@ -22,7 +22,10 @@ class SearchIDNotProvided(ValueError, SerpApiError): class HTTPError(requests.exceptions.HTTPError, SerpApiError): """HTTP Error.""" - pass + ...
4
3
1
[{"id": "G0", "claim": "The new tests should include cases for edge conditions: a response body that is not valid JSON (e.g., 502/503 from proxies) and a JSON response missing the \"error\" key.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new HTT...
null
serverless__serverless__10115
serverless/serverless
10,115
defect
cfd828ece872b572cbb46670437e8196f2200903
fab132e6a1c2409f03ac508aed82ce9638c078c3
CLI: `doctor` command
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/commands/doctor.js b/commands/doctor.js new file mode 100644 index 0000000000..0379186651 --- /dev/null +++ b/commands/doctor.js @@ -0,0 +1,19 @@ +'use strict'; + +const fsp = require('fs').promises; +const { writeText, log } = require('@serverless/utils/log'); +const healthStatusFilename = require('../lib...
4
2
0
[{"id": "G0", "claim": "The deprecation aside message in logDeprecation.js should use the simplified non-redirect link and 'More info' casing instead of 'More Info'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doctor command's empty-state n...
null
serverless__serverless__10164
serverless/serverless
10,164
defect
b7a634974dc2ee138d85ec58609bf2559c5de9f6
db93e6266e9bbd0da45495d800bcad9782029bfe
Change default deployment method of EventBridge to use native CloudFormation
BREAKING CHANGE: By default, EventBridge resources now will be deployed using native CloudFormation resources instead of Custom Resources.
diff --git a/.github/prepare-pre-3.js b/.github/prepare-pre-3.js new file mode 100755 index 0000000000..851a57d6f9 --- /dev/null +++ b/.github/prepare-pre-3.js @@ -0,0 +1,15 @@ +#!/usr/bin/env node + +'use strict'; + +const fs = require('fs'); +const path = require('path'); + +const packageJsonPath = path.resolve(__dir...
2
2
2
[{"id": "G0", "claim": "The `eventBridge.useCloudFormation` setting should simply be deprecated: when set to `false` show a message that the setting can be removed, when set to `true` state that it is deprecated and ask for an upgrade and removal, and show the deprecation unconditionally whenever the setting is set.", ...
null
serverless__serverless__10273
serverless/serverless
10,273
defect
44511f343b1a68ca147e8ba9e8b493143b89c324
d5a9c04adcb40d8a4d14f3aeab99c212729eae82
feat(AWS Kafka): Add support for `mTLS` access configuration
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/compile/events/kafka.js b/lib/plugins/aws/package/compile/events/kafka.js index 2f1cff587a..154fad05a9 100644 --- a/lib/plugins/aws/package/compile/events/kafka.js +++ b/lib/plugins/aws/package/compile/events/kafka.js @@ -47,6 +47,16 @@ class AwsCompileKafkaEvents { m...
2
2
1
[{"id": "G0", "claim": "The new accessConfiguration key should be named `clientCertificateTlsAuth` (Tls) rather than `clientCertificateTLSAuth`, for consistency with the `Ca` naming and the `saslScram` formatting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
serverless__serverless__10304
serverless/serverless
10,304
defect
d52526bb6059ce20eba341c29ad5a2373c238624
8f7e4a0a5b4f2c811493376ce66d09d231cbd1ef
Strip null values from CloudFormation template resource properties
Previously, `stripNullPropsFromTemplateResources` stripped null from top-level resource properties in the compiled CFN template. This PR: - adds functionality to traverse the properties deeply, and strips null from nested objects within the properties - allows for users to provide default value as null if they wou...
diff --git a/lib/plugins/aws/package/lib/stripNullPropsFromTemplateResources.js b/lib/plugins/aws/package/lib/stripNullPropsFromTemplateResources.js index b63b3c829d..f1b8dfeb19 100644 --- a/lib/plugins/aws/package/lib/stripNullPropsFromTemplateResources.js +++ b/lib/plugins/aws/package/lib/stripNullPropsFromTemplateRe...
1
1
0
[{"id": "G0", "claim": "The recursion condition in stripNullPropsFromObj can be simplified to just `typeof propVal === 'object'`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serverless__serverless__10435
serverless/serverless
10,435
defect
f8937723967537eb0c0b739b50c5861386722393
26813bce0b8dd345fd31229933dbdd4b3ac56967
Add forceDeploy property in Cognito User Pools
I tried to implement the proposed solution which can be found [here](https://github.com/serverless/serverless/issues/9635#issuecomment-874320921). I added a `forceDeploy` flag that once set will set a random property in the custom resource that is used to attach triggers - if the flag is set to false then it sets the p...
diff --git a/lib/plugins/aws/package/compile/events/cognitoUserPool.js b/lib/plugins/aws/package/compile/events/cognitoUserPool.js index 34bafdace0..55324c6f35 100644 --- a/lib/plugins/aws/package/compile/events/cognitoUserPool.js +++ b/lib/plugins/aws/package/compile/events/cognitoUserPool.js @@ -39,6 +39,7 @@ class A...
3
3
1
[{"id": "G0", "claim": "Set the ForceDeploy value with Date.now() instead of Math.random() * 10, and do not set ForceDeploy (leave it undefined) when no forceDeploy was configured.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the new force...
null
serverless__serverless__10510
serverless/serverless
10,510
defect
427920ee0fc1c98109c0b673c794baac1cc5caf7
0bc890ea1608285ecfbd0627bada9ef81584920c
feat(CLI Onboarding): Auto login if `--org` flag provided
Reported internally, related to changes in onboarding flow. Question: Should we also have similar behavior if it's existing service with `org` configured already in service config? @medikoo @mnapoli
diff --git a/lib/cli/interactive-setup/dashboard-login.js b/lib/cli/interactive-setup/dashboard-login.js index 43462cebf0..0cb7a55d14 100644 --- a/lib/cli/interactive-setup/dashboard-login.js +++ b/lib/cli/interactive-setup/dashboard-login.js @@ -18,8 +18,9 @@ const loginOrRegisterQuestion = async (stepHistory) => c...
2
2
1
[{"id": "G0", "claim": "The proposed version only checks the `org` option, and the same auto-login behavior should also apply when `org` is already configured in the service configuration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `Boolean`...
null
serverless__serverless__10580
serverless/serverless
10,580
defect
16c29dab2343e2376130644099dbb64797660268
b2a01b4526dab423367fadb430b2a7d4f9dced9e
feat(AWS MSK): Support `maximumBatchingWindow`
### bugfix(AWS MSK): Support MaximumBatchingWindowInSeconds property in event source mapping config Looking at the AWS docs for [EventSourceMappingConfig](https://docs.aws.amazon.com/lambda/latest/dg/API_EventSourceMappingConfiguration.html), it says: > When you set `BatchSize` to a value greater than 10, you mus...
diff --git a/docs/providers/aws/events/msk.md b/docs/providers/aws/events/msk.md index d67121fb5b..4efe065196 100644 --- a/docs/providers/aws/events/msk.md +++ b/docs/providers/aws/events/msk.md @@ -46,6 +46,7 @@ functions: ## Setting the BatchSize and StartingPosition For the MSK event integration, you can set the...
3
2
1
[{"id": "G0", "claim": "The PR should add validation that when `batchSize` is set to more than 10, `maximumBatchingWindowInSeconds` is set to at least 1, and throw a meaningful error otherwise.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Support fo...
null
serverless__serverless__10746
serverless/serverless
10,746
defect
8bc54f968c4a4f208e8070f36dbe90d392a92c87
a25f0bd251971cb454e0b466914b250617acfa16
fix(AWS API Gateway): Properly apply `description` to REST API
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/compile/events/api-gateway/lib/rest-api.js b/lib/plugins/aws/package/compile/events/api-gateway/lib/rest-api.js index 3ab8143a88..2e89c71b0c 100644 --- a/lib/plugins/aws/package/compile/events/api-gateway/lib/rest-api.js +++ b/lib/plugins/aws/package/compile/events/api-gateway/lib/r...
2
2
2
[{"id": "G0", "claim": "The new Description behavior should be confirmed with a corresponding test case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "Description should only be assigned to the REST API properties when it is actually defined, so that v...
null
serverless__serverless__10814
serverless/serverless
10,814
defect
8ddba63e279a291e4c6cdfbc6503ab0d674de264
41a87409b51099733ee02a9fb0d0d130667e9e93
feat(AWS RabbitMQ): Support `virtualHost`
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/compile/events/rabbitmq.js b/lib/plugins/aws/package/compile/events/rabbitmq.js index 9b5755b632..9dea401edd 100644 --- a/lib/plugins/aws/package/compile/events/rabbitmq.js +++ b/lib/plugins/aws/package/compile/events/rabbitmq.js @@ -45,9 +45,12 @@ class AwsCompileRabbitMQEvents { ...
2
2
1
[{"id": "G0", "claim": "The `virtualHost` field should be optional rather than listed in the event's `required` schema properties.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The new `virtualHost` field should be documented in both the rabbitmq event ...
null
serverless__serverless__10845
serverless/serverless
10,845
defect
6a6417c29fe6c06286562ab7604536004bf62334
e78bd3d6010261d764a396203561b0bed2049239
feat(AWS Lambda): Support `Ref` for `destinations` properties
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/docs/providers/aws/guide/functions.md b/docs/providers/aws/guide/functions.md index 870236b4a8..f59b760c38 100644 --- a/docs/providers/aws/guide/functions.md +++ b/docs/providers/aws/guide/functions.md @@ -621,7 +621,7 @@ When intention is to invoke function asynchronously you may want to configure fo [...
3
3
1
[{"id": "G0", "claim": "The destination resolution logic is repeated between `onSuccess` and `onFailure` and could be abstracted into a small reusable function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Resolving a target type from a `Ref` ...
null
serverless__serverless__10873
serverless/serverless
10,873
defect
4b885e2207722bd2842da88b29fc3074ec037c92
087c1036c3f7ec42d00bb23f8930aa7624f7e879
Console: Onboarding improvements & url display
- Ensure that existing projects have fully resolved configuration when they enter onboarding (so far they went the same route as new services, where only basic variable sources were resolved - those which can be resolved when not having `Serverless` instance in hand) - Improve fix that ensures that `sls:stage` is reso...
diff --git a/lib/classes/console.js b/lib/classes/console.js index c4e536e2a8..4e6ed652c0 100644 --- a/lib/classes/console.js +++ b/lib/classes/console.js @@ -80,6 +80,7 @@ class Console { this.orgId = (await this.sdk.getOrgByName(this.org)).orgUid; this.service = this.serverless.service.service; this.st...
1
1
0
[{"id": "G0", "claim": "The interactive-flow variables resolution fix only addressed the `sls` source, so other instance-dependent sources that templates might use (e.g. `instanceId`) still won't resolve, and the issue needs to be addressed in a better way at some point.", "category": "correctness", "verdict": "support...
null
serverless__serverless__10878
serverless/serverless
10,878
defect
12601e77609d9ea3179757b73beb9cc684f431c3
359b5db590cd89f481651498fe5c14ac6163b696
feat(AWS Lambda): Support `logRetentionInDays` per function
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/lib/merge-iam-templates.js b/lib/plugins/aws/package/lib/merge-iam-templates.js index e0bf88aeca..700dad879e 100644 --- a/lib/plugins/aws/package/lib/merge-iam-templates.js +++ b/lib/plugins/aws/package/lib/merge-iam-templates.js @@ -26,7 +26,8 @@ module.exports = { }, ...
2
2
1
[{"id": "G0", "claim": "The inline logRetentionInDays schema should be extracted into a shared definition and referenced from both the provider and function schemas, to avoid potential bugs if that definition has to be updated at some point.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
serverless__serverless__10903
serverless/serverless
10,903
defect
991566f1795beb66d74b24501a168608ba269e4e
4d50074b1b3430e71427fb5a6cf489389c0c3193
fix(AWS Deploy): Apply stack policy after executing change sets
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/lib/update-stack.js b/lib/plugins/aws/lib/update-stack.js index 0bd1070852..de0373fb3d 100644 --- a/lib/plugins/aws/lib/update-stack.js +++ b/lib/plugins/aws/lib/update-stack.js @@ -91,7 +91,14 @@ module.exports = { return false; } + log.info('Executing created change set')...
2
2
1
[{"id": "G0", "claim": "The deploy tests that cover this logic live in test/unit/lib/plugins/aws/deploy/index.test.js and should be extended to cover it there.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test's `calledImmediatelyBefore` assertion...
null
serverless__serverless__11060
serverless/serverless
11,060
defect
3b50294f2c5de40c5aa5155fec66734dec30ef7c
1b54b96ff1ef663a13d550a61dc139e8ff93cea4
feat(AWS MSK): Add support for SASL/SCRAM authentication
Add missing SourceAccessConfiguration in the event source mapping config Closes: #9224
diff --git a/docs/providers/aws/events/msk.md b/docs/providers/aws/events/msk.md index 94bb5e0d05..24353acf54 100644 --- a/docs/providers/aws/events/msk.md +++ b/docs/providers/aws/events/msk.md @@ -81,6 +81,21 @@ functions: enabled: false ``` +## Enabling authentication + +In order to authenticate to the...
3
3
2
[{"id": "G0", "claim": "The event's configuration scheme should match what was agreed upon in the related issue rather than the newly proposed SourceAccessConfigurations scheme.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs' 'Enabling authentic...
null
serverless__serverless__11066
serverless/serverless
11,066
defect
3b50294f2c5de40c5aa5155fec66734dec30ef7c
fb20b58a7a2019fa3ee3091c7c120062227311cd
feat(AWS S3): Support `forceDeploy` setting
I have added a forceDeploy flag to the s3 bucket event trigger. The same logic has been used as in [#10435](https://github.com/serverless/serverless/pull/10435). I have tested this locally and it seems to work. Closes: [issue 10939](https://github.com/serverless/serverless/issues/10939)
diff --git a/docs/providers/aws/events/s3.md b/docs/providers/aws/events/s3.md index 744d1986cf..bbaf0d2950 100644 --- a/docs/providers/aws/events/s3.md +++ b/docs/providers/aws/events/s3.md @@ -132,3 +132,22 @@ functions: - suffix: .jpg existing: true ``` + +## Forcing deploying of triggers + ...
2
2
1
[{"id": "G0", "claim": "The doc comment for forceDeploy in the serverless.yml guide references 'existing User Pools' - a copy/paste from the Cognito feature that was not adjusted - and should be made to not reference User Pools.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
serverless__serverless__11081
serverless/serverless
11,081
defect
2107aec965e4e1e0cec98c3e2f0ff8dcc534a333
0fbf3361a7702ccbca5ccda4926ae0b58744a9c0
fix(AWS Lambda): Ensure image region matches provider region
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index a13f174905..5789d49aef 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -2179,7 +2179,16 @@ Object.defineProperties( } const [repositoryName, imageTag] = image.slice(image.indexOf('/') + 1).spli...
2
1
1
[{"id": "G0", "claim": "Add a test that confirms the newly introduced ECR image region-mismatch logic behaves properly.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is probably worth checking that the partition of the ECR image URI matches as well,...
null
serverless__serverless__11558
serverless/serverless
11,558
defect
eb741fed22773f6b4b08a67837ab39a518101825
5de376ea7a1e3fa582cc2c7446d045b4b4ccff8d
11034 extend configuration
Adds a new method in serverless-object for extending the internal configuration. This method extends variablesMeta with the newly added and parsed configuration. VariablesMeta is now exposed via serverless-object. Addresses the issue discussed in https://github.com/serverless/serverless/issues/11034. Closes: #...
diff --git a/lib/serverless.js b/lib/serverless.js index 90965dce2e..a6ea08d46c 100644 --- a/lib/serverless.js +++ b/lib/serverless.js @@ -2,6 +2,7 @@ const path = require('path'); const os = require('os'); +const _ = require('lodash'); const ensureString = require('type/string/ensure'); const ensureValue = requi...
11
11
7
[{"id": "G0", "claim": "Wrap the JSON.parse(JSON.stringify(value)) deep copy in try/catch and throw a meaningful error when it fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There is no need for this type-match validation before assigning; th...
null
serverless__serverless__11599
serverless/serverless
11,599
defect
fcf17a608d3a24d18cac4705d412366e27a1f2d1
4f42b19b376a1b28cf40b5f88b86f91b0b6c7764
Feature/11596 cloud watch logs data protection
Closes: #11596 Note that I was unable to run some tests especially integration-tests locally even after following the steps outlined in https://github.com/serverless/serverless/blob/main/CONTRIBUTING.md#code-style
diff --git a/docs/providers/aws/guide/functions.md b/docs/providers/aws/guide/functions.md index 817400a3a3..95b8e06039 100644 --- a/docs/providers/aws/guide/functions.md +++ b/docs/providers/aws/guide/functions.md @@ -591,6 +591,8 @@ You can opt out of the default behavior by setting `disableLogs: true` You can als...
1
1
0
[{"id": "G0", "claim": "The new websocket DataProtectionPolicy test should not mock the internal state of `awsCompileWebsocketsEvents` but instead be configured via the `runServerless` fixture in the file's last `describe` section.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
serverless__serverless__11690
serverless/serverless
11,690
defect
57f27193e052b01cd67745c7576f77b2d8988a6f
6923a09736f2505fc6c3c953c91ecffcfd178c8f
Add ability to give EventBridge events custom names
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/docs/providers/aws/events/event-bridge.md b/docs/providers/aws/events/event-bridge.md index 90558abf10..0498e4324f 100644 --- a/docs/providers/aws/events/event-bridge.md +++ b/docs/providers/aws/events/event-bridge.md @@ -47,6 +47,22 @@ functions: key1: value1 ``` +## Setting a custom name ...
1
1
0
[{"id": "G0", "claim": "All new tests should be configured purely with the runServerless util, with the custom name case added to the runServerless-based configuration at the bottom of the test file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serverless__serverless__11772
serverless/serverless
11,772
defect
86a55950f8c5f8d813211b872312993b78cb4229
9be9becbc7200f8a5a1bffdb32ec5b8f19f2ce6f
Fix for #11675
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index c737ae3002..9279dde6f6 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -1947,6 +1947,7 @@ class AwsProvider { getStageSourceValue() { const values = this.getValues(this, [ + ['serverless', 'service'...
3
3
1
[{"id": "G0", "claim": "Adding ['serverless', 'service', 'provider', 'apiGateway', 'stage'] to getStageSourceValue is not valid, because that function resolves the service stage and not the API Gateway stage, which is a different thing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
serverless__serverless__11888
serverless/serverless
11,888
defect
30dd50a90cf5ae32ae87b85aae31c2d29cf464d5
cb01feb616916fb67f0b9ed0ca4e0037358dce9c
fix: allow multiple alb http-header conditions
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/compile/events/alb/index.js b/lib/plugins/aws/package/compile/events/alb/index.js index e9a395c78b..933dcff28e 100644 --- a/lib/plugins/aws/package/compile/events/alb/index.js +++ b/lib/plugins/aws/package/compile/events/alb/index.js @@ -11,6 +11,16 @@ function defineArray(schema) {...
1
1
0
[{"id": "G0", "claim": "The new support for both array and key-value object forms of the alb http-header condition should be backed by a test that confirms both forms of input.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serverless__serverless__11935
serverless/serverless
11,935
defect
bc99c2c516b03f005c3f8447b796306336c9275e
caf1c2c76386105736ec9745b39b89cddd225245
Add ability to create AWS::Scheduler::Schedule triggers and specify timezone
Adds the ability to create AWS::Scheduler::Schedule triggers as an alternative to AWS::Event::Rule, which may be preferable if hitting account-wide limits on number of AWS::Event::Rule triggers per bus (Lambdas are only able to be triggered from the default bus). Also allows you to specify a timezone to run it on lo...
diff --git a/docs/providers/aws/events/schedule.md b/docs/providers/aws/events/schedule.md index 1840dc938b..62fa88c96c 100644 --- a/docs/providers/aws/events/schedule.md +++ b/docs/providers/aws/events/schedule.md @@ -90,3 +90,29 @@ functions: key1: value1 key2: value2 ``` + +## Use AWS::Sch...
10
9
1
[{"id": "G0", "claim": "Do not maintain a hard-coded list of time zones purely for validation; validate via a sanity check or leave validation to AWS so the list does not have to be updated whenever AWS changes it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
serverless__serverless__12009
serverless/serverless
12,009
defect
0a0a4fc8af4c88a2a2d85401b3fb89341b927f47
d0a5cd7c41b25e138329758d39671d7c065b9e35
fix(Packaging): DependsOn.push is not a function when extending compiled CF template
Fix `DependsOn.push is not a function` error when trying to add a new dependency via the extensions. Minimal steps to reproduce: 1. npm i -g serverless 2. serverless 3. Choose `AWS - Node.js - HTTP API` 4. Go to the project directory 5. Update `serverless.yml` with ``` service: aws-node-http-api-project fr...
diff --git a/lib/plugins/aws/package/lib/merge-custom-provider-resources.js b/lib/plugins/aws/package/lib/merge-custom-provider-resources.js index 664e368354..b93176a33a 100644 --- a/lib/plugins/aws/package/lib/merge-custom-provider-resources.js +++ b/lib/plugins/aws/package/lib/merge-custom-provider-resources.js @@ -5...
1
1
0
[{"id": "G0", "claim": "Instead of the newly added DependsOn unit tests, set up one runServerless-based test that ensures to cover that case.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serverless__serverless__12030
serverless/serverless
12,030
defect
17d64e6c94b88a5daf36f28a4fa192c231052cfb
b096001ac4c1921e9b2d17d9575adcbaa0bc73c8
fix scheduler role
Fix the role for scheduler so that it matches the role of the function. Closes #12022
diff --git a/lib/plugins/aws/package/compile/events/schedule.js b/lib/plugins/aws/package/compile/events/schedule.js index 2cdbb799d0..2a34cf0d02 100644 --- a/lib/plugins/aws/package/compile/events/schedule.js +++ b/lib/plugins/aws/package/compile/events/schedule.js @@ -136,9 +136,11 @@ class AwsCompileScheduledEvents ...
1
1
1
[{"id": "G0", "claim": "The scheduler role fix should be accompanied by a regression test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
serverless__serverless__7540
serverless/serverless
7,540
defect
26cc120937ce6fa68e3867f0f0a9b4ad0f35b669
0c665cce5906850b5eef7c33e085183cfd69daeb
Support non-function exports when including variables from js files
<!-- Please fill out THE WHOLE PR TEMPLATE. Otherwise we probably have to close the PR due to missing information --> ## What did you implement Currently, when you import a `.js` file in your configuration, serverless only supports functions. This change also allows referencing non-function exports from a `.js` ...
diff --git a/lib/classes/Variables.js b/lib/classes/Variables.js index 4b47521a02..e79bc48531 100644 --- a/lib/classes/Variables.js +++ b/lib/classes/Variables.js @@ -683,24 +683,20 @@ class Variables { // eslint-disable-next-line global-require, import/no-dynamic-require const jsFile = require(referenced...
4
3
1
[{"id": "G0", "claim": "The new test duplicates the one at line 1884 and drops the old error coverage; the replaced error-path test should stay concentrated on error conditions and be broken into sad-path cases covering the new error conditions the change introduces (and cases for concrete values and promises) rather t...
null
serverless__serverless__7782
serverless/serverless
7,782
defect
af3fbf0402054d39be2b758568553381ff0246d2
1a397cb0d45cba0ab75dbac4f25bc640622f5ef9
Replace lodash _.find with native Array.find
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/classes/Utils.js b/lib/classes/Utils.js index 7d2481dbc0..40a5165c6b 100644 --- a/lib/classes/Utils.js +++ b/lib/classes/Utils.js @@ -203,8 +203,8 @@ class Utils { func.events.forEach(event => { const name = Object.keys(event)[0]; funcEventsArray.push(name); +...
2
2
0
[{"id": "G0", "claim": "In lib/plugins/aws/deploy/lib/createStack.js the `!!` boolean coercion can be removed and `find` should be replaced with `some`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In lib/plugins/aws/package/compile/events/sns...
null
serverless__serverless__7880
serverless/serverless
7,880
defect
f2e19420e9a639b1523958cb406d7bd178571248
9a9879f594b87632d89b91af76578354731b290c
Remove is boolean
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/plugins/aws/package/compile/events/alb/lib/validate.js b/lib/plugins/aws/package/compile/events/alb/lib/validate.js index 4b0f31ba77..9ac0b59036 100644 --- a/lib/plugins/aws/package/compile/events/alb/lib/validate.js +++ b/lib/plugins/aws/package/compile/events/alb/lib/validate.js @@ -192,7 +192,7 @@ m...
3
3
0
[{"id": "G0", "claim": "The type-check condition inside validateMultiValueHeadersAttribute should be removed entirely, since in JS truthiness comparison suffices and upcoming schema-based config validation will report non-boolean values cleanly.", "category": "design", "verdict": "supported", "priority": "P2", "scope":...
null
serverless__serverless__8110
serverless/serverless
8,110
defect
f45da3c7b168d34e7d3c520068dc24364753a74a
da2d084739c931ebdf3b17d484794aff8fe8706f
remove aws-sdk dependency on customResource lambda
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/plugins/aws/customResources/generateZip.js b/lib/plugins/aws/customResources/generateZip.js index 4ddfeff200..8f185706aa 100644 --- a/lib/plugins/aws/customResources/generateZip.js +++ b/lib/plugins/aws/customResources/generateZip.js @@ -2,7 +2,6 @@ const path = require('path'); const BbPromise = r...
1
1
0
[{"id": "G0", "claim": "The leftover `.then(() => npmCommandDeferred)` statement (and its require) should also be removed from generateZip.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serverless__serverless__8159
serverless/serverless
8,159
defect
56aa5aa15abed64db6758aecd8c27719928b5a14
f001c659f211dd037b966c0904cf9b28c45ff374
Issue 7008 default request templates
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/docs/providers/aws/events/apigateway.md b/docs/providers/aws/events/apigateway.md index 77c99fa11b..6680fc31cc 100644 --- a/docs/providers/aws/events/apigateway.md +++ b/docs/providers/aws/events/apigateway.md @@ -994,6 +994,22 @@ functions: You can then access the query string `https://example.com/dev/wh...
1
1
0
[{"id": "G0", "claim": "The template-merging loop would be cleaner using `_.entries` so the callback has direct access to both the key and the value.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
serverless__serverless__8227
serverless/serverless
8,227
defect
4af57a51a5c2b4e54d3d17c6d7f454f233892a15
300657f46f7673b3a5ba3215db55a3e3bac7e700
aws sqs event schema
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/plugins/aws/package/compile/events/sqs/index.js b/lib/plugins/aws/package/compile/events/sqs/index.js index edaaf6b794..205a80aaa4 100644 --- a/lib/plugins/aws/package/compile/events/sqs/index.js +++ b/lib/plugins/aws/package/compile/events/sqs/index.js @@ -12,9 +12,20 @@ class AwsCompileSQSEvents { ...
4
4
2
[{"id": "G0", "claim": "The batchSize property in the new sqs schema should have minimum and maximum constraints as indicated in the AWS docs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With the schema in place, the inline validation of sqs even...
null
serverless__serverless__8228
serverless/serverless
8,228
defect
4af57a51a5c2b4e54d3d17c6d7f454f233892a15
8924fc04e0d5f9127e0ef14763a4acdf5bf76ad3
Aws cloudwatchlog event schema
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/plugins/aws/package/compile/events/cloudWatchLog/index.js b/lib/plugins/aws/package/compile/events/cloudWatchLog/index.js index 9c9eaee3a1..de81e81263 100644 --- a/lib/plugins/aws/package/compile/events/cloudWatchLog/index.js +++ b/lib/plugins/aws/package/compile/events/cloudWatchLog/index.js @@ -11,9 ...
3
3
1
[{"id": "G0", "claim": "The new schema definition should be named `awsLogGroupName` instead of `awsLogGroup`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The awsLogGroupName pattern must follow the pattern documented in the AWS CloudFormation Subscrip...
null
serverless__serverless__8250
serverless/serverless
8,250
defect
372ce541cdd7d93bba4eaef44ca596b373740e7a
5703ee45934e6cc6cabee3dad8aea0737ff6b79b
Aws cloudfront event schema
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/lib/plugins/aws/package/compile/events/cloudFront/index.js b/lib/plugins/aws/package/compile/events/cloudFront/index.js index 0c4e244212..89e21b0083 100644 --- a/lib/plugins/aws/package/compile/events/cloudFront/index.js +++ b/lib/plugins/aws/package/compile/events/cloudFront/index.js @@ -27,9 +27,21 @@ cl...
6
4
1
[{"id": "G0", "claim": "The cloudFront event schema should set `additionalProperties: false` so that unknown properties are rejected.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unescaped `-` inside the pathPattern character class implies a charac...
null
serverless__serverless__8342
serverless/serverless
8,342
defect
fc34140f4ec03958564a5868b339c40056f6b04e
de6bc651510c4c4dd6106579d79480e631fcefe1
feat(aws stream): provisioned concurrency support for aws stream event
Ensures that `EventSourceMapping` for `stream` events has proper `alias` attached if one exists, It also ensures that the mapping resource will depend on that alias. This PR also adds a corresponding integration test case for `provisionedConcurrency.test.js`. Note: The average time it takes to run the test now is pr...
diff --git a/lib/plugins/aws/package/compile/events/stream/index.js b/lib/plugins/aws/package/compile/events/stream/index.js index 463d88be03..14ec9b82e8 100644 --- a/lib/plugins/aws/package/compile/events/stream/index.js +++ b/lib/plugins/aws/package/compile/events/stream/index.js @@ -1,6 +1,7 @@ 'use strict'; con...
3
3
0
[{"id": "G0", "claim": "Use the same function for testing both integration cases instead of two fixture functions, so that integration test time is not prolonged, using confirmCloudWatchLogs' checkIsComplete option to make the second test wait for the right logs.", "category": "design", "verdict": "supported", "priorit...
null
serverless__serverless__8510
serverless/serverless
8,510
defect
8c0d89255e5f3bf2835966fde2f441b828607106
6afb7efbe44a682deed5b794c45f1d037f279c0d
Add detailed metrics to HttpApi
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on solution in corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠️⚠️ En...
diff --git a/docs/providers/aws/events/http-api.md b/docs/providers/aws/events/http-api.md index 9cdd65207f..f6ed2db44b 100644 --- a/docs/providers/aws/events/http-api.md +++ b/docs/providers/aws/events/http-api.md @@ -271,3 +271,15 @@ provider: httpApi: payload: '1.0' ``` + +### Detailed Metrics + +With HTTP ...
4
2
0
[{"id": "G0", "claim": "Name the new provider setting `metrics` instead of `detailedMetrics`, for consistency with the existing setting on `apiGateway`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Create the `DefaultRouteSettings` configuration only w...
null
serverless__serverless__9216
serverless/serverless
9,216
defect
5e16a28a5165d3547ed9f0b6d77114c7abb7ef21
9559fc4eb79c2d778586508ba0d17136a3db86e3
feat: Account for functions with containers for analytics
Add detection of functions defined with images + first installation timestamp note: it should wait before corresponding backend services are deployed
diff --git a/lib/utils/analytics/generatePayload.js b/lib/utils/analytics/generatePayload.js index 419364bf9a..c1888489dc 100644 --- a/lib/utils/analytics/generatePayload.js +++ b/lib/utils/analytics/generatePayload.js @@ -100,8 +100,13 @@ module.exports = async (serverless) => { plugins: serviceConfig.plugins ?...
1
1
0
[{"id": "G0", "claim": "The special-case value reported for container-image functions should get a more distinctly special name, e.g. `$containerimage` (with `$` marking it is not a real runtime and no underscore, matching the naming convention of other runtimes).", "category": "maintainability", "verdict": "supported"...
null
serverless__serverless__9363
serverless/serverless
9,363
defect
31a51e21396dba8ca4ad4d22c023a8a63960a40c
d7d5996c04a2e2a6c7604d146243eb084ef7c0f8
9347 - Support for custom IAM Role path
feat: Added support for custom IAM Role path via property `provider.iam.role.path`. <!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️...
diff --git a/docs/providers/aws/guide/iam.md b/docs/providers/aws/guide/iam.md index 8de6af6b2d..846e99c261 100644 --- a/docs/providers/aws/guide/iam.md +++ b/docs/providers/aws/guide/iam.md @@ -24,6 +24,8 @@ All IAM-related properties of provider are grouped under `iam` property: provider: iam: role: + n...
1
1
0
[{"id": "G0", "claim": "The new `provider.iam.role.path` test (and similar customization tests) should reuse the `runServerless` configuration set up in the `before` hook instead of running a separate expensive `runServerless` call, unless it cannot be tested otherwise.", "category": "testing", "verdict": "supported", ...
null
serverless__serverless__9368
serverless/serverless
9,368
defect
31a51e21396dba8ca4ad4d22c023a8a63960a40c
3e07f3bb8c570ca63ad515c7a37e33bc4ebfc31a
Variables: Expose variable resolver function to variable source resolvers
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/docs/providers/aws/guide/variables.md b/docs/providers/aws/guide/variables.md index 60e6b2afd6..66f05e56b2 100644 --- a/docs/providers/aws/guide/variables.md +++ b/docs/providers/aws/guide/variables.md @@ -476,17 +476,17 @@ With a new variables resolver (_which will be the only used resolver in v3 of a ...
2
2
1
[{"id": "G0", "claim": "Fix the typo `configuratioon` in the docs example heading, which should read `configuration`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ServerlessError configured for ensureString when resolving a variable string s...
null
serverless__serverless__9416
serverless/serverless
9,416
defect
6d2ed840fb21d469d8e4a548a38ca9302d5a9d2c
b3e4c2bb20648004d1aedd93c08bedf3233736ac
feat(AWS Lambda): Deprecate `nodejs12.x` as default runtime
Closes #8921
diff --git a/docs/deprecations.md b/docs/deprecations.md index 50bbe436e9..85ad4b828d 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -386,3 +386,11 @@ Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be re Deprecation code: `BIN_SERVERLESS` Please use `bin/serverless.js` i...
5
5
1
[{"id": "G0", "claim": "Put the newly added deprecation section at the top of docs/deprecations.md, right below the instructions on how to disable specific deprecations, instead of at the bottom of the file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
serverless__serverless__9425
serverless/serverless
9,425
defect
42bbfecd51f0f403668090e38db6141bdeb70a1a
c6b4c858d29a71be0bedbe5991e1082cec828d0b
Dont update `vpc` during `deploy function` if uses CF intrinsic functions
We should not attempt to update `VpcConfig` during `deploy function` if `vpc` uses CF intrinsic functions as they cannot be properly resolved during an update. Closes: #9423
diff --git a/lib/plugins/aws/deployFunction.js b/lib/plugins/aws/deployFunction.js index 4757c332c4..6e480616b6 100644 --- a/lib/plugins/aws/deployFunction.js +++ b/lib/plugins/aws/deployFunction.js @@ -284,17 +284,11 @@ class AwsDeployFunction { const vpc = functionObj.vpc || providerObj.vpc; params.VpcC...
2
2
1
[{"id": "G0", "claim": "The `Fn::Split` schema for `vpc` in lib/plugins/aws/provider.js is too strict and rejects a valid configuration, so if this notation is assumed valid the schema should be relaxed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim...
null
serverless__serverless__9454
serverless/serverless
9,454
defect
7361e049608d40e4199c797abbad552ea831f5a5
cd344778b4f75bbd85b83e62db912c673bdd552a
Telemetry: Fix handling of local fallbacks
When looking into Mixpanel I charts, I observed that latest version reports errors that can only happen when quite old version is used. It's obvious flaw of how we handle local fallbacks. I believe I fixed all observed issues with: - Rely on `serverless.isInvokedByGlobalInstallation` instead of `serverless._isInv...
diff --git a/lib/Serverless.js b/lib/Serverless.js index 6cabd3a354..d02d698445 100644 --- a/lib/Serverless.js +++ b/lib/Serverless.js @@ -25,6 +25,8 @@ const resolveCliInput = require('./cli/resolve-input'); const readConfiguration = require('./configuration/read'); const conditionallyLoadDotenv = require('./cli/con...
1
1
0
[{"id": "G0", "claim": "The inconsistent style of binding `fs` directly to `require('fs').promises` in some files versus `require('fs')` and using `fs.promises.something` elsewhere should be settled on one preferred approach.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
serverless__serverless__9605
serverless/serverless
9,605
defect
93233d1abe217068cceb5310c519eea6e7e77350
705ad3291fe2c001ed60f5bb88e273ae29fea062
refactor: Replace `fse.rename` with `fs.promises.rename`
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/standalone.js b/lib/plugins/standalone.js index 4acd1aeb9e..68b56b906e 100644 --- a/lib/plugins/standalone.js +++ b/lib/plugins/standalone.js @@ -73,7 +73,7 @@ module.exports = class Standalone { } await fse.remove(BINARY_TMP_PATH); await pipeline(standaloneResponse.body, fs.crea...
2
2
0
[{"id": "G0", "claim": "In lib/utils/eventuallyUpdate.js the fs module should be required as `const fsp = require('fs').promises` per the team's internal naming/import convention, instead of `const fs = require('fs')`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
serverless__serverless__9609
serverless/serverless
9,609
defect
f4c9b58b10a45ae342934e9a61dcdea0c2ef11e2
423dc1c1d491c35aab5ff450df1ff29ad2eba38c
fix(AWS API Gateway): Ensure that `method` depends on `permission`
Closes: https://github.com/serverless/serverless/issues/9525
diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.js index ffa5f89dcd..ee5467d794 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.js +++ b/lib/plugins/aws/package/compile/events/apiGatew...
2
2
1
[{"id": "G0", "claim": "The variable name `apiGetway` is misspelled and should be `apiGateway`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new method-depends-on-permission functionality should be covered by tests using `runServerless` in...
null
serverless__serverless__9692
serverless/serverless
9,692
defect
cc24bc2ae280237b3d439e1934ab75710e0f259f
9dec03c1b08dce1aec3d5a230a6d5c3c98e39dcf
Ensure generation and related utils are sync
Discussed internally, the reason behind this change is to ensure that both `storeLocally` and `generatePayload` utils are sync, which makes them safe to be executed as a part of `process.on` handler without interfering with asynchronously running operations in the backgorund. Related to: https://github.com/serverles...
diff --git a/lib/Serverless.js b/lib/Serverless.js index ef261d5a06..3fd579806d 100644 --- a/lib/Serverless.js +++ b/lib/Serverless.js @@ -223,7 +223,7 @@ class Serverless { ); } if (this.isLocallyInstalled) return; - const localServerlessPath = await resolveLocalServerlessPath(); + const localSe...
3
3
1
[{"id": "G0", "claim": "In lib/utils/npmPackage/isGlobal.js the PR reads `stdoutBuffer` from the result of Node's `spawnSync`, but that API returns a `stdout` string property, so the trim reads undefined and the npm-global check breaks.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in...
null
serverless__serverless__9866
serverless/serverless
9,866
defect
a20ed5d235981943c842cd9babbbe551896a84fc
8f3d4ae496f687603bc0dd5fb5b015e2beb5527c
Refactor the codebase for hash-based artifacts versioning changes
Refactor the modules identified that will have to be changed in order to address #8666 - Replace bluebird Promise with native one - Get rid of `BbPromise.bind(this)` chains - Add simple implementation that is the equivalent of bluebird's `Promise.map` based on this [tiny-async-pool](https://github.com/rxavi...
diff --git a/lib/plugins/aws/deploy/index.js b/lib/plugins/aws/deploy/index.js index e2cd8a8e4f..50dad8e9f8 100644 --- a/lib/plugins/aws/deploy/index.js +++ b/lib/plugins/aws/deploy/index.js @@ -1,6 +1,5 @@ 'use strict'; -const BbPromise = require('bluebird'); const extendedValidate = require('./lib/extendedValidat...
6
6
2
[{"id": "G0", "claim": "The refactored before:deploy:deploy hook reorders the logic (extendedValidate now runs after the optional moveArtifactsToTemp even when packaging), and the refactor should keep exactly the same logic flow.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
serverless__serverless__9895
serverless/serverless
9,895
defect
05fff98a0003b22a66e8932c622c0e10c57bf06b
a7fece028a178f15693d1f94bcfc142174bb979f
feat(AWS CloudFront): Support `behavior.CachePolicyId`
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/docs/providers/aws/events/cloudfront.md b/docs/providers/aws/events/cloudfront.md index c5a6df3907..4661c03681 100644 --- a/docs/providers/aws/events/cloudfront.md +++ b/docs/providers/aws/events/cloudfront.md @@ -238,6 +238,20 @@ functions: id: 658327ea-f89d-4fab-a63d-7e88639e58f6 # reference...
7
7
2
[{"id": "G0", "claim": "The added documentation paragraph should be rephrased as: \"It is also possible to reference policies with `behavior.CachePolicyId` property. When both `cachePolicy.id` and `behavior.CachePolicyId` are specified, setting from `cachePolicy.id` will be used.\"", "category": "documentation", "verdi...
null
serverless__serverless__9909
serverless/serverless
9,909
defect
f096440440dfb2339b4fd1ae1ecbca3b59fb4805
b352104206f8f12d1699b4480deb23ad62a8dd38
fix(AWS API Gateway): Ensure consistent default for `cors` conf
<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ PR will not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Do not propose PR's without prior agreement on a solution in the corresponding issue --> <!-- ⚠️⚠️ Only documentation updates and obvious bug fixes are welcome without it --> <!-- ⚠...
diff --git a/lib/plugins/aws/package/compile/events/apiGateway/index.js b/lib/plugins/aws/package/compile/events/apiGateway/index.js index c2e5418f1d..454b8ba322 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/index.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/index.js @@ -91,7 +91,6 @@ con...
2
1
0
[{"id": "G0", "claim": "All newly introduced changes should have tests implemented with the `runServerless` utility.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Assigning the whole `http.cors` object onto the default `cors` object may be unnecessary;...
null
servo__font-kit__166
servo/font-kit
166
defect
9e08d72166cb4f9017a2e38d47e341cab897ca47
261ef528f8b80a5531286e8b2791cdbe098a1daa
Perf select_best_match
When `create_handles_from_core_text_collection`, we only need to read the same path file once, and change handle to memory mode, so when load font from the handle next time, we can use the memory data. before: <img width="941" alt="截屏2020-11-18 下午12 19 34" src="https://user-images.githubusercontent.com/11287532/994...
diff --git a/src/sources/core_text.rs b/src/sources/core_text.rs index 8847451..6d061fa 100644 --- a/src/sources/core_text.rs +++ b/src/sources/core_text.rs @@ -30,6 +30,9 @@ use crate::loaders::core_text::{self as core_text_loader, FONT_WEIGHT_MAPPING}; use crate::properties::{Properties, Stretch, Weight}; use crate...
1
1
1
[{"id": "G0", "claim": "In create_handles_from_core_text_collection, a failed File::open or slurp_file should continue with the next descriptor instead of breaking out of the loop.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
servo__html5ever__293
servo/html5ever
293
defect
abd8e2274b2232abf02873f4dfd399b0cf209bb4
b1ed73f323d2fe01003a951d2bfd0262a4dcb9f9
Don't bail on empty Serializer stack
This prevents panics if `end_elem` or `parent` is called with an empty stack by fabricating a new default ElemInfo. Normally, this will never happen with valid html, but in the event that someone needs to serialize a token stream representing a malformed tree, they can now do so. Fixes #292
diff --git a/html5ever/src/serialize/mod.rs b/html5ever/src/serialize/mod.rs index 1d69f295..f68e2e86 100644 --- a/html5ever/src/serialize/mod.rs +++ b/html5ever/src/serialize/mod.rs @@ -37,6 +37,7 @@ impl Default for SerializeOpts { } } +#[derive(Default)] struct ElemInfo { html_name: Option<LocalName>, ...
2
2
2
[{"id": "G0", "claim": "The pull request should include a unit test that fails before these changes and passes afterwards.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rather than unconditionally creating a missing parent element, the serializer shoul...
null
servo__html5ever__360
servo/html5ever
360
defect
d09dd0f675dcb067b4e6301a0b56f0b9d3763b84
ba98072f2f13a44071f8711d9d141fafbe82f446
Add criterion.rs to html5ever/xml5ever
Fixes #45 and is a stepping stone for #286. Why is this important for #286? ----- It allows project to track it's performance, since [criterion.rs](https://github.com/bheisler/criterion.rs) generates benchmark data and tracks changes to performance. Possible enhancements ----- This is first pass at criterio...
diff --git a/html5ever/Cargo.toml b/html5ever/Cargo.toml index a95fb5a1..13248832 100644 --- a/html5ever/Cargo.toml +++ b/html5ever/Cargo.toml @@ -39,8 +39,13 @@ markup5ever = { version = "0.7", path = "../markup5ever" } rustc-serialize = "0.3.15" rustc-test = "0.3" typed-arena = "1.3.0" +criterion = "0.2" [build...
2
2
0
[{"id": "G0", "claim": "The run_bench helper should not take a TokenizerOpts argument, since every caller passes Default::default().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bench name should be built with format!(\"tokenizing {}\", name) inste...
null