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
streetwriters__notesnook__9643
streetwriters/notesnook
9,643
defect
692975d4a0754f30f942696fdab7cb85c671d1f0
7b6165c8f064f9d51929661e7452d0d9562b7433
core: validate & sanitize inbox items
## Description <!-- Add a detailed summary of what this feature/bugfix does --> Validate & sanitize inbox items ## Type of Change - [ ] Bug fix - [ ] Feature ## Visuals - [ ] Attached relevant screenshots / screen recording / GIF - [ ] N/A (not a feature or no UI changes) ## Testing - [ ] Ran all E2E ...
diff --git a/packages/core/package-lock.json b/packages/core/package-lock.json index 3efc9c59c6..1bc65ed222 100644 --- a/packages/core/package-lock.json +++ b/packages/core/package-lock.json @@ -23,6 +23,7 @@ "dayjs": "1.11.13", "dom-serializer": "^2.0.0", "domhandler": "^5.0.3", + "do...
1
1
1
[{"id": "G0", "claim": "The DOMPurify-based sanitization added for inbox item content needs to be tested on mobile (it may not work there).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__objx__65
stretchr/objx
65
defect
6667b53588d15f3c8c519f0d1802d282e163381f
a96fda1baae04c7e58e37ad4969454ec789f0bec
Fixed incorrect result for obj.Value().MSI() getter
When an object is created as obj := objx.Map{...} calling obj.Value().MSI() returns an empty map. It should return the object itself as map[string]interface{} instead
diff --git a/type_specific_codegen.go b/type_specific_codegen.go index de42409..0fba9c4 100644 --- a/type_specific_codegen.go +++ b/type_specific_codegen.go @@ -135,6 +135,9 @@ func (v *Value) MSI(optionalDefault ...map[string]interface{}) map[string]interf if s, ok := v.data.(map[string]interface{}); ok { return ...
2
2
0
[{"id": "G0", "claim": "Add a TODO comment above the MSI getter noting that a better solution is needed for the Map handling because type_specific_codegen.go is autogenerated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the indentation in t...
null
stretchr__objx__74
stretchr/objx
74
defect
0ab728f62c7f6fcd754334f7931c2dd659dce1d1
37a0726bbca7153dc8ed78ace530604eae1199ce
URLQuery with index slice keys
Certain APIs (I believe those written in PHP) seem to be unable to parse correctly URLQuery() result containing slices generated by URLValuesSliceKeySuffix="" or URLValuesSliceKeySuffix="[]". The solution is to pass the slices with an index so that they are read correctly. For instance, in order to parse slices ...
diff --git a/conversions.go b/conversions.go index 7b0d812..93989fc 100644 --- a/conversions.go +++ b/conversions.go @@ -6,6 +6,7 @@ import ( "encoding/json" "errors" "net/url" + "strconv" ) // SignatureSeparator is the character that is used to @@ -14,7 +15,10 @@ const SignatureSeparator = "_" // URLValue...
2
2
2
[{"id": "G0", "claim": "The case at conversions.go line 150 (val.IsMSISlice) is not covered by any test cases; reviewer asks to add some, reusing the val.IsObjxMapSlice() ones.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Exposing the URL values slice...
null
stretchr__testify__1023
stretchr/testify
1,023
defect
92707c0b2d501c60de82176c4aa1cf880abac720
3b93fae0ea161f8d0ca47dd7aa3d8a949799d261
mock: allow testing for functional options
## Summary This PR fixes #997 In most go libraries nowadays (etcd, kubernets, aws, etc.) the [functional options pattern](https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis) is being used: ```go c := client.New(client.WithTimeout(), client.WithLabel("bar")) ``` ```go type opt struct...
diff --git a/mock/mock.go b/mock/mock.go index c6df4485a..df67dfbe1 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -3,6 +3,7 @@ package mock import ( "errors" "fmt" + "path" "reflect" "regexp" "runtime" @@ -13,6 +14,7 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/pmezard/go-difflib/difflib" ...
4
2
2
[{"id": "G0", "claim": "The FunctionalOptions API should be simplified by dropping the manually passed name field/parameter and deriving the option type name via reflection in String() and the Diff branch, updating the test call site accordingly.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
stretchr__testify__1084
stretchr/testify
1,084
defect
6241f9ab994219cafb009b160a20acf4a62063aa
087e873ce8a8b6d16bca54f86b60238e4d1c7db0
Fix #1083 (Nil-pointer dereference)
The fix gracefully fails the assertion when given `nil` as list value instead of panicking unresolved. Fixes #1083
diff --git a/assert/assertions.go b/assert/assertions.go index 688269231..cbf3469f6 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -721,7 +721,11 @@ func NotEqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...inte func includeElement(list interface{}, element interface{}) (ok, found bo...
2
1
0
[{"id": "G0", "claim": "The docstring of includeElement is out of sync with the function name (line 717's docstring says containsElement while line 721 declares includeElement), so the function name in line 717 should be updated to match.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
stretchr__testify__1129
stretchr/testify
1,129
defect
882382d845cd9780bd93c1acc8e1fa2ffe266ca1
5849ec5b93720d4cfd54c9b35c83f29c0345bf6e
Add assertion for NotErrorAs
## Summary The library had implementations for ErrorIs, ErrorAs and NotErrorIs but was missing a NotErrorAs implementation. This PR adds a NotErrorAs function, which is the inverse of the ErrorAs function. ## Changes * Adds `NotErrorAs` function and test * Improves existing tests (`TestErrorIs`, `TestNotErrorIs...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index 53f9c8e8b..c3fcb066d 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -604,8 +604,17 @@ func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg s return NotEqualValues(t, expected, actual, appe...
3
3
0
[{"id": "G0", "claim": "The second doc-comment line of NotErrorAs in assertion_forward.go should be changed to \"// This is the opposite of the ErrorAs function.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc-comment wording \"inverse\" ...
null
stretchr__testify__1188
stretchr/testify
1,188
defect
285adcc5ced0bb267a7c874cfa3ca238266ce14f
29108ad926a8f7efdf86f9694bd3fcd3fcd7c8da
Add WithinTimeRange method
## Summary Add `WithinTimeRange` and `WithinTimeRangef` assertion methods. ## Changes Adds the `WithinTimeRange` assertion function that checks whether the _expected_ time is on or after the _start_ time and on or before the _end_ time. If _end_ is before _start_ the function also fails. Adds `WithinTimeRange` ...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index 27e2420ed..e5d4752d8 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -736,6 +736,16 @@ func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta tim return WithinDuration(t, expected, actual, delt...
4
4
0
[{"id": "G0", "claim": "The doc example (all three arguments equal to time.Now()) is not intuitive and should be changed to something that explicitly demonstrates the difference between start and end.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
stretchr__testify__1195
stretchr/testify
1,195
defect
285adcc5ced0bb267a7c874cfa3ca238266ce14f
0f1e3737a30ff8d10cd4cfb8e98ead45784b8390
fix(suite) correctly set stats on test panic
## Summary In testify, in tests that `panic()`, `WithStats` is not correctly ended. See #1189 for details ## Changes probably not the prettiest fix but it works. Let me know what you think ## Motivation Looks like a bug ## Related issues Closes #1189
diff --git a/suite/suite.go b/suite/suite.go index 1c402e8df..232a9b012 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -138,8 +138,10 @@ func Run(t *testing.T, suite TestingSuite) { suite.SetT(t) defer failOnPanic(t) defer func() { + r := recover() + if stats != nil { - passed := !t.F...
2
2
1
[{"id": "G0", "claim": "The new inner defer's recover() would consume the panic, so the deferred failOnPanic(t) that runs later would never recover it and its failure reporting would break.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The failOnPa...
null
stretchr__testify__130
stretchr/testify
130
defect
43d0eed2455ed136d33e9426cf52119371ca4596
3bca10fb535189c931d0145d56c4071ee31e5e12
Add assert.EqualValues, which attempts to convert types to test equality
Fixes #129
diff --git a/assert/assertions.go b/assert/assertions.go index a60b38ebd..aa6222a91 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -45,6 +45,23 @@ func ObjectsAreEqual(expected, actual interface{}) bool { } +func ObjectsAreEqualValues(expected, actual interface{}) bool { + if ObjectsAreEqual(expec...
2
2
0
[{"id": "G0", "claim": "In assert/assertions.go, the doc comment added for the new function should say `EqualValues` instead of `Equal`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In require/requirements.go, the doc comment added for the new f...
null
stretchr__testify__1337
stretchr/testify
1,337
defect
0ab3ce1249292a7221058b9e370472bca8f04813
cb954e70769531b0462ae2f713c12c74e64ad69c
Add PanicAssertionFunc
## Summary Add a `PanicAssertionFunc` to ease writing table-driven tests for panic assertion. ## Changes - Add `PanicAssertionFunc` for table driven. ## Motivation - My team uses panic assertion a lot :smile: - Useful for building panic assertion - There is an issue reported for this one as well: #730 ``...
diff --git a/assert/assertions.go b/assert/assertions.go index c540bb02d..ab49bcd70 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -45,6 +45,10 @@ type BoolAssertionFunc func(TestingT, bool, ...interface{}) bool // for table driven tests. type ErrorAssertionFunc func(TestingT, error, ...interface{}) ...
2
2
1
[{"id": "G0", "claim": "The new PanicAssertionFunc should be declared as a type alias rather than a distinct defined type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The panicFn field in the added ExamplePanicAssertionFunc and TestPanicAssertionFunc ...
null
stretchr__testify__1345
stretchr/testify
1,345
defect
0ab3ce1249292a7221058b9e370472bca8f04813
32e845926e7ac2fe4938f2b5661609858f9cf2cd
assert.ErrorAs: log target type
## Summary When an assertion fails in assert.ErrorAs, log the target error type rather than its value. ## Changes Passes the target error type, rather than the target itself, to the Fail() call in assert.ErrorAs. Also, modifies buildErrorChainString to support go 1.20 error wrapping, and to include the error type ...
diff --git a/assert/assertions.go b/assert/assertions.go index c540bb02d..6017ce853 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -1847,7 +1847,7 @@ func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{ return Fail(t, fmt.Sprintf("Should be in error chain:\n"+ "expect...
4
3
2
[{"id": "G0", "claim": "Use %T instead of reflect.TypeOf when printing the target's type in the ErrorAs failure message (though both are fine).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "As well as printing the type of target after \"expecte...
null
stretchr__testify__1395
stretchr/testify
1,395
defect
af4d8a66cf17a72a6273211ee1cc7b47930abc4a
c790f3f22db8624ed249b5415d26b620ff26f325
fix: make EventuallyWithT concurrency safe
## Summary In `assert.EventuallyWithT`, `assert.CollectT` is used in a concurrent context which may lead to races as explained in https://github.com/stretchr/testify/issues/1391. ## Changes We create a `CollectT` per every condition tick and send its errors over a channel. On the reader side of the channel, we...
diff --git a/assert/assertions.go b/assert/assertions.go index 6ab0ec347..61cf39cfd 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -13,6 +13,7 @@ import ( "runtime" "runtime/debug" "strings" + "sync" "time" "unicode" "unicode/utf8" @@ -1862,10 +1863,13 @@ func Eventually(t TestingT, conditi...
5
5
1
[{"id": "G0", "claim": "The newly added CollectT.HasErrors method should be private (unexported) rather than added to the public API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The mutex implementation does not fix the real problem: multiple instance...
null
stretchr__testify__1400
stretchr/testify
1,400
defect
f97607b89807936ac4ff96748d766cf4b9711f78
89c65f54aa8ec81be50bb1f32e19aed5aed66717
assert.PanicsWithError: report error message
## Summary Always report error message on `PanicsWithError` error message mismatch. ## Changes Add `Error message` field to the failure message, that reports `panicErr.Error()` IFF it panicked with an error its message is different from expected. ## Motivation Better defect localization in case of nested error...
diff --git a/assert/assertions.go b/assert/assertions.go index a55d1bba9..c24b76d48 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -1212,7 +1212,15 @@ func PanicsWithError(t TestingT, errString string, f PanicTestFunc, msgAndArgs . } panicErr, ok := panicValue.(error) if !ok || panicErr.Error() !...
4
2
1
[{"id": "G0", "claim": "The tests must not use CollectT (reserved for EventuallyWithT) as the mock TestingT in TestPanicsWithError; they should use captureTestingT instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The PanicsWithError failure messag...
null
stretchr__testify__1423
stretchr/testify
1,423
defect
7df1a82a315198ca3c077c97af0c89be3495fcf7
da9948136f4411c66bd51e4ac3ef53ba8f0ed582
Add Helper() method in internal mocks and assert.CollectT
## Summary Start to extend our definition of `testing.TB` to include its `Helper()` method. See #1422 for details. ## Changes * Add an `Helper()` method on all internal mocks of `testing.T`. * Add an `Helper()` method on type `assert.CollectT`. ## Motivation These are steps 1 and 2 of #1422.
diff --git a/assert/assertions.go b/assert/assertions.go index 6843d425b..eb0d8e025 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -1874,6 +1874,9 @@ type CollectT struct { errors []error } +// Helper is like [testing.T.Helper] but does nothing. +func (CollectT) Helper() {} + // Errorf collects t...
1
1
1
[{"id": "G0", "claim": "The newly internal captureTestingT (and ideally the consolidation of it with CollectT) should also get a Helper() method like the other *testing.T mocks the PR touched.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__testify__1427
stretchr/testify
1,427
defect
862e41010c35d26c67e2056f279906c107450565
d4ebae4d204c91de4224d268c75b9d6d64071c1e
assert: check early in Eventually, EventuallyWithT, and Never
## Summary Addresses #1424. `Eventually` and `EventuallyWithT` current must always wait at least the polling duration before they can succeed. This PR starts checking the condition immediately. The assertion still fails if the initial check of the condition takes longer than the configured timeout. ## Changes <...
diff --git a/assert/assertions.go b/assert/assertions.go index 6ab0ec347..9ea64ee08 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -3,6 +3,7 @@ package assert import ( "bufio" "bytes" + "context" "encoding/json" "errors" "fmt" @@ -13,6 +14,7 @@ import ( "runtime" "runtime/debug" "strin...
7
3
1
[{"id": "G0", "claim": "The PR should be kept focused on issue #1424, with the tick-related changes split into a separate PR, because they appear to stop runs of the condition from overlapping.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "EventuallyWit...
null
stretchr__testify__1473
stretchr/testify
1,473
defect
882382d845cd9780bd93c1acc8e1fa2ffe266ca1
f236a3b683bfd9bd44436578d4c7d2b32ffa7bce
assert.EqualExportedValues: fix handling of arrays
## Summary <!-- High-level, one sentence summary of what this PR accomplishes --> In EqualExportedValues, testify treats an Array as a Slice, however, the reflect library throws an error if the type passed to `reflect.MakeSlice` is not a Slice kind. This issue was identified in #1404 The result is a [very simple t...
diff --git a/assert/assertions.go b/assert/assertions.go index 719164e7e..74f172807 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -109,7 +109,19 @@ func copyExportedFields(expected interface{}) interface{} { result.Elem().Set(reflect.ValueOf(unexportedRemoved)) return result.Interface() - case...
2
1
0
[{"id": "G0", "claim": "The reflect.Array and reflect.Slice cases should be combined into a single switch block that branches with an if only for the allocation of result, since the remaining logic is identical.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
stretchr__testify__1484
stretchr/testify
1,484
defect
11a6452626f0eacefe8a99889ca4b36f9340488c
d0cfc20a56eb62960e0a510cb760520366375e89
assert: fix httpCode and HTTPBody occur panic when http.Handler read Body
http.Request.Body should be `http.NoBoy` not `nil` when no body. https://github.com/stretchr/testify/blob/11a6452626f0eacefe8a99889ca4b36f9340488c/assert/http_assertions.go#L15 Test: ```go func httpReadBody(w http.ResponseWriter, r *http.Request) { _, _ = io.ReadAll(r.Body) // will panic } assert.HTTP...
diff --git a/assert/http_assertions.go b/assert/http_assertions.go index 6cfb6a838..8b82ca8d2 100644 --- a/assert/http_assertions.go +++ b/assert/http_assertions.go @@ -12,7 +12,7 @@ import ( // an error if building a new request fails. func httpCode(handler http.HandlerFunc, method, url string, values url.Values) (i...
2
2
1
[{"id": "G0", "claim": "The new httpReadBody handler should discard the request body with io.Copy(io.Discard, r.Body) instead of io.ReadAll, which needlessly allocates memory to read the body just to throw it away.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
stretchr__testify__1531
stretchr/testify
1,531
defect
c3b0c9b4f50cd8320ccdcdfd3ffd6afc5b109c4a
36ab02476cb9a126ee5f6d035bfac93a8e9f6985
assert: Fix EqualValues to handle overflow/underflow
## Summary The underlying function `ObjectsAreEqualValues` did not handle overflow/underflow of values while converting one type to another for comparison. For example: ```go EqualValues(t, int(270), int8(14)) ``` would return `true`, even though the values are not equal. Because, when you convert `int(2...
diff --git a/assert/assertions.go b/assert/assertions.go index 909daa5e2..8014e920b 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -165,12 +165,26 @@ func ObjectsAreEqualValues(expected, actual interface{}) bool { return true } - actualType := reflect.TypeOf(actual) - if actualType == nil { + ex...
3
2
1
[{"id": "G0", "claim": "If possible, invert the nested statements in ObjectsAreEqualValues to reduce the indenting and make the code easier to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace `interface` with `any` in the new test ta...
null
stretchr__testify__1535
stretchr/testify
1,535
defect
0e75f9941b5987a9ef2bd11ff8b24a4b4489e204
81e32a8a87303cb738534ed8a72e0d288ca1208f
suite: fix deadlock in suite.Require()/Assert()
As pointed out in issue #1520, if the suite is not initialised properly (by calling the `Run` function), then calling `suite.Require()` or `suite.Assert()` will result in a deadlock. ## Changes This commit fixes that by panicking if the suite is not initialised properly. This is justified because the suite is int...
diff --git a/suite/suite.go b/suite/suite.go index eac6909b4..e78922594 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -58,7 +58,7 @@ func (suite *Suite) Require() *require.Assertions { suite.mu.Lock() defer suite.mu.Unlock() if suite.require == nil { - suite.require = require.New(suite.T()) + panic("Looks...
2
1
0
[{"id": "G0", "claim": "Replacing the lazy initialisation in Require()/Assert() with a panic is a breaking change; the deadlock should instead be fixed by making two versions of the T method (an internal _t() called from Require/Assert, which already hold the lock).", "category": "correctness", "verdict": "opposed", "p...
null
stretchr__testify__1600
stretchr/testify
1,600
defect
3c0c0e64436603e62b52af1eb51e91544eb13ed9
07a572c47117a61f60c68ce26db96929a5959d3c
assert: new assertion NotElementsMatch
## Summary Add new assertion `NotElementsMatch` which asserts whether 2 lists are NOT equal ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should not match. This is an inverse of `ElementsMatch`. ## Changes - Add new assertion `NotElemen...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index c40f423c9..7540077ae 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -533,6 +533,19 @@ func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) bool return NoDirExists(t, path, append([]interface{...
2
1
1
[{"id": "G0", "claim": "The new NoElementsMatch must not return false on invalid (non-list) input but always report failure through a call to Fail, like the other assertions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The memo map could be made ...
null
stretchr__testify__1637
stretchr/testify
1,637
defect
b074924938f86d417f1c9a845c7e8b0784d7f937
7268a5bc0bb240a58a3f85d04076ad9ae13e2cb2
mock: in order mock calls
## Summary <!-- High-level, one sentence summary of what this PR accomplishes --> Add helper method to declare the order of the mock calls. ## Changes <!-- * Description of change 1 --> <!-- * Description of change 2 --> <!-- ... --> * add `InOrder(calls ...*Call)` helper method to declare the order of moc...
diff --git a/mock/mock.go b/mock/mock.go index d5eb1ef55..64464450b 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -273,6 +273,13 @@ func (c *Call) NotBefore(calls ...*Call) *Call { return c } +// InOrder defines the order in which the calls should be made +func InOrder(calls ...*Call) { + for i := 1; i < len(cal...
3
2
1
[{"id": "G0", "claim": "Add a unit test for the new InOrder function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Add a small usage example to the InOrder doc comment, in the form the reviewer sketched.", "category": "documentation", "verdict": "supp...
null
stretchr__testify__1644
stretchr/testify
1,644
defect
b074924938f86d417f1c9a845c7e8b0784d7f937
ea6964c2e96c2c682acc94781c71d861e21c94fc
mock: caller information for unexpected method call
## Summary When using mocks in large integration tests, it is very difficult to find places of unexpected function calls. ## Changes I suggest adding information about the location of the call. ## Motivation <img width="996" alt="371770366-d54f21fd-e916-4ce9-805a-856a80bd3a20" src="https://github.com/user-atta...
diff --git a/mock/mock.go b/mock/mock.go index d5eb1ef55..a4b7b0864 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -491,11 +491,12 @@ func (m *Mock) MethodCalled(methodName string, arguments ...interface{}) Argumen m.mutex.Unlock() if closestCall != nil { - m.fail("\n\nmock: Unexpected Method Call\n---------...
1
1
1
[{"id": "G0", "claim": "Update a test (possibly TestArgumentMatcherToPrintMismatch) to cover the new caller information in the unexpected-call failure message, confirming that the test's own file base name appears in the stack.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__testify__1646
stretchr/testify
1,646
defect
6c30310a8d0c34a6aa840c28898363f2d434147c
1eb5fc0b40b46c0bddf911802faea2dd0831985f
assert: truncate very long objects in test failure messages
## Summary Truncate object representations in test failure output messages that would cause the message to be too long to scan. This is a different approach than that in #1559. I feel this is more appropriate because is it safer. The other approach has the potential to allocate excessive memory and to print excessi...
diff --git a/assert/assertions.go b/assert/assertions.go index f6219d73b..58172881b 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -325,13 +325,15 @@ func messageFromMsgAndArgs(msgAndArgs ...interface{}) string { func indentMessageLines(message string, longestLabelLen int) string { outBuf := new(byt...
10
3
0
[{"id": "G0", "claim": "The truncatingFormat function should not shadow the built-in `max` function with its local variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Empty failure message should use truncatingFormat(\"%#v\", object) in...
null
stretchr__testify__1664
stretchr/testify
1,664
defect
a012e45d185128fe5bf3370e42b0854856e0998e
65657a1b76fe1524e2e7f777ecae0e654832c60f
NotSame should fail if args are not pointers #1661
## Summary Reduces the confusion assosciated with NotSame that previously would check nothing if any of the values is not a pointer. The changes made were tested using TestSame, TestNotSame, and Test_samePointers tests, and the changes did clear the tests. ## Changes 1. Modified samePointers to return another bool...
diff --git a/assert/assertions.go b/assert/assertions.go index 44b854da6..db77691b9 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -502,7 +502,13 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b h.Helper() } - if !samePointers(expected, actual) { + same, ok := ...
5
5
1
[{"id": "G0", "claim": "The doc-string for the internal samePointers needs updating, since it does not mention the type checking.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment '//both are pointers but pointing to different addresses...
null
stretchr__testify__1665
stretchr/testify
1,665
defect
a1b9c9efe3c25c50678b1e492045164b914e255f
c34e66fc50efcb04cb7b55067d8c35cd1bb50e66
suite: validate method signatures and continue execution for valid tests
## Summary This PR improves method signature validation in Testify's suite execution by ensuring that invalid methods are logged, and valid methods continue to execute. ## Changes * Added validation of method signatures (checking for arguments and return values) at an earlier stage, after method filtering. * Repl...
diff --git a/suite/suite.go b/suite/suite.go index 18443a91c..798a3559b 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -148,6 +148,13 @@ func Run(t *testing.T, suite TestingSuite) { continue } + // Checking method signature, should not contain arguments and return values + if method.Type.NumIn() > 1 || ...
2
2
1
[{"id": "G0", "claim": "A suite method with an invalid signature should fail as its own subtest (as in v1.10.0) while the remaining valid tests still run, instead of failing the whole suite or being skipped with only a warning that may go unseen.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null
stretchr__testify__1674
stretchr/testify
1,674
defect
89cbdd9e7b39eb58896d316a7495597d3aba4371
d57bac872105f5e62f6d3dd1f612d9c8a7d77d2b
refactor: use %q and %T to simplify fmt.Sprintf
## Summary The PR simplifies strings inside `fmt.Sprintf` statements. ## Changes Replace `"\"%s\""` with `%q`. Replace `fmt.Sprintf("\"%s"\", reflect.TypeOf(t))` with `fmt.Sprintf("%T", t)`. ## Motivation `%q` has fewer symbols than `"\"%s\""` but means the same for strings. See https://pkg.go.dev/fmt#h...
diff --git a/assert/assertion_compare.go b/assert/assertion_compare.go index 7e19eba09..3bab482fd 100644 --- a/assert/assertion_compare.go +++ b/assert/assertion_compare.go @@ -468,7 +468,7 @@ func compareTwoValues(t TestingT, e1 interface{}, e2 interface{}, allowedCompare compareResult, isComparable := compare(e1,...
4
4
0
[{"id": "G0", "claim": "In compareTwoValues' not-comparable failure message, use %T on e1 (as \"%T\") instead of %q on reflect.TypeOf(e1) so the output shows the full type.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In isOrdered's not-compar...
null
stretchr__testify__1681
stretchr/testify
1,681
defect
89cbdd9e7b39eb58896d316a7495597d3aba4371
19ddcbb61a59f0886dc7f51d08e9275372b85fe6
Improve ErrorIs message when error is nil but an error was expected
## Summary This improves the UX of users of `ErrorIs()` in case the value `nil` is passed for `err` while an error was expected. ## Changes - added check if `err == nil && target != nil` -> return a special error-string - updated relevant test case ## Motivation The error message when an error is expected bu...
diff --git a/assert/assertions.go b/assert/assertions.go index 4e91332bb..7aaa850a6 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -2100,6 +2100,9 @@ func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool { var expectedText string if target != nil { expectedText = target.Err...
1
1
0
[{"id": "G0", "claim": "The new nil-error message for ErrorIs should be worded as \"Expected error with \\\"EOF\\\" in chain but got nil.\\n\" instead of \"Expected error \\\"EOF\\\" but got nil.\\n\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stretchr__testify__1729
stretchr/testify
1,729
defect
5ac6528bffc1ed7557980c3c563caf8308568446
2a9c44b1d87607c362de484a7a2f7a14098530bf
fix Subset/NotSubset when calling with mixed input types
## Summary `Subset`/`NotSubset` failed with "<subset> has unsupported type map" when called with a `list` of kind `array`/`slice` and `subset` of kind `map` which should work based on the documentation. ## Changes I added support and test cases for these inputs. ## Motivation Implementation should conform to d...
diff --git a/assert/assertions.go b/assert/assertions.go index 09feff854..0088d2748 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -1001,7 +1001,7 @@ func Subset(t TestingT, list, subset interface{}, msgAndArgs ...interface{}) (ok } subsetKind := reflect.TypeOf(subset).Kind() - if subsetKind != r...
1
1
1
[{"id": "G0", "claim": "The new mixed map/slice behaviour of Subset/NotSubset is undocumented; the godoc of Subset and NotSubset should be reworded (the reviewer suggests 'Map elements are key-value pairs unless compared with an array or slice where only the map key is evaluated') so that both the new behaviour and the...
null
stretchr__testify__1734
stretchr/testify
1,734
defect
111716d6f991105fb6093a34264fe14769f719f9
c2116b41944a93870cbf8d8b207523ec2e98efc8
Improve ErrorAs failure message when error is nil
## Summary The following changes were made to improve the error messages ## Changes Improve ErrorAs failure message when error is nil Before: ``` Should be in error chain: expected: *assert.customError in chain: ``` After: ``` An error is expected but got nil. expected: *a...
diff --git a/assert/assertions.go b/assert/assertions.go index 0ed1eed09..3353b33a2 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -2202,11 +2202,17 @@ func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{ return true } + expectedText := reflect.ValueOf(target).Elem()....
1
1
0
[{"id": "G0", "claim": "Use `reflect.TypeOf(target).Elem().String()` instead of `reflect.ValueOf(target).Elem().Type().String()` when computing expectedText.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stretchr__testify__1775
stretchr/testify
1,775
defect
a53be35c3b0cfcd5189cffcfd75df60ea581104c
95ed1f8c9f30153441ccbb69d87dda36af620820
mock: avoid panic when expected type is nil in Arguments.Diff
## Summary Safely handle panic-causing `nil` type in `Arguments.Diff` to avoid panics (and the resulting mutex deadlocks) when formatting type mismatches. ## Changes * Introduce `Arguments.SafeName(reflect.Type) string` helper that returns `"<nil>"` for `nil` types, otherwise returns `t.Name()`. * In the `*Is...
diff --git a/mock/mock.go b/mock/mock.go index 114fca619..ffe19ce2d 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -1034,7 +1034,7 @@ func (args Arguments) Diff(objects []interface{}) (string, int) { if actualT != expected.t { differences++ outputRenderers = append(outputRenderers, func() string { - ...
2
2
1
[{"id": "G0", "claim": "The new SafeName helper does not need to be an exported method on Arguments and should be unexported.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The documentation of mock.IsType should be updated to convey that it cannot be us...
null
stretchr__testify__1791
stretchr/testify
1,791
defect
b5a0821dcb516407ed11714809cd033d7e94f939
a78e37330e674113a8f906c77a2c7cbc37db101f
assert.YAMLEq: Document mutlidoc behavior
## Summary Document the limitation that YAMLEq only compares the first document. ## Changes * Add tests to cover more of the current YAMLEq behavior. * Document that YAMLEq only compares the first document. ## Motivation It would be preferable to fix YAMLEq to compare all documents because that's what it outw...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index c592f6ad5..fbd26d5c2 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -849,7 +849,7 @@ func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, return WithinRange(t, actual, start, end, append(...
4
3
0
[{"id": "G0", "claim": "The YAMLEq doc comment wording should be changed so it no longer reads as if it compares only the first and second documents (suggested: \"YAMLEq asserts that the first document in the YAML documents is equivalent to the expected one.\"), and it should reflect that only the first document of eac...
null
stretchr__testify__396
stretchr/testify
396
defect
332ae0e18f810344d8b345b3bdde660ba1ce0ba7
5c9da494dde6611bf8269affb9dc78b5339fee42
HTTP code status assertions now fail tests
It resolves #379 by failing tests when assertion is false or is unable to construct HTTP request.
diff --git a/assert/http_assertions.go b/assert/http_assertions.go index fa7ab89b1..644cc95b8 100644 --- a/assert/http_assertions.go +++ b/assert/http_assertions.go @@ -8,16 +8,16 @@ import ( "strings" ) -// httpCode is a helper that returns HTTP code of the response. It returns -1 -// if building a new request fa...
2
2
0
[{"id": "G0", "claim": "The stray \"WHAT\" message left in TestHTTPRedirect's failure assertion should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The failure message should use %q and %d formatting instead of manually quoted %s a...
null
stretchr__testify__450
stretchr/testify
450
defect
c7668ea997d68b07ceaa34c46cef1419c39a2374
6fbc3313b33e84826b99d438e67b51898d126fcb
Simple validation of Equal/NotEqual assertion arguments
It resolves #286 by providing a simple validation function for Equal/NotEqual assertions. I have no idea how to test error messages produced by go testing framework, so I moved part of the logic to a helper function.
diff --git a/assert/assertions.go b/assert/assertions.go index 282673873..a5ce1f58a 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -14,6 +14,8 @@ import ( "unicode" "unicode/utf8" + "errors" + "github.com/davecgh/go-spew/spew" "github.com/pmezard/go-difflib/difflib" ) @@ -302,6 +304,10 @@ fu...
2
2
1
[{"id": "G0", "claim": "Move the `errors` import up with the rest of the standard library imports instead of leaving it in a separate group.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Equal/NotEqual should fail the assertion if either expected or actu...
null
stretchr__testify__552
stretchr/testify
552
defect
87b1dfb5b2fa649f52695dd9eae19abe404a4308
216d49c64d85385e4981e733578872879b1c35c3
Store CallerInfo when On() is called and print during AssertExpectations
This really help to figure out which calls haven't been called yet. result looks like this: ``` mock.go:419: PASS: GetBlock(chainhash.Hash) mock.go:419: PASS: GetBlock(chainhash.Hash) mock.go:419: PASS: GetBlock(chainhash.Hash) mock.go:412: FAIL: GetBlock(chainhash.Hash) at: [package_test.go:1918] ```
diff --git a/mock/mock.go b/mock/mock.go index ba817ee30..fc855fb44 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -42,6 +42,9 @@ type Call struct { // this method is called. ReturnArguments Arguments + // Holds the caller info for the On() call + CallerInfo []string + // The number of times to return the retu...
1
1
1
[{"id": "G0", "claim": "Unexport the new Call.CallerInfo field, since the package already exports too much of its internals.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__testify__555
stretchr/testify
555
defect
12b6f73e6084dad08a7c6e575284b177ecafbc71
317221eb43b064536f482c812e3c175873849174
Adding logging when mock assertions fails
Adding log for assertExpectationsForObjects mock failure. ``` func AssertExpectationsForObjects(t TestingT, testObjects ...interface{}) bool { ``` fixes #507
diff --git a/mock/mock.go b/mock/mock.go index 1e232b56e..381fc0b80 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -385,6 +385,7 @@ func AssertExpectationsForObjects(t TestingT, testObjects ...interface{}) bool { } m := obj.(assertExpectationser) if !m.AssertExpectations(t) { + t.Logf("Expectations didn't m...
1
1
0
[{"id": "G0", "claim": "The tCustomLogger test helper should hold a `logs []string` slice so there is an entry in the array for each Logf call, instead of the single `err string` field.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stretchr__testify__655
stretchr/testify
655
defect
f35b8ab0b5a2cef36673838d662e249dd9c94686
709096d1998aa37701458cf6853b760744733397
Add support for subtests (go 1.7)
Adds a `.Run(..)` method onto test suites, mimicking the semantics of [testing.Run](https://godoc.org/testing#T.Run). This will make writing table-driven tests in test suites cleaner and simpler, by handling the management of `*testing.T` instances transparently so that sub-tests can use the same `suite.Assert()` and ...
diff --git a/suite/suite.go b/suite/suite.go index e20afbc21..fb5f3797f 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -55,6 +55,20 @@ func (suite *Suite) Assert() *assert.Assertions { return suite.Assertions } +// Run provides suite functionality around golang subtests. It should be +// called in place of t...
11
7
3
[{"id": "G0", "claim": "Add a test that the old *testing.T is restored after Suite.Run exits.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use a defer in Suite.Run so the old *testing.T is always reset, even if the subtest panics.", "category": "corre...
null
stretchr__testify__686
stretchr/testify
686
defect
04af85275a5c7ac09d16bb3b9b2e751ed45154e5
c6ff429b115ff90df23ab286bae7596c3c7b110c
Time duration diff format
Time Duration mismatch from nanoseconds (int64) to readable format. Fixes #626.
diff --git a/assert/assertions.go b/assert/assertions.go index 3ac852a6c..04fef94b5 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -357,9 +357,11 @@ func formatUnequalValues(expected, actual interface{}) (e string, a string) { return fmt.Sprintf("%T(%#v)", expected, expected), fmt.Sprintf("%T(%#...
2
1
0
[{"id": "G0", "claim": "Use a plain if for the single time.Duration type check in formatUnequalValues instead of a switch, converting to a switch only if more cases are added later.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename TestTimeEquality to ...
null
stretchr__testify__733
stretchr/testify
733
defect
3f658bd5ac42cc0b5de5b427e95a480d5726ea76
7074e1b884ee6ba8025646803f3d952083034a71
refactoring of assertion_order
Refactoring of the assertion order functionality: - Using constants `greater`, `equal`, `less` instead of `-1`, `0`, `1`. Now the code become more readable. - Unify working with comparing results. There was almost the same copy-pasted code for `Greater`, `GreaterOrEqual`, `Less`, `LessOrEqual` functions. Now these ...
diff --git a/assert/assertion_order.go b/assert/assertion_order.go index 8c4f347f9..8616a9157 100644 --- a/assert/assertion_order.go +++ b/assert/assertion_order.go @@ -5,6 +5,12 @@ import ( "reflect" ) +const( + greater = 1 + equal = 0 + less = -1 +) + func compare(obj1, obj2 interface{}, kind reflect.Kind) (int...
7
5
2
[{"id": "G0", "claim": "The containsValue function is formatted with wrong indentation (spaces instead of tabs) and should be reformatted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider using a struct with three boolean fields instead o...
null
stretchr__testify__799
stretchr/testify
799
defect
221dbe5ed46703ee255b1da0dec05086f5035f62
5f6e296d4f9e04afbdb5402bd907bb32c72928f9
Fixed suite TearDown ordering
Using WaitGroup to synchronise between tests so TearDown runs at end. Having `suite.T().Parallel()` in `TestA` causes it to hang. goroutine wait in `<-t.signal` at [testing.go](https://github.com/golang/go/blob/master/src/testing/testing.go#L961) and suite.go Run to wait on `testsSync` `:108` Closes #466
diff --git a/suite/suite.go b/suite/suite.go index d708d7d75..75c465869 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -7,6 +7,7 @@ import ( "reflect" "regexp" "runtime/debug" + "sync" "testing" "github.com/stretchr/testify/assert" @@ -80,11 +81,12 @@ func (suite *Suite) Run(name string, subtest func()...
3
2
0
[{"id": "G0", "claim": "The call-order tests should live in suite_test.go as another test there rather than in a separately added suite_order_test.go file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function should call defer testsS...
null
stretchr__testify__855
stretchr/testify
855
defect
9a14481b90a0b2146f04fefbabb26dfad48af64c
4ff839ebbe63c4ea40ff6ddaf57ce9d7308bd064
Added negative dir and file tests
* Added NotFileExists test * Added NotDirExists test * Cleaned-up some comment formatting Closes #740
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index 7804ff0e1..8dbfc878d 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -32,7 +32,8 @@ func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args return Contains(t, s, contains, append([]interface...
4
1
0
[{"id": "G0", "claim": "In NoFileExists the error branch returns true either way, so the os.IsNotExist check is redundant and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Lstat-based checking means a symlink passes NoFileExists;...
null
stretchr__testify__871
stretchr/testify
871
defect
8c465a0c8e8057d28111e5ec72860f23965439e5
4fb6103b1884d089f411f5049791c78986a87aaa
Add Never assertion
Closes #870 Never asserts that a conditon isn't met within a given timeframe.
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index d3a4a7467..f2bc2e811 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -363,6 +363,17 @@ func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args . return LessOrEqual(t, e1, e2, append([]interfac...
3
2
0
[{"id": "G0", "claim": "The doc comment on the added Never function misspells \"satisfy\" as \"satisy\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment line should read \"periodically checking the target fun...
null
stretchr__testify__920
stretchr/testify
920
defect
012967472b95cabc50ed476a643943664f414cd7
79d0dbaa3fcd2a75c6608a916898147f9f223c38
Add HTTPStatusCode assertion
@glesica @boyan-soubachov Please consider this PR for merging. **Motivation** The current set of HTTP asserts do not cover the full range of status codes. This addition would allow a user to test for a specific status code. As such it would cover the full range of status codes, including for example: `http.Stat...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index bf89ecd21..c07387dd6 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -245,6 +245,18 @@ func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url stri return HTTPRedirect(t, handler, method, url, va...
3
1
0
[{"id": "G0", "claim": "The request-building and error-handling logic that is common to HTTPStatusCode and at least HTTPRedirect, HTTPSuccess and HTTPError should be extracted into one function and referenced from those functions.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introd...
null
stretchr__testify__929
stretchr/testify
929
defect
2566b669897c1e74a2c65da266eb3b9de2062a18
9b16825467ac813ef592a5cf7c8e3a6d31a7e989
Change how tearDownAllSuite is run to aviod deadlock when running with failfast
## Summary Fixes a deadlock when there is a failing test in a suite when run with failfast ## Changes This commit https://github.com/stretchr/testify/commit/0d3c8ce9f8c3be984ccd5d2e3438b173ea722267 attempted to fix an ordering issue with suite teardown, but introduced a deadlock when a test fails when running with...
diff --git a/suite/suite.go b/suite/suite.go index 8bbc7c23d..b9b5d1c56 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -7,7 +7,6 @@ import ( "reflect" "regexp" "runtime/debug" - "sync" "testing" "time" @@ -84,7 +83,6 @@ func (suite *Suite) Run(name string, subtest func()) bool { func Run(t *testing.T,...
1
1
1
[{"id": "G0", "claim": "A unit test should be added that reproduces the failfast/TearDownAllSuite behaviour in its current state and passes with the fix, so this large and important change cannot regress.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__testify__938
stretchr/testify
938
defect
ca8e08c131bfa32eb704e41a89dfee1a0c0ffba2
2664b9f9bd141bfedaad045e42ecfd6f07f4b38f
allow body for HTTPBodyContains and HTTPBodyNotContains for POST
## Summary Issue #925 Http Assertions does not allow the creation of a body ## Changes * Added body argument in HTTPBodyContains and HTTPBodyNotContains * in tests added httpPostHandler which reads request body and writes to response * In HTTPBody checking if there are url params , otherwise not adding to url...
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index c07387dd6..582b44f41 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -6,6 +6,7 @@ package assert import ( + io "io" http "net/http" url "net/url" time "time" @@ -201,11 +202,11 @@ func GreaterOrEqualf(t Test...
4
2
2
[{"id": "G0", "claim": "Add new test cases covering the logic just added to HTTPBody (appending the query string only when values is non-nil, and passing the request body through).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The GoDoc example for HTT...
null
stretchr__testify__942
stretchr/testify
942
defect
15aff29f35e9a60566cc995c2c8b7452a758c443
4c7e1dc202f01b931a3c8397115d2b588cac0e50
assertion_compare: fix format string for numbers
fix format string for numbers. without this patch, we got something like ``` Error: "%!s(int=382)" is not less than "%!s(int=100)" ```
diff --git a/assert/assertion_compare.go b/assert/assertion_compare.go index 66961ba2c..dc200395c 100644 --- a/assert/assertion_compare.go +++ b/assert/assertion_compare.go @@ -208,7 +208,7 @@ func compare(obj1, obj2 interface{}, kind reflect.Kind) (CompareType, bool) { // assert.Greater(t, float64(2), float64(1)) ...
1
1
1
[{"id": "G0", "claim": "Add a unit test (or modify an existing one) covering the format-string change so the project does not revert to it by mistake.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stretchr__testify__949
stretchr/testify
949
defect
e72b029e2a755a1eeb0ee541dd9cc728668edd95
fb7b2549db50a2e1b249e5d9cb5bdd2c99626c21
Allow comparing custom numeric types
## Summary Allow comparing custom numeric types without panics. ## Changes Prior to this commit, this would not work: ```go type myInt int assert.Less(t, myInt(1), myInt(2)) // panic! ``` We add some type conversions, similarly to how `ObjectsAreEqualValues` work. This allows us to compare `myIn...
diff --git a/assert/assertion_compare.go b/assert/assertion_compare.go index dc200395c..1b4ed3eca 100644 --- a/assert/assertion_compare.go +++ b/assert/assertion_compare.go @@ -13,12 +13,32 @@ const ( compareGreater ) +var ( + intType = reflect.TypeOf(int(1)) + int8Type = reflect.TypeOf(int8(1)) + int16Type = r...
2
1
1
[{"id": "G0", "claim": "The reviewer asks whether the new Convert() calls could modify the type of the values being tested and thereby have side effects.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reflection added by the PR has a non-negligibl...
null
stretchr__testify__974
stretchr/testify
974
defect
87a988cffbb945287b83c99ff8bd0c1de930dd85
3a7fd198eeee2d200ecd5be676ffa70aa3cc15ba
add assertion order
## Summary Add assertion of collections ordering. ## Changes ## Motivation It could help to check collection on specific order. ```go assert.IsIncreasing(t, []int{1, 2, 3}) ``` ## Related issues Closes #710
diff --git a/assert/assertion_format.go b/assert/assertion_format.go index 49370eb16..95416f62d 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -321,6 +321,54 @@ func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsil return InEpsilonSlice(t, expected, actual, epsi...
4
2
2
[{"id": "G0", "claim": "The isOrdered loop should be restructured to index the previous element inside the loop, which would also allow the assignments to be inlined, as it is clearer.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-compara...
null
strictdoc-project__strictdoc__1954
strictdoc-project/strictdoc
1,954
defect
a33209ba2631634477f571205037c32ce8363a55
daa243f74a358ed5e9b0e2e1c6dad20ec10eb131
Fix generated search URLs for project statistics
Search URLs generated for the project statistic page were caught by Jinja2 autoescaping, which makes them invalid. A good place to mark them as safe is the view object: It's the immediate layer below Jinja templates and specifically made to provide strings included by a Jinja2 template. Relates to #1920.
diff --git a/strictdoc/export/html/generators/view_objects/document_screen_view_object.py b/strictdoc/export/html/generators/view_objects/document_screen_view_object.py index 2548f4917..0775bc9ed 100644 --- a/strictdoc/export/html/generators/view_objects/document_screen_view_object.py +++ b/strictdoc/export/html/genera...
4
1
0
[{"id": "G0", "claim": "The new e2e test's expected count is wrong: the 'Root-level requirements not connected to by any requirement' metric stays 0 although nothing in the test input has relations, and 'node.is_root' as a standalone query evaluates to False even for requirements written directly under [DOCUMENT] (so i...
null
strictdoc-project__strictdoc__2235
strictdoc-project/strictdoc
2,235
defect
ff68e2479ea9a2f5759306c9404fb26bacd86ce5
1a2b6b16f09017e23a4235b74dfe0bbe6f576696
export/html2pdf: #2229 additional metadata for the front page
This PR is a first shot at #2229 * Additional metadata for the front-page can now be added under a new ``METADATA:`` field in the ``[DOCUMENT]`` element. * Documentation is updated accordingly * Both the default and the customised HTML2PDF4Doc templates are extended to show the additional metadata * A DSL passth...
diff --git a/docs/strictdoc_01_user_guide.sdoc b/docs/strictdoc_01_user_guide.sdoc index 9a5b9c216b..499a858ca8 100644 --- a/docs/strictdoc_01_user_guide.sdoc +++ b/docs/strictdoc_01_user_guide.sdoc @@ -812,6 +812,35 @@ Default is ``True``. [/SECTION] +[SECTION] +MID: 726b6a1a2f854e82a7670cb8480b887e +TITLE: Addit...
2
2
0
[{"id": "G0", "claim": "In the custom PDF front-page template, the custom metadata fields should be rendered after the non-optional meta fields (UID/VERSION) rather than before them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The min-height added for...
null
strictdoc-project__strictdoc__2677
strictdoc-project/strictdoc
2,677
defect
32221a2cd529d6cdc3fc19018975947064378bcf
6cf2025c98419daa6a61a7a56ce55368aad805d2
feat(parsing): Allow to infer default scope for markers
### WHAT This allows language readers to provide an inferred default scope to the marker parser. ### WHY In some situations, the explicit scope in `@relation(REQ-1, scope=function)` provided by the user would be redundant. A good example are Rust doc comments, which unambiguously determine the targeted language co...
diff --git a/strictdoc/backend/sdoc_source_code/comment_parser/marker_lexer.py b/strictdoc/backend/sdoc_source_code/comment_parser/marker_lexer.py index 31bbaff7e6..d42f83b1c4 100644 --- a/strictdoc/backend/sdoc_source_code/comment_parser/marker_lexer.py +++ b/strictdoc/backend/sdoc_source_code/comment_parser/marker_le...
1
1
0
[{"id": "G0", "claim": "The error raised when a relation marker omits its scope argument does not include the file name, so the file name should be added as an argument to marker_parser and reported with the error.", "category": "ux", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strictdoc-project__strictdoc__2821
strictdoc-project/strictdoc
2,821
defect
4341c8d49ebc4c62728ecc028040cdbed08399fd
de8c62f3eb870eec09f6c9141349d3afe1537907
feat(export/html): add column visibility panel to table view
**Column visibility toolbar** - Added a sticky "Columns visibility" button above the table that opens a dropdown panel with checkboxes for each column - Hiding/showing columns updates the table immediately (display: none on <th> and <td>) - "Show all" button resets all columns; disabled when nothing is hidden - H...
diff --git a/.gitignore b/.gitignore index 98fb6aabc..5385a3733 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ __pycache__ /docs/_draft/ /docs/_fixture/ /docs/_test/ +/.claude/ ### webdriver_manager: cache with downloaded Chrome Driver binaries ### /strictdoc/export/html2pdf/.wdm diff --git a/strictd...
7
7
0
[{"id": "G0", "claim": "Add a comment in tags.jinja.html explaining that the whitespace-trimming '-' in the endfor tag is important there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restyle the 'Column visibility toolbar' section comment in sc...
null
strimzi__strimzi-kafka-operator__10442
strimzi/strimzi-kafka-operator
10,442
defect
a0bd37b7ef857eb2d0828f32b67b5a0c03280c34
e314d28431d306958bbf3b408e710348d3dcf8a0
Add support for node unregistration in KRaft mode
### Type of change - Enhancement / new feature ### Description This PR implements the KRaft node unregistration at scale-down (node removal) as described in the [proposal 81](https://github.com/strimzi/proposals/pull/128). The unregistration is currently based on our own information carried in the Kafka CR sta...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f2f34e7680..89e16d566c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ On the client `accessTokenLocation`, `clientAssertion`, `clientAssertionLocation`, `clientAssertionType`, and `saslExtensions` have been added. * Add support for custom Cruise Contr...
5
5
0
[{"id": "G0", "claim": "The inline comment above setRegisteredNodeIds should say 'Copy the list of registered node IDs if needed' instead of 'used node IDs'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The class javadoc of KafkaNodeUnregistrati...
null
strimzi__strimzi-kafka-operator__10491
strimzi/strimzi-kafka-operator
10,491
defect
c34c14fe57fd560b3c0af4596dd63c9e7569b5ee
788c64d459db51be1290500345a6ccded65a0c56
Fix topicId status update
### Type of change Bugfix ### Description The KafkaTopic.status.topicId keeps the old value when the topic is recreated in Kafka while the reconciliation is paused/disabled, or the operator is not running. This change adds the topicId when the KafkaTopic is managed and topicId is not set, and removes the to...
diff --git a/topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java b/topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java index 0e37ae20442..2597d036b5d 100644 --- a/topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java +++ b/top...
4
2
0
[{"id": "G0", "claim": "The null check added to nonPausedAndDifferentGenerations is not enough: oldStatus.getObservedGeneration() != kt.getMetadata().getGeneration() could throw an NPE because getGeneration() returns Long and not long, so it should use Objects.equals.", "category": "correctness", "verdict": "uncertain"...
null
strimzi__strimzi-kafka-operator__10607
strimzi/strimzi-kafka-operator
10,607
defect
4a53db5a23714c680a9e6a786be67031642bcd74
cc78c9cd54721107ec28863ad655b7c78437e07c
Refactor the implementation for getting status of rebalance proposal request
### Type of change _Select the type of your PR_ - Refactoring ### Description - Use `/kafkacruisecontrol/user_tasks` endpoint to check the status of proposal request (rebalance request in dry mode) instead of `/kafkacruisecontrol/rebalance` endpoint with userTaskId. This makes it more consistent with how we...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceAssemblyOperator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceAssemblyOperator.java index 80abaff8961..5dd7a064e84 100644 --- a/cluster-operator/src/main/java/io/s...
1
1
0
[{"id": "G0", "claim": "A short comment should be added explaining why sessionId can be null in the PendingProposal state.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__10768
strimzi/strimzi-kafka-operator
10,768
defect
23e5305253cdcbc5137a6af4e260bbbe5e807166
3dd12c9c847ac18f16408e375b2fff59a9346e4c
Handle the failure due to reaching the servlet capacity when getting user tasks
### Type of change _Select the type of your PR_ - Bugfix ### Description If failed to get user tasks due to reaching the servlet capacity, it will no longer transition the KafkaRebalance status to NotReady. Instead, KafkaRebalance status will not be changed and in the next reconciliation, it will retry get...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceAssemblyOperator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceAssemblyOperator.java index 7f6af890b38..241fbcc6a61 100644 --- a/cluster-operator/src/main/java/io/s...
4
1
0
[{"id": "G0", "claim": "The comment explaining isMaxActiveUserTasksReached should sit on the variable itself rather than inside the constructor.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the boolean field isMaxActiveUserTasksReached to...
null
strimzi__strimzi-kafka-operator__10918
strimzi/strimzi-kafka-operator
10,918
defect
c079854895787489fc0530d1b1284b5a9ce45334
b8daf9286986d25ae79bc73d227f329522b54422
Improve Cruise Control client creation and testing
### Type of change - Refactoring ### Description This patch improves Cruise Control client creation and testing. It also removes the Kafka admin client creation method. Closes #10916. ### Checklist - [x] Make sure all tests pass - [x] Try your changes from Pod inside your Kubernetes and OpenShift cl...
diff --git a/topic-operator/src/main/java/io/strimzi/operator/topic/TopicOperatorMain.java b/topic-operator/src/main/java/io/strimzi/operator/topic/TopicOperatorMain.java index ebe0d4bc6c3..11f96037f55 100644 --- a/topic-operator/src/main/java/io/strimzi/operator/topic/TopicOperatorMain.java +++ b/topic-operator/src/ma...
7
5
1
[{"id": "G0", "claim": "The comment explaining why the informer resync check interval and the handler interval differ, which the pull request removes, is still valid and should be kept.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replacing the ...
null
strimzi__strimzi-kafka-operator__10929
strimzi/strimzi-kafka-operator
10,929
defect
efb4a4f4b42d9f5ce8947c73f99f2044091b4934
6831c645f17a7ddf29ccd875179f254397b0dc2d
Enable multi version single step downgrade for KRaft based clusters
### Type of change _Select the type of your PR_ - Enhancement / new feature ### Description Closes #10928 Introduces handling for encountering an unknown Kafka version in downgrade of a KRaft based cluster in order to enable multi version single step downgrade ### Checklist _Please go through this check...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KRaftVersionChangeCreator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KRaftVersionChangeCreator.java index 9f0b0555ec5..85862959cd8 100644 --- a/cluster-operator/src/main/java/io/strimzi/ope...
5
4
2
[{"id": "G0", "claim": "A warning log statement should be added in the downgrade catch block so downgrades from an unknown Kafka version are traceable in the logs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The removal of the all-brokers-sam...
null
strimzi__strimzi-kafka-operator__11210
strimzi/strimzi-kafka-operator
11,210
defect
820425f1e9e0b85eadd61959d257bdc0f3a030cc
f2956c6de8ea993b23ea8ded0a77fee4fa32fe70
Add support for volumeAttributesClassName on persistent storage
### Type of change Enhancement / new feature ### Description Currently, it is not possible to set the volumeAttributesClassName in the generated PVC using the persistent storage type. This enables that feature by adding a volumeAttributesClass field to the persistent storage that maps to the PVC. Changes to...
diff --git a/api/src/main/java/io/strimzi/api/kafka/model/kafka/PersistentClaimStorage.java b/api/src/main/java/io/strimzi/api/kafka/model/kafka/PersistentClaimStorage.java index 2902fb88819..aa32e87ae43 100644 --- a/api/src/main/java/io/strimzi/api/kafka/model/kafka/PersistentClaimStorage.java +++ b/api/src/main/java/...
10
9
4
[{"id": "G0", "claim": "The code sets volumeAttributesClassChanged whenever the path ends with /volumeAttributesClass, without first checking that the current and desired values actually differ.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The vol...
null
strimzi__strimzi-kafka-operator__11271
strimzi/strimzi-kafka-operator
11,271
defect
51b9b4bf93dfb3d13f73bda1b9023ff4ca99ef62
a3a072eaf31cb642355ba8ba552ac4c40167dd72
Fixed missing deletion of the migration znode on KRaft migration rollback
### Type of change - Bugfix ### Description This PR fixes #11262 by adding the deletion of the `/migration` znode when rolling back from a KRaft migration. ### Checklist - [x] Make sure all tests pass - [x] Check RBAC rights for Kubernetes / OpenShift roles - [x] Try your changes from Pod inside your K...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c9a851401..d3489a643c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## 0.45.1 -* Dependency updates (Vert.x 4.5.13, Netty 4.1.118.Final) +* Dependency updates (Vert.x 4.5.13, Netty 4.1.118.Final). +* Fixed bug which may lead to a broken cluster when ...
2
2
0
[{"id": "G0", "claim": "The word 'broken' in the changelog entry should be replaced with something more specific about what actually happens to the Kafka cluster after restarting a KRaft migration following a rollback.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
strimzi__strimzi-kafka-operator__11352
strimzi/strimzi-kafka-operator
11,352
defect
21d61e5dc5d53997f15e675f1e4ebd5fcd481874
40ebdd8cb4cad622ee8414a84be2ed6373580180
Update restart events to put resource in regarding
### Type of change _Select the type of your PR_ - Enhancement / new feature ### Description Update restart events to put resource in `regarding` field and move pod being rolled to `related` field. Implementation of [proposal 101](https://github.com/strimzi/proposals/blob/main/101-redesign-restart-events.md...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 83626657ba3..ac1344bed37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ This will make the cluster boot up correctly in IPv6 only environments, where IPv4 preference will break it due to lack of IPv4 addresses. * Improved the MirrorMaker2 example Grafan...
1
1
0
[{"id": "G0", "claim": "The new debug log statement uses commas after each field label instead of the clearer `label={}` format.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__11486
strimzi/strimzi-kafka-operator
11,486
defect
863cfd819ac0948b6c6f78383919fe41ab61d9e7
97c7107d45e862b166a755e3c58f79af0631d5de
Ignore user config provider aliases with conflict
### Type of change - Bugfix ### Description Closes #11349. Handles the scenario where the user specifies config providers than conflict with the Strimzi defined config providers. When the situation arises, a warning is generated and the conflicting user config providers are ignored (as agreed at community call...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaBrokerConfigurationBuilder.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaBrokerConfigurationBuilder.java index bbcd0de8444..ef7343cfa63 100644 --- a/cluster-operator/src/main/java/io/strimzi/operator/cluste...
4
4
2
[{"id": "G0", "claim": "A simple warning log can be easily missed and the operator should never change the user-provided configuration, so it should raise an InvalidConfigurationException and let the reconciliation fail when a user config provider alias conflicts with a Strimzi-defined one.", "category": "design", "ver...
null
strimzi__strimzi-kafka-operator__11543
strimzi/strimzi-kafka-operator
11,543
defect
a81d2b25eade5972c48ef8aa9d72fee79bbeabd9
591a6c31119741542ea9364e8a21ebfd72afcdcc
feat(cluster-operator) adding new JsonTemplateLayout support for logging
### Type of change Enhancement ### Description Closes #11415 This PR adds support for use the [JsonTemplateLayout](https://logging.apache.org/log4j/2.x/manual/json-template-layout.html) when configuring log appenders in Log4j2. Here is a configmap example using this new layout: ``` kind: ConfigMap ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e9b85125993..f419b30dcf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Add support for Kafka 3.9.1 * Fixed MirrorMaker 2 client rack init container override being ignored. * Support for Kubernetes Image Volumes to mount custom plugins +* Adding support ...
13
10
3
[{"id": "G0", "claim": "The new JsonTemplateLayout support needs system tests in LoggingChangeST, otherwise the PR is just adding Maven dependencies without any test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The needed changes should be done in th...
null
strimzi__strimzi-kafka-operator__11597
strimzi/strimzi-kafka-operator
11,597
defect
d23406353ba034b4b512fd7c8b1a2e8be93919e0
38723a7b31d70fd910e1a4bb700219c167d60296
Avoid infinite reconciliation loop of Ingress resources on Rancher
### Type of change - Bugfix ### Description When using Ingress listener on Rancher clusters, Rancher might set additional annotations to the Ingress resources. And Strimzi will be removing them and thus they wil be running a there and back again and again. This PR adds an ignore list to the Ingress reconciliat...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/kubernetes/IngressOperator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/kubernetes/IngressOperator.java index 3d66cd6928a..ff8ecf60176 100644 --- a/cluster-operator/src/main/java/io/strimzi/o...
1
1
0
[{"id": "G0", "claim": "Add a comment (or a well-named constant such as RANCHER_xxxxx) to make it clear that the field.cattle.io and cattle.io annotations in the annotation ignore lists come from Rancher.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__11698
strimzi/strimzi-kafka-operator
11,698
defect
6133c49c9510c5080e9024c4c8c66ef165501fe4
0e0ccaa89ac34c6fbb0c27d856a82fe4eb31678a
[ST] Change fields of the YAML files to make more sense and add README for upgrade/downgrade tests
### Type of change - Enhancement / new feature - Refactoring ### Description This PR changes few names of fields inside the upgrade/downgrade configuration files, as they were not consistent with other fields plus some were confusing - especially the ones used for deployment of Kafka. It adds also more info ...
diff --git a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java b/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java index 2239b84bea8..d23501cc3ff 100644 --- a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationD...
4
4
0
[{"id": "G0", "claim": "In the 'Removal of Kafka version' section, the sentence should read 'you have to change' rather than the ungrammatical 'you has to change'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README's opening sentence should...
null
strimzi__strimzi-kafka-operator__11742
strimzi/strimzi-kafka-operator
11,742
defect
3f657dfadf053933e27efdf45a662c3b35ea03d5
556989cb6c2a6514fe669bf1b1a7ca3b9e57dd53
Added dynamic changes on cluster-wide configuration parameters
### Type of change - Bugfix ### Description This PR fixes #11685. It's a different solution which should replace https://github.com/strimzi/strimzi-kafka-operator/pull/11704. Despite the issue is more visibile with Apache Kafka 4.1 (still coming) because ELR is enabled by default, a user could also enable ELR...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/KafkaBrokerConfigurationDiff.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/KafkaBrokerConfigurationDiff.java index c70df52cf30..046adc813a1 100644 --- a/cluster-operator/src/main/java/io/strim...
10
8
2
[{"id": "G0", "claim": "The cluster-wide configuration changes are applied once per broker visited by the KafkaRoller instead of just once before going through the brokers, and the author suggests finding a way within the KafkaRoller to apply them a single time.", "category": "design", "verdict": "opposed", "priority":...
null
strimzi__strimzi-kafka-operator__11760
strimzi/strimzi-kafka-operator
11,760
defect
e9b96b21b8616c61c99a0bc1060e9d427c7d7dc6
b92f93182df01e7db859d203909426232eb370ed
Add support for `type: custom` client authentication
### Type of change - Enhancement / new feature ### Description This PR adds support for `type: custom` client authentication as proposed and approved in [SP-110](https://github.com/strimzi/proposals/blob/main/110-custom-client-authentication.md). I tested this using custom SCRAM-SHA-512 configuration. I wan...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 008ebb5ec1c..a73018c803f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Make properties `broker.session.timeout.ms`, `broker.heartbeat.interval.ms` and `controller.socket.timeout.ms` configurable * Add monitoring of custom resources using [kubernetes-stat...
16
16
0
[{"id": "G0", "claim": "The new comments in the SASL branches of the configuration builders say the authentication does not use SASL, the opposite of the condition they sit in, and should be rewritten to be consistent with what the code there does, also in the other places that have the same comment.", "category": "doc...
null
strimzi__strimzi-kafka-operator__11797
strimzi/strimzi-kafka-operator
11,797
defect
a91f51ed115576f80be0a9fbbeae73b75c480255
4520a07a964ddb558498a26e13a1381cac5ef96f
Allow configuring additional options when restarting connectors
### Type of change Enhancement ### Description Fixes #11762 #11484 This PR implements this proposal: https://github.com/strimzi/proposals/blob/main/111-add-restart-parameters-to-kafka-connectors.md. ### Checklist - [ ] Write tests - [ ] Make sure all tests pass - [ ] Update documentation - [ ] Che...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractConnectOperator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractConnectOperator.java index 3c47e164665..1c22637b5b6 100644 --- a/cluster-operator/src/main/java/io/strimzi/operato...
10
10
5
[{"id": "G0", "claim": "There are checkstyle failures in the Azure pipeline that need to be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `message` variable can be dropped by putting the string directly into the log call and the warning ...
null
strimzi__strimzi-kafka-operator__11857
strimzi/strimzi-kafka-operator
11,857
defect
2c74682220495a5c089cb548158586f5bec873af
bef4bce6d10fad023f5340589aace8576659e6d9
Handling `min.insync.replicas` deletion operation when possible based on ELR version
This PR fixes #11854. More details about the rationale behind this fix are described in the issue.
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/KafkaBrokerConfigurationDiff.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/KafkaBrokerConfigurationDiff.java index 5fcadc1301c..d0a31e2e93d 100644 --- a/cluster-operator/src/main/java/io/strim...
5
3
1
[{"id": "G0", "claim": "The guard should test `elrVersion >= 1` instead of `== 1`, because the ELR version could be greater than 1 in the future.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Calling featureMetadata() from within the roller adds ye...
null
strimzi__strimzi-kafka-operator__12026
strimzi/strimzi-kafka-operator
12,026
defect
bc4a4dcac37407ecbbc150b29d25e3bc3739e786
418d71042a8aca1bf957c1315a674217b5dd8a37
Improve template behavior in Kafka Node Pools
### Type of change - Enhancement / new feature ### Description This PR implements the [Strimzi Proposal 120](https://github.com/strimzi/proposals/blob/main/120-improve-template-behavior-in-Kafka-node-pools.md) and improves how the templates are handled between the `Kafka` and `KafkaNodePool` resources. This...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d25864e55d3..1c98186d0e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,11 @@ * Make `.spec.replicas` properties required in the `v1` of the `KafkaBridge`, `KafkaConnect`, and `KafkaMirrorMaker2` custom resources. * New fields `.spec.groupId`, `.spec.configStora...
10
10
0
[{"id": "G0", "claim": "The added NOTE in proc-dedicated-nodes.adoc should be reworded to \"NOTE: If a property is defined in both `KafkaNodePool.spec.template` and `Kafka.spec.kafka.template`, the property defined in the node pool is used.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "sco...
null
strimzi__strimzi-kafka-operator__12158
strimzi/strimzi-kafka-operator
12,158
defect
1553ddacd74fc71aa0b03064ca22ff86353ca6c2
b198a4a54276cd884275482c1b99ae5071a1855e
Store push secret correctly for Connect Build with Buildah
### Type of change - Bugfix ### Description This PR fixes issue with not functional push secret in case that Buildah is used in Connect Build (and the particular feature gate). The push secret wasn't configured correctly at all, this way we will mount it to one place and reference it by `REGISTRY_AUTH_FILE` e...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.java index 8cd8f4e1eb2..80e1d698cf0 100644 --- a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.ja...
4
3
1
[{"id": "G0", "claim": "The two nested if statements in getBuildContainerEnvVars should be merged into a single if.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear what should happen when a user specifies --authfile in additionalPus...
null
strimzi__strimzi-kafka-operator__12287
strimzi/strimzi-kafka-operator
12,287
defect
6d21795e13055e4e87f7df18879c78ff1143cc04
be1d543ea0b36d9261b275c34e8071597f69384c
Implement support for deploying KafkaBridge with TLS/SSL configuration
### Type of change _Select the type of your PR_ - Enhancement / new feature ### Description This PR implements https://github.com/strimzi/proposals/pull/171. This PR can be merged only after the [PR](https://github.com/strimzi/strimzi-kafka-operator/pull/12443) that adds support for the new bridge relea...
diff --git a/CHANGELOG.md b/CHANGELOG.md index adad2dc14e0..ad6c8329a05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ * The `ServerSideApplyPhase1` feature gate moves to beta stage and is enabled by default. If needed, `ServerSideApplyPhase1` can be disabled in the feature gates configuration in th...
5
5
3
[{"id": "G0", "claim": "Add an empty line between the imports and the class Javadoc in KafkaBridgeHttpTls.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The certificateAndKey property of the new HTTP TLS configuration should be marked as r...
null
strimzi__strimzi-kafka-operator__12390
strimzi/strimzi-kafka-operator
12,390
defect
3367894463b21009c1a63c8e7849eadf0ded4088
de23033ace092919b6b3fd81fbf00fd928bdd255
Include CA chain in broker certificates
### Type of change _Select the type of your PR_ - Bugfix ### Description In 0.49.0, we removed the shell script that generated PKCS12 certificates for brokers based on the volume mounted PEM certificates from Kubernetes secrets. Instead of this, KubernetesSecretConfigProvider is used to access the secrets d...
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/ClusterCa.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/ClusterCa.java index 37d1b2927d3..be71164c9cd 100644 --- a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/ClusterCa.java +++ b/cluster-operato...
4
1
0
[{"id": "G0", "claim": "The code should handle certificates that do not end with a new line (as user-supplied certificates may have), instead of relying on the mocked certificates having a trailing new line.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
strimzi__strimzi-kafka-operator__12419
strimzi/strimzi-kafka-operator
12,419
defect
29f89913205dcfad2c0f915b7bbb9c1525ec5d3f
5c5596cd5572f6b79efe7577f2ae917c157c1e31
Removed Vert.x usage within the KafkaNodeUnregistration
### Type of change - Refactoring ### Description Removes Vertx from KafkaNodeUnregistration and its test classes. ### Checklist - [x] Make sure all tests pass - [x] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaNodeUnregistration.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaNodeUnregistration.java index e59da6d0f6a..ad74f80c1a6 100644 --- a/cluster-operator/src/main/java/io/strimzi/operato...
1
1
1
[{"id": "G0", "claim": "In many of the rewritten KafkaNodeUnregistrationTest tests there is no wait for completion (the original Vert.x wait was removed and nothing put in its place), so the tests may not really work.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__12443
strimzi/strimzi-kafka-operator
12,443
defect
d336389881f273a79e0aa974324050a9d3ca0d46
46119b9713b2cd6304dc0f28ffd272f8f11b4246
Support HTTP bridge release 1.0.0
### Type of change _Select the type of your PR_ - Enhancement / new feature ### Description Add support for the new bridge release and update the port that exposes the health and metrics related endpoints. ### Checklist _Please go through this checklist and make sure all applicable tasks have been do...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2639efcbfad..8811819f5a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ * The `ServerSideApplyPhase1` feature gate moves to beta stage and is enabled by default. If needed, `ServerSideApplyPhase1` can be disabled in the feature gates configuration in th...
4
3
1
[{"id": "G0", "claim": "The CHANGELOG entry about the HTTP bridge 1.0.0 update needs to be moved to the 1.0.0 release.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Renaming the historical '## 0.34.0' CHANGELOG heading to '## 1.0.0' is wrong.", "...
null
strimzi__strimzi-kafka-operator__12455
strimzi/strimzi-kafka-operator
12,455
defect
135807f14b7ed8aedab655c39cb5b5082d620ccb
1d147bb7417d083a2e37c4182a875c8a510e587e
Add Kafka 4.1.2
### Type of change - Enhancement / new feature - Refactoring - Documentation ### Description This PR adds a recently released Kafka 4.1.2. ### Checklist - [ ] Write tests - [ ] Make sure all tests pass - [ ] Update CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md index af0d67d0dda..981c90d8373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Use the `v1` API in the Cluster Operator * Use the `v1` API as the _stored_ API version * Allow upgrading from unknown Apache Kafka versions (that might be used in Strimzi patch rele...
2
2
1
[{"id": "G0", "claim": "Add a comment to the new 4.1.2 third-party-libs pom.xml saying what changed compared to 4.1.x (is it just Log4j2?).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's system-test performance changes (user cleanup/batch...
null
strimzi__strimzi-kafka-operator__12497
strimzi/strimzi-kafka-operator
12,497
defect
568706e3688098e46d8b2d7c820bfdf89885a949
40f00e801bbc1b07fa53fe63464ec649f37a64b2
[system test] Add CustomCaChainST
### Type of change - Enhancement / new feature - Refactoring - Documentation ### Description This PR adds a new test suite `CustomCaChainST` covering user-defined listener using a multi-stage custom CA (i.e., https://github.com/strimzi/strimzi-kafka-operator/issues/12364) plus CVE-2026-27133 and CVE-2026-271...
diff --git a/development-docs/systemtests/io.strimzi.systemtest.security.custom.CustomCaChainST.md b/development-docs/systemtests/io.strimzi.systemtest.security.custom.CustomCaChainST.md new file mode 100644 index 00000000000..8980d13ae45 --- /dev/null +++ b/development-docs/systemtests/io.strimzi.systemtest.security.c...
5
4
2
[{"id": "G0", "claim": "The local variable holding the secret key name should be named `userKeyInSecret` instead of `usedKeyInSecret`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The broker certificate chain assertion is too weak - it only ch...
null
strimzi__strimzi-kafka-operator__12540
strimzi/strimzi-kafka-operator
12,540
defect
eccdd771162bfb98bfcb98e303f3293417036151
95f5cf4ba5daa21bb6b046ca33d3cd0c0b0354c8
[ST] Add ST for converting resources and CRDs to v1 API
### Type of change - Enhancement ### Description This PR adds ST for checking the upgrade procedure with running the conversion tool for converting CRs and CRDs. In order to test the conversion of the CRs, I had to add some YAML files pointing to the `v1beta2`, instead of building them completely from scratch...
diff --git a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java b/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java index d23501cc3ff..29f178b33d7 100644 --- a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationD...
1
1
0
[{"id": "G0", "claim": "The wait for KafkaConnect readiness could be done based on the v1 API as well, since it only checks the resource status, making the v1beta2-specific waitForKafkaConnectReadyForV1Beta2 method unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__12548
strimzi/strimzi-kafka-operator
12,548
defect
0098508cf8b3a013d3f1f85fa4b77ce39f2d1a79
4f66892d3bd8fb992021b2d9831323376843bcce
[ST] Update OLM related STs - with NodePools, better handling of Namespaces
### Type of change - Bugfix ### Description This PR fixes (or updates) the OLM related tests - for `OlmAllNamespaceST` and `OlmSingleNamespaceST`. The tests were missing the NodePools creation for each Kafka cluster (and mainly testing the creation of NodePools from the OLM examples) and also the Namespace ha...
diff --git a/development-docs/systemtests/io.strimzi.systemtest.olm.OlmAllNamespaceST.md b/development-docs/systemtests/io.strimzi.systemtest.olm.OlmAllNamespaceST.md index f403556b04d..4541754f929 100644 --- a/development-docs/systemtests/io.strimzi.systemtest.olm.OlmAllNamespaceST.md +++ b/development-docs/systemtest...
2
2
0
[{"id": "G0", "claim": "Fix the typo \"oeprator\" in the testDeployExampleNodePools description in OlmAllNamespaceST.md.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo \"oeprator\" and the misleading description in OlmSingleNamespaceS...
null
strimzi__strimzi-kafka-operator__12550
strimzi/strimzi-kafka-operator
12,550
defect
34b967bf85b734b2f54f01bbe5a6c8f061f586be
7eedcab026fc2b35aef75447859be005d58de999
[ST] Handle feature gates in OLM upgrade and fix verification utils for OLM
### Type of change - Bugfix ### Description This PR adds feature gates to the OLM upgrade tests. It fixes situations when we are running the OLM tests with feature gates (as part of our OLM acceptance pipeline) and the "from" OLM version is configured with feature gates that should be executed as part of the "...
diff --git a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java b/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationData.java index 29f178b33d7..0fd1f53573c 100644 --- a/systemtest/src/main/java/io/strimzi/systemtest/upgrade/BundleVersionModificationD...
1
1
0
[{"id": "G0", "claim": "The nested if/else handling the OLM path in getClusterOperatorDeploymentImages should carry an explanatory comment (inline or in the method doc) describing that the value may be missing and is referenced from an annotation in this install type.", "category": "maintainability", "verdict": "suppor...
null
strimzi__strimzi-kafka-operator__12551
strimzi/strimzi-kafka-operator
12,551
defect
34b967bf85b734b2f54f01bbe5a6c8f061f586be
39a27b35ee150604068f4546f30713c3c84b2c59
[system test] [perf] Fix UserOperator 2k users scenario
### Type of change - Bugfix - Enhancement / new feature - Refactoring - Documentation ### Description This PR fixes a UserOperator perf tests deletion phase. Two fixes (i.) 409 conflict, which happens from time to time, now with replace method it should be solved (tried multiple times and it seems to work);...
diff --git a/systemtest/src/main/java/io/strimzi/systemtest/performance/utils/UserOperatorPerformanceUtils.java b/systemtest/src/main/java/io/strimzi/systemtest/performance/utils/UserOperatorPerformanceUtils.java index 77c1a6a39b1..f68adfd757a 100644 --- a/systemtest/src/main/java/io/strimzi/systemtest/performance/util...
1
1
0
[{"id": "G0", "claim": "The teardown-override note should not cite the closed kubetest4j issue as its removal trigger; instead the removal should be tracked so the override is dropped once a new Kubetest4j version is out.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
strimzi__strimzi-kafka-operator__12553
strimzi/strimzi-kafka-operator
12,553
defect
54783b824d96e5c0ef6bb23543174b1f031f4be4
e80bf70ece89bfa9a150d9d1ee5d6560e27e8091
Add support for `advertisedPortTemplate` field
### Type of change - Enhancement / new feature ### Description This PR adds the `advertisedPortTemplate` feature, which allows users to template the advertised port instead of specifying them separately for each broker. This implements the [Strimzi Proposal no 135](https://github.com/strimzi/proposals/blob/mai...
diff --git a/.checkstyle/import-control.xml b/.checkstyle/import-control.xml index 123e2a20fba..0c833f0b671 100644 --- a/.checkstyle/import-control.xml +++ b/.checkstyle/import-control.xml @@ -60,6 +60,7 @@ We also control imports only in production classes and not in tests. This is con <allow pkg="io.fabric8....
3
2
1
[{"id": "G0", "claim": "The evaluator's Parameters should be created once as a static final variable instead of a new instance on every renderPortTemplate call.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added description text 'Valid placehold...
null
strimzi__strimzi-kafka-operator__12558
strimzi/strimzi-kafka-operator
12,558
defect
f99505971c8e85b8febc700a76d8389cb3e702fe
a527e952a2de85462dad1671a16984e3e2c3340c
Promote `UseConnectBuildWithBuildah` to beta - enabled by default
### Type of change - Enhancement ### Description This PR promotes the `UseConnectBuildWithBuildah` feature gate to Beta - so enabled by default. Other than that it changes the timeline for FG promotion to 1.0 (Beta) and 1.3 (GA). ### Checklist - [x] Make sure all tests pass - [x] Update documentation ...
diff --git a/.azure/templates/jobs/system-tests/feature_gates_regression_jobs.yaml b/.azure/templates/jobs/system-tests/feature_gates_regression_jobs.yaml index fe3657ee6ef..834852d190f 100644 --- a/.azure/templates/jobs/system-tests/feature_gates_regression_jobs.yaml +++ b/.azure/templates/jobs/system-tests/feature_ga...
2
2
0
[{"id": "G0", "claim": "The changelog entry about the UseConnectBuildWithBuildah promotion should be placed in the 'Major changes, deprecations, and removals' section of CHANGELOG.md instead of the section above it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
strimzi__strimzi-kafka-operator__12576
strimzi/strimzi-kafka-operator
12,576
defect
1a0c0e1cba06128b2b3a0f1f6f48eab249b399fe
4f720509a9da6fcac83ec58dccc326f087a3e870
Enable dynamic configuration of Metrics Reporter's allowlist
### Type of change - Enhancement / new feature ### Description This PR adds `prometheus.metrics.reporter.allowlist` to the config-models, so we are able to change this configuration dynamically by configuring the `allowList` field inside the Kafka CR. This configuration is forbidden in case that it is configu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a13d9ec0f2f..4cf16a06141 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ * Add support for Kafka 4.1.2 * Remove PreferredLeaderElectionGoal from Cruise Control's default.goals list * Add `topologySpreadConstraints` support to the Strimzi Helm chart operator...
2
1
1
[{"id": "G0", "claim": "Placing the Metrics Reporter allowlist handling in the config models may be the wrong way forward — it might need to differ per Kafka version or be handled by separate checks when diffing the configuration instead, and if kept in the models it should have tests.", "category": "design", "verdict"...
null
strimzi__strimzi-kafka-operator__12598
strimzi/strimzi-kafka-operator
12,598
defect
263027f4b3956b32328c55f64218abf17246b94b
d21fb35d2876cba13ab0461b88009420045924f1
Added support for Bridge internal configuration
This PR implements [SIP 134](https://github.com/strimzi/proposals/blob/main/134-dedicated-executor-for-kafka-bridge.md) by adding support for user-provided configuration to the `KafkaBridge` custom resource via a the new `spec.config` field. This allows users to specify additional bridge-specific properties while filt...
diff --git a/api/src/main/java/io/strimzi/api/kafka/model/bridge/KafkaBridgeSpec.java b/api/src/main/java/io/strimzi/api/kafka/model/bridge/KafkaBridgeSpec.java index 1d984d13831..580e6b58202 100644 --- a/api/src/main/java/io/strimzi/api/kafka/model/bridge/KafkaBridgeSpec.java +++ b/api/src/main/java/io/strimzi/api/kaf...
11
10
0
[{"id": "G0", "claim": "The example kafka-bridge.yaml sets config options (http.port, kafka.bootstrap.servers) that fall under forbidden prefixes/options and should be removed from the example.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ...
null
strimzi__strimzi-kafka-operator__12652
strimzi/strimzi-kafka-operator
12,652
defect
1e419e0f035a91a14a2bd9da5c010ce7043c1a5e
fe907a9ce518cbdd02254733cb75dbc4f63dee0f
Maven copy dependencies
### Type of change - Enhancement / new feature ### Description Implements changes needed for the proposal https://github.com/strimzi/proposals/blob/main/119-add-includeScope-parameter-to-maven-artifact-for-kafka-connect-build.md - Adds a new optional parameter to KafkaConnect build using Maven artifacts - ...
diff --git a/api/src/main/java/io/strimzi/api/kafka/model/connect/build/MavenArtifact.java b/api/src/main/java/io/strimzi/api/kafka/model/connect/build/MavenArtifact.java index 65ae87d510d..032b08e8e91 100644 --- a/api/src/main/java/io/strimzi/api/kafka/model/connect/build/MavenArtifact.java +++ b/api/src/main/java/io/...
7
6
3
[{"id": "G0", "claim": "The @Description wording for includeScope should be reworded to the suggested phrasing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @Description of includeScope should mention what happens when the field is not set (...
null
stripe__goforit__24
stripe/goforit
24
defect
ebd28877cfd95d252d7a7dda67b18e45f67242cc
1fa1c34c57f18f71971dc263ecb8db0fa569a34a
Passing options to global Init
We need to implement a custom StatsdClient and there is not way to set it for the global client. Another option, https://github.com/stripe/goforit/pull/17 introduced pluggable options for creating a new `goforit` instance with custom options. This PR just enables global init to accept these options.
diff --git a/flags.go b/flags.go index dbb58a2..5bf23c1 100644 --- a/flags.go +++ b/flags.go @@ -416,6 +416,12 @@ func (g *goforit) SetStalenessThreshold(threshold time.Duration) { g.stalenessThreshold = threshold } +func (g *goforit) SetStatsdClient(client StatsdClient) { + g.stalenessMtx.Lock() + defer g.stalene...
1
1
1
[{"id": "G0", "claim": "SetStatsdClient writes g.stats under stalenessMtx but the rest of the code reads g.stats without that mutex held, so the method is not thread-safe; the reviewer suggests the statsd client should only be set before calling Init().", "category": "correctness", "verdict": "supported", "priority": "...
null
stripe__goforit__48
stripe/goforit
48
defect
465b938bb01ae67800184fac2b06f1e400acf4e3
3058bb5087b108697006faadd63caa407521dc53
cleanup package and reduce exposed interface
This does a few things: * gets rid of the global `goforit` instance. We ban it internally at Stripe, the README says we may introduce breaking changes at any point (and I'm not sure this actually has any external users to break). * only create a `statsd.New` instance if we didn't pass one into the `goforit` construc...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7c795d..b5e2863 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.13 + go-version: 1.17 - nam...
2
1
0
[{"id": "G0", "claim": "It might be better to use the upstream statsd.NoOpClient instead of the hand-rolled nullStatsd no-op implementation added in goforit.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since Override() is only global because of the...
null
stripe__goforit__50
stripe/goforit
50
defect
1c49784015cfccf4003fc48cf9beb14917be52ca
20fcc22c587c95fff8745c232d407100a6c0c577
provide a different mechanism for metrics collection
Today, we provide a way for callers to pass in functions that get deferred and called when a flag is evaluated so that we can track FF accesses. The straightforward way for callers to do this, however, involves having a big `sync.Map` which contents. This PR instead adds 2 `sync.Uint64`s per feature flag, and lets ...
diff --git a/backend.go b/backend.go index cb7af0a..280f4fa 100644 --- a/backend.go +++ b/backend.go @@ -1,11 +1,9 @@ package goforit import ( - "encoding/csv" "encoding/json" "io" "os" - "strconv" "time" "github.com/stripe/goforit/flags" @@ -19,10 +17,6 @@ type Backend interface { Refresh() ([]flags....
5
5
1
[{"id": "G0", "claim": "The explicit cacheline padding added to flagHolder (padding the struct out to a full 64-byte line to prevent false sharing) drew a concerned reaction and should be reworked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CSV f...
null
stripe__pg-schema-diff__109
stripe/pg-schema-diff
109
defect
7fc1d07ba7c3a32a1c9675c039d7044b07a2813c
ddd1b3af81ee8bdf13d2b76c71b26659614c0a71
Use logfmt for plan modifiers
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) - Switch to logfmt parameters. This is @alexaub-stripe's g...
diff --git a/cmd/pg-schema-diff/datastructs.go b/cmd/pg-schema-diff/datastructs.go new file mode 100644 index 0000000..1a5de84 --- /dev/null +++ b/cmd/pg-schema-diff/datastructs.go @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "sort" +) + +func mustGetAndDeleteKey(m map[string]string, key string) (string, error)...
1
1
0
[{"id": "G0", "claim": "The 'must' prefix on mustGetAndDeleteKey misleadingly implies a panic is raised while the function returns an error, so the name may not be idiomatic (the reviewer concedes they may be off and offers no better name).", "category": "maintainability", "verdict": "supported", "priority": "P3", "sco...
null
stripe__pg-schema-diff__113
stripe/pg-schema-diff
113
defect
412b68469d739e3a2ddd61b373fbdcbae4fa07fc
32100a9fd79b5133b1928f84dbbdcab43717a56d
Add support for altering sequences
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) Add support for altering sequences ### Motivation [//]...
diff --git a/internal/migration_acceptance_tests/sequence_cases_test.go b/internal/migration_acceptance_tests/sequence_cases_test.go index c41621a..fa9ce16 100644 --- a/internal/migration_acceptance_tests/sequence_cases_test.go +++ b/internal/migration_acceptance_tests/sequence_cases_test.go @@ -250,12 +250,6 @@ var se...
1
1
1
[{"id": "G0", "claim": "It might make sense to add sequence acceptance test cases covering NO MINVALUE and NO MAXVALUE, particularly when there is a type change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stripe__pg-schema-diff__189
stripe/pg-schema-diff
189
defect
34273e554e3b7b4492ef1d9d7e5fc3fafee076b3
9ce1541174426a1167d2f499acb3f257648251ea
Change the Generate function to take a SchemaSource instead of a sqldb.Queryable
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) This PR change the `Generate` function to take a `Schema...
diff --git a/pkg/diff/plan_generator.go b/pkg/diff/plan_generator.go index a897781..44847cb 100644 --- a/pkg/diff/plan_generator.go +++ b/pkg/diff/plan_generator.go @@ -33,6 +33,7 @@ type ( logger log.Logger validatePlan bool getSchemaOpts []schema.GetSchemaOpt + reverse ...
1
1
1
[{"id": "G0", "claim": "The WithReverse option is confusing and indicates a bigger flaw with the pg-schema-diff API; replace sqldb.Queryable with SchemaSource as Generate's from-parameter and rename fromDB to fromSchema, breaking backwards compatibility.", "category": "design", "verdict": "supported", "priority": "P1",...
null
stripe__pg-schema-diff__70
stripe/pg-schema-diff
70
defect
a5edc48d6359fafd5710a624b6d778a7c6ccb621
1b62927fe7d13946916a368cf48822209e41f949
Add DOT encoding support for internal/graph
### Description This PR adds support for encoding the dependency graph to [DOT](https://graphviz.org/doc/info/lang.html) format, which is used by [Graphviz](https://graphviz.org/), a popular graph visualization software. This will allow us to visualize our dependency graphs for debugging purposes. ### Motivation C...
diff --git a/internal/graph/dotbuilder.go b/internal/graph/dotbuilder.go new file mode 100644 index 0000000..bc346dc --- /dev/null +++ b/internal/graph/dotbuilder.go @@ -0,0 +1,49 @@ +package graph + +import ( + "fmt" + "io" +) + +const attr = `fontname="Helvetica,Arial,sans-serif" +node [fontname="Helvetica,Arial,sans...
7
7
1
[{"id": "G0", "claim": "EncodeDOT should be a standalone function `func EncodeDOT(graph *Graph[V], sortVertices bool)` in the same file as the DotBuilder (perhaps named encode_dot.go) rather than a method on Graph, and the named return parameter should be dropped.", "category": "design", "verdict": "supported", "priori...
null
stripe__pg-schema-diff__76
stripe/pg-schema-diff
76
defect
d1adc31caf6666b7c5cf318f1a455cd0a80587a6
e165745e7659023b1020a5cdd0d9643baa2da0f1
Online check constraint addition
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) This was a pretty low-hanging fruit. We now add all check ...
diff --git a/README.md b/README.md index 42a9145..71c7838 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,13 @@ $ pg-schema-diff plan --dsn "postgres://postgres:postgres@localhost:5432/postgre * The use of postgres native operations for zero-downtime migrations wherever possible: * Concurrent index builds *...
4
1
0
[{"id": "G0", "claim": "The `else if !csg.isNewTable` branch appending the access-exclusive-lock hazard should be dropped, because migration hazards for new tables are already stripped within the TableSQLGenerator.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id":...
null
stripe__pg-schema-diff__91
stripe/pg-schema-diff
91
defect
79effe00efc53d4c0002d2e58d06ea25291abc12
18f03d255d52c4858434753aebb920749836e81d
Concurrent schema fetching
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) Make schema fetching concurrent. This should accelerate it...
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5720d66..551a421 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -20,10 +20,6 @@ jobs: go_lint: runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 - with: - go-version: '...
6
4
0
[{"id": "G0", "claim": "The package doc comment's first sentence should read \"Future provides a way...\" instead of the ungrammatical \"Future are a way...\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "SynchronousGoRoutineRunner (and other no...
null
stripe__pg-schema-diff__99
stripe/pg-schema-diff
99
defect
48e8bf352c135273f7ef04a5904af6e266ee4fd0
417662c5650a76bff51fdb4bb1daf98f5b636f60
Wire schemas through SQL generation
[//]: # (README: Ensure you've read the CONTRIBUTING.MD and that your commits are signed) ### Description [//]: # (A clear and concise description of the purpose of this Pull Request. What is being changed? Include any relevant background for this change.) My general plan here is a little weird, but it's to help k...
diff --git a/internal/migration_acceptance_tests/column_cases_test.go b/internal/migration_acceptance_tests/column_cases_test.go index 8cce47b..aa5464e 100644 --- a/internal/migration_acceptance_tests/column_cases_test.go +++ b/internal/migration_acceptance_tests/column_cases_test.go @@ -303,7 +303,7 @@ var columnAccep...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the new IsPartition comment on internal/schema/schema.go:158, where \"they fields be stored\" should read \"these fields should be stored\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stripe__stripe-go__1052
stripe/stripe-go
1,052
defect
6109def916daa340714a07b55dcc0df653635eab
a1976def1c9e7e25e8c493935bc0697a899344fa
Remove all beta features from Issuing APIs
This PR removes all the deprecated features from the Issuing API and renames all relevant classes to ensure we have the right structure for codegen. r? @richardm-stripe @ob-stripe cc @stripe/api-libraries --- Note: Targets major version integration branch in #1055.
diff --git a/.travis.yml b/.travis.yml index b7ead3f848..eaeae1b4d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ cache: env: global: # If changing this number, please also change it in `testing/testing.go`. - - STRIPE_MOCK_VERSION=0.85.0 + - STRIPE_MOCK_VERSION=0.86.0 go: - "1.9.x" ...
2
2
0
[{"id": "G0", "claim": "The merchant data type name has a typo: `IssuingAuthoriationMerchantData` is missing a `z` and should be `IssuingAuthorizationMerchantData`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The docstring for IssuingCardhold...
null
stripe__stripe-go__1227
stripe/stripe-go
1,227
defect
c11cd5a8022190972dcac931b1ea501027b93a6d
8992f1c2960dcb7969aa218170082695711cfc4a
Add support for Account and Person Tokens creation
Fixes #1226 Tested using Golang Testing tool and with my own project Log of my project, I correctly get my account token ```sh 2020/11/19 12:21:43 token: &{{0xc000108ba0} <nil> <nil> <nil> 1.2.3.4 1605788503 ct_1HpC8xCMhQMU3AqAy65DO2ku false account false} 2020/11/19 12:21:43 token.ID: ct_1HpC8xCMhQMU3AqAy65D...
diff --git a/token.go b/token.go index 4db0b84da1..1bb4b39b9e 100644 --- a/token.go +++ b/token.go @@ -17,14 +17,26 @@ type TokenCVCUpdateParams struct { CVC *string `form:"cvc"` } +// TokenAccountParams is the set of parameters that can be used when creating a Account token. +type TokenAccountParams struct { + Bu...
3
3
1
[{"id": "G0", "claim": "The `Account *Account` field added to the `Token` struct does not exist in the API (and would be a hash, not an `Account`, even if it did), so it should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should...
null
stripe__stripe-go__1283
stripe/stripe-go
1,283
defect
e3fec787e53e66a92e02912a49f83502d3db74ef
d8bc45945cda91052a0a195fbb6b4aea6e484dc2
Add streaming requests
## Notify r? @dcr-stripe cc @stripe/api-libraries ## Description Implements support for streaming requests. How this will be used ```go // In foo/client.go, something like: func (c Client) PDF(id string, params *stripe.FooPDFParams) (*stripe.APIStream, error) { path := stripe.FormatURLPath("/v1/foo/%s...
diff --git a/stripe.go b/stripe.go index 1f6d7dd557..96c319ce11 100644 --- a/stripe.go +++ b/stripe.go @@ -107,6 +107,20 @@ type APIResponse struct { StatusCode int } +// StreamingAPIResponse encapsulates some common features of a response from the +// Stripe API whose body can be streamed. This is used for "file ...
5
4
0
[{"id": "G0", "claim": "The `json:\"-\"` annotation on APIStream.LastResponse should be removed because there should never be any JSON from the Stripe API to begin with.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on StreamingAPIRespon...
null
stripe__stripe-go__1408
stripe/stripe-go
1,408
defect
813466ba393de7ff2305e1975e2dd77060454115
b4ad71f128bb9d7b77f85727db0ec19ad3fd1819
API Updates
Codegen for openapi 4d2f301. r? @yejia-stripe cc @stripe/api-libraries ## Changelog * Add support for new resource `PaymentLink` * Add support for `PaymentLink` on `CheckoutSession`
diff --git a/checkout_session.go b/checkout_session.go index ae4d28e578..a61d702d02 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -956,6 +956,8 @@ type CheckoutSession struct { Object string `json:"object"` // The ID of the PaymentIntent for Checkout Sessions in `payment` mode. PaymentIntent *Paym...
2
1
1
[{"id": "G0", "claim": "The struct fields added to CheckoutSession are no longer gofmt-aligned, and the reviewer asks when field alignment by go fmt was abandoned.", "category": "style", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new paymentlink API is only exercised by a...
null
stripe__stripe-go__1648
stripe/stripe-go
1,648
defect
49436b0dea48ff8b01a1416c61154131783b9025
b09d7de07fac0f40aff1b990e65616e3f141d836
Introduce stripe.RawRequest as a canonical way to request APIs without definitions
Adds a `stripe.RawRequest` method to be able to send untyped requests while still offering core library features like auth, retries, etc.
diff --git a/README.md b/README.md index cada732f37..bf6d45fd7a 100644 --- a/README.md +++ b/README.md @@ -529,6 +529,22 @@ To install a beta version of stripe-go use the commit notation of the `go get` c go get -u github.com/stripe/stripe-go/v74@v74.3.0-beta.1 ``` +### Custom SDKs +If you would like to send a requ...
9
8
3
[{"id": "G0", "claim": "The GetAPIMode and GetStripeContext accessor methods on RawParams are unnecessary given the struct's fields are public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetDefaultRequestOptions in the preview package is an internal ...
null