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
yzhao062__pyod__438
yzhao062/pyod
438
defect
dd7ab46583345fea03bc3f0a541826446d540ddc
80f382734a99e0dc25549b4bd89f968dc9a5bb7a
Add detector based on Kernel PCA
Hi, This PR implements an outlier detector based on Kernel PCA. Heiko Hoffmann, "Kernel PCA for novelty detection," Pattern Recognition, vol.40, no.3, pp. 863-874, 2007. https://www.sciencedirect.com/science/article/pii/S0031320306003414 Best regards, Akira ### All Submissions Basics: * [x] Have you f...
diff --git a/examples/kpca_example.py b/examples/kpca_example.py new file mode 100644 index 000000000..4ab3b34be --- /dev/null +++ b/examples/kpca_example.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +"""Example of outlier detection based on Kernel PCA. +""" +# Author: Akira Tamamori <tamamori5917@gmail.com> +# License...
1
1
0
[{"id": "G0", "claim": "The example's training comment still says \"train kNN detector\" although this pull request's example trains a KPCA detector, and it should be corrected to \"train KPCA detector\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
z-galaxy__busd__238
z-galaxy/busd
238
defect
84e29831ca9fed366f5edc1490a56592c6399f94
53d51bca9a736fea0b64512c88eafcdb5d1b46c9
✨ Return success from StartServiceByName if the service is already started
Some client code (at least [glib's `GDBusProxy`](https://gitlab.gnome.org/GNOME/glib/-/blob/5da569a4253ab4b9a7ff9fcf8595c33f3c324a45/gio/gdbusproxy.c#L1629)) calls `StartServiceByName` and fully errors out when that returns an error, without proceeding to check what `GetNameOwner` says. Let's support this right now.
diff --git a/Cargo.lock b/Cargo.lock index f6d2e3ac..a997a1af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,6 +202,7 @@ dependencies = [ "quick-xml", "rand 0.9.1", "serde", + "serde_repr", "tokio", "tracing", "tracing-subscriber", diff --git a/Cargo.toml b/Cargo.toml index ebdbc8b2..98742f0e 100644 --- a...
3
3
0
[{"id": "G0", "claim": "The new enum should be named `StartServiceReply` instead of `StartServiceByNameReply`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The return-code type should instead be added to zbus (keeping the client-side `fdo::DBusProxy::s...
null
z-galaxy__busd__242
z-galaxy/busd
242
defect
13c09663180eb44ede29be925250dccd1cb0e9dd
2c1bfd2ce4dc797e2d6e16b155c30b09fce11694
🚑️ Fix unicast signal delivery
xdg-desktop-portal uses unicast signals for responses; glib/gtk relies on that and does not actually AddMatch for those (`G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE`).
diff --git a/src/peers.rs b/src/peers.rs index ed4af366..23f8d73c 100644 --- a/src/peers.rs +++ b/src/peers.rs @@ -298,7 +298,9 @@ impl Peers { trace!("Broadcasting message: {:?}", msg); let name_registry = self.name_registry().await; for peer in self.peers.read().await.values() { - ...
2
2
2
[{"id": "G0", "claim": "The unicast-destination check should be moved out of the broadcast loop in src/peers.rs and into Peer::interested instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for the changed signal-delivery behav...
null
z-galaxy__zbus__1176
z-galaxy/zbus
1,176
defect
e60691b0da78c1bc32ff6be5c2cfd328a54c8e51
035601a9c3d629863a0e002beda6cff4b61f3376
✨ zb,zm: Support Option<Header<'_>> parameter in property getters
This allows for fine-grained connecting-UID checking, in order to be able to control who is able to access property values.
diff --git a/zbus/src/fdo/properties.rs b/zbus/src/fdo/properties.rs index 9be71ad1d..9fba485e2 100644 --- a/zbus/src/fdo/properties.rs +++ b/zbus/src/fdo/properties.rs @@ -9,7 +9,7 @@ use zbus_names::InterfaceName; use zvariant::{OwnedValue, Value}; use super::{Error, Result}; -use crate::{interface, message::Head...
8
7
2
[{"id": "G0", "claim": "Move the new `is_special_arg` helper definition down below its first use, following the top-down (use-before-definition) code layout.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the `count` getter test, rename the c...
null
z-galaxy__zbus__1179
z-galaxy/zbus
1,179
defect
60e64bd46be7a45cf527e0f0d083eeca0ff4e1f2
8454e43a9d220ff57f131d6fa3f3dfa947fd0b08
✨ zb,zm: Support special args in interface property setters
Along with all the other special parameter types that methods currently support (connection, object_server and signal_emitter).
diff --git a/zbus/src/fdo/properties.rs b/zbus/src/fdo/properties.rs index c0ae42d93..764af10c5 100644 --- a/zbus/src/fdo/properties.rs +++ b/zbus/src/fdo/properties.rs @@ -56,12 +56,14 @@ impl Properties { } /// Set a property value. + #[allow(clippy::too_many_arguments)] async fn set( &se...
6
4
0
[{"id": "G0", "claim": "The doc comment for the `header` argument should drop the getter/setter detail and just say that it 'will be set to `None` if the method is called for reasons other than to respond to an external property access'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ...
null
z-galaxy__zbus__1321
z-galaxy/zbus
1,321
defect
e5f811b98e604b7d979f51b20bca47949818f2cc
88626fef56dc7ec0476276dd87058573d205b872
Support ProcessFD in fdo::DBus::get_connection_credentials'
Add support for the ProcessFD key in `org.freedesktop.DBus.GetConnectionCredentials` to zbus (and thus to busd) by adding the socket pidfd to `ConnectionCredentials` in `socket::unix::get_unix_peer_creds_blocking`.
diff --git a/zbus/tests/basic.rs b/zbus/tests/basic.rs index fef3164f2..8abd93c15 100644 --- a/zbus/tests/basic.rs +++ b/zbus/tests/basic.rs @@ -3,7 +3,6 @@ use std::collections::HashMap; use enumflags2::BitFlags; use ntest::timeout; use test_log::test; -use tokio::fs; use tracing::{debug, instrument}; use zbus::{...
2
2
1
[{"id": "G0", "claim": "Split the incidental changes in zbus/tests/basic.rs (moving the use declarations to a smaller scope and reformatting the chained calls) into their own commits rather than bundling them into one commit whose content does not match its stated purpose.", "category": "maintainability", "verdict": "s...
null
z-galaxy__zbus__1381
z-galaxy/zbus
1,381
defect
6ab4ed467a48972e190b5f21adf36bf9fee9daa4
0dbd096b08760fe5bc36a8b8008d56be65dd641a
🐛 zb: Fix build on Android by limiting PeerPidfd to linux
For whatever reason the nix::sys::socket::sockopt::PeerPidfd is only available to target_os = "linux", so properly guard the code using it against that. Fixes: 3602dcbb ("✨ zb: Add ProcessFD/pidfd to peer ConnectionCredentials") <!-- Thank you for your contribution! 🙏 We hope you have read our contribution...
diff --git a/zbus/src/connection/socket/unix.rs b/zbus/src/connection/socket/unix.rs index 64001a4ed..2491e1e7c 100644 --- a/zbus/src/connection/socket/unix.rs +++ b/zbus/src/connection/socket/unix.rs @@ -337,14 +337,10 @@ fn get_unix_peer_creds_blocking(fd: RawFd) -> io::Result<crate::fdo::ConnectionC { ...
2
1
1
[{"id": "G0", "claim": "The aarch64-linux-android target should be added to the workflow that checks builds for the other platforms, so that this fix also gets tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An inline comment should be added to c...
null
z-galaxy__zbus__1382
z-galaxy/zbus
1,382
defect
b37180f1e3504673f7fecbe15ad0b0d707fb8b86
4a42aca7373ab16a19d45b91d33c515359cda1a7
🚨 zv,zb: Fixes against latest clippy
Also fix a regression from 48d397c0. <!-- Thank you for your contribution! 🙏 We hope you have read our contribution guideline and followed it to the best of your abilities: https://github.com/dbus2/zbus/blob/main/CONTRIBUTING.md#submitting-pull-requests -->
diff --git a/zbus/src/win32.rs b/zbus/src/win32.rs index 664fe1071..589d5e534 100644 --- a/zbus/src/win32.rs +++ b/zbus/src/win32.rs @@ -1,6 +1,6 @@ use std::{ ffi::{CStr, OsStr}, - io::{Error, ErrorKind}, + io::Error, net::SocketAddr, os::windows::{ io::{AsRawHandle, FromRawHandle, Owned...
1
1
0
[{"id": "G0", "claim": "Add a precondition check (e.g. assert that `align` is a positive power of two) and document the contract of `padding_for_n_bytes` to prevent misuse now that it is public for tests.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
z-galaxy__zbus__1408
z-galaxy/zbus
1,408
defect
0fa2aa6cd7b3302941c34669b18cb1b1b079c36a
4553261b1e6497c8f434b0b283a4f6d680dd77d3
✨zm: Support write-only properties
Support write-only properties in the `interface` macro. - When the getter is not explicitly defined, the property will be write-only. - The `emits_changed_signal` option must still be specified only on the getter method. If no getter is defined, this option will be set to `false`. p.s. I've also changed some re...
diff --git a/zbus_macros/src/iface.rs b/zbus_macros/src/iface.rs index 21f001932..10d837dcb 100644 --- a/zbus_macros/src/iface.rs +++ b/zbus_macros/src/iface.rs @@ -420,17 +420,11 @@ pub fn expand(args: Punctuated<Meta, Token![,]>, mut input: ItemImpl) -> syn::Re "`emits_changed_signal` cannot be s...
3
1
1
[{"id": "G0", "claim": "The PR's cfg-conditional implementation, where individual interface members depend on specific config, is intrusive and a likely sign of bad API design, so a compelling use case must be established before the change can be considered.", "category": "design", "verdict": "supported", "priority": "...
null
z-galaxy__zbus__1426
z-galaxy/zbus
1,426
defect
55c690159f2117636adb4ef4b56de9f28977808e
f970d8e3501562abaeb897ce501d3bbd73c96b98
✨ zb: Property stream will yield the current value on the first element
Uses a dummy event to make the property stream yield the current value immediately when the cache is available.
diff --git a/zbus/src/proxy/mod.rs b/zbus/src/proxy/mod.rs index 9ff43c62e..160465bd4 100644 --- a/zbus/src/proxy/mod.rs +++ b/zbus/src/proxy/mod.rs @@ -964,21 +964,24 @@ impl<'a> Proxy<'a> { /// Note that zbus doesn't queue the updates. If the listener is slower than the receiver, it /// will only receive th...
5
4
2
[{"id": "G0", "claim": "The PR description's 'Fix #1412' is wrong because that issue is about awaiting specific changes, not this PR's change to property-changed stream behaviour.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change to receiv...
null
z-galaxy__zbus__1530
z-galaxy/zbus
1,530
defect
df446d261e34f71e5661e7d8fe86f65915f1eefa
cb9b32f4ca0d44400ccae27a3d1e0708dd3c7e71
➖ zb,zv: Remove `rand`, replace with `uuid` and `fastrand` respectively
Removes `rand` as a dependency, but since `fastrand` is already a transient dependency this doesn't build any more code. This removes multiple other dependencies as well, notably `zerocopy` which is quite large. ``` ppv-lite86 0.2.21 rand 0.9.2 rand_chacha 0.9.0 rand_core 0.9.3 zerocopy 0.8.25 zerocopy-derive...
diff --git a/Cargo.lock b/Cargo.lock index 5ca2b53bb..4f9cbc692 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1205,15 +1205,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" -[[package]] -name = "ppv-l...
7
3
0
[{"id": "G0", "claim": "Use the ubiquitous `uuid` crate for GUID generation in zbus instead of `rand` (elmarco supposed uuid could be enough and the maintainer asked for the switch, in at least two separate commits).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1"...
null
z-galaxy__zbus__1536
z-galaxy/zbus
1,536
defect
2251eb4205df2dc705f7413e9c47b0b8e7a88544
8f0e52485312f16e4bf18db7fe890333c6da66e0
✨ zv: Added a signature! macro
Add a `signature!` macro that creates const signatures with compile-time validation. This makes it easier to work with D-Bus signatures while catching invalid ones early. Fixes #984
diff --git a/zvariant/src/lib.rs b/zvariant/src/lib.rs index 9760b7a98..46c4aa36d 100644 --- a/zvariant/src/lib.rs +++ b/zvariant/src/lib.rs @@ -98,7 +98,7 @@ pub use as_value::Deserialize as DeserializeValue; #[deprecated(since = "5.5.0", note = "Use `as_value::Serialize` instead.")] pub use as_value::Serialize as S...
8
7
0
[{"id": "G0", "claim": "The signature_to_tokens helper should not have been widened to pub (pub(crate) instead) and, being shared between modules, should be moved into the separate module (e.g. named signature) created for the macro impl.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
z-galaxy__zbus__1539
z-galaxy/zbus
1,539
defect
7c2baf65117ab8e5f3df86fa303f0315c73c8f7a
8f15a2b59ba8b95dd36bbfca256842b0ec5260a3
💣 zb: Fix a possible crash when executor poll panic
Crash have been seen in particular case when we create a Connection during a shutdown sequence and when task is cancelled. Fixes #1531
diff --git a/zbus/src/abstractions/executor.rs b/zbus/src/abstractions/executor.rs index cafb2e215..2f4daeb7b 100644 --- a/zbus/src/abstractions/executor.rs +++ b/zbus/src/abstractions/executor.rs @@ -14,6 +14,8 @@ use std::{ #[cfg(feature = "tokio")] use tokio::task::JoinHandle; +use std::io; + /// A wrapper arou...
5
4
2
[{"id": "G0", "claim": "The task-panic case should use `crate::Error::Failure` (implying the output type changing to `crate::Result`) instead of `io::Error` with `ErrorKind::Other`.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error mapping is the wr...
null
z-galaxy__zbus__1565
z-galaxy/zbus
1,565
defect
319c1d2ceb6c0d3457c56993414299d23a0946bd
ec84ead53ea0aa3af09993dc112395704f8d9dd7
🐛 macro: ignore r# prefix in method names
The `r#` prefix required for identifiers that would otherwise be rust keywords is no longer carried over into the dbus method / property names when used in interface methods. Users no longer have to resort to the `name` attribute in these cases. There is a related open issue regarding `r#` in parameter names (#15...
diff --git a/zbus_macros/src/iface.rs b/zbus_macros/src/iface.rs index f9c2bd712..3caca1a19 100644 --- a/zbus_macros/src/iface.rs +++ b/zbus_macros/src/iface.rs @@ -257,6 +257,9 @@ impl MethodInfo { assert!(name.starts_with("set_")); name = name[4..].to_string(); } + ...
6
4
1
[{"id": "G0", "claim": "The new `if name.starts_with(\"r#\")` branch should be an `else if`, since it cannot apply to the property setters that the previous `if` handles.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fallback in `gen_proxy_...
null
z-galaxy__zbus__1576
z-galaxy/zbus
1,576
defect
877a3eaa3297f6de9f7a7a9fbb95414013f01969
0d9272a41bb4582fde2dac540af53fb38463d44b
🐛 macros: ignore r# prefix in parameter names
The r# prefix of raw identifiers in parameter names is no longer carried over into the dbus introspection XML. This is a follow-up to #1565, which dealt with method names. Closes #158
diff --git a/zbus/tests/iface_and_proxy/client.rs b/zbus/tests/iface_and_proxy/client.rs index db61331ca..7c2a8d55d 100644 --- a/zbus/tests/iface_and_proxy/client.rs +++ b/zbus/tests/iface_and_proxy/client.rs @@ -74,6 +74,14 @@ pub async fn my_iface_test(conn: Connection, event: Event) -> zbus::Result<u32> assert!...
2
2
0
[{"id": "G0", "claim": "An allocation (\"type: param\".to_string()) is not needed for the comparison in the new test assertion.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion should be specific that there is only one parameter, checkin...
null
z-galaxy__zbus__1605
z-galaxy/zbus
1,605
defect
17896ed4d46803c6546f03956799eb6cfb3b7cb8
aa877e694ebf6bfca29c45cb16df5da71c50d72c
✨ zb: Add `crate` attribute for custom crate paths
Allows users to specify custom crate paths via the crate attribute when zbus or zvariant is renamed or re-exported in Cargo.toml. As discussed in #1590 <!-- Thank you for your contribution! 🙏 We hope you have read our contribution guideline and followed it to the best of your abilities: https://github.c...
diff --git a/zbus_macros/src/error.rs b/zbus_macros/src/error.rs index 47069569f..af440f3fe 100644 --- a/zbus_macros/src/error.rs +++ b/zbus_macros/src/error.rs @@ -8,7 +8,8 @@ def_attrs! { pub StructAttributes("struct") { prefix str, - impl_display bool + impl_display bool, + crate...
4
3
2
[{"id": "G0", "claim": "The new attribute should be named `crate` rather than a keyword-avoiding workaround name; avoiding the conflict with the keyword is unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is missing tests and ...
null
z-galaxy__zbus__1607
z-galaxy/zbus
1,607
defect
705104b7652264a09273eacaa3b7db102d52b6ca
6bb41eb50dc49c3ac94863cab57baf525061b777
✨ Support `object`attribute in proxy properties
<!-- Thank you for your contribution! 🙏 We hope you have read our contribution guideline and followed it to the best of your abilities: https://github.com/z-galaxy/zbus/blob/main/CONTRIBUTING.md#submitting-pull-requests --> closes #356
diff --git a/zbus_macros/src/lib.rs b/zbus_macros/src/lib.rs index b57b5f9c3..3f8132a6f 100644 --- a/zbus_macros/src/lib.rs +++ b/zbus_macros/src/lib.rs @@ -87,8 +87,9 @@ mod utils; /// * `allow_interactive_auth` - declare a method call that is allowed to trigger an interactive /// prompt for authorization or confi...
3
3
1
[{"id": "G0", "claim": "The macro-expansion test added for the `object` property attribute doesn't actually test the functionality; a proper test should generate the interface and proxy with the interface macro, start the interface and retrieve the property.", "category": "testing", "verdict": "supported", "priority": ...
null
z-galaxy__zbus__1638
z-galaxy/zbus
1,638
defect
5449ae0f41f8dee48e5552c06fe107ce15351cb5
30b7d7740c4de9665e50c668fa5124adca5ce80a
✨ zm: add special handling for ao DBus signatures
Extend the support for the `object` attribute to return a `Vec<_>` if the `object_vec` attribute is also present. This simplifies use of APIs like [NetworkManager's `GetDevices`](https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.html#gdbus-method-org-freedesktop-NetworkManager.GetDevice...
diff --git a/zbus_macros/src/iface.rs b/zbus_macros/src/iface.rs index 14ab3c2ed..60d5152f7 100644 --- a/zbus_macros/src/iface.rs +++ b/zbus_macros/src/iface.rs @@ -58,6 +58,7 @@ def_attrs! { object str, async_object str, blocking_object str, + object_ve...
4
4
1
[{"id": "G0", "claim": "The two branches of `gen_proxy_method_call` duplicate whole `quote!` blocks (signature and method body), so only the differing return type/body part should be generated per branch and reused in the existing `quote!` block.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
z-galaxy__zbus__1691
z-galaxy/zbus
1,691
defect
a79634a07fa543f6e1a6ad64380b80020c3b3273
c5e8ea07a8dc1e49d35c8093544c7f8247ed6f02
🐛 zx: Wrap single struct returns in tuple to distinguish from multiple returns
When a method has a single output argument that is a struct type (e.g., type="(ss)"), we now wrap it in a tuple to distinguish it from multiple return values. This ensures type="(ss)" generates Result<((String, String),)> while two separate string outputs generate Result<(String, String)>. Fixes #1241 <!-- Tha...
diff --git a/zbus_xmlgen/src/lib.rs b/zbus_xmlgen/src/lib.rs index 54271c222..72348fc1d 100644 --- a/zbus_xmlgen/src/lib.rs +++ b/zbus_xmlgen/src/lib.rs @@ -259,7 +259,7 @@ fn hide_clippy_type_complexity_lint<W: Write>( fn inputs_output_from_args(args: &[Arg]) -> (String, String) { let mut inputs = vec!["&self"...
3
3
0
[{"id": "G0", "claim": "The comment above the single-struct wrap arm should read \"If there's a single output argument and it is a struct type, we need to wrap it\" instead of \"that is a struct type\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
z-galaxy__zbus__1697
z-galaxy/zbus
1,697
defect
d43672992273af3093ee2758b2f40a7600e2e6a6
3aec8f396d8ed85bf1ea40814f782f0d2d856d5a
✨ zb: Add helper for IBus connection creation
This PR implements `connection::Builder::ibus()` for connecting with IBus. The IBus address is fetched from the `ibus address` command, and is handled similarly to how we handle the `launchd` address on macOS. Fixes #964 <!-- Thank you for your contribution! 🙏 We hope you have read our contribution guidel...
diff --git a/zbus/Cargo.toml b/zbus/Cargo.toml index 4f6a51011..26eccca09 100644 --- a/zbus/Cargo.toml +++ b/zbus/Cargo.toml @@ -98,10 +98,11 @@ uds_windows.workspace = true [target.'cfg(unix)'.dependencies] rustix.workspace = true libc.workspace = true - -[target.'cfg(any(target_os = "macos", windows))'.dependencie...
6
5
1
[{"id": "G0", "claim": "The blocking builder's doc example needlessly calls drop(conn) at the end of the block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new IBus helper should be exercised by a test in CI, made Linux-specific by instal...
null
z-galaxy__zbus__1771
z-galaxy/zbus
1,771
defect
be7f511002430fcd7668312b7fbe2092499a1ae5
6b038f53f2a5eb9b27dfe471f4338abe0aa6ca70
interface property setters can now return fdo::Error
The derived From<zbus::Error> impl only matched MethodError. When a property setter returns a typed fdo::Error, the client receives it as zbus::Error::FDO(Box<fdo::Error>), which the conversion did not unwrap, so the original D-Bus error name was discarded. This is an alternative to the flatten()-based approach pro...
diff --git a/Cargo.lock b/Cargo.lock index e3bee49e6..eca3f88fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2300,7 +2300,7 @@ dependencies = [ [[package]] name = "zbus" -version = "5.14.0" +version = "5.15.0" dependencies = [ "async-broadcast", "async-executor", @@ -2344,7 +2344,7 @@ dependencies = [ [[pac...
4
2
1
[{"id": "G0", "claim": "Mapping dispatch-future errors with `fdo::Error::from` (and dropping the ObjectServer normalization) turns non-FDO `zbus::Error`s into `fdo::Error::ZBus`, so clients can receive the non-standard wire name `org.freedesktop.zbus.Error` instead of the standard FDO names used before; the reviewer as...
null
z-galaxy__zbus__514
z-galaxy/zbus
514
defect
2ef49bf55d81ce5b87cb8cdadd40829a1ac61da1
799362153f0423604949edc8aef060c67055c78f
#323 enable `emits_changed_signal` on `dbus_interface`
Implements #323: enables interface property macros on getters to be annotated with `emits_changed_signal`.
diff --git a/zbus_macros/src/iface.rs b/zbus_macros/src/iface.rs index 55d019401..440ad005a 100644 --- a/zbus_macros/src/iface.rs +++ b/zbus_macros/src/iface.rs @@ -3,9 +3,9 @@ use quote::{format_ident, quote}; use std::collections::BTreeMap; use syn::{ self, parse_quote, punctuated::Punctuated, spanned::Spanned...
3
3
1
[{"id": "G0", "claim": "Add brief documentation to the fields of the new MethodInfo struct, especially the non-obvious ones.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needlessly removes (and then re-adds) blank lines in zbus_...
null
z-galaxy__zbus__518
z-galaxy/zbus
518
defect
ca2f6e5735177b936942669be0ed427ec66d5be4
d50c45edfed561b36ddd81edad0ee4d2230df06e
✨ zx: hide clippy lints for generated functions
This hides the [`clippy::too_many_arguments`](https://rust-lang.github.io/rust-clippy/master/index.html#/too_many_arguments) and [`clippy::type_complexity`](https://rust-lang.github.io/rust-clippy/master/index.html#/type_complexity) lints for generated functions. Note that type complexity is only an estimate, so fut...
diff --git a/zbus_xmlgen/src/lib.rs b/zbus_xmlgen/src/lib.rs index 025a8d252..b5795b1d4 100644 --- a/zbus_xmlgen/src/lib.rs +++ b/zbus_xmlgen/src/lib.rs @@ -43,6 +43,7 @@ impl<'i> Display for GenTrait<'i> { if pascal_case(&name) != m.name().as_str() { writeln!(f, " #[dbus_proxy(name = \...
2
1
1
[{"id": "G0", "claim": "The new type-complexity estimation code is complicated and should be covered by tests, with the cases added to the existing test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Lines in the commit log description should be wrappe...
null
z-galaxy__zbus__559
z-galaxy/zbus
559
defect
23572847c0ef915374b9b16718916cafd681105c
048c74ed5959dabfec392032dc81342a9f46dc1b
🦺 zx: Allow unrestricted property names in zbus-xmlgen
This fixes #550 by adding a struct PropertyName to zbus-names. It's essentially a copy of the already existing struct MemberName but only checks for the name length instead of enforcing all name restrictions. Also added/changed the appropriate tests.
diff --git a/zbus_names/src/error.rs b/zbus_names/src/error.rs index 778529238..a266d56fa 100644 --- a/zbus_names/src/error.rs +++ b/zbus_names/src/error.rs @@ -20,6 +20,8 @@ pub enum Error { InvalidInterfaceName(String), /// Invalid member (method or signal) name. InvalidMemberName(String), + /// Inv...
2
2
0
[{"id": "G0", "claim": "The doc comment on PropertyName should read \"a [property][pn] name\" instead of \"an [property (method or signal) name][in]\": drop the wrong \"(method or signal)\", fix \"an\" to \"a\", and abbreviate the link reference as `pn`.", "category": "documentation", "verdict": "supported", "priority"...
null
z-galaxy__zbus__675
z-galaxy/zbus
675
defect
7a6168dba3a788fd16f23d67c9534943eda2ef13
34e51175f1555f91927969622f3075e3beea8e5d
Make task spawning for method call optional
Clients can expect calls to be handled in order they are sent. Although the specification doesn't explicitly state so (https://gitlab.freedesktop.org/dbus/dbus/-/issues/179), bus implementations have respected message ordering. This can also be expected when the bus and client are fully managed, as in p2p. Add an ...
diff --git a/zbus/src/connection/mod.rs b/zbus/src/connection/mod.rs index 5d18c5bec..f39c07dbd 100644 --- a/zbus/src/connection/mod.rs +++ b/zbus/src/connection/mod.rs @@ -996,41 +996,25 @@ impl Connection { // destination doesn't matter if no name has been registered ...
15
9
3
[{"id": "G0", "claim": "Rewrite the PR description and the relevant commit message to stop asserting that the spec or buses guarantee message ordering and to focus solely on the p2p batching use case.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
zaidoon1__rust-rocksdb__178
zaidoon1/rust-rocksdb
178
defect
b8a0ebd2fa7e542e260558e52eb85c16eb2a6536
6043771e152c76dfc16faaa4426d6f189b980728
Expose APIs to import and export Column Families
Adds `Checkpoint::export_column_family` and `DB::create_column_family_with_import` methods exposing the ability to export and import checkpoints of column families. These methods rely on the recently added [FFI support](https://github.com/facebook/rocksdb/commit/e9fc03eed73db75c32a2b4bdcaf3965d4416cfb2) for these featu...
diff --git a/librocksdb-sys/rocksdb b/librocksdb-sys/rocksdb index c007dd1d..e9fc03ee 160000 --- a/librocksdb-sys/rocksdb +++ b/librocksdb-sys/rocksdb @@ -1 +1 @@ -Subproject commit c007dd1da63fadc6bd0f34c7b8314cc29e7a42bd +Subproject commit e9fc03eed73db75c32a2b4bdcaf3965d4416cfb2 diff --git a/librocksdb-sys/rocksdb_l...
9
7
4
[{"id": "G0", "claim": "Passing column_family_name.as_ref().as_ptr() straight into rocksdb_create_column_family_with_import is unsafe: the pointer comes from the caller's &str and could dangle before RocksDB finishes using it, leading to undefined behaviour and possible crashes; it should be converted to an owned CStri...
null
zaidoon1__rust-rocksdb__195
zaidoon1/rust-rocksdb
195
defect
5842575f6c261bd64c0b4ddd8b144861cd15bce2
af21f5c960ae65514047838f2d668ec277087c8b
add zero-copy C API support for get_into_buffer, batched_multi_get_cf_slice, and optimized iterator
Take advantage of the new zero-copy C API exposed in RocksDB PRs [#13911](https://github.com/facebook/rocksdb/pull/13911) and [#14036](https://github.com/facebook/rocksdb/pull/14036). New APIs: - `get_into_buffer` / `get_into_buffer_cf`: Read values directly into a caller-provided buffer with zero allocation when th...
diff --git a/src/db.rs b/src/db.rs index ddc51e19..9b6dceb1 100644 --- a/src/db.rs +++ b/src/db.rs @@ -75,6 +75,82 @@ impl<'a> Range<'a> { } } +/// Result of a [`get_into_buffer`](DBCommon::get_into_buffer) operation. +/// +/// This enum represents the outcome of attempting to read a value directly +/// into a ...
1
1
1
[{"id": "G0", "claim": "The private key/value extraction functions are declared safe despite requiring a valid()-true precondition to avoid UB; they should be marked unsafe so the safety contract is enforced by the type system.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
zalando-incubator__stackset-controller__109
zalando-incubator/stackset-controller
109
defect
4c2bddaf772236b5071f1578794bc968d0686df5
88a23857df0c5644a09f4a16fecdd0aa52ff2e75
Use resource generation to determine updates
Before we tried to determine if a child resource, like a deployment of a stack, needed updates by comparing the original resource with the resource after we made potental changes. This doesn't work in most cases because when a resource is submitted it potentially goes through admission controllers which changes the...
diff --git a/controller/stack.go b/controller/stack.go index 41b1d2b1..198eed69 100644 --- a/controller/stack.go +++ b/controller/stack.go @@ -2,25 +2,27 @@ package controller import ( "fmt" + "strconv" "time" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" log "github.com/sirupsen/...
1
1
1
[{"id": "G0", "claim": "The reviewer believes the E2E tests are failing because during prescaling the HPA spec changes with time even when the Stack generation has not changed, so the update check needs to also compare the HPA min and max replica fields.", "category": "correctness", "verdict": "supported", "priority": ...
null
zalando-incubator__stackset-controller__115
zalando-incubator/stackset-controller
115
defect
f8d484350ffddc84955a4ea85543c63f0c5a8109
607c5e2d4e048fd6225f700d82b7c963547a01c6
Extracting pure functions from Stack.go/reconcile
At the moment Stack.go/reconcile function both generates the specs for the Deployments/Service & HPA and also applies them. The control flow looks like: `Stack.go:reconcile` -> `manageDeployments` -> `mangeAutoscaling` ...* Each step both creates the specs and applies them. This design would force us to make ch...
diff --git a/controller/stack.go b/controller/stack.go index cfe4710b..5f7b2803 100644 --- a/controller/stack.go +++ b/controller/stack.go @@ -24,6 +24,7 @@ const ( ) var ( + // set implementation with 0 Byte value selectorLabels = map[string]struct{}{ stacksetHeritageLabelKey: struct{}{}, stackVersionLabel...
7
7
0
[{"id": "G0", "claim": "golangci-lint reports functions added by this pull request as unused (`newHPAFromStack` from deadcode, `manageService2` from unused), so they should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `_` prefi...
null
zalando-incubator__stackset-controller__117
zalando-incubator/stackset-controller
117
defect
85977b657a24b4c213b9fcec466fb003f55cb9e0
17fcc9eb675f530f596c661e438f4dc1e3182e5d
Stacks should be the main entity users interact with
# Stacks should be the main entity In the current implementation, users create a stackset resource in the cluster which then creates a corresponding stack resource. Deployment of a new version overwrites both the `template` and the `name` in the stackset, causing the controller to create a new stack resource to matc...
diff --git a/cmd/e2e/basic_test.go b/cmd/e2e/basic_test.go index 65b16a6a..c9036c63 100644 --- a/cmd/e2e/basic_test.go +++ b/cmd/e2e/basic_test.go @@ -201,6 +201,14 @@ func verifyStack(t *testing.T, stacksetName, currentVersion string, stacksetSpec } } +func verifyStackSetStatus(t *testing.T, stacksetName, version...
1
1
0
[{"id": "G0", "claim": "The explanatory comment about recording stack creation (mentioning the \"current\" stack) should be moved to the commit/PR description instead of sitting in the code, since the \"current\" stack concept no longer exists and the comment is confusing.", "category": "maintainability", "verdict": "s...
null
zalando-incubator__stackset-controller__224
zalando-incubator/stackset-controller
224
defect
f50092b05ed86477f87e838ee878fed054e3a4da
81c72111948cb2de5941c56afff0be0a3e1f8221
Add service metadata from stack spec to service generated by stack
Fixes https://github.com/zalando-incubator/stackset-controller/issues/222
diff --git a/pkg/core/stack_resources.go b/pkg/core/stack_resources.go index 1a9aede6..93b2d64d 100644 --- a/pkg/core/stack_resources.go +++ b/pkg/core/stack_resources.go @@ -248,8 +248,14 @@ func (sc *StackContainer) GenerateService() (*v1.Service, error) { return nil, err } + metaObj := sc.resourceMeta() + sta...
2
1
0
[{"id": "G0", "claim": "The generated service should not propagate labels from the stack's service spec; like ingress it should only merge annotations, keeping label propagation out until there is a use case for it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
zalando-incubator__stackset-controller__236
zalando-incubator/stackset-controller
236
defect
6ba469c7f3a5b65c97025605015b4c9926dd6bfd
f31a0bce45cf169c6a40b231a358931d760668a4
Update client-go to Kubernetes v1.18
Updates client-go (+ friends) to Kubernetes v1.18. Functionality stays the same.
diff --git a/cmd/e2e/basic_test.go b/cmd/e2e/basic_test.go index 316d26b5..7ec88422 100644 --- a/cmd/e2e/basic_test.go +++ b/cmd/e2e/basic_test.go @@ -15,6 +15,10 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" ) +var ( + pathType = v1beta1.PathTypeImplementationSpecific +) + type TestStacksetSpecFactory struct...
1
1
0
[{"id": "G0", "claim": "Top-level contexts in the tests should use context.Background() instead of context.TODO().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando-incubator__stackset-controller__268
zalando-incubator/stackset-controller
268
defect
6c09429598d7b095eb0ea8354835c5be336f7747
5292825618e79dce55753f6d10d0faeaed809492
Look at the RouteGroup/Ingress UpdateTimestamp rather than CreationTimestamp
The HTTP resources (Ingresses and RouteGroups) migration, introduced on the [#251][0], checks for the `CreationTimestamp` attribute of the resources. When the migration follows the path of: 1. adding a new resource (does not matter if it's an Ingress or RouteGroup) with a new hostname for migration and testing...
diff --git a/cmd/e2e/ingress_source_switch_test.go b/cmd/e2e/ingress_source_switch_test.go new file mode 100644 index 00000000..b544ba58 --- /dev/null +++ b/cmd/e2e/ingress_source_switch_test.go @@ -0,0 +1,133 @@ +package main + +import ( + "testing" + "time" + + "github.com/stretchr/testify/require" + v1 "github.com/s...
4
3
1
[{"id": "G0", "claim": "Replace the separate waitForUpdatedRouteGroup/waitForUpdatedIngress e2e helpers with a single waitForUpdatedResource that takes a resourceVersion so it can be reused for Ingress, RouteGroup and other resources, while still checking that updateTimestamp was updated.", "category": "maintainability...
null
zalando-incubator__stackset-controller__288
zalando-incubator/stackset-controller
288
defect
80ff20ad14354ec01e4b00124783ef3f93f15fcb
d5eff3e8c5db14ffd3f5b35b51251cc600500040
add an example how to use routegroups in stackset
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/README.md b/README.md index 3876cfd0..151ef3ee 100644 --- a/README.md +++ b/README.md @@ -213,6 +213,9 @@ behavior for the `StackSet`: `externalIngress:` spec, such that external controllers can manage the Ingress or CRD creation, that will configure the routing into the cluster. +* You can use sk...
1
1
1
[{"id": "G0", "claim": "The howto example's skipper image in docs/howtos.md should use the teapot registry path instead of the outdated pathfinder one.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando-incubator__stackset-controller__328
zalando-incubator/stackset-controller
328
defect
8706c408b656e17ba8add0d5aa1d1ea9d2bd4ad3
e824757d5a8d2e6a4ae8bf7b1f562eb5529fcff0
Add a ScalingSchedule metrics for autoscaler
This commit creates integration with the [`ScalingSchedule` collectors][0] for autoscaler adding two new metric types: `ScalingSchedule` and `ClusterScalingSchedule`. The metrics configuration are pretty simple and receives just the object name. [0]: https://github.com/zalando-incubator/kube-metrics-adapter#scali...
diff --git a/docs/howtos.md b/docs/howtos.md index 1ad84e70..15dc3adc 100644 --- a/docs/howtos.md +++ b/docs/howtos.md @@ -161,7 +161,8 @@ traffic and then scale back down during off-peak hours to save costs. HPAs can be specified in 2 different ways for stacksets. The first is to use the `horizontalPodAutoscaler` fi...
1
1
0
[{"id": "G0", "claim": "The empty ScalingSchedule name check in scalingScheduleMetric could also be caught already in the CRD validation with a pattern similar to what is used for validating `metadata.name`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando-incubator__stackset-controller__329
zalando-incubator/stackset-controller
329
defect
0bdc61d07043cc05efbcb7e8fc27429a8e641af1
f6f6ac45d7418796a91d9038031306574f0440e6
Allow customising per-stack ingresses/routegroups
This adds two new fields (`ingress`/`routegroup`) to the `stackTemplate` that allow for a better control over the per-stack ingresses and route-groups. These now can be disabled altogether (by setting `enabled: false`), use a different set of hostnames from the current autogenerated one, or different annotations. Th...
diff --git a/docs/stackset_crd.yaml b/docs/stackset_crd.yaml index 34e78da3..8d12c795 100644 --- a/docs/stackset_crd.yaml +++ b/docs/stackset_crd.yaml @@ -99,6 +99,38 @@ spec: type: object path: type: string + stackOverrides: + ...
7
3
1
[{"id": "G0", "claim": "Add validation (e.g. with a regex) that the $stack_name$ token is present in the per-stack hosts field.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the unfamiliar $stack_name$ token with a more familiar interpolati...
null
zalando-incubator__stackset-controller__341
zalando-incubator/stackset-controller
341
defect
e39ebaac50e75c1a0ef724ca4cdf7f52a04cabb0
f8e1fe749771ec0ea4507806e7479743808a3ff4
Add support for default load balancing algorithm
Closes https://github.com/zalando-incubator/stackset-controller/issues/340 I'm happy to modify naming or docs if needed
diff --git a/docs/stackset_crd.yaml b/docs/stackset_crd.yaml index ce286cfd..1dd697b7 100644 --- a/docs/stackset_crd.yaml +++ b/docs/stackset_crd.yaml @@ -152,6 +152,9 @@ spec: type: array backendPort: type: integer + lbAlgorithm: + ...
5
4
2
[{"id": "G0", "claim": "The lbAlgorithm field should use the type BackendAlgorithmType from the routegroup client instead of string, so the generated CRD has the right ENUM spec; additionally it should be marked +optional and carry a comment describing that it applies to the backends generated for the stacks.", "catego...
null
zalando-incubator__stackset-controller__365
zalando-incubator/stackset-controller
365
defect
e2b3a78f075cf00522a884378800c49967537351
c4629f7fd2acc95400fa9b435cbc2ae5ab67ce70
Add the type match label
When using the `autoscaler` we are still letting `kube-metrics-adapter` to rely in the metric name. This commit adds the `type` label to the ZMON and SQS queue len metrics. It also sorts the metrics before generating them, based on different criteria. Previously, sort was based just on the HPA metric type. Now so...
diff --git a/pkg/core/autoscaler.go b/pkg/core/autoscaler.go index eea2cd70..e76f32f7 100644 --- a/pkg/core/autoscaler.go +++ b/pkg/core/autoscaler.go @@ -17,6 +17,7 @@ import ( ) const ( + metricsTypeLabel = "type" requestsPerSecondName = "requests-per-second" metricConfigJSONPath = ...
2
2
2
[{"id": "G0", "claim": "The ZMON metric's type match label should be `zmon` (as used by the kube-metrics-adapter ZMON collector) rather than the metric name, and the metric should get a unique `Name` per metric so multiple ZMON/SQS metrics do not collide.", "category": "correctness", "verdict": "supported", "priority":...
null
zalando-incubator__stackset-controller__501
zalando-incubator/stackset-controller
501
defect
c55b414ad4580df86b350b528f555754099657de
bba38317a4370c072dcd51f4dc67c91edc1488c3
Add support for External RPS metrics on autoscaler
Adding support to the new feature from kube-metrics-adapter.
diff --git a/docs/howtos.md b/docs/howtos.md index 748051bb..fa34e05f 100644 --- a/docs/howtos.md +++ b/docs/howtos.md @@ -172,9 +172,10 @@ specify scaling based on the following metrics: 4. `PodJSON` 5. `Ingress` 6. `RouteGroup` -7. `ZMON` -8. `ScalingSchedule` -9. `ClusterScalingSchedule` +7. `requests-per-second`...
11
8
6
[{"id": "G0", "claim": "The pull request should add documentation for the new External RPS metric in docs/howtos.md similar to what exists for the other metric types.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ExternalRPS metric type strin...
null
zalando-incubator__stackset-controller__519
zalando-incubator/stackset-controller
519
defect
3a6d5a8c234488ee480b857f7afffef3a5065128
5540ff666a5650ec6b332ac19edbf22b2d5bc57c
Add stack weight verification for HPA reconciling
This PR introduces a new check to make weight changes to External RPS HPA automatically during traffic switch. Now when traffic switching using stackset weights the weight change trigger the update of the HPA that will take in consideration the new weight of the stack. Before only stack generation was considered, which...
diff --git a/controller/stack_resources.go b/controller/stack_resources.go index 2e8e0604..2509810e 100644 --- a/controller/stack_resources.go +++ b/controller/stack_resources.go @@ -2,12 +2,14 @@ package controller import ( "context" + "fmt" + "strconv" rgv1 "github.com/szuecs/routegroup-client/apis/zalando.o...
1
1
0
[{"id": "G0", "claim": "The HPA update check should be made generic — compare the annotations of the generated and existing HPA (excluding the stack-generation annotation) instead of a check specific to weight change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando-incubator__stackset-controller__564
zalando-incubator/stackset-controller
564
defect
23dae591a51a32f11a1b97ae9140a62438258a2a
f672dd772ca77b715cd96fc63072c189c9627128
Synchronize ingress annotations on all traffic segments.
This Pull Request (PR) adds a feature to synchronize annotations on all traffic segments (Ingress and/or RouteGroup). When the controller starts with a configuration file specifying which annotation keys to synchronize, if a user creates or updates a StackSet where the Ingress or RouteGroup section contain one or ma...
diff --git a/cmd/e2e/README.md b/cmd/e2e/README.md index fc7631f6..459804d0 100644 --- a/cmd/e2e/README.md +++ b/cmd/e2e/README.md @@ -27,12 +27,19 @@ kubectl proxy ``` watch -n 10 "kubectl get -n foo stackset,stack,ing,ep,deployment" ``` -3. recreate namespace `foo` and run local build stackset-controller +3. gener...
6
4
0
[{"id": "G0", "claim": "The reviewer asks whether there is a reason --enable-traffic-segments and --annotated-traffic-segments are separate flags, since annotation sync was assumed to be part of the traffic segments implementation.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}...
null
zalando-incubator__stackset-controller__565
zalando-incubator/stackset-controller
565
defect
d0f7901c3b4101dec8fdd7289be8525e0235d099
1eaa282b8419b8c17d07d27eaa45c9ac7d6a6d50
Reference Secrets for per stack versioning
Following the [Reference ConfigMap for per stack versioning](https://github.com/zalando-incubator/stackset-controller/pull/520) and [Revised adaptation of ConfigMap per Stack](https://github.com/zalando-incubator/stackset-controller/pull/550), this Pull Request implements **Secrets versioned by reference**. The expe...
diff --git a/cmd/e2e/README.md b/cmd/e2e/README.md index b4e557a3..428b2ad1 100644 --- a/cmd/e2e/README.md +++ b/cmd/e2e/README.md @@ -32,7 +32,7 @@ watch -n 10 "kubectl get -n foo stackset,stack,ing,ep,deployment" kubectl delete namespace foo; kubectl create namespace foo make ./build/stackset-controller --apiserve...
16
11
1
[{"id": "G0", "claim": "The e2e secret fixture should use []byte(\"value\") instead of {0} so the value is more readable.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The e2e should also validate the Secret's data value for completeness, like the exis...
null
zalando-incubator__stackset-controller__575
zalando-incubator/stackset-controller
575
defect
f2a99bb76931d4a230afe19daaafea1401831adb
625c86043ec645470fd1b51368767437520c29a5
Enable traffic segments on annotated StackSets only with --annotated-traffic-segments.
Right now to enable traffic segments via annotation we need to set both `--enable-traffic-segments` and `--annotated-traffic-segments`. This can be dangerous, because it is very easy to set first `--enable-traffic-segments` which would trigger migration to traffic segments of _all_ StackSets. With this Pull Request ...
diff --git a/cmd/stackset-controller/main.go b/cmd/stackset-controller/main.go index d8813b03..ca9e32a1 100644 --- a/cmd/stackset-controller/main.go +++ b/cmd/stackset-controller/main.go @@ -2,6 +2,7 @@ package main import ( "context" + "fmt" "net" "net/http" "net/url" @@ -66,11 +67,15 @@ func main() { kin...
4
2
0
[{"id": "G0", "claim": "The test cases with trafficSegmentsEnabled enabled expect non-annotated StackSets (e.g. CDE, IJK) to have segments disabled, although enabling traffic segments should presumably apply to StackSets regardless of the annotation.", "category": "correctness", "verdict": "uncertain", "priority": "P1"...
null
zalando-incubator__stackset-controller__579
zalando-incubator/stackset-controller
579
defect
c8edb1997e18c430d55a60daf738f043fa056a21
d3b85159f046396e3d9ab90ad933c8fb7b1cd9c2
refactor TestReconcileStackConfigMaps
This refactors the TestReconcileStackConfigMaps and renames the variables a bit. Main change though is how the `template` are added to the stack. Before these were Configmaps that were created as part of the test and needed some complicated error logic. ![image](https://github.com/zalando-incubator/stackset-contr...
diff --git a/controller/stack_resources.go b/controller/stack_resources.go index c03b45b4..50b6cc1c 100644 --- a/controller/stack_resources.go +++ b/controller/stack_resources.go @@ -13,6 +13,7 @@ import ( networking "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/api/equality" metav1 "k8s.io/apimachinery/pkg...
2
1
0
[{"id": "G0", "claim": "The isOwned helper is unnecessary; a simple len(ownerReferences) != 0 check would suffice and be easier to understand.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extracted ReconcileStackConfigMapRef/ReconcileStackSecretRef f...
null
zalando-incubator__stackset-controller__585
zalando-incubator/stackset-controller
585
defect
895744c24177b48117c42f78dcd5b2ba977622d8
24bf9b3bc352be8ada0c128b0d8cd577de2bf91e
Point HPA to segment resource, when ingress versioning is set.
This Pull Request sets the HPA to point either to the ingress/routegroup segment, when a stack has one or both of these resources. This fixes the issue when an HPA was pointing to a non-existing central ingress resource, when traffic segments is enabled.
diff --git a/pkg/core/stack_resources.go b/pkg/core/stack_resources.go index 8f8560ef..315ed7c6 100644 --- a/pkg/core/stack_resources.go +++ b/pkg/core/stack_resources.go @@ -253,7 +253,21 @@ func (sc *StackContainer) GenerateHPA() (*autoscaling.HorizontalPodAutoscaler, e result.Spec.MinReplicas = autoscalerSpec.MinR...
1
1
0
[{"id": "G0", "claim": "The parameter `stacksetName` of the `convertCustomMetrics` function should also be renamed to `ingressResourceName`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
zalando-incubator__stackset-controller__597
zalando-incubator/stackset-controller
597
defect
c8edb1997e18c430d55a60daf738f043fa056a21
7e7618a4a4532fc81c87b6593b7ebeeaa35ee9bd
Delete central ingress/routegroup when StackSet has no Stacks.
When converting to versioned ingress, the StackSet controller won't delete the central ingress of a "shallow" StackSet - a StzackSet with no Stacks . This Pull Request ensures that controller also deletes the central ingress of shallow StackSets an completes the conversion. The converted StackSet won't have _any_ in...
diff --git a/cmd/e2e/ingress_source_switch_test.go b/cmd/e2e/ingress_source_switch_test.go index 159d6574..63196d94 100644 --- a/cmd/e2e/ingress_source_switch_test.go +++ b/cmd/e2e/ingress_source_switch_test.go @@ -183,3 +183,48 @@ func TestStackTTLConvertToSegmentIngress(t *testing.T) { ).await() require.NoError(t...
3
3
1
[{"id": "G0", "claim": "The new test should call waitForStack after createStackSet and use the returned stack.Name instead of hand-building the stack name, so the tests look more alike.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shallow-...
null
zalando-incubator__stackset-controller__599
zalando-incubator/stackset-controller
599
defect
cc6c53950c3bd2203936e5e1f93ea8206f7c928a
711388658cc631f62b14f8e744492df679d46d53
[1/3] Add test suite dedicated for configuration resources
Separate test suite to focus on versioned configuration resources where we don't need to care (as much) about all that other stuff that StackSets can have. The rewrite of the existing tests using the new methods to make sure everything still works was done in https://github.com/zalando-incubator/stackset-controller/...
diff --git a/cmd/e2e/configuration_resources_test.go b/cmd/e2e/configuration_resources_test.go new file mode 100644 index 00000000..d880c40e --- /dev/null +++ b/cmd/e2e/configuration_resources_test.go @@ -0,0 +1,112 @@ +package main + +import ( + "context" + "testing" + + "github.com/stretchr/testify/suite" + "github.c...
1
1
0
[{"id": "G0", "claim": "The helper should be spelled `cleanup` rather than `cleanUp`, and moved into `test_utils.go` next to the similar existing Stack helper so other test cases can reuse it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando-incubator__stackset-controller__627
zalando-incubator/stackset-controller
627
defect
74f54101ac9d63c5bb19d1584f01db75f5a65c43
049b38c376a9a63aba2b725e3deefface16800e8
Wait for ownerReferences to appear on the resources
For https://github.bus.zalan.do/teapot/issues/issues/3622 We check referenced versioned ConfigMaps and Secrets for their ownerReferences. However, we need to allow `stackset-controller` a little bit of time to process them. Typically resources are _created_ by `stackset-controller` so that upon waiting for them they...
diff --git a/cmd/e2e/configuration_resources_test.go b/cmd/e2e/configuration_resources_test.go index 20929c34..10f4b631 100644 --- a/cmd/e2e/configuration_resources_test.go +++ b/cmd/e2e/configuration_resources_test.go @@ -53,19 +53,21 @@ func (suite *ConfigurationResourcesTestSuite) TestReferencedConfigMaps() { stac...
2
2
2
[{"id": "G0", "claim": "1 second is probably not enough to wait for the configmap to have an ownerReference (the controller pod could be rescheduled right then, making it flaky); it should wait similarly to stack creation (up to ~60 seconds), e.g. via a waitForOwnerReference awaiter after waitForConfigMap.", "category"...
null
zalando-incubator__stackset-controller__704
zalando-incubator/stackset-controller
704
defect
735edd31a7f352a9cfc5b11ea07908d6886916b1
37c4541aafc5209c02548f07afc2a78fbdc142ae
adapt traffic command to the possibility of missing non-segment routegroup/ingress
Follow up on https://github.com/zalando-incubator/kubernetes-on-aws/pull/9677 When public domains are filtered out on Stacks, like in the PR above, it can happen that individual Stacks don't have any RouteGroup or Ingress (besides the traffic segment). This trips up the traffic switch command as it waits for both th...
diff --git a/pkg/core/stack_resources.go b/pkg/core/stack_resources.go index 61218941..aee61911 100644 --- a/pkg/core/stack_resources.go +++ b/pkg/core/stack_resources.go @@ -318,10 +318,10 @@ func (sc *StackContainer) GenerateService() (*v1.Service, error) { func (sc *StackContainer) stackHostnames( spec ingressOrR...
2
2
1
[{"id": "G0", "claim": "Add a comment above the ingress `len(hostnames) == 0` line explaining why it is there, and the same comment for the routegroup code below, because the solution is too opaque for future readers.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
zalando-incubator__stackset-controller__716
zalando-incubator/stackset-controller
716
defect
6b37d3206ab8185e48da8014d9b866706f6f9d61
ce65958dc10e3f83f63de37d71058ac67ffb8fe9
feature: zalando.org/forward-backend annotation support to enable migration to eks
feature: zalando.org/forward-backend annotation support to enable migration to eks Usage: ``` apiVersion: zalando.org/v1 kind: StackSet metadata: annotations: zalando.org/forward-backend: eks migration # the value does not matter .. ``` This will execute the migration preparation, such that the ne...
diff --git a/docs/stack_crd.yaml b/docs/stack_crd.yaml index deece1e6..801f6d5b 100644 --- a/docs/stack_crd.yaml +++ b/docs/stack_crd.yaml @@ -475,6 +475,22 @@ spec: - type: integer - type: string x-kubernetes-int-or-string: true + metadata...
3
2
2
[{"id": "G0", "claim": "On cluster migration the controller should skip generating an HPA (similar to the ScaleDown() case) instead of generating one with replicas pinned to 1, because the HPA is not used and pinning it can trigger scaling alerts.", "category": "design", "verdict": "supported", "priority": "P1", "scope...
null
zalando-incubator__stackset-controller__91
zalando-incubator/stackset-controller
91
defect
dc6b7d72b329a1f83b198d1762ce81958b2a3a7b
1f248a93c940c5b846024a1a9bfeadcf23644de1
Only prescale once in prescaling timeout
In the current setup the prescaling occurs on every traffic switch step. This means that the calculations includes the currently prescaled replicas which increases the number of replicas to very large number. This PR changes that by calculating the prescaling step only once and then subsequent updates the prescaling ti...
diff --git a/controller/prescale_reconciler.go b/controller/prescale_reconciler.go index 81553af9..502d9251 100644 --- a/controller/prescale_reconciler.go +++ b/controller/prescale_reconciler.go @@ -1,9 +1,9 @@ package controller import ( + "encoding/json" "fmt" "math" - "strconv" "time" zv1 "github.com/z...
2
2
0
[{"id": "G0", "claim": "The prescale annotation key should probably be renamed, since the annotation now carries more data and a rename would make upgrading the stackset-controller safer while a prescaling is happening at the same time.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
zalando-incubator__stackset-controller__95
zalando-incubator/stackset-controller
95
defect
b528bc912756203470c71bfaa8db777373e8c421
e379d88107a5e381b634b4a051d7e3153a7cc434
Prescaling and changes to handle errors
This PR contains the the same changes as the previous one and also contains @muaazsaleem 's fix. I have also made some changes so that the controller does not proceed processing the stackset when one of the step fails. This would prevent traffic from being switched to a stackset which is partially broken. Also added an...
diff --git a/controller/autoscaler.go b/controller/autoscaler.go index 1370ec9e..ce187cc0 100644 --- a/controller/autoscaler.go +++ b/controller/autoscaler.go @@ -27,15 +27,18 @@ const ( SQSQueueRegionTag = "region" ) -type AutoscalerReconciler struct { +type AutoscalerReconciler interface { + Reconcile(sc *St...
3
3
1
[{"id": "G0", "claim": "Returning the error immediately when a stack's HPA generation fails could mean that if one stack is broken nothing else gets reconciled, and the two conflicting cases (a broken newest stack should block terminating an old stack, but a broken old stack must not block a new fixed stack from rollin...
null
zalando__faux-pas__16
zalando/faux-pas
16
defect
44102f13f519f87c9bdc0aebf44f29c155e376a3
45af896c9d9297844f82ef448c99d1c0631dde7b
Added support for CompletableFuture.exceptionally
Fixes #15 - [ ] README
diff --git a/pom.xml b/pom.xml index 105b364..4641788 100644 --- a/pom.xml +++ b/pom.xml @@ -55,15 +55,15 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> - <junit...
1
1
0
[{"id": "G0", "claim": "The new catch case that rethrows a RuntimeException as-is is questionable; the reviewer asks why it is needed and suggests always throwing CompletionException for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__1755
zalando/postgres-operator
1,755
defect
fe340192cabc9757062073530f8599a5c076ff2a
fd4765c472e93d2312876631b929ae62e526347e
Compare container ports in a smarter way
This PR makes the comparison of containers' ports a bit smarter: it takes into account default protocol (TCP) and ignores different ports order. Fixes #1384.
diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 967f9d530..570bce4c1 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -516,7 +516,7 @@ func (c *Cluster) compareContainers(description string, setA, setB []v1.Containe newCheck("new statefulset %s's %s (index %d) name does not matc...
2
2
0
[{"id": "G0", "claim": "The test cases should be reduced to just the TestComparePorts (port-comparison) cases.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function should be renamed from TestClusterComparePorts to TestComparePorts.", "catego...
null
zalando__postgres-operator__2064
zalando/postgres-operator
2,064
defect
a85023ff1067bc032e2def7a5fe07820e6033588
615c856826fbe707e12083246c6b3cb5b1b7c71a
return error when Kube API is down during statefulset sync
fixes #2031 I think the refactor in https://github.com/zalando/postgres-operator/pull/1848 has introduced this regression, do you think it was intended? Before the refactor, `getPodEnvironmentSecretVariables` and `getPodEnvironmentConfigMapVariables` were called directly in `generateStatefulSet` and we used to r...
diff --git a/pkg/cluster/k8sres.go b/pkg/cluster/k8sres.go index 76e00c7d36..aa32298488 100644 --- a/pkg/cluster/k8sres.go +++ b/pkg/cluster/k8sres.go @@ -799,7 +799,7 @@ func (c *Cluster) generatePodTemplate( func (c *Cluster) generateSpiloPodEnvVars( spec *acidv1.PostgresSpec, uid types.UID, - spiloConfiguration...
1
1
0
[{"id": "G0", "claim": "The call to generateSpiloPodEnvVars in TestGenerateSpiloPodEnvVars should capture the returned error and assert it is nil (actualEnvs, err := ... with assert.NoError(t, err)) instead of discarding it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__2183
zalando/postgres-operator
2,183
defect
63c9f916a68d833fe3ab03fdfcb45d59582e7a7e
9d2d0e1c7fc07b9aa80e49618a91edb4a432eb6e
copy rolconfig during password rotation
Rotation user inherit all privileges from the original user. But if somebody manually changed the rolconfig of a user this will not be present in the rotation users since Postgres does not inherit it. This PR suggest to add another flag to pgUser struct to notify the syncRoles function that a rotation took place in the...
diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index 6b46dd7db..436c32895 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -932,7 +932,8 @@ def verify_role(): "AdminRole": "", "Origin": 2, "IsDbOwner": Fa...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the e2e password-rotation test failure message: 'disbaling' should be 'disabling'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__231
zalando/postgres-operator
231
defect
08e3d925e6187433416e8363baf0dc837c73b1d0
5b0e2ea66de1a5cf453af241c950b01aed0882b9
Operator should default to the watched namespace
Closes #155
diff --git a/cmd/main.go b/cmd/main.go index 7bb501885..6a6fdc163 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,6 +4,7 @@ import ( "flag" "log" "os" + "os/exec" "os/signal" "sync" "syscall" @@ -27,13 +28,26 @@ func init() { flag.BoolVar(&config.NoTeamsAPI, "noteamsapi", false, "Disable all access to th...
7
4
0
[{"id": "G0", "claim": "Read the serviceaccount namespace file with ioutil.ReadFile instead of shelling out to exec.Command(\"cat\", ...).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Read the operator namespace from a MY_POD_NAMESPACE environ...
null
zalando__postgres-operator__2351
zalando/postgres-operator
2,351
defect
af084a5a650527c43f0c0fc579551a741e77f5c8
6272947df59dd61eb72a48a5f253ce16ddfad236
fix extraction of EBS volume id when there's no region prefix
# Problem: Users encountered an error when trying to modify the IOPS and throughput of an existing and new EBS volume. The error message displayed: `populating EBS meta data failed, skippinq potential adiustements: MissinqParameter: The request must contain the parameter volumes status code: 400.` # Cause: T...
diff --git a/pkg/util/volumes/ebs.go b/pkg/util/volumes/ebs.go index 8f998b4cb..af9919a5a 100644 --- a/pkg/util/volumes/ebs.go +++ b/pkg/util/volumes/ebs.go @@ -41,6 +41,9 @@ func (r *EBSVolumeResizer) VolumeBelongsToProvider(pv *v1.PersistentVolume) bool // ExtractVolumeID extracts volumeID func (r *EBSVolumeResiz...
1
1
0
[{"id": "G0", "claim": "Add a comment on ExtractVolumeID documenting the two different volume-id string forms observed (with the aws://region/ prefix and the bare vol-... form).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__2515
zalando/postgres-operator
2,515
defect
45489d3741b1b956c84e4779edbfd27a26970d9e
efc3b1fb4808871a5dea26edf721e75993d0b77b
fix: no switchover candidate found with member state "streaming" (#1992)
Fixes #1992
diff --git a/go.mod b/go.mod index 3c66ecb51..afbf8d544 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go v1.42.18 + github.com/evanphx/json-patch v4.12.0+incompatible github.com/golang/mock v1.6.0 github.com/lib/pq v1.10.4 github.com/motomux/pretty v0.0.0-201612092...
3
1
1
[{"id": "G0", "claim": "The switchover-candidate state list should also cover the \"in archive recovery\" state of a running replica, which the change omits.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Adding \"streaming\" and \"in archive recove...
null
zalando__postgres-operator__2609
zalando/postgres-operator
2,609
defect
6ddafadc09a698088f2f37e03b5a3a074ac94ee5
15044cd17b797dd1cff9cf8f5c42eedb1f7d6d3d
make bucket prefix for logical backup configurable
In order to configure separate S3 lifecycle rules for basebackups and logical backups living in the same bucket, we have to make the logical backup prefix configurable. Unlike Spilo, this approach works in the logical backup script. There's one more problem though: The operator only diffs logical backup jobs on thei...
diff --git a/.github/workflows/publish_ghcr_image.yaml b/.github/workflows/publish_ghcr_image.yaml index 7efa62335..6cb529e18 100644 --- a/.github/workflows/publish_ghcr_image.yaml +++ b/.github/workflows/publish_ghcr_image.yaml @@ -81,7 +81,7 @@ jobs: - name: Build and push multiarch logical-backup image to ghc...
4
3
1
[{"id": "G0", "claim": "The documentation for logical_backup_s3_bucket_prefix should mention that a trailing \"/\" is required, as the implementation appears to expect it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test loop never reports ...
null
zalando__postgres-operator__2677
zalando/postgres-operator
2,677
defect
acdb957d8ebf6ba784f72cd545af40def6973791
0ec01789634ba73999ddc26af7c5ac9dfdac08bf
Add support for EBS CSI Driver
Add support for the recent EBS CSI Driver using the `CSI` field in the PVC to set the provisioner and the volume-id. I'm keeping the retro compatibility with the old field.
diff --git a/.gitignore b/.gitignore index 66a8103d0..5938db216 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,5 @@ e2e/tls mocks ui/.npm/ + +.DS_Store diff --git a/charts/postgres-operator/templates/clusterrole.yaml b/charts/postgres-operator/templates/clusterrole.yaml index 1fd066fa5..ad3b46064 100644 --...
1
1
1
[{"id": "G0", "claim": "Because populateVolumeMetaData now calls GetProviderVolumeID, some unit tests fail with `Unexpected call to *mocks.MockVolumeResizer.GetProviderVolumeID ...` and the unit tests in `volumes_test.go` (around line 216 and in other tests) should be extended with mocked GetProviderVolumeID responses ...
null
zalando__postgres-operator__2684
zalando/postgres-operator
2,684
defect
37d69934394b960ea235aab963fac2650ff91f54
bad33e7c1914758b5af898b7e458887ebc5259be
Enable slot and publication deletion when stream application is removed
Follow up on https://github.com/zalando/postgres-operator/pull/2563 The current behaviour of our operator for the stream section allows us to create FES resources. During the creation, the postgres-operator will create FES resources, publications, and replication slots. However, during deletion (when user drop the s...
diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index 43dd467b5..8cdc95afc 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -199,6 +199,62 @@ def test_additional_owner_roles(self): self.eventuallyEqual(lambda: len(self.query_database(leader.metadata.name, "postgres", owner_query)), ...
2
2
0
[{"id": "G0", "claim": "The comment in syncStreams should read \"if does not exist in the slotsToSync, add it\" instead of \"if it's not exists in the slotsToSync, add it\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G4", "claim": "The test comments say \"st...
null
zalando__postgres-operator__2710
zalando/postgres-operator
2,710
defect
31f474a95cd1164104a45c1377964f7f43cec8c5
98e531f9c10d2420549f4f6a0060714008c23c39
Implement per-cluster maintenance window for Postgres automatic upgrade
This feature introduces the ability for users to set a maintenance window for major PostgreSQL version upgrades when automatic upgrade is enabled. This ensures that major upgrades occur during specified times, minimising disruption to service, and improving management of critical database updates.
diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index 5182851b4..fda5f9fb7 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -14,6 +14,7 @@ SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.1" SPILO_LAZY = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.2" +SPILO_FULL_IM...
1
1
0
[{"id": "G0", "claim": "A unit test should be added for the new isInMainternanceWindow function, covering the scenarios the author tested manually.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__2735
zalando/postgres-operator
2,735
defect
2582b934bfb5bfaba9e5d7116ef270e507c5d6a2
a6631a868d3798c2d96145b6b7f52c81efce6a71
Fix resource constraints
The documentation about `postgres_pod_resources` says that you can disable the defaults by setting them to zero **OR empty string**: > Empty string or `0` disables the default. Source: https://github.com/zalando/postgres-operator/blob/2582b934bfb5bfaba9e5d7116ef270e507c5d6a2/docs/reference/operator_parameters.md#...
diff --git a/charts/postgres-operator/crds/operatorconfigurations.yaml b/charts/postgres-operator/crds/operatorconfigurations.yaml index 15783fd38..74897b320 100644 --- a/charts/postgres-operator/crds/operatorconfigurations.yaml +++ b/charts/postgres-operator/crds/operatorconfigurations.yaml @@ -376,28 +376,28 @@ spec:...
6
5
4
[{"id": "G0", "claim": "The new test case should set the resource config fields to \"0\" instead of \"\", because \"\" is the internal Go default already covered by the 'test generation of resources when default is not defined' subTest.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introd...
null
zalando__postgres-operator__2760
zalando/postgres-operator
2,760
defect
c25dc57b9614df4a89e08c9c766b6f6ee64fb41f
ce91e5faed7d234689e7205f8346013b95fba8fd
fix switch over candidate retrieving
fixe [issue](https://github.com/zalando/postgres-operator/issues/2751). When asynchronous mode is enabled and no candidates are found, no retry is currently triggered to fetch a switchover candidate from the Patroni API. This PR enables retry for asynchronous mode, similar to [synchronous mode](https://github.com/za...
diff --git a/pkg/cluster/pod.go b/pkg/cluster/pod.go index 890b60122..7e503d837 100644 --- a/pkg/cluster/pod.go +++ b/pkg/cluster/pod.go @@ -480,6 +480,9 @@ func (c *Cluster) getSwitchoverCandidate(master *v1.Pod) (spec.NamespacedName, e if PostgresRole(member.Role) == SyncStandby { syncCandidates = append(s...
2
2
0
[{"id": "G0", "claim": "The warning message should read \"no replica candidate found\" instead of \"no replicas candidate found\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two-line comment should be replaced with \"// retry also in async...
null
zalando__postgres-operator__2773
zalando/postgres-operator
2,773
defect
3ca86678ccfc7dfedfb49794ca072dff9a1b8983
809c106dbb765e5110faabc214e22a0ba8454e52
Add support for pg17 and remove pg12
* add support for pg17 * remove pg12 * update spilo image with Patroni v4 closes #2809
diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index c0e731e5e..523a4ccab 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -22,7 +22,7 @@ jobs: - name: Run unit tests run: go test -race -covermode atomic -coverprofile=coverage.out ./.....
9
8
6
[{"id": "G0", "claim": "The default Spilo docker image set across the CRDs, Helm chart, sample manifests and Go defaults should be \"ghcr.io/zalando/spilo-17:4.0-p1\" rather than the internal \"container-registry.zalando.net/acid/spilo-cdp-17:3.3-p5\" image.", "category": "correctness", "verdict": "supported", "priorit...
null
zalando__postgres-operator__2810
zalando/postgres-operator
2,810
defect
c206eb38a80853c7dbc989875565dad938cb82c6
7fade35696fb443a29f6346e4e14c99a819ea31e
Extend MaintenanceWindows parameter usage
Consider maintenance window when migrating master pods and replacing pods (rolling update)
diff --git a/pkg/cluster/majorversionupgrade.go b/pkg/cluster/majorversionupgrade.go index ad431acc4..33378abf5 100644 --- a/pkg/cluster/majorversionupgrade.go +++ b/pkg/cluster/majorversionupgrade.go @@ -128,7 +128,7 @@ func (c *Cluster) majorVersionUpgrade() error { return nil } - if !isInMainternanceWindow(c....
7
7
3
[{"id": "G0", "claim": "Fix the typo in the function name: IsInMainternanceWindow should be spelled IsInMaintenanceWindow.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Skipping master pod migration outside maintenance windows may leave the p...
null
zalando__postgres-operator__2817
zalando/postgres-operator
2,817
defect
c206eb38a80853c7dbc989875565dad938cb82c6
b6ea848134c0b8a81734af4c3ea2830405576867
add resource annotation and ignore recovery type
From several internal requests we learned that having Ignore type for CDC streams is essential to have. This PR also extends scaling possibilities for stream resource beyond just batchSize.
diff --git a/charts/postgres-operator/crds/postgresqls.yaml b/charts/postgres-operator/crds/postgresqls.yaml index ebaf2d1f8..a83f7cc95 100644 --- a/charts/postgres-operator/crds/postgresqls.yaml +++ b/charts/postgres-operator/crds/postgresqls.yaml @@ -514,6 +514,9 @@ spec: type: string ...
1
1
0
[{"id": "G0", "claim": "The documentation line should read \"ignore failing events.\" instead of the typo \"failingn\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__2826
zalando/postgres-operator
2,826
defect
4430aba3f31eb546ec78ee69fe796c490bb3b45e
2c9ceedd6ee1d58e36fc41ade279551481e267be
Ensure podAnnotations are removed from pods if reset in the config
fix use case when an annotation is removed from the `podAnnotations` setting (should be reflected for the running Pods and Pod templates)
diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 1a8d6f762..0f2928cb4 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -853,7 +853,7 @@ func (c *Cluster) compareLogicalBackupJob(cur, new *batchv1.CronJob) (match bool newPodAnnotation := new.Spec.JobTemplate.Spec.Template.Annotatio...
6
6
0
[{"id": "G0", "claim": "The hand-built JSON patch strings for removing annotations in connection_pooler.go should use json marshalling instead of concatenating braces and quotes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing the sync s...
null
zalando__postgres-operator__2995
zalando/postgres-operator
2,995
defect
2c57498e43f2742c6da936b1d02af1839f70c5e3
446c134797ce1bfd3a86543d49ce57fef9849034
fix switchover schedule tests
Previously the tests would fail depending on the local time zone and the time of day the test was being run (even if you set the machine to UTC it would fail if run within an hour of midnight; similarly the tests would fail any time the date component of the local time and UTC was different as the schedule would not ma...
diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 9cd750e84..7e9baabdb 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -1767,9 +1767,13 @@ func (c *Cluster) GetStatus() *ClusterStatus { } func (c *Cluster) GetSwitchoverSchedule() string { + now := time.Now().UTC() + return c.Get...
2
1
0
[{"id": "G0", "claim": "The test failures the PR addresses can still be reproduced by passing other times in place of the pinned timestamp (e.g. 2025-11-11T20:35:00-08:00 or 2025-11-11T23:35:00Z), so the fix holds only for that specific value.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": ...
null
zalando__postgres-operator__2999
zalando/postgres-operator
2,999
defect
8e629c5d6d84450f4d73eb4e2f6a45d954d9f504
9b98a031ae8c1f8fbdbb1dd1f8a8bc658175d9ce
stop retention user cleanup early again when DB connection attempt fails
In #2969 the syncSecrets function was updated to collect errors and continue processing the code. But for some errors like failing a connection attempt to the database we have to stop. We came across an edge case which produced retentionUsers during cluster creation that the operator then tried to query, but the databa...
diff --git a/pkg/cluster/database.go b/pkg/cluster/database.go index aac877bcf..56b5f3638 100644 --- a/pkg/cluster/database.go +++ b/pkg/cluster/database.go @@ -281,9 +281,23 @@ func findUsersFromRotation(rotatedUsers []string, db *sql.DB) (map[string]string return extraUsers, nil } -func (c *Cluster) cleanupRotat...
3
3
0
[{"id": "G0", "claim": "The added length comparison is redundant with the string equality check already performed, and the mismatch branch should be restructured (the reviewer suggested simply adding the missing else case).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
zalando__postgres-operator__3074
zalando/postgres-operator
3,074
defect
e9478894a8aee185ab1f3cc34aefb8f87171a1f6
2493e512378ca6d86934ff37313738bba3a487bc
feature toggle for using maintenance windows
Give operator admins an option to turn on the maintenance windows feature. For example, in staging environments it might not be very useful to delay or block K8s maintenance tasks.
diff --git a/charts/postgres-operator/crds/operatorconfigurations.yaml b/charts/postgres-operator/crds/operatorconfigurations.yaml index 2c432a082..cb4b7a335 100644 --- a/charts/postgres-operator/crds/operatorconfigurations.yaml +++ b/charts/postgres-operator/crds/operatorconfigurations.yaml @@ -79,6 +79,9 @@ spec: ...
1
1
1
[{"id": "G0", "claim": "With the default being to enable maintenance windows, `c.OpConfig.EnableMaintenanceWindows == nil` should mean \"not ignore\", not ignore as the current condition does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando__postgres-operator__3077
zalando/postgres-operator
3,077
defect
bbf94324138580ec5d500614ef19907388bd9a15
20f9ce45f5a622d67aea6b1acbb3f0e13c7e256b
build multi-arch pooler image
and stop maintaining internal repo. Our internal pooler was using a few hacks to - allow connections to admin DB by any use with a defined prefix - ignoring errors when SET commands are used We still need to allow our monitoring user served from an infrastructure role secret to be able to connect to the pgbounc...
diff --git a/delivery.yaml b/delivery.yaml index 933e72733..d145f9467 100644 --- a/delivery.yaml +++ b/delivery.yaml @@ -42,6 +42,33 @@ pipeline: -f docker/Dockerfile \ --push . + - id: build-pooler + env: + <<: *BUILD_ENV + type: script + vm_config: + typ...
1
1
0
[{"id": "G0", "claim": "The pooler image's BASE_IMAGE build arg should use the latest stable Alpine version 3.22 instead of 3.19.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__postgres-operator__534
zalando/postgres-operator
534
defect
67b2fc40c027b0674bd77d9b1a5039b918839f17
407a05086e37e96f5fd5a26149bf04e55231285f
Use /status subresource instead of plain manifest field
This PR tries to solve the same issue like PR #533, but does not change the name of the `status` field. Instead it introduces a nested structure of `PostgresStatus`. Currently only with one string field. Should fix #408
diff --git a/manifests/operator-service-account-rbac.yaml b/manifests/operator-service-account-rbac.yaml index 7bd539ac5..4fd4676cc 100644 --- a/manifests/operator-service-account-rbac.yaml +++ b/manifests/operator-service-account-rbac.yaml @@ -14,6 +14,7 @@ rules: - acid.zalan.do resources: - postgresqls + -...
5
3
1
[{"id": "G0", "claim": "The status checks should compare only the PostgresClusterStatus field instead of the whole PostgresStatus struct (c.Status == acidv1.PostgresStatus{...}).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Backwards compatibi...
null
zalando__problem__144
zalando/problem
144
defect
8888eca0c6e552778eb6424c6e3166c0769e7cb3
3b8f09906fc95258a6b9f470175bdd800ef14117
feat(Status): Add a method to create a Status instance from an integer
## Description This PR introduces a builder method to create a Status instance from an integer code. ## Motivation and Context In my application, I sometimes need to create a Problem and I already have the status code as an integer. This new method gives me a convenient and elegant way to create a Status insta...
diff --git a/problem/pom.xml b/problem/pom.xml index bc653c86..397a8f40 100644 --- a/problem/pom.xml +++ b/problem/pom.xml @@ -43,6 +43,12 @@ <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.junit.jupiter</gr...
3
2
0
[{"id": "G0", "claim": "The javadoc of ofCode should mention a @throws section for the IllegalArgumentException it can throw.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The linear search in ofCode should be replaced by a map of statuses keyed ...
null
zalando__problem__54
zalando/problem
54
defect
bc631f9d1a078365792b4c37475315b003d955f9
7de456da53022ab00d6904376b79ca2aeb2ac947
Support Jackson 2.9.x
Fixes #53 Looks like Jackson changed how some annotations interact with inheritence: - `@JsonIgnoreProperties` is no longer inhereted - `@JsonIgnore` is inhereted now
diff --git a/jackson-datatype-problem/pom.xml b/jackson-datatype-problem/pom.xml index 17fb4875..9db49232 100644 --- a/jackson-datatype-problem/pom.xml +++ b/jackson-datatype-problem/pom.xml @@ -26,7 +26,7 @@ </scm> <properties> - <jackson.version>2.6.1</jackson.version> + <jackson.version>2.9...
1
1
0
[{"id": "G0", "claim": "The PR should establish and verify its Jackson compatibility boundaries by running the tests against multiple Jackson versions in CI and pinning the minimum supported version in the pom.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__1550
zalando/skipper
1,550
defect
f2ac72c68f34798907ab6537f348e1c192a24307
776fa7b5554c4ec0444278c22c8995416e02e92d
handle the case smoother when all endpoints are fading in
use weighted shifting instead of shifting to oldest when there are no available stable endpoints
diff --git a/loadbalancer/algorithm.go b/loadbalancer/algorithm.go index ee4ae0492e..da82cc5018 100644 --- a/loadbalancer/algorithm.go +++ b/loadbalancer/algorithm.go @@ -55,20 +55,36 @@ func fadeIn(now time.Time, duration time.Duration, exponent float64, detected ti return math.Pow(float64(rel)/float64(duration), ex...
3
2
0
[{"id": "G0", "claim": "The struct field names fadeInCalcInts and fadeInCalcFloats are not obvious and should be renamed, e.g. fadeInCalcInts to notFadingIndexes and fadeInCalcFloats to fadingWeights.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
zalando__skipper__1864
zalando/skipper
1,864
defect
27f48492393ba36ae3ef4d6000f0e0a454a161af
9c90d00508cf881ef8c8869fba71985650b16efc
Feature/filter remove trailing dot
Follow up of #1863 We are able to fix our behavior as a client. There is a longer discussion in https://lists.w3.org/Archives/Public/ietf-http-wg/2016JanMar/0447.html that turns out to show that proxies and some clients remove trailing dot in SNI and Host header which is good, but we don't fix bogus clients in th...
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 625b3e4131..4916fd5218 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -1195,14 +1195,14 @@ secureOauthTokenintrospectionAllKV("issuerURL", "", "", "k1", "v1", "k2", "v2") ## jwtValidation The filter parses bearer jwt...
1
1
1
[{"id": "G0", "claim": "PatchHost only trims a trailing dot from the whole string, but the host may be of the form \"host:port\" (with the dot before the port), so the trailing dot is not removed in that case; the reviewer proposes replacing \".:\" with \":\" before trimming.", "category": "correctness", "verdict": "su...
null
zalando__skipper__1905
zalando/skipper
1,905
defect
1e26fcd250309d05da5a7b086c784ba100cf07da
bb9d8ecfe6ece3af40cd8bb935d4d88eb0f5e5ec
Adds `HeaderSHA256` predicate
`HeaderSHA256` predicate matches SHA-256 hash of the configured header value. ``` go test ./predicates/auth/ -run NONE -bench BenchmarkHeaderSHA256Match -benchmem goos: linux goarch: amd64 pkg: github.com/zalando/skipper/predicates/auth cpu: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz BenchmarkHeaderSHA256Match-8...
diff --git a/docs/reference/predicates.md b/docs/reference/predicates.md index 8d089b4d35..fc8c4a1335 100644 --- a/docs/reference/predicates.md +++ b/docs/reference/predicates.md @@ -363,6 +363,53 @@ JWTPayloadAllKVRegexp("iss", "^https://") JWTPayloadAnyKVRegexp("iss", "^https://") ``` +### HeaderSHA256 + +Matches...
3
2
0
[{"id": "G0", "claim": "discuss: consider adding salt to the header-value hashing documented in predicates.md.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The feature fits better as an auth filter than as a predicate: predicates slow down all route ...
null
zalando__skipper__1918
zalando/skipper
1,918
defect
e5a6fb5139220c56ad4ad31f7809ae3dccb3754e
3fc1ff06ef7aab9aae0baa677fc0670fc42ca29d
dataclients/kubernetes: use healthcheck based on Shutdown predicate
Updates #1899 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
diff --git a/dataclients/kubernetes/kube.go b/dataclients/kubernetes/kube.go index 64af7108e1..771a5096aa 100644 --- a/dataclients/kubernetes/kube.go +++ b/dataclients/kubernetes/kube.go @@ -5,16 +5,14 @@ import ( "net" "net/http" "os" - "os/signal" "regexp" "strings" - "syscall" + "text/template" "time" ...
3
1
0
[{"id": "G0", "claim": "Since healthcheck and globalredirect routes are all static they can be moved into loadAndConvert() and the special handling of them in the update diff logic can be simplified away.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
zalando__skipper__1923
zalando/skipper
1,923
defect
7e92c9ab9bd7c791e4388bfcc5f73b71cee3751f
0cf2817ce981195f71466f9ac67502f9f92e40c1
Parametrize hostname extraction logic used in oidc filter to set authentication cookies
The PR addresses the issue https://github.com/zalando/skipper/issues/1909
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 34bbb86660..0f29fb4c06 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -1364,7 +1364,7 @@ Skipper arguments: ``` oauthOidcUserInfo("https://oidc-provider.example.com", "client_id", "client_secret", "http://target.e...
7
5
1
[{"id": "G0", "claim": "The redirect-URL error-check block (`if err != nil || sargs[paramCallbackURL] == \"\"` with its error return) added in CreateFilter is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dedicated TestCreateFilt...
null
zalando__skipper__1936
zalando/skipper
1,936
defect
7bcecad5b1be49cda649f3acc3bcfd232adf87b6
6650bb496483693d226fc4b3dee309ef9a27468f
add all options from stdlib to our httpclient
add all options from stdlib to our httpclient net.Client and pass them as is Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/net/httpclient.go b/net/httpclient.go index fe30b12c6d..bcc66b435d 100644 --- a/net/httpclient.go +++ b/net/httpclient.go @@ -1,8 +1,10 @@ package net import ( + "context" "crypto/tls" "io" + "net" "net/http" "net/http/httptrace" "net/url" @@ -59,7 +61,9 @@ func NewClient(o Options) *Client {...
1
1
1
[{"id": "G0", "claim": "It would be better to accept a preconfigured *http.Transport in Options (used when not nil, otherwise created as before) instead of duplicating all of http.Transport's knobs as individual options.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando__skipper__1956
zalando/skipper
1,956
defect
100ef1b584304d1e17f33d07cf8952ded84252cb
a9c7ceef6aafcee4306d6ff1ccfada75123acaf9
Add brotli to skipper
Adding brotli compression / decompression to skipper References: https://github.com/zalando/skipper/issues/696
diff --git a/filters/builtin/compress.go b/filters/builtin/compress.go index d81a1d1e0c..51ac83ebe2 100644 --- a/filters/builtin/compress.go +++ b/filters/builtin/compress.go @@ -4,6 +4,7 @@ import ( "compress/flate" "compress/gzip" "errors" + "github.com/andybalholm/brotli" "io" "math" "net/http" @@ -37,7 ...
1
1
0
[{"id": "G0", "claim": "The brotli level-cap check in newEncoder duplicates the cap verification already done on filter creation and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__1965
zalando/skipper
1,965
defect
6f7b4bb4c3414c8f9d40010fc7cfc7d6abbc8b53
1f889eb0198eeeab8a16ab9b9a64fda762876bc8
clear invalid cookies
If OIDC cookies are invalid, the client is redirected but the cookies are not cleared. In case that the new cookie will produce smaller set of chunks, an invalid chunk is not overwritten and kept in the browser and Skipper will try to attach this junk to the new set. This changes the behaviour in that regard that...
diff --git a/filters/auth/oidc.go b/filters/auth/oidc.go index 90e3b7e684..63aa3181f8 100644 --- a/filters/auth/oidc.go +++ b/filters/auth/oidc.go @@ -327,7 +327,7 @@ func (f *tokenOidcFilter) internalServerError(ctx filters.FilterContext) { // https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowSteps // 1....
3
3
1
[{"id": "G0", "claim": "The purge-cookie construction re-specifies cookie attributes inline instead of copying the existing cookie or sharing a helper with the cookie-creation path so that all attributes match, and the change should have tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
zalando__skipper__2009
zalando/skipper
2,009
defect
611a8357a7f9ea96486e1fdf0c299ede4790ee3b
7ccceccc09f8997f7b8fff07c481c5bbe564af2a
feature: dynamic detect and resize redis instances
In case of kubernetes dataclient we can detect the number of redis shards available and trigger an update to the redis ringclient. In order to use this feature we have to use a forked version of go-redis (see replace directive in go.mod) until it is merged and released https://github.com/go-redis/redis/pull/2093 Si...
diff --git a/config/config.go b/config/config.go index 40a7103aa9..20fb4fc7de 100644 --- a/config/config.go +++ b/config/config.go @@ -165,6 +165,8 @@ type Config struct { KubernetesEastWestRangePredicates []*eskip.Predicate `yaml:"-"` KubernetesOnlyAllowedExternalNames bool `yaml:"kubern...
23
17
3
[{"id": "G0", "claim": "The redis address update API should be a channel of updates that the client subscribes to, so an external updater can push changes or be a k8s watch/informer, instead of a polled AddrUpdater func.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
zalando__skipper__2012
zalando/skipper
2,012
defect
4f31cd7cf465166dff0075ba9e251ace4d00128a
76c55a4f22b67ebc2eff4efc6bb14f1768c65f9f
refactor: use strings.Cut for strings parsing
This PR uses Go 1.18 `strings.Cut` function and replaces usage of `strings.Split` and `strings.SplitN` where possible. Resolves https://github.com/zalando/skipper/issues/1963
diff --git a/config/breakerflags.go b/config/breakerflags.go index 4064a0e1e4..ad8c61a493 100644 --- a/config/breakerflags.go +++ b/config/breakerflags.go @@ -40,14 +40,14 @@ func (b *breakerFlags) Set(value string) error { vs := strings.Split(value, ",") for _, vi := range vs { - kv := strings.Split(vi, "=") - ...
4
1
1
[{"id": "G0", "claim": "The pull request needs to change the go.mod Go version to 1.18.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added non-empty path check in oidc_introspection.go is out of scope for this refactoring; the existing logic s...
null
zalando__skipper__2013
zalando/skipper
2,013
defect
4f31cd7cf465166dff0075ba9e251ace4d00128a
448e5bdfdd597c877442f6de3ad2cacc0790a00f
feature: add xff headers that are required by authelia
feature: add xff headers that are required by authelia, see also https://github.com/authelia/authelia/issues/3492 Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/config/config.go b/config/config.go index 40a7103aa9..9adcb7f9e4 100644 --- a/config/config.go +++ b/config/config.go @@ -2,6 +2,7 @@ package config import ( "crypto/tls" + "errors" "flag" "fmt" "net/http" @@ -397,6 +398,9 @@ func NewConfig() *Config { flag.Var(cfg.ForwardedHeadersList, "forwa...
4
2
1
[{"id": "G0", "claim": "Use fmt.Errorf instead of errors.New for the new \"X-Original-URL requires X-Forwarded-Proto\" error, to stick to the error-construction style used elsewhere.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new header/fl...
null
zalando__skipper__2073
zalando/skipper
2,073
defect
6a0a59076ae4a67220ae9711980bc7527d3af011
873ab85b8977c3cf062bfad9c40ebbe98f8f9b7b
fix: fifo error metric counted "other" errors in case there is no error
fix: counter should reflect semaphore state, right now metrics show only 0 or 1 sometimes 2 as "active" Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/scheduler/fifo_test.go b/scheduler/fifo_test.go index 29fd7bd137..6b912cae7a 100644 --- a/scheduler/fifo_test.go +++ b/scheduler/fifo_test.go @@ -14,13 +14,14 @@ func TestFifo(t *testing.T) { timeout := time.After(120 * time.Millisecond) for { time.Sleep(time.Millisecond) - if fq != nil && fq.S...
2
2
0
[{"id": "G0", "claim": "The test's waitForStatus helper calls fq.Status() before checking fq != nil, so it can panic on a nil queue.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error-metric switch would be clearer guarded as error-only, hinti...
null
zalando__skipper__2076
zalando/skipper
2,076
defect
d4b2a6299ef304ef22d9bd1d19899b82f9cb6359
061d591f90c571beb5ef235587b8b3742b0afb50
Added modResponseHeader filter
Signed-off-by: Roman Zavodskikh <roman.zavodskikh@zalando.de>
diff --git a/filters/builtin/builtin.go b/filters/builtin/builtin.go index 53e1ad800c..660b7162fd 100644 --- a/filters/builtin/builtin.go +++ b/filters/builtin/builtin.go @@ -138,6 +138,7 @@ func MakeRegistry() filters.Registry { NewModPath(), NewSetPath(), NewModRequestHeader(), + NewModResponseHeader(), ...
3
1
1
[{"id": "G0", "claim": "The response filter should use the higher-level http.Header.Get API instead of manually looking the header up by its canonical key in the response header map.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ...
null
zalando__skipper__2083
zalando/skipper
2,083
defect
af67775fb49b52d045bed11d36e9411d5d93c6da
ac3105400aef6dca8349d8f1c31bb83937056bf0
Make use of default filters in `RouteSRV`
In efforts to solve https://github.bus.zalan.do/pg9/issues/issues/33 # Summary We need to decrease number of skipper instances pulling routes from kubeapiserver, right now if we have 100 skipper instances all of them will pull from kubeapiserver, which will put some unneeded pressure on it. # Solution The s...
diff --git a/config/config.go b/config/config.go index ee0e7b821e..acc026c799 100644 --- a/config/config.go +++ b/config/config.go @@ -634,6 +634,7 @@ func (c *Config) ToRouteSrvOptions() routesrv.Options { return routesrv.Options{ Address: c.Address, DefaultFiltersDir: ...
1
1
1
[{"id": "G1", "claim": "There is no test covering the append direction of default filters, and one should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando__skipper__2152
zalando/skipper
2,152
defect
a278dae1d09c8c2390bfa1bc0808322883eedfd7
16ff76598c2917178f688f2c9c447dbdf91ea854
Remove `nil` check for ctx
fixes https://github.com/zalando/skipper/issues/2136 Ran tests local with check removed and worked fine. Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
diff --git a/ratelimit/redis.go b/ratelimit/redis.go index d443133bab..bdb9cc74f4 100644 --- a/ratelimit/redis.go +++ b/ratelimit/redis.go @@ -78,11 +78,6 @@ func (c *clusterLimitRedis) measureQuery(format, groupFormat string, fail *bool, } func parentSpan(ctx context.Context) opentracing.Span { - // TODO: https://...
2
2
0
[{"id": "G0", "claim": "The tests in ratelimit/redis_test.go should be reverted/updated to call the context-aware AllowContext instead of Allow, which is kind of deprecated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G5", "claim": "Allow() should be deleted entire...
null
zalando__skipper__2179
zalando/skipper
2,179
defect
579a52a4388e943d13d689e6fad3302e91c66d87
07576e61ba43036bcd51283cdbd19762609f5a11
expose cookie validity as config - fix #2157
expose cookie validity as config fix https://github.com/zalando/skipper/issues/2157 TODO: - [x] tests - [x] exp integration (checked because done already) Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/config/config.go b/config/config.go index cf152de61b..cc64ae5b15 100644 --- a/config/config.go +++ b/config/config.go @@ -203,6 +203,7 @@ type Config struct { Oauth2TokenCookieName string `yaml:"oauth2-token-cookie-name"` WebhookTimeout time.Duration `yaml:"webhook-tim...
1
1
1
[{"id": "G0", "claim": "A command-line flag should be registered for the new OIDCCookieValidity config option, as every neighboring option has.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando__skipper__2195
zalando/skipper
2,195
defect
272616444d006927772e3951a54209c29d116834
b1533bcaeae608b56d5a92a4d8d5cc860c1fab6e
Optimize/source predicates
Optimize: ClientIP(), Source(), SourceFromLast() predicates for a lot of args, benchmarks ipv6, too ``` % benchstat old.txt new.txt optimize/source-predicates name old time...
diff --git a/go.mod b/go.mod index 6198bc8445..06960f3b10 100644 --- a/go.mod +++ b/go.mod @@ -42,6 +42,7 @@ require ( github.com/uber/jaeger-lib v2.4.1+incompatible github.com/yookoala/gofast v0.6.0 github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 + go4.org/netipx v0.0.0-20220925034521-797b0c90d8ab ...
7
5
3
[{"id": "G0", "claim": "Benchmark results before and after the change should be compared using benchstat.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change increases runtime and allocations for the most common use case, predicates with a few IP ...
null
zalando__skipper__2213
zalando/skipper
2,213
defect
2898aa90dffd9aee366592a95e038c40a957510c
83bee9ecbe0629b722b7ddf3d433f71cc43c4f98
filters/auth: make `oauthGrant` check token cookie is allowed for request domain
filters/auth: make oauthGrant check token cookie is allowed for request domain This prevents reuse of leaked cookie in another domain
diff --git a/filters/auth/grant.go b/filters/auth/grant.go index 84e7cdb882..0fbc2ae694 100644 --- a/filters/auth/grant.go +++ b/filters/auth/grant.go @@ -25,11 +25,11 @@ var ( ) type grantSpec struct { - config OAuthConfig + config *OAuthConfig } type grantFilter struct { - config OAuthConfig + config *OAuthCo...
2
2
0
[{"id": "G0", "claim": "The two-loop reconstruction of the cookie list in extractCookie makes it hard to spot that element i is dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop in extractCookie could also continue on err != nil, ...
null
zalando__skipper__2217
zalando/skipper
2,217
defect
f8882170d24964da31a1bad1d686accf86b5f3f8
1f3726e816a98a296125ac025e736c80e924a688
Fix Makefile to pass CDP check for go1.20
Signed-off-by: Roman Zavodskikh <roman.zavodskikh@zalando.de>
diff --git a/Makefile b/Makefile index a1ce580b7f..db9bec176c 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,7 @@ bench: build $(TEST_PLUGINS) lint: build staticcheck clean: - go clean -i -cache -testcache ./... + go clean -i -cache -testcache rm -rf .coverprofile-all .cover rm -f ./_test_plugins/*.so rm...
1
1
0
[{"id": "G0", "claim": "The -SA1019 staticcheck exclusion should not be added globally to the Makefile; the exception should only apply where it is needed (or better, fix the uses of the deprecated function), otherwise new uses of non-cryptographic rand functions could be missed in the future.", "category": "maintainab...
null
zalando__skipper__2232
zalando/skipper
2,232
defect
832dedc0262faf65c330af7b1edf7fc48f173206
dd9114018656fcdb49dd6474c7f17ef0a234c394
refactor: proxy error response
refactor: proxy error response to always have a response defined to simplify the logic Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
diff --git a/proxy/proxy.go b/proxy/proxy.go index 0702de6309..ccbaa4c32a 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -761,9 +761,8 @@ func (p *Proxy) applyFiltersToResponse(filters []*routing.RouteFilter, ctx *cont filterTracing := p.tracing.startFilterTracing("response_filters", ctx) defer filterTracing.f...
4
3
0
[{"id": "G0", "claim": "The TODO comment's status code is probably 463 rather than 465, and a link to AWS's HTTP 463 troubleshooting docs could be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the makeErrorResponse(ctx, perr) call clo...
null
zalando__skipper__2248
zalando/skipper
2,248
defect
22cf5ff9fb84c52446c63d8643f4b31a240ce64c
993348e37e6fa5f8fd2660413ac1db09feaddaaf
Use flags.FlagSet to increase testability
Such change makes skipper and routesrv configuration more incapsulated, os.Args slice is not used directly in tests any more. Updates #2175
diff --git a/cmd/routesrv/main.go b/cmd/routesrv/main.go index ffe9f7e948..bc0180ff9a 100644 --- a/cmd/routesrv/main.go +++ b/cmd/routesrv/main.go @@ -1,14 +1,16 @@ package main import ( + "os" + log "github.com/sirupsen/logrus" "github.com/zalando/skipper/config" "github.com/zalando/skipper/routesrv" ) f...
7
7
4
[{"id": "G0", "claim": "The error returned by flags.Parse is silently discarded; the code should return the possible error (or at least mark it as intentionally ignored with `_ =`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new FlagSet uses...
null
zalando__skipper__2250
zalando/skipper
2,250
defect
19d7c04398d795b422b08c27c4cf5b0756fc286a
06c04dfa490a22ac03df81c2dfa1c8426d56627e
webhook: remove kubernetes dependency
- [x] requires https://github.com/zalando/skipper/pull/2251
diff --git a/VERSION b/VERSION index 2048935292..39fa1765f9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.15 +v0.16 diff --git a/cmd/webhook/admission/admission.go b/cmd/webhook/admission/admission.go index dd8441aea4..6f6878eade 100644 --- a/cmd/webhook/admission/admission.go +++ b/cmd/webhook/admission/admission...
5
1
0
[{"id": "G0", "claim": "The new struct definitions in definitions.go may need `// +optional` marker comments.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hand-declared ObjectMeta may omit upstream fields (e.g. Namespace, SelfLink) that are us...
null
zalando__skipper__2264
zalando/skipper
2,264
defect
e1949689eac6cd89da91d1517a2e67858eec7078
1649c6542f1d0b2d38ae99d4061027d8a1cec074
feature: lua config to selective enable inline,file,none
feature that fixes https://github.com/zalando/skipper/issues/2262 config option -lua-sources allows to set: - `-lua-sources=none` to disable lua sources - `-lua-sources=file` to only allow file sources - `-lua-sources=inline` to only allow inline scripts - `-lua-sources=inline -lua-sources=file` to allow both, w...
diff --git a/config/config.go b/config/config.go index 7770bae85d..36c1ca6ff0 100644 --- a/config/config.go +++ b/config/config.go @@ -269,6 +269,7 @@ type Config struct { ClusterRatelimitMaxGroupShards int `yaml:"cluster-ratelimit-max-group-shards"` LuaModules *listFlag `yaml:"lua-modules"` + LuaSources string ...
4
2
1
[{"id": "G0", "claim": "The empty/\"none\" special casing in NewLuaScriptWithOptions is unnecessary because the code already checks whether the sources list contains specific values.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The LuaSources config fi...
null
zalando__skipper__2361
zalando/skipper
2,361
defect
ffd90507f24580f321b42063ad1087cb02299ead
f80dbd5b904801c3579818b2e5522bc6d71dfba7
feature: add TTL support for routes in etcd
Since we process a very large number of routes, we want to automatically clean up deprecated and thus expired routes. Therefore, we use the TTL of etcd to automatically expire and remove old routes stored in etcd. Currently routes with expired TTL are removed from etcd but stay active in Skipper until a restart of ...
diff --git a/etcd/etcd.go b/etcd/etcd.go index 53ced8a114..1c10551353 100644 --- a/etcd/etcd.go +++ b/etcd/etcd.go @@ -441,7 +441,7 @@ func (c *Client) LoadUpdate() ([]*eskip.Route, []string, error) { } id := path.Base(response.Node.Key) - if response.Action == "delete" { + if response.Action == "delete" || r...
5
5
3
[{"id": "G0", "claim": "The new test should use t.Fatalf() where no error is expected and the check is unrelated to the change (test setup and assertions), keeping t.Errorf() for errors related to the change itself.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null