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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stack-of-tasks__pinocchio__2574 | stack-of-tasks/pinocchio | 2,574 | defect | 9bf590fd69c00e1d75694c79771014b3e4d30ae8 | 3d82fe6adc5dce4f567649404afc3d2cb5f6187b | Add C++ visualization API and some macros for scalar contexts | This pull request upstreams the contents of the single-header library [Simple-Robotics/pinocchio-visualizers](https://github.com/Simple-Robotics/pinocchio-visualizers), as discussed on issue #2573.
This API reproduces the behaviour of the existing Pinocchio Python bindings' `pinocchio.visualizers.BaseVisualizer` class... | diff --git a/include/pinocchio/bindings/python/extra/visualizer-visitor.hpp b/include/pinocchio/bindings/python/extra/visualizer-visitor.hpp
new file mode 100644
index 0000000000..3cf9e3a402
--- /dev/null
+++ b/include/pinocchio/bindings/python/extra/visualizer-visitor.hpp
@@ -0,0 +1,74 @@
+//
+// Copyright (c) 2024-20... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pinviz namespace alias added at the end of base-visualizer.hpp may not be a good idea; if it is unused it should be dropped and left for users to define in their own project.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
stack-of-tasks__pinocchio__2608 | stack-of-tasks/pinocchio | 2,608 | defect | d97e3df741144e1f2f741fe61c1f07f7c4e21bee | 99a39cccee57633df2b254c7fe0cf69fae6c501d | Enhacing casting support for multiple floating-point scalars and Casadi and CppAD types | Dear Pinocchio folks,
As you know, I am working hard to support casting of multiple floating-point types as well as CppAD types in Crocoddyl. Currently, I have a draft version that needs to be reviewed before merging. However, there are changes in Pinocchio that prevent us from merging this new development, and I wo... | diff --git a/include/pinocchio/autodiff/casadi/math/quaternion.hpp b/include/pinocchio/autodiff/casadi/math/quaternion.hpp
index c107fa9487..b06cb91020 100644
--- a/include/pinocchio/autodiff/casadi/math/quaternion.hpp
+++ b/include/pinocchio/autodiff/casadi/math/quaternion.hpp
@@ -11,6 +11,12 @@ namespace pinocchio
{... | 6 | 5 | 3 | [{"id": "G0", "claim": "The pull request's CasADi support does not compile: CI fails with 'SX' is not a member of 'pinocchio::casadi' in autodiff/casadi/math/quaternion.hpp, so something is not correct in the change or its testing workflow.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope":... | null |
stack-of-tasks__pinocchio__2648 | stack-of-tasks/pinocchio | 2,648 | defect | 0218985721ac4cea5a540463973bef9db5727659 | 32404eb5b0ee754a6991ae14decf07a19e8d9c2f | unittest/python : add visualizer bindings visitor test, add CMake util to create C++ Python modules for tests | - **unittest/python/CMakeLists.txt : add util function to create test C++ extension Python modules, and associated Python tests**
- **unittest/python : add test for visualizer bindings (visitor)**
| diff --git a/unittest/python/CMakeLists.txt b/unittest/python/CMakeLists.txt
index 179ac51899..d202371ba7 100644
--- a/unittest/python/CMakeLists.txt
+++ b/unittest/python/CMakeLists.txt
@@ -1,6 +1,7 @@
#
-# Copyright (c) 2015-2023 CNRS INRIA
+# Copyright (c) 2015-2023 CNRS INRIA, 2024-2025 INRIA
#
+include(${JRL_CMA... | 1 | 1 | 1 | [{"id": "G0", "claim": "The 'Windows problem' with the PR's new visualizer test module is not fixed by jorisv's suggested commit 86547fb, so the new tests remain problematic on Windows.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
stack-of-tasks__pinocchio__2756 | stack-of-tasks/pinocchio | 2,756 | defect | 32aa8ac23dc6644d7047387e6e2ddd9b30dc2c51 | fd5a933a2b88842cce74e4753c052ea9540faec0 | Add continuous joint as mimic in urdf parser | Thanks for taking the time to make and fill out this pull request!
## Description
Change in the urdf parser to have possibility to mimic continuous joints. Change an assert into a throw to avoid nq and nv mismatch when creating a mimic joint.
Mimic test case for urdf parser.
Will close https://github.com/st... | diff --git a/include/pinocchio/multibody/joint/joint-mimic.hpp b/include/pinocchio/multibody/joint/joint-mimic.hpp
index 0954f2d5e5..7006684976 100644
--- a/include/pinocchio/multibody/joint/joint-mimic.hpp
+++ b/include/pinocchio/multibody/joint/joint-mimic.hpp
@@ -606,9 +606,16 @@ namespace pinocchio
, m_nqExten... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test XML string in unittest/urdf.cpp should use a raw literal, as done in unittest/mjcf.cpp, to avoid adding \"\" at each line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added with a failure case... | null |
stack-of-tasks__pinocchio__2763 | stack-of-tasks/pinocchio | 2,763 | defect | 7e3fb5d8f7ed17330c196ef6c3babc083c8165d0 | 9338d9699f5096b60fd61eb21a986e3a9729443f | Fix axis of unaligned mimic joint | Thanks for taking the time to make and fill out this pull request!
## Description
When a mimic joint was unaligned, its axis was not set.
It fixes #2761
## Checklist
- [x] I have run `pre-commit run --all-files` or `pixi run lint`
- [x] I have performed a self-review of my own code
- [x] I have comment... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 080b9c26c3..f2b48bd110 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix Viser visualizer loading DAE files as trimesh.Scene ([#2748](https://github.com/stack-of-tasks/pino... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a non-regression test covering the PR's fix of the unaligned mimic joint axis.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stack-of-tasks__pinocchio__2807 | stack-of-tasks/pinocchio | 2,807 | defect | 572e2dc21fe27cd4c46c97fa2613e715554e14cc | 3f05413e0ae3bf1d8b2c76f16be5d3b16b37f941 | Fix appendModel issue when a frame have non null transformation | ## Description
When a frame have inertia and a non null transformation, `appendModel` algorithm was doing some wrong computation to compute joint inertia of the new transform.
Close #2805
## TODO
- [x] Fix `AppendJointOfModelAlgoTpl`
- [x] Fix `appendUniverseToModel`
- [x] Check if there is an issue with ... | diff --git a/include/pinocchio/algorithm/model.hxx b/include/pinocchio/algorithm/model.hxx
index 6997e6207d..f6f2a7b559 100644
--- a/include/pinocchio/algorithm/model.hxx
+++ b/include/pinocchio/algorithm/model.hxx
@@ -248,14 +248,7 @@ namespace pinocchio
modelAB, model, modelAB.frames[frame.parentFram... | 2 | 1 | 0 | [{"id": "G0", "claim": "The inertia handling should also be changed in the appendUniverseToModel() method: frames attached to the universe with inertia must not pass that inertia to the body, so addFrame should be called with append_inertia set to false.", "category": "correctness", "verdict": "supported", "priority": ... | null |
stack-of-tasks__pinocchio__285 | stack-of-tasks/pinocchio | 285 | defect | 40b10a75cb54300d0526c1041e18e2ad2c01f7df | 8ec8b9018d3bf33ff83b327e06d24d6c816803b1 | Topic/visuals without fcl | GeometryModel and GeometryData are available to one user even if hpp-fcl is not found.
**However** , only stuff related to geometryplacements is available ( no collision computations).
Moved fcl structures to a dedicated file.
**WARNING: THIS PR IS NOT TOTALLY FINISHED YET**
I still have some problems with the libr... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1f102191f..3ab5ef5eef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -213,13 +213,13 @@ IF(BUILD_PYTHON_INTERFACE)
python/explog.hpp
)
- IF(HPP_FCL_FOUND)
- LIST(APPEND ${PROJECT_NAME}_PYTHON_HEADERS
- python/geometry-object.hpp
- python... | 9 | 7 | 2 | [{"id": "G0", "claim": "The compile flags chosen for the library (here -DWITH_HPP_FCL) must be propagated to every binary built in Pinocchio, otherwise the binaries linking the library do not compile (the other tests cannot find fake-fcl) and GeomModel gets incoherent sizes between the library and its headers.", "categ... | null |
stack-of-tasks__pinocchio__326 | stack-of-tasks/pinocchio | 326 | defect | dd6627ada295b557d0c11211991d776a0c4b07f2 | 9ff72fdff5be8dacb295d37dafddf01b6a364b8f | Topic/joint composite | Equivalent to PR #318 , with last modifications proposed by @nmansard
the last 2 commits are additions. One to fix some errors that appeared with rebase and One to specialized the behavior of addjoint when setting the indexes for JointModelComposite
| diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ab6204673..ed2b4e253c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,6 +156,7 @@ SET(${PROJECT_NAME}_MULTIBODY_JOINT_HEADERS
multibody/joint/joint.hpp
multibody/joint/joint-basic-visitors.hpp
multibody/joint/joint-basic-visitors.hxx
+ multibody/joi... | 5 | 2 | 1 | [{"id": "G0", "claim": "JointModelComposite::updateComponentsIndexes must be run directly during the call of setIndexes rather than left as a separate call for callers to remember.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "No modifications must... | null |
stack-of-tasks__pinocchio__457 | stack-of-tasks/pinocchio | 457 | defect | 4244aecc86516d4ba3e876350e1bebe564de6ddc | 82a9b16d142055e1634f463624c8d435441952c1 | Topic/joint composite | Re-implemented calc for joint composite.
I am still checking calc_aba.
Also, although I am sure they are buggy, I didn't touch all sub-methods that will be superseded by LieGroups, except for the neutral configuration method which was necessary for the kinematic tests to run correctly (otherwise the program would seg... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 041710aa2e..d5a2a8c9fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,6 +203,7 @@ SET(${PROJECT_NAME}_MULTIBODY_JOINT_HEADERS
multibody/joint/joint-basic-visitors.hpp
multibody/joint/joint-basic-visitors.hxx
multibody/joint/joint-composite.hpp
+ mul... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use size_t instead of int for the loop index over joints in the composite calc helpers.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out lines that are not needed in the test_kinematics test.", "categ... | null |
stack-of-tasks__pinocchio__508 | stack-of-tasks/pinocchio | 508 | defect | 07bb13b1e3a89102fce49a2ff43a447c100c3868 | 800ecb5625454b1c37757ed8698fad154655cb45 | Frame Jacobian Time Variation | * Fix a few deprecated functions
* add framejacobiantimevariation
*add unittest for above | diff --git a/bindings/python/algorithm/expose-frames.cpp b/bindings/python/algorithm/expose-frames.cpp
index e61ecfc2c9..80221ed43f 100644
--- a/bindings/python/algorithm/expose-frames.cpp
+++ b/bindings/python/algorithm/expose-frames.cpp
@@ -49,6 +49,36 @@ namespace se3
return get_frame_jacobian_proxy(model... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new finite-difference test for getFrameJacobianTimeVariation contains no active assertion because the BOOST_CHECK comparing dJ to dJ_ref is commented out.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The finite-difference t... | null |
stack-of-tasks__pinocchio__603 | stack-of-tasks/pinocchio | 603 | defect | e27249954e2ea588f290d24234f29818675141ee | aa7380d84dd63afa248e7d730ac24f4cbb6f872a | [python] [JointModelComposite] Various fixes | Mostly python fixes
- Fixed a few things in `RobotWrapper` and `RomeoWrapper`
- Finished exposing `JointModelComposite` constructors and data
- Additionally, I slightly modified `addJoint` in `JointModelComposite`.
It now returns a reference to the same joint being modified, so that the expressions can be easily ch... | diff --git a/bindings/python/multibody/joint/joint-derived.hpp b/bindings/python/multibody/joint/joint-derived.hpp
index 8c9c3ded6f..95920c393b 100644
--- a/bindings/python/multibody/joint/joint-derived.hpp
+++ b/bindings/python/multibody/joint/joint-derived.hpp
@@ -26,15 +26,16 @@ namespace pinocchio
void visit... | 3 | 3 | 2 | [{"id": "G0", "claim": "The disabled `.def(bp::init<>())` line in JointPythonVisitor should be removed outright instead of being left in as commented-out code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JointModelComposite constructor pr... | null |
stack-of-tasks__pinocchio__652 | stack-of-tasks/pinocchio | 652 | defect | d2b5edcb44fadaefdc920a30e2f4bfdb8fa5fafd | d34397155e9a14be419241e2e32d19ab9b840e41 | Load neutralconfiguration from srdf for joint.nq()>1 | Currently when loading neutralConfiguration from srdf, root_joint values are not loaded.
This PR should change that. | diff --git a/src/parsers/srdf.hxx b/src/parsers/srdf.hxx
index 2232cb967f..adb380887e 100644
--- a/src/parsers/srdf.hxx
+++ b/src/parsers/srdf.hxx
@@ -209,7 +209,7 @@ namespace pinocchio
{
typedef ModelTpl<Scalar,Options,JointCollectionTpl> Model;
typedef typename Model::JointModel JointModel;
- ... | 5 | 5 | 1 | [{"id": "G0", "claim": "Use the Model typedef instead of spelling out ModelTpl<Scalar,Options,JointCollectionTpl> in the config-vector Map expression.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the trailing whitespace on the blank lin... | null |
stack-of-tasks__pinocchio__665 | stack-of-tasks/pinocchio | 665 | defect | ce8907fda93d3ec4bb8e33d3b0ad8102930b1125 | f3367a44f0ba191f3eba55dd537860b9e912d647 | get the inverse of MJtJ matrix using the matrix decompositions performed in forwardDynamics or impulsedynamics | Currently the matrix decompositions done in forwardDynamics are wasted when computing the inverse of the MJtJ matrix. This PR adds a function that returns the analytical inverse of MJtJ (via schur complement) using the computations already done in forwardDynamics. This is also true for impulsedynamics.
I add the uni... | diff --git a/bindings/python/algorithm/expose-dynamics.cpp b/bindings/python/algorithm/expose-dynamics.cpp
index f35ce183e0..73d96a9457 100644
--- a/bindings/python/algorithm/expose-dynamics.cpp
+++ b/bindings/python/algorithm/expose-dynamics.cpp
@@ -27,6 +27,16 @@ namespace pinocchio
BOOST_PYTHON_FUNCTION_OVERL... | 6 | 6 | 2 | [{"id": "G0", "claim": "The continuation lines of the new getMJtJInverse_proxy definition in expose-dynamics.cpp should be aligned with the opening line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The function and matrix are misnamed: the [[... | null |
stack-of-tasks__pinocchio__724 | stack-of-tasks/pinocchio | 724 | defect | 110cc10213fd048fe50a1fcc910a09bac85b031e | 6364d7e69718a6f2d72259d316ccd90bf2715dc5 | [Model] Total mass | Quite often, I find myself in need of just getting the total mass of the robot.
However, there is no simple one-shot algorithm to get it in Pinocchio.
The standard today is to check `data.mass[0]`. However, the only way of having the correct value is to first call an unrelated method which fills it as a side-effect, ... | diff --git a/bindings/python/multibody/model.hpp b/bindings/python/multibody/model.hpp
index 7e031c8ab3..e21f8898aa 100644
--- a/bindings/python/multibody/model.hpp
+++ b/bindings/python/multibody/model.hpp
@@ -150,6 +150,7 @@ namespace pinocchio
.def("createData",&ModelPythonVisitor::createData)
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The total-mass helper should not be an instance method of Model: all input-taking algorithms belong in the algorithms section (like randomConfiguration), and it should be renamed computeMass() since it computes rather than merely accesses values.", "category": "design", "verdict": "supported", "... | null |
stack-of-tasks__pinocchio__767 | stack-of-tasks/pinocchio | 767 | defect | ae8394f5577c184f4de5a40df42189a5797d3cf7 | f9c89f0db7ca6e7aa0c04494e80cf585ee44bcb8 | add computation of dhg/dq inside computecentroidaldynamicsderivatives | I extend the forceSet::motionAction to include the case when multiple column vectors are being applied to a single force vector.
Except that, the implementation is easy to understand. | diff --git a/bindings/python/algorithm/expose-centroidal-derivatives.cpp b/bindings/python/algorithm/expose-centroidal-derivatives.cpp
index 5688c834d9..fd6af355a5 100644
--- a/bindings/python/algorithm/expose-centroidal-derivatives.cpp
+++ b/bindings/python/algorithm/expose-centroidal-derivatives.cpp
@@ -19,15 +19,15 ... | 3 | 3 | 0 | [{"id": "G0", "claim": "Missing space after the comma separating Matrix6xLike0 from Matrix6xLike1 in the template parameter list of getCentroidalDynamicsDerivatives.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The continuation lines of the newly added ... | null |
stack-of-tasks__pinocchio__781 | stack-of-tasks/pinocchio | 781 | defect | 390f023bcf296f4698d1fedc32c29422f5e7135d | 80948dbefac6af42b77826c43053bf823fc1b72a | Add support for LOCAL_CARTESIAN_ORIENTED in jacobian computation | This is to fix #773.
This is NOT done yet but there are a few points I thought it's better to get feedback on earlier then later.
I haven't tested the code yet. The code compute the frame orientation I've copied from some other internal code we have, but I don't know if the jointJacobian code is working as expec... | diff --git a/bindings/python/module.cpp b/bindings/python/module.cpp
index c68d8a83df..80c54cea3c 100644
--- a/bindings/python/module.cpp
+++ b/bindings/python/module.cpp
@@ -44,6 +44,7 @@ BOOST_PYTHON_MODULE(libpinocchio_pywrap)
bp::enum_< ::pinocchio::ReferenceFrame >("ReferenceFrame")
.value("WORLD",::pinocchi... | 5 | 4 | 2 | [{"id": "G0", "claim": "The temporary matrix J_tmp heap-allocates inside getFrameJacobian for LOCAL_CARTESIAN_ORIENTED and should be eliminated, e.g. by declaring it in Data, computing column-wise, or expressing the result contained in data.J at the frame origin via a cross product of the linear part instead of the SE3... | null |
stack-of-tasks__pinocchio__818 | stack-of-tasks/pinocchio | 818 | defect | 8a177c7c04ec93067f5d627bf038239bb2bf59f6 | 07aa850ee019a231a4c905ee067a3bb9be0ae978 | Introduce joint torque regressor | Summary:
this PR introduces a joint torque regressor, such that
<a href="https://www.codecogs.com/eqnedit.php?latex=\tau&space;=&space;Y(q,\dot{q},\ddot{q})\pi" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\tau&space;=&space;Y(q,\dot{q},\ddot{q})\pi" title="\tau = Y(q,\dot{q},\ddot{q})\pi" /></a>
... | diff --git a/bindings/python/algorithm/expose-regressor.cpp b/bindings/python/algorithm/expose-regressor.cpp
index 6675c1de2d..8458bbd8f5 100644
--- a/bindings/python/algorithm/expose-regressor.cpp
+++ b/bindings/python/algorithm/expose-regressor.cpp
@@ -9,19 +9,65 @@ namespace pinocchio
{
namespace python
{
- ... | 8 | 6 | 1 | [{"id": "G0", "claim": "bodyRegressor allocates a standalone acc matrix; the result should be stored in res instead to avoid the allocation.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new regressor code allocates a temporary 6x10 matrix per ... | null |
stack-of-tasks__pinocchio__876 | stack-of-tasks/pinocchio | 876 | defect | c10eeddec71e53f2ebd6a673b7e5ce2f8ecdfbf7 | 40a5b9c092c9a9f152a95b842d525572563bb010 | Topic/constrained dynamics | Related to #875.
I decided to handle this issue as it is more complex than expected at first guess.
@cmastalli Can you give it a try and tell if it convenient for you?
I would also need feedback from @gabrielebndn if possible (for Python bindings notably). | diff --git a/bindings/python/algorithm/expose-contact-dynamics.cpp b/bindings/python/algorithm/expose-contact-dynamics.cpp
index b45c1feb76..4a29fd3ac3 100644
--- a/bindings/python/algorithm/expose-contact-dynamics.cpp
+++ b/bindings/python/algorithm/expose-contact-dynamics.cpp
@@ -25,20 +25,41 @@ namespace pinocchio
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The impulseDynamics signatures would read better with r_coeff before inv_damping, both defaulted to zero, so inv_damping can be left unspecified and the deprecated updateKinematics overload kept without conflicting defaults.", "category": "design", "verdict": "supported", "priority": "P1", "scop... | null |
stack-of-tasks__pinocchio__995 | stack-of-tasks/pinocchio | 995 | defect | d205ff1c85b8ce8e609317e76b24e18dd4191dd9 | bf1ce88d7d3fae2386f0638809e9e766883fc838 | Fix Geometry module | @jmirabel Can you check if the change I did are fine with you? | diff --git a/bindings/python/multibody/geometry-data.hpp b/bindings/python/multibody/geometry-data.hpp
index 3feb023094..43dc169bb7 100644
--- a/bindings/python/multibody/geometry-data.hpp
+++ b/bindings/python/multibody/geometry-data.hpp
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2015-2018 CNRS
+// Copyright (c) 2015-2019 ... | 5 | 3 | 0 | [{"id": "G0", "claim": "A note should be added that a collision request can define a security_margin and a break_distance, which for robotics will likely differ per collision pair, so having as many collision requests as collision pairs may be a good idea.", "category": "documentation", "verdict": "supported", "priorit... | null |
stackbuilders__react-native-spotlight-tour__137 | stackbuilders/react-native-spotlight-tour | 137 | defect | 23065ee6f990f28deb4dbc4ce8394e6fcef08141 | 1f10f189a59d4e32ab3f8bfe467d8b0eddad1205 | docs(core): Improve Documentation and Markdown Conventions | Hello, I appreciate the effort put into creating this fantastic library! I noticed a few typographical errors in the documentation and took the initiative to correct them. Additionally, I've implemented some best practices for Markdown formatting to enhance the readability and consistency of the documentation.
Here'... | diff --git a/README.md b/README.md
index dc2127a..e8d4785 100644
--- a/README.md
+++ b/README.md
@@ -37,21 +37,21 @@ for the following:
With `npm`:
```bash
-$ npm install react-native-spotlight-tour
+npm install react-native-spotlight-tour
```
With `yarn`:
```bash
-$ yarn add react-native-spotlight-tour
+yar... | 3 | 3 | 0 | [{"id": "G0", "claim": "The project intentionally does not use Prettier, so the pull request should not reformat the `goTo` callback and should keep the original hook-friendly formatting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Pretti... | null |
stackbuilders__react-native-spotlight-tour__23 | stackbuilders/react-native-spotlight-tour | 23 | defect | 5ed9b1880117c998a9f48427ea9073d2673efa2e | 7f4ea878013ffd2abc5f2ca4e126728fbfcaf74e | Add before hook to the Step configuration | * Add an optional hook for running effects before a step starts
* Extract helper functions to `src/helpers/common.ts`
* Fix and improve tests | diff --git a/example/App.tsx b/example/App.tsx
index 4813114..4d2095f 100644
--- a/example/App.tsx
+++ b/example/App.tsx
@@ -1,5 +1,6 @@
-import React from "react";
-import { Button, SafeAreaView, ScrollView, View } from "react-native";
+import dedent from "dedent";
+import React, { useRef, useState } from "react";
+im... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unmaintained `dedent` package used by the example should be replaced with a maintained fork.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Documentation for the new `before` hook should be added.", "category": "docum... | null |
stacklok__frizbee__19 | stacklok/frizbee | 19 | defect | 01bddb80b95df79905b0df001db3534c68f27a65 | f5f430f342998ed5c04a872247d6114588642d1d | Add container image support | This adds basic support for replacing container image references with
references that include the digest.
| diff --git a/cmd/containerimage/containerimage.go b/cmd/containerimage/containerimage.go
new file mode 100644
index 0000000..d48cf78
--- /dev/null
+++ b/cmd/containerimage/containerimage.go
@@ -0,0 +1,33 @@
+// Copyright 2023 Stacklok, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you... | 3 | 3 | 3 | [{"id": "G0", "claim": "Minder found the newly added github.com/docker/docker v24.0.0 dependency vulnerable and suggests upgrading it to v24.0.7 in go.sum.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Minder found the newly added github.com/docker/do... | null |
stacklok__frizbee__53 | stacklok/frizbee | 53 | defect | b7db63b2084f4506f84eb293dca4de6a5e29fcf6 | 9add9016831703d45803e383dc4e065b1926acbd | Allow excluding just the action name | Frizbee allowed to exclude the whole action name including the tag e.g. `actions/checkout@v4`. But this is not user-friendly for cases where the exclude would be upgraded over time as the exclude would have to be kept in sync.
Let's also support the case where the exclude is just in the form of `owner/action_name`. | diff --git a/pkg/ghactions/ghactions.go b/pkg/ghactions/ghactions.go
index e0af4a7..07a44e7 100644
--- a/pkg/ghactions/ghactions.go
+++ b/pkg/ghactions/ghactions.go
@@ -114,15 +114,15 @@ func ModifyReferencesInYAMLWithCache(
continue
}
- if shouldExclude(cfg, v.Value) {
- continue
- }
-
act, ref, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider having two exclude checks — one for the raw value + tag before parsing and another one for just the action name after parsing — which would make the shouldExclude code simpler and improve performance by not parsing already-excluded actions.", "category": "design", "verdict": "supported"... | null |
stackrox__kube-linter__1012 | stackrox/kube-linter | 1,012 | defect | 7dff1ed0c607b3db7bda10de2e8add75054bea8b | c40ee6a14cd483392f0f86f55183e3e3bae5bf28 | Add CEL template | ## Add CEL Template for Custom Expression-Based Checks
This PR introduces a new `cel-expression` template that enables users to write custom checks using the [Common Expression Language (CEL)](https://github.com/google/cel-spec). This powerful addition allows for flexible, expression-based validation of Kubernetes r... | diff --git a/docs/generated/templates.md b/docs/generated/templates.md
index 2c431017e..b6cba3bd4 100644
--- a/docs/generated/templates.md
+++ b/docs/generated/templates.md
@@ -63,6 +63,26 @@ KubeLinter supports the following templates:
type: string
```
+## CEL
+
+**Key**: `cel-expression`
+
+**Description**: Fla... | 11 | 10 | 3 | [{"id": "G0", "claim": "The docs set `regexAllowed: true` on the CEL `check` parameter, and it is unexplained what allowing regex on a CEL expression is supposed to mean.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `check` parameter is marked not ... | null |
stackrox__kube-linter__1045 | stackrox/kube-linter | 1,045 | defect | f8f179550407d21f44bfa88a8ec4db767b940b7f | fbb9949d510e0fae1d5a4fb5ed4b95119761c47f | Add Kustomize Support | This PR adds native support for linting Kustomize manifests. kube-linter can now automatically detect and render Kustomize directories, applying all transformations before running lint checks.
## Motivation
Currently, users need to manually render Kustomize manifests before linting:
```bash
kustomize build ./my... | diff --git a/e2etests/bats-tests.sh b/e2etests/bats-tests.sh
index ae51009cc..aeb80a7f0 100755
--- a/e2etests/bats-tests.sh
+++ b/e2etests/bats-tests.sh
@@ -1146,3 +1146,23 @@ get_value_from() {
[[ "${count}" == "1" ]]
}
+@test "kustomize-support" {
+ tmp="tests/testdata/mykustomize"
+ cmd="${KUBE_LINTER_BIN} l... | 6 | 6 | 2 | [{"id": "G0", "claim": "Bumping k8s-manifests-lib to v0.1.2 would let the PR report the specific file each kustomize-generated object came from, via the library's source annotations.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Kustomize linting finds ... | null |
stackrox__kube-linter__107 | stackrox/kube-linter | 107 | defect | 475075c746758aab9712b7d1a8136ecd064af145 | 8a14f3dcd074eb8b25082a173a3ac76520cd0708 | Improve markdown formatting and fix pipe in table | ## Changes
- Improve code formatting in template by creating `codeSnippet`, `codeBlock` and `codeSnippetInTable` filters
- Added tests for `codeSnippet`, `codeBlock` and `codeSnippetInTable` filters
- Fixed issue for pipe in code snippet embedded in table (see https://github.com/github/markup/issues/1078 )
R... | diff --git a/internal/command/checks/command.go b/internal/command/checks/command.go
index d142fe38a..2da5613c5 100644
--- a/internal/command/checks/command.go
+++ b/internal/command/checks/command.go
@@ -42,7 +42,7 @@ KubeLinter includes the following built-in checks:
| Name | Enabled by default | Description | Rem... | 3 | 3 | 1 | [{"id": "G0", "claim": "Consider using the backquoted raw string literal `\\|` instead of \"\\|\" in the codeSnippetInTable replacement to avoid double escaping.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the lint failure and check in th... | null |
stackrox__kube-linter__112 | stackrox/kube-linter | 112 | defect | 2f67e4a5d9ce2f837bac2d2df212fda3eff9c1f6 | 7835df62e15a0aa7defbd7e91634fe9705115dc0 | Allow users to specify the topology key for the anti-affinity check | This allows users to allow inter-pod anti-affinity to use an arbitrary label (example: `topologyKey: failure-domain.beta.kubernetes.io/zone`), not just `kubernetes.io/hostname`. | diff --git a/docs/generated/templates.md b/docs/generated/templates.md
index 18a24faad..6a2fb4159 100644
--- a/docs/generated/templates.md
+++ b/docs/generated/templates.md
@@ -18,6 +18,14 @@ KubeLinter supports the following templates:
"type": "integer",
"description": "The minimum number of replicas a deploymen... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request adds the topologyKey parameter to the anti-affinity check without any unit tests covering the new and changed behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The instantiation-error branch in Validate s... | null |
stackrox__kube-linter__166 | stackrox/kube-linter | 166 | defect | cdce02db298eccc4908907781c93f2a465df544c | cb51a3e9c942b82066ad49e3d8f530ddd56a1d7f | ADD: skip when AutomountServiceAccountToken=false | fixes https://github.com/stackrox/kube-linter/issues/135 | diff --git a/pkg/templates/serviceaccount/template.go b/pkg/templates/serviceaccount/template.go
index 5229074df..4c6d2652a 100644
--- a/pkg/templates/serviceaccount/template.go
+++ b/pkg/templates/serviceaccount/template.go
@@ -35,6 +35,9 @@ func init() {
if !found {
return nil
}
+ if podSpec.Automo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a unit test for the template's new skip-when-AutomountServiceAccountToken=false behavior, following the pattern in the antiaffinity template test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stackrox__kube-linter__185 | stackrox/kube-linter | 185 | defect | 3b39423676e41f6a03d6b7e116f5344f44fab9a1 | 7b575cdb80f4b541a93379bc8b5fcf915b6921ec | Add check for minimum number of replicas. #181 | Fixes #181 | diff --git a/pkg/builtinchecks/yamls/minimum-replicas.yaml b/pkg/builtinchecks/yamls/minimum-replicas.yaml
new file mode 100644
index 000000000..2fd63270e
--- /dev/null
+++ b/pkg/builtinchecks/yamls/minimum-replicas.yaml
@@ -0,0 +1,10 @@
+name: "required-minimum-replicas"
+description: "Indicates when deployment use le... | 3 | 3 | 0 | [{"id": "G0", "claim": "The check's name should contain the number three, since the check specifically tests for three replicas.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The template's HumanName should not be a sentence; change it to \"Min... | null |
stackrox__kube-linter__191 | stackrox/kube-linter | 191 | defect | 7d10a69154ed423d161b4d50a726d6de89803118 | ddb195fe7855bb7c1482e5d94c2771accdd3ec66 | add check for validating improper container image tags | **The PR makes the following changes:**
- adds a new builtin default check `improper-container-image-tag`, for validating `DeploymentLike` kubernetes objects running containers with improper image tags.
- Currently, the check is limited to checking container image with a `latest` floating tag only. But the regex fo... | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 17dd03617a..73aff227c5 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -2,6 +2,22 @@
KubeLinter includes the following built-in checks:
+## check-untrusted-images
+
+**Enabled by default**: No
+
+**Description**: Indicat... | 7 | 6 | 4 | [{"id": "G0", "claim": "The untrusted-images built-in check is too broad to be a good built-in; the pull request should instead have a check for the `latest` tag alone, which can be enabled by default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The t... | null |
stackrox__kube-linter__198 | stackrox/kube-linter | 198 | defect | fdf0f40f278c7bad64c8c4454a1f04d6324d00b8 | 32464d525c1fa258a883df42dbdfa8bf865534e2 | adding checks that indicates when networkpolicy or networkpolicy rule do not have any asso… | #194 …ciated deployments... based on their podSelectors | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 6af96251b..b3c4fa796 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -50,6 +50,38 @@ KubeLinter includes the following built-in checks:
{}
```
+## dangling-networkpolicy
+
+**Enabled by default**: No
+
+**Description**: I... | 7 | 6 | 1 | [{"id": "G0", "claim": "kube-linter does not appear to detect syntax/type/validation errors in the input YAML (a missing or null podSelector behaves as if empty, and a podSelector with wrong keys or types raises no error), so the new check cannot flag such files; the author asks for help or suggestions on these cases."... | null |
stackrox__kube-linter__199 | stackrox/kube-linter | 199 | defect | 19fa6db01f276d654681aff24195152a0ec6962e | ae0cfad8134c2eefbb7c3e93ae32a090063f1b94 | add allowlist parameter to the exisiting latestTag check | The PR does the following:
- Add another parameter `AllowList` to the check with a default value equals to empty list
- Improve the existing check logic to validate that the check has either `AllowList` or `BlockList` set or both set and then action properly. | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 7264adb75b..4d887f314a 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -214,16 +214,16 @@ KubeLinter includes the following built-in checks:
**Enabled by default**: Yes
-**Description**: Indicates when a deployment-like ... | 5 | 5 | 2 | [{"id": "G0", "claim": "The check should not error when both AllowList and BlockList are set; it should let both be configured with blocked taking precedence over allowed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The built-in latest-tag check yaml ... | null |
stackrox__kube-linter__202 | stackrox/kube-linter | 202 | defect | 6c2c830fd2f9793f7581de1779f17323df018022 | 2ff554083a8ca64965cb5af070f1c9aa538211d5 | add imagePullPolicy check | There doesn't seem to be a consensus on what is the "good" value,
so I've only kept the check as a template.
It's meant to be used this way:
~~~yaml
customChecks:
- name: not-always-image-pull-policy
template: image-pull-policy
params:
forbiddenPolicies:
- Always
- Never
~... | diff --git a/docs/generated/templates.md b/docs/generated/templates.md
index 809ee6d87..6fa2bd190 100644
--- a/docs/generated/templates.md
+++ b/docs/generated/templates.md
@@ -318,6 +318,30 @@ KubeLinter supports the following templates:
[]
```
+## Image Pull Policy
+
+**Key**: `image-pull-policy`
+
+**Description... | 5 | 5 | 3 | [{"id": "G0", "claim": "The forbiddenPolicies map should be built inside the outer Instantiate function so it is only built once, not rebuilt for every container checked.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code should use the interna... | null |
stackrox__kube-linter__209 | stackrox/kube-linter | 209 | defect | fdf0f40f278c7bad64c8c4454a1f04d6324d00b8 | ae893fb8ff39a9f52fc90d0e3c2fe0dbde51a57e | Return non-zero exit status on no valid objects | Instead of printing the warning and return 0 exit status
return Error and exit with 1
Reasoning: our kube-linter pipelines where silently failing
for a while without any notice because of 0 exit status
See https://github.com/k8gb-io/k8gb/pull/615#issuecomment-918000074
Signed-off-by: Yury Tsarev <yury.tsarev... | diff --git a/pkg/command/lint/command.go b/pkg/command/lint/command.go
index f527377460..94bb4a7e98 100644
--- a/pkg/command/lint/command.go
+++ b/pkg/command/lint/command.go
@@ -95,8 +95,7 @@ func Command() *cobra.Command {
}
}
if !atLeastOneObjectFound {
- fmt.Fprintln(os.Stderr, "Warning: no valid ob... | 1 | 1 | 1 | [{"id": "G0", "claim": "Adding a flag (e.g. --fail-if-no-objects-found) is requested so that, when it is passed, kube-linter returns an error on no valid objects found, while by default it only emits a warning and does not fail, to preserve backward compatibility.", "category": "design", "verdict": "supported", "priori... | null |
stackrox__kube-linter__262 | stackrox/kube-linter | 262 | defect | 499d60f66df8be0e597eba77d64fbd2c64cca6ad | 52682f89f0dbb7c3976cf5ff57fc785610c3c0fc | Move test,lint,e2e to GH action | Since we have issues with running CircleCI for external contributors and we already use github actions let's move CI to gh actions. This PR runs build, lint, test, test e2e and bats on GH actions. We need to move pushing images to docker registries #125 and create release and this will finish the migration from CircleC... | diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 000000000..1634b1475
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,94 @@
+name: Test kube-linter
+
+on:
+ - pull_request
+ - push
+
+jobs:
+ build-and-test:
+ runs-on: ubuntu-latest
+ steps:
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The duplicated test/lint jobs should be removed from CircleCI as well, now that they run in GitHub Actions (the CircleCI jobs can be unmarked as required so they don't block merge).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
stackrox__kube-linter__265 | stackrox/kube-linter | 265 | defect | 01ad0348a782e47dc8fa6f6c1a79f5c9f3e47c8f | f1c81a6a4269c404ae0ceed9fbc5e460420ee4cf | Add a check to enforce node affinities being defined | Fixes https://github.com/stackrox/kube-linter/issues/257 | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 60cb66ccb..890c47cd0 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -283,6 +283,15 @@ version: v1beta.+
**Remediation**: Specify a liveness probe in your container. Refer to https://kubernetes.io/docs/tasks/configure-pod-co... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test suite struct should be renamed from ReplicaTestSuite to NodeAffinityTestSuite to match what it tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blank line after the closing brace at the end of e2etests/b... | null |
stackrox__kube-linter__279 | stackrox/kube-linter | 279 | defect | 03118c65c1b26cfa2e79aea5adfac782dd5cb07e | cd8204dbf7fc3f7e22fce950f56e599434d8d743 | Add --fail-on-invalid-resource flag | closes #272 | diff --git a/pkg/command/lint/command.go b/pkg/command/lint/command.go
index dec9d04ba..4fc2bc786 100644
--- a/pkg/command/lint/command.go
+++ b/pkg/command/lint/command.go
@@ -46,6 +46,7 @@ func Command() *cobra.Command {
var configPath string
var failIfNoObjects bool
var verbose bool
+ var errorOnInvalidResourc... | 6 | 4 | 2 | [{"id": "G0", "claim": "Short-circuiting with an early error means that with many files only the invalid one is reported and the failures never reach the json/sarif output; instead the invalid-object results should be converted into a report merged with the regular report when the flag is set, keeping the verbose warni... | null |
stackrox__kube-linter__301 | stackrox/kube-linter | 301 | defect | 733e927089c761cb665443dcf1a9d0e7850a116c | 2d9440a05918db5cbf1a09f8ced6442aa35cf672 | Enable gosec. | Enable gosec linter for golang-ci and fix all detected issues, will close #291 . | diff --git a/.golangci.yml b/.golangci.yml
index aebf6dbc34..e91ac8d941 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -51,6 +51,9 @@ linters-settings:
require-specific: true # require nolint directives to be specific about which linter is being skipped
revive:
min-confidence: 0
+ # Due to https://gi... | 2 | 2 | 0 | [{"id": "G0", "claim": "The loop in LoadInto should register via `&checks[i]` with `for i := range checks` instead of copying `chk` and re-declaring it with `chk := chk`, for consistency with the codebase's array-access idiom.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
stackrox__kube-linter__318 | stackrox/kube-linter | 318 | defect | 33017d4ba090ebd1cc67209d35571038707bb309 | 8dc0664134d4fbb7e9bdae121a5ac21a6909aa37 | Be more clear with errors found within anti-affinity rules. | Fixes #286 .
Now, more specific errors will be returned when running checks against anti-affinity rules that have misconfigurations:
- Pod's and pod affinity's namespaces are not matching: `pod's namespace "pod-namespace" not found in anti-affinity's namespaces [affinity-namespace]`
- Topology key does not match... | diff --git a/pkg/templates/antiaffinity/template.go b/pkg/templates/antiaffinity/template.go
index 187838a94..072b41d84 100644
--- a/pkg/templates/antiaffinity/template.go
+++ b/pkg/templates/antiaffinity/template.go
@@ -2,6 +2,7 @@ package antiaffinity
import (
"fmt"
+ "strings"
"golang.stackrox.io/kube-linte... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new loops return nil (short-circuit) on the first matching affinity term, so an error in a later iteration would be lost; the reviewer asks whether the short-circuit should be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
stackrox__kube-linter__373 | stackrox/kube-linter | 373 | defect | 13b9d75b95b81a379cb196b04a31262c447dd16d | a60b32899d52db6a8326a3e80cc2dc47444ce58a | Skip failing anti-affinity rules if at least one valid rule is found. | # Description
When adding [more verbose errors to no-anti-affinity check](https://github.com/stackrox/kube-linter/pull/318), we remove the short-circuiting on the first valid anti-affinity rule.
However, we should short-circuit on the first anti-affinity rule, as this is the expected behavior of the check.
Fixes... | diff --git a/pkg/templates/antiaffinity/template.go b/pkg/templates/antiaffinity/template.go
index d0b8ca18c..9f665a255 100644
--- a/pkg/templates/antiaffinity/template.go
+++ b/pkg/templates/antiaffinity/template.go
@@ -75,20 +75,22 @@ func init() {
for _, preferred := range preferredAffinity {
err := valid... | 2 | 2 | 2 | [{"id": "G0", "claim": "When both affinity loops find no issues, the function will return a nil diagnostic slice instead of a valid empty result, which is wrong; the reviewer also notes this suggests adding unit tests for the function.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
stackrox__kube-linter__388 | stackrox/kube-linter | 388 | defect | 91b05167ecd7473d4bbae84cdf5948c110c772e3 | 78379da0cb44a4348e02f6471138be792cd1b20a | Create dangling ingress check | Creating a check for dangling ingresses. I think it will fit in well with the other rules that already exist in this tool. Have been seeing these pop up from time to time in the projects I've been working on and would love to be able to catch them at lint time.
I punted on dealing with resources that ingress can po... | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 0ee3955b6..d3a5a01af 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -67,6 +67,15 @@ verbs:
**Remediation**: Confirm that your HorizontalPodAutoscaler's scaleTargetRef correctly matches one of your deployments.
**Template... | 7 | 7 | 2 | [{"id": "G0", "claim": "The method name ModifyIngess is a typo and should be ModifyIngress.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The template's SupportedObjectKinds should be objectkinds.Ingress rather than objectkinds.Service.", "cate... | null |
stackrox__kube-linter__394 | stackrox/kube-linter | 394 | defect | 52bc66c9087d8488de82acb510efd46ed23d5271 | c72bb5faaac1f92e084c42e0b24585d970f84af1 | feat: Export RegisterObjectKind and MatcherFunc from objectkinds package | This allows consumers to register arbitrary matchers for arbitrary objectkinds. This enables expanding beyond the builtins, as well as linting custom resources. | diff --git a/docs/configuring-kubelinter.md b/docs/configuring-kubelinter.md
index 2a613aefba..ecbe73519b 100644
--- a/docs/configuring-kubelinter.md
+++ b/docs/configuring-kubelinter.md
@@ -31,6 +31,7 @@ To view a list of all built-in checks, see [KubeLinter checks](generated/checks.
## Disable all default checks
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add documentation explaining how to use the exported RegisterObjectKind and MatcherFunc to extend kube-linter beyond the built-in checks.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The inline mar... | null |
stackrox__kube-linter__460 | stackrox/kube-linter | 460 | defect | 9428eea335cf98acb01c2a4dc048c0daa6819719 | 328b85b0ce25528d5fb417910fd367790c02e64d | Add ignore paths | I rebased some conflicts in `go.mod` refer to #353 then created this PR.
| diff --git a/docs/configuring-kubelinter.md b/docs/configuring-kubelinter.md
index b8fd5a011..7cf770a8f 100644
--- a/docs/configuring-kubelinter.md
+++ b/docs/configuring-kubelinter.md
@@ -48,6 +48,17 @@ checks:
addAllBuiltIn: true
```
+## Ignore paths
+
+To ignore checks on files or directories under certain pat... | 5 | 4 | 1 | [{"id": "G0", "claim": "The module files are untidy, so the author should run `go mod tidy`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since GetIgnorePaths accepts a slice, a test case with multiple paths should be added.", "category": "tes... | null |
stackrox__kube-linter__461 | stackrox/kube-linter | 461 | defect | 9428eea335cf98acb01c2a4dc048c0daa6819719 | ec056a5a7853a12234890a3198a8ce967db154d2 | Add check for duplicate name env var | I've got some complicated helm templates and have been running into issues where devs add the same variable in different helpers. This check would make sure we don't add the same one more than once. K8s will apply the last one added for you but this can be unintuitive. | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index e98b0506a..2a614f406 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -175,6 +175,15 @@ dirs:
forbiddenCapabilities:
- NET_RAW
```
+## duplicate-env-var
+
+**Enabled by default**: Yes
+
+**Description**: Check that duplicat... | 3 | 3 | 0 | [{"id": "G0", "claim": "The duplicated test bodies should be converted into a table-driven test (passing a proper T() into validate), with the rework acceptable in a follow-up.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the test func... | null |
stackrox__kube-linter__507 | stackrox/kube-linter | 507 | defect | 12b0376fa2fb5463b33381039c659ca8a3146cdd | e3f0455e051606b14c8d45358ef37be73584dded | Create check to ensure PDB have MaxUnavailable and MinAvailable set effectively | Creates two checks for PDBs:
- Recommends changes to PDBs that have MaxUnavailable set to 0
- Recommends changes to PDBs that have MinAvailable set to the Replica value from related Deployments
This is a WIP. Tests still need to be added | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 2a614f406b..0aa845618e 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -410,6 +410,15 @@ strategyTypeRegex: ^(RollingUpdate|Rolling)$
**Remediation**: Ensure pod does not accept unsafe traffic by isolating it with a NetworkP... | 13 | 9 | 4 | [{"id": "G0", "claim": "The diagnostic message contains the typo 'minumum' and should read 'minimum'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generated check description reads \"it's replica count\" where the possessive 'its replica cou... | null |
stackrox__kube-linter__515 | stackrox/kube-linter | 515 | defect | d5d56b5138eda12b80a121778491905639748bb8 | 05c3104ff8df1caa516078b71bcd7f254ddf527a | Fix ignore-paths | refs:
- https://github.com/stackrox/kube-linter/pull/460
fixes:
- #500 | diff --git a/docs/configuring-kubelinter.md b/docs/configuring-kubelinter.md
index 76bd22319..cb817fec1 100644
--- a/docs/configuring-kubelinter.md
+++ b/docs/configuring-kubelinter.md
@@ -51,11 +51,13 @@ checks:
## Ignore paths
To ignore checks on files or directories under certain paths, add ignored paths to `ign... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in pkg/lintcontext/create_contexts.go misspells 'Using' as 'Useing' and should read '// Using doublestar to enable **'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
stackrox__kube-linter__546 | stackrox/kube-linter | 546 | defect | 957295ad6ba5d64c3e003e21a6211ac99b5d9ada | 6c510f370e001bd3573dca7b7a07d96c04bfdbb2 | fix/linting for percentage based values | This PR fixes the PDB validation to include support for % based values.
OldBehavior:
maxUnavailable was set to 10% was failing since the field is IntOrString. The IntVal defaults to 0 when the field is of String Values, thus causing false positives.
NewBehaviour:
int and string values are taken into account, pa... | diff --git a/pkg/templates/pdbmaxunavailable/template.go b/pkg/templates/pdbmaxunavailable/template.go
index bf80b7748f..d682cb3f29 100644
--- a/pkg/templates/pdbmaxunavailable/template.go
+++ b/pkg/templates/pdbmaxunavailable/template.go
@@ -1,6 +1,10 @@
package pdbmaxunavailable
import (
+ "fmt"
+ "strconv"
+ "st... | 4 | 4 | 2 | [{"id": "G0", "claim": "The code should be refactored to use the higher-level functions offered by k8s.io/apimachinery/pkg/util/intstr, e.g. getIntOrPercentValueSafely, instead of hand-parsing the value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If ... | null |
stackrox__kube-linter__6 | stackrox/kube-linter | 6 | defect | 51143ce93e291a4929390b9e32c520b44ead3a0b | 7b841d3f52d0ff6ed2616bcc5878cf2e50c6df63 | Add a couple more check templates and built-in checks | Add check templates for read-only root FS and `runAsNonRoot`. | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 47cc1057fa..aa91a828a0 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -2,6 +2,8 @@ The following table enumerates built-in checks:
| Name | Enabled by default | Description | Template | Parameters |
| ---- | ------------... | 6 | 6 | 3 | [{"id": "G0", "claim": "The check name \"no-v1beta-deployments\" added to the default-checks list may not correspond to an existing check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In readonlyrootfs/template.go the loop should range with `_, co... | null |
stackrox__kube-linter__650 | stackrox/kube-linter | 650 | defect | 32343c685469a4aa014eb94e0c720345862056c6 | 4a63e93506a38c2460345a0094cf2ca09812578a | Add OpenShift SecurityContextConstraints object linting | resolves #649
Add SecurityContextConstraints objects parsing, and adds check of `allowPrivilegedContainer: true` what enabled privileged mode to attached objects.
```
Name: scc-deny-privileged-container
Description: Indicates when allowPrivilegedContainer SSC set to True
Remediation: SecurityContextConstraints h... | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 690cb8f25..b67d8f1de 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -513,6 +513,21 @@ key: owner
**Remediation**: Set runAsUser to a non-zero number and runAsNonRoot to true in your pod or container securityContext. Refer t... | 4 | 4 | 0 | [{"id": "G0", "claim": "The check description should spell out SecurityContextConstraints instead of the SSC acronym and use lowercase \"true\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two branches testing !found and then state == p.All... | null |
stackrox__kube-linter__661 | stackrox/kube-linter | 661 | defect | 3a39e2cae8eef7ad1c723d4b55fe9a48fef41010 | a0ed4cddda1bed81fd7fa129d6f70c250c805b6e | Create new check for liveness port | Want to ensure the port is correctly set for liveness probe since it's easy to make a typo when people are doing copy pasta. This will let you know it's failing airier and not have to wait for a failed deployment.
Want to do this also for startup and readiness checks. Assume it make sense to have them as other check... | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 8b26682f60..e5b1e3dc1d 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -295,6 +295,15 @@ BlockList:
- ^[^:]*$
- (.*/[^:]+)$
```
+## liveness-port
+
+**Enabled by default**: Yes
+
+**Description**: Indicates when containers... | 7 | 7 | 3 | [{"id": "G0", "claim": "The check's descriptions and diagnostic message should follow k8s nomenclature: ports are \"exposed\", not \"opened\"/\"didn't open\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The check should also support TCPSocket l... | null |
stackrox__kube-linter__688 | stackrox/kube-linter | 688 | defect | 77bafe6f6c9e192a3edac48d0e8c6a9409356a59 | cf8c309d9fcf382888e5a114560f88468515d463 | Fix: pdb-min-available when Replica number is controlled via HPA | I believe this solves #637.
The commit history might be a little messy but it was made with heart 💚 | diff --git a/pkg/templates/pdbminavailable/template.go b/pkg/templates/pdbminavailable/template.go
index 85caacba1..4b7294bbf 100644
--- a/pkg/templates/pdbminavailable/template.go
+++ b/pkg/templates/pdbminavailable/template.go
@@ -15,6 +15,7 @@ import (
"golang.stackrox.io/kube-linter/pkg/objectkinds"
"golang.sta... | 5 | 5 | 2 | [{"id": "G0", "claim": "The HPA-matching block inside minAvailableCheck's deployment loop should be extracted into its own function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On a failed HPA type assertion the code should `continue` rather ... | null |
stackrox__kube-linter__711 | stackrox/kube-linter | 711 | defect | 4e086e15a92d93c169cd0147ad2131e25cb0a536 | ec60bf4fe27ead013aba5190939cac5dcd459c70 | feature: add support to keda scaledobject v1alpha1 | I believe it provides support to pdb-min-available when the Replica number is controlled via Keda ScaledObject
I closed erroneously this PR: https://github.com/stackrox/kube-linter/pull/703 | diff --git a/e2etests/bats-tests.sh b/e2etests/bats-tests.sh
index 87efe7c8f1..7aea9b4f41 100755
--- a/e2etests/bats-tests.sh
+++ b/e2etests/bats-tests.sh
@@ -639,11 +639,13 @@ get_value_from() {
message1=$(get_value_from "${lines[0]}" '.Reports[0].Object.K8sObject.GroupVersionKind.Kind + ": " + .Reports[0].Diagno... | 4 | 3 | 3 | [{"id": "G0", "claim": "The newly added keda ScaledObject case in HPAScaleTargetRefName should be covered by a unit test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The keda extract code is never called in the unit tests; good/bad tests should be ad... | null |
stackrox__kube-linter__874 | stackrox/kube-linter | 874 | defect | 31bed85e1ba35e8b228a40563842db226c68b7df | e6274e3b6ea6e2f6cff6246768c2b4d453bf8fcc | chore: enable testifylint linter | #### Description
This enables [testifylint](https://github.com/Antonboom/testifylint) which is a linter that checks for usage of github.com/stretchr/testify.
<!-- Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> --> | diff --git a/pkg/configresolver/config_resolver_test.go b/pkg/configresolver/config_resolver_test.go
index 38bfb46e75..e613b99b3a 100644
--- a/pkg/configresolver/config_resolver_test.go
+++ b/pkg/configresolver/config_resolver_test.go
@@ -45,7 +45,7 @@ func TestIgnorePaths(t *testing.T) {
} else {
for _, path :=... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request contains linter-fix code changes but no change activating the linter; the reviewer asks the author to check whether a configuration file or change to a configuration file is missing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stackrox__kube-linter__964 | stackrox/kube-linter | 964 | defect | c87de4e48122908e5730a48f060dbc64656a4e8c | 8f3476171f5bf2f359f4ef03f2eb66e5d99af63f | Add new check job-ttl-seconds-after-finished (#963) | The new check advices for
- Setting ttlSecondsAfterFinished for standalone Job objects whenever it's not set
- Unsetting ttlSecondsAfterFinished for managed Job objects whenever it's set
Complete description can be found in https://github.com/stackrox/kube-linter/issues/963 | diff --git a/docs/generated/checks.md b/docs/generated/checks.md
index 5dda3a440..770bf3401 100644
--- a/docs/generated/checks.md
+++ b/docs/generated/checks.md
@@ -277,6 +277,15 @@ minReplicas: 3
**Remediation**: Ensure that port naming is in conjunction with the specification. For more information, please look at th... | 5 | 4 | 0 | [{"id": "G0", "claim": "Consider updating the code generation logic to emit parameter-validation boilerplate in gen-params.go only when the template actually has parameters, instead of always emitting dead boilerplate.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
stacks-network__stacks-core__4981 | stacks-network/stacks-core | 4,981 | defect | 202b45cc65b88a15d31a33370e47850cf98d7c21 | 78b7152dca546f99af27fe28804dcf07249ce463 | refactor(signer): Add enum for version-specific data to `BlockInfo` | ### Description
Add enum for version-specific (Signer v0 or v1) data to `BlockInfo`
### Applicable issues
- fixes #4816
### Additional info (benefits, drawbacks, caveats)
### Checklist
- [ ] Test coverage for new or modified code paths
- [ ] Changelog is updated
- [ ] Required documentation changes ... | diff --git a/stacks-signer/src/signerdb.rs b/stacks-signer/src/signerdb.rs
index 5ecef398d45..8aec0cc048f 100644
--- a/stacks-signer/src/signerdb.rs
+++ b/stacks-signer/src/signerdb.rs
@@ -34,6 +34,73 @@ use stacks_common::util::hash::Sha512Trunc256Sum;
use stacks_common::{debug, error};
use wsts::net::NonceRequest;
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Moving `signed_over` into the V1-only `BlockInfoV1` struct breaks `v0`, which also uses that field to record whether the local signer has signed off on a block; it should be added to the v0 variant or moved back into the common `BlockInfo` struct.", "category": "correctness", "verdict": "support... | null |
stacks-network__stacks-core__5118 | stacks-network/stacks-core | 5,118 | defect | 786561d8a418d23c5fff45e1aca9ca68d8718fdf | 3b50c019c8a47f31c38b586be1da9e54207a4b1f | Feat/buffer stackerdb messages | This PR updates the unsolicited message handling logic to allow unsolicited p2p messages to be stored and retried in one of two conditions:
* When the next sortition happens
* (NEW) When the Stacks tenure changes
This new code path is required to correctly buffer and retry `StackerDBPushChunk` messages, which ca... | diff --git a/stackslib/src/net/chat.rs b/stackslib/src/net/chat.rs
index 95d6fbac82a..926340d7fef 100644
--- a/stackslib/src/net/chat.rs
+++ b/stackslib/src/net/chat.rs
@@ -1917,25 +1917,14 @@ impl ConversationP2P {
/// Generates a Nack if we don't have this DB, or if the request's consensus hash is invalid.
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test comment should say that stacker DBs are set up for all peers, not just both peers.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This PR broke the forked_tenure_is_ignored integration test, and CI shows unit test ... | null |
stacks-network__stacks-core__6534 | stacks-network/stacks-core | 6,534 | defect | 5934517f6eb01047fc89351a86ef66d87bdc9adb | 9fd672848cd6c3464677589ea49cbb856dadfcf7 | bugfix: enforce bitcoin rpc only for miner | ### Description
This patch addresses an issue in the `BitcoinRegtestController` where instantiating a `BitcoinRpcClient` required Bitcoin RPC credentials unconditionally.
While RPC credentials are indeed mandatory for nodes configured as miners, they should not be required for other node types (e.g., follower nod... | diff --git a/stacks-node/src/burnchains/bitcoin_regtest_controller.rs b/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
index 5a54d6121c0..b1dfcfaabcc 100644
--- a/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
+++ b/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
@@ -93,7 +93,7 @@ pub struc... | 4 | 4 | 0 | [{"id": "G0", "claim": "The accessor that can panic should not use the `try_` prefix, since a `try`-prefixed function is not expected to fail; rename it to `get_rpc_client`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since `BitcoinRpcClient::from_stx... | null |
stacks-network__stacks-core__6638 | stacks-network/stacks-core | 6,638 | defect | f8d02cd6e3805ffc8bd1b493e5a793ba9eb0cb52 | f7243c73fa9a4530bbb3146dd2775be798683f93 | Fix `event.committed` in replay block RPC | - Fixes https://github.com/stacks-network/stacks-core/issues/6637
This PR fixes an issue where `event.committed` was hard-coded to `true` in the block replay RPC endpoint.
To help with other consumers of this RPC endpoint, I've also added two fields:
- `result_hex`: currently, we're not serializing this into a... | diff --git a/stackslib/src/core/test_util.rs b/stackslib/src/core/test_util.rs
index 5827f0dfd6f..50307195e04 100644
--- a/stackslib/src/core/test_util.rs
+++ b/stackslib/src/core/test_util.rs
@@ -104,7 +104,7 @@ pub fn sign_standard_single_sig_tx_anchor_mode_version(
}
#[allow(clippy::too_many_arguments)]
-pub fn ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The OpenAPI documentation (block-replay schema and example) should be updated for the new `result_hex` and `post_condition_aborted` fields added to the replay block RPC response.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
stacks-network__stacks-core__6898 | stacks-network/stacks-core | 6,898 | defect | 912382863b93f0684c65f2b85e2d319b35773c4f | 7c8d4a2445bee09e7aba1d17705b4203c72d7621 | Bugfix/signers reconsider missing burn block |
This PR allows signers to reprocess block proposals previously rejected with `Chainstate Error: Not found`
Could potentially fix the stall outlined in https://github.com/stacks-network/stacks-core/issues/6861
NotFoundError seems to arise in only one possible path in the validate() function:
During block propos... | diff --git a/stacks-node/src/tests/signer/v0/missing_burn_block_proposal.rs b/stacks-node/src/tests/signer/v0/missing_burn_block_proposal.rs
new file mode 100644
index 00000000000..0c6b6eea602
--- /dev/null
+++ b/stacks-node/src/tests/signer/v0/missing_burn_block_proposal.rs
@@ -0,0 +1,178 @@
+// Copyright (C) 2026 Sta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment saying the test uses a multiple-miner setup with 5 signers distributed to two miners is wrong; there is just one miner.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stackworx__formik-mui__78 | stackworx/formik-mui | 78 | defect | f8e2b45d393d1239d9cd8bfe957339379cc217ef | 459c7572e3947e10d8b70adc2759ce989f90becc | Input props file upload | - Add `InputProps` and `InputLabelProps` to `SimpleFileUpload` component
- Add snapshot test for `SimpleFileUpload` | diff --git a/src/SimpleFileUpload.tsx b/src/SimpleFileUpload.tsx
index f9eaaa9d..9e900ab1 100644
--- a/src/SimpleFileUpload.tsx
+++ b/src/SimpleFileUpload.tsx
@@ -1,13 +1,15 @@
import * as React from 'react';
import { FieldProps, getIn } from 'formik';
import FormControl from '@material-ui/core/FormControl';
-import... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new props should be named to match the existing material-ui TextField API (InputProps/InputLabelProps) instead of inputProps/inputLabelProps.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Both new props should be optional in ... | null |
stagewise-io__stagewise__502 | stagewise-io/stagewise | 502 | defect | 6fad6d78af00049496abf26fc6d1c25c7f5d61e9 | 9f29dd6d6a56e35f2d118101aa2e58bad2b043ee | fix(cli): rewrite response headers to be compatible with iframe-restrictive apps | closes #503 #504
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Summary by CodeRabbit
* **Bug Fixes**
* Resolved loading issues for development applications that restrict iframe usage, allowing them to be embedded in iframes when appropriate.
* Improved ... | diff --git a/.changeset/orange-hoops-pull.md b/.changeset/orange-hoops-pull.md
new file mode 100644
index 000000000..019bb6fff
--- /dev/null
+++ b/.changeset/orange-hoops-pull.md
@@ -0,0 +1,5 @@
+---
+"stagewise": patch
+---
+
+Fix loading issues with iframe-restrictive dev apps
diff --git a/apps/cli/src/server/proxy-u... | 6 | 6 | 2 | [{"id": "G0", "claim": "The applyHeaderRewrites parameters are misleading — the first is the proxy response though named req, and the second _res is unused — so they should be renamed (proxyRes/_req) with all references updated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
stainless-steel__special__9 | stainless-steel/special | 9 | defect | ca3dd815d68c930d8134d37544d08aec2863909c | 2bd6eee84caf8c18b6788cd513e37a2ffdec7437 | Add trigamma function | The PR adds the trigamma function and a benchmark which "compares" the implementation with the iterative version. | diff --git a/benches/gamma.rs b/benches/gamma.rs
index 629a0ed1..90576765 100644
--- a/benches/gamma.rs
+++ b/benches/gamma.rs
@@ -37,3 +37,52 @@ fn inc_gamma(bencher: &mut Bencher) {
}
});
}
+
+fn trigamma(value: f64) -> f64 {
+
+ const C_LIMIT: f64 = 49.0;
+ const S_LIMIT: f64 = 1e-5;
+
+ let ... | 7 | 7 | 1 | [{"id": "G0", "claim": "The alternative trigamma implementation in benches/gamma.rs is not needed since the benchmarks should cover what the package provides, so it (and its benchmark) should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
stakater__Forecastle__358 | stakater/Forecastle | 358 | defect | ce0436e0452f3c24d172a0934882c1aa626c1f89 | 1ef8ab23e1810f51b8e07791e4ffce65eca9a141 | Add Ingress TLS Hosts slice length check to avoid runtime panic | ### Description
In ```pkg/kube/wrappers/ingress.go``` the ```tryGetTLSHost``` method accesses ```ingress.Spec.TLS[0].Hosts[0]``` without ensuring that the ```Hosts``` slice is non-empty. This causes a runtime panic if an Ingress object with empty ```TLS``` is encountered as given below:
```yaml
apiVersion: network... | diff --git a/pkg/kube/wrappers/ingress.go b/pkg/kube/wrappers/ingress.go
index bb570891..07931c5a 100644
--- a/pkg/kube/wrappers/ingress.go
+++ b/pkg/kube/wrappers/ingress.go
@@ -99,7 +99,7 @@ func (iw *IngressWrapper) rulesExist() bool {
}
func (iw *IngressWrapper) tryGetTLSHost() (string, bool) {
- if iw.supports... | 1 | 1 | 0 | [{"id": "G0", "claim": "The getTLSHosts() helper is unnecessary; the TLS-hosts length check could simply be inlined into the supportsTLS() condition at line 102, since && short-circuits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stakater__Forecastle__530 | stakater/Forecastle | 530 | defect | 586503c37472d3bf64839ef2ecb64d823d22bd78 | 5ab3f250f539a3840ad399d0689922529d9985db | add URL annotation support for HTTPRoute and Route wrappers | add URL annotation support for HTTPRoute and Route wrappers
- Check forecastle.stakater.com/url annotation before falling back to hostname
- Add GetAnnotationValue method to RouteWrapper
- Add test case for HTTPRoute URL annotation
Fix for #529 | diff --git a/pkg/kube/wrappers/httproute.go b/pkg/kube/wrappers/httproute.go
index 4e44eeda..b43e5787 100644
--- a/pkg/kube/wrappers/httproute.go
+++ b/pkg/kube/wrappers/httproute.go
@@ -19,12 +19,7 @@ func NewHTTPRouteWrapper(httpRoute *gatewayv1.HTTPRoute) *HTTPRouteWrapper {
// GetAnnotationValue extracts an anno... | 1 | 1 | 1 | [{"id": "G0", "claim": "The URL annotation value should also be parsed for validation, not just returned as-is.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stakater__Forecastle__69 | stakater/Forecastle | 69 | defect | 8f36b82beaf2a1a42b364a3857bc83638c51e30b | 94bb2848bb633fe992c213a1f43cd4b39a88753e | Add support for overriding a URL using annotation | Fixes #67
This will allow the developers to specify an entirely different URL for the forecastle app instead of using the one from the ingress. Useful if you want to add subpaths etc to the existing URL or maybe if you have an external URL that acts as a gateway to the ingress | diff --git a/.gitignore b/.gitignore
index 44650e2a..236ce49c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
src/node_modules
.idea
api/vendor
-vendor
\ No newline at end of file
+vendor
+Forecastle
+config.yaml
\ No newline at end of file
diff --git a/README.md b/README.md
index 4d0055fb..e296d14c 100644
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Appending the appRoot annotation to the URL without any check can generate an invalid URL path (double slashes when the url ends with '/' or no separator when the appRoot has no leading '/'), so the code should validate the value or the README should carry a caveat about where to put the '/'.", ... | null |
stakater__GitWebhookProxy__37 | stakater/GitWebhookProxy | 37 | defect | 3eda335dacbc2598b19262c260c9b9c5ab250442 | d622484b8fe71eb72bac52bc7f74047695547ab5 | Adding flag to disable validation | Needed when secret isn't set in provider. I removed superfluous checks for presence of secret to avoid complicating the code. | diff --git a/README.md b/README.md
index 846b854..a2b104a 100644
--- a/README.md
+++ b/README.md
@@ -31,14 +31,15 @@ Currently we support the following git providers out of the box:
GitWebhookProxy can be configured by providing the following arguments either via command line or via environment variables:
-| Param... | 2 | 2 | 2 | [{"id": "G0", "claim": "Make the secret optional instead of adding a new flag for validation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of just removing the test case, add test cases for both scenarios: success with secrets and without secre... | null |
stakater__GitWebhookProxy__65 | stakater/GitWebhookProxy | 65 | defect | bf1d6e634b5a3a26f2d89d1e27d0757f748e84d7 | 5f89df7626b88c87280add8fef39a8aaea14f946 | Allowed users | Hey stakater team, this project is really awesome!
I want to use it but also be able to specify a list of allowed users that can go through the proxy. I figured it couldn't be that hard of a feature to add so I gave it a go. Maybe this was a naive idea? I've also never programmed in Go before so sorry if I did some re... | diff --git a/README.md b/README.md
index 2159097..23cf399 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,7 @@ GitWebhookProxy can be configured by providing the following arguments either vi
| provider | Git Provider which generates the Webhook | `github` | `github` o... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new allowedUsers flag should also be documented in the README and wired into the helm templates.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty-committer check inside isAllowedUser should be removed, because a... | null |
stakater__GitWebhookProxy__69 | stakater/GitWebhookProxy | 69 | defect | 1e6822aed5c4f8b8e5fdf90014013124918b038e | da8e6ce62e9e0e2aa88d9fb69119f183d852c668 | add the ability to handle, parse and forward issue comments. | This will allow us to auto retrigger jenkins branch tests with phrases like "retest this please" on the PR.
`go fmt` was also run, which is why there are a lot of other non related formatting changes | diff --git a/gitwebhookproxy.go b/gitwebhookproxy.go
index 8b78607..4327d68 100644
--- a/gitwebhookproxy.go
+++ b/gitwebhookproxy.go
@@ -21,7 +21,6 @@ var (
allowedUsers = flagSet.String("allowedUser", "", "Comma-Separated String List of users to allow while proxying Webhook request")
)
-
func validateRequiredFl... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add an error log explaining why unmarshaling of the pull request payload failed in the GithubPullRequestEvent case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stakater__IngressMonitorController__132 | stakater/IngressMonitorController | 132 | defect | 835e24345b8c124dc26e16d60964ff6915efb3ad | 7bc7e9b5c6a6aacf7fdabde4d70b52a1ace0579c | Updating the ingress wrapper so that it doesn't append paths in case … | …the servicePort of ingress is a name like ~> 'servicePort: web' and the path has a wildcard character at the end like ~> 'path: /*' | diff --git a/pkg/kube/wrappers/ingress-wrapper.go b/pkg/kube/wrappers/ingress-wrapper.go
index 9f574ee1..410a1bba 100644
--- a/pkg/kube/wrappers/ingress-wrapper.go
+++ b/pkg/kube/wrappers/ingress-wrapper.go
@@ -4,6 +4,7 @@ import (
"log"
"net/url"
"path"
+ "strings"
"github.com/stakater/IngressMonitorControll... | 2 | 2 | 1 | [{"id": "G0", "claim": "Leaving getIngressPort() commented out in the file leaves dead code; the reviewer asks why it was commented out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A small unit test should be written for the changed path-hand... | null |
stakater__IngressMonitorController__156 | stakater/IngressMonitorController | 156 | defect | d3c22bb3a658c0421befb19ed412bfdee1407f5a | 3f6ac6aec2742aee7d686b1a80a4299dacc17084 | Added support for uptime.com | Pingometer is aquired by Uptime.com and now uses Uptime's API, so adding support for Uptime.com | diff --git a/configs/testConfigs/test-config-uptime.yaml b/configs/testConfigs/test-config-uptime.yaml
new file mode 100644
index 00000000..91af645c
--- /dev/null
+++ b/configs/testConfigs/test-config-uptime.yaml
@@ -0,0 +1,6 @@
+providers:
+ - name: Uptime
+ apiKey: 657a68d9ashdyasjdklkskuasd
+ apiURL: http... | 4 | 3 | 0 | [{"id": "G0", "claim": "In GetAll, the error return value of json.Unmarshal of the monitors response is not checked (errcheck).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Add, the error return value of json.Unmarshal of the new-monitor respon... | null |
stakater__IngressMonitorController__193 | stakater/IngressMonitorController | 193 | defect | 101f55515bcfd0bebaf0c40d2d78ca9580b0dcee | 015b939fad69eff31781987608a4ba6b043c4be3 | Additional annotations to allow keyword-type monitors | We added a few annotations to allow keyword monitors for uptime robot. Keep in mind that now 'type' is not hardcoded to 1 so it needs to be specified through the proper annotation in the ingress. These are the new annotations:
```
uptimerobot.monitor.stakater.com/keyword-type: ""
uptimerobot.monitor.stakater.com/k... | diff --git a/pkg/monitors/uptimerobot/uptime-monitor.go b/pkg/monitors/uptimerobot/uptime-monitor.go
index 10e3462e..f2d99189 100644
--- a/pkg/monitors/uptimerobot/uptime-monitor.go
+++ b/pkg/monitors/uptimerobot/uptime-monitor.go
@@ -86,7 +86,7 @@ func (monitor *UpTimeMonitorService) Add(m models.Monitor) {
client... | 2 | 2 | 1 | [{"id": "G0", "claim": "An else branch is needed so that when the monitor-type annotation is not provided the request defaults to type=1, since type is a mandatory option for the UptimeRobot API.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test c... | null |
stakater__IngressMonitorController__211 | stakater/IngressMonitorController | 211 | defect | 257606733c264569b7e1b429bfd66e242ace209a | 167d598b6ee7fa5642384e9bfdb67f06bf5535f1 | Add creation timestamp to funcs and use to delay updates within the delay window | Builds on top of #208 and fixes #210 | diff --git a/pkg/callbacks/resourceActionFuncs.go b/pkg/callbacks/resourceActionFuncs.go
index 02e35c4d..98045e5d 100644
--- a/pkg/callbacks/resourceActionFuncs.go
+++ b/pkg/callbacks/resourceActionFuncs.go
@@ -3,6 +3,7 @@ package callbacks
import (
routev1 "github.com/openshift/api/route/v1"
"k8s.io/api/extension... | 5 | 4 | 0 | [{"id": "G0", "claim": "The delay computations in onResourceAdded and onResourceUpdated should use time.Until instead of t.Sub(time.Now()) (gosimple S1024).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The integration tests fail with 502 from ... | null |
stakater__IngressMonitorController__58 | stakater/IngressMonitorController | 58 | defect | 8859224f0b9cddb9d6f378f6fcdc6bc12d3f67de | d2262be224634d9e65ffff8a26db685303eaa6d6 | Fix URL joins | Use `path.Join` to join URLs instead of string concatenation to avoid duplicate slashes in URLs.
Fixes https://github.com/stakater/IngressMonitorController/issues/57 | diff --git a/src/ingress-wrapper.go b/src/ingress-wrapper.go
index c61c96ad..29ddcf92 100644
--- a/src/ingress-wrapper.go
+++ b/src/ingress-wrapper.go
@@ -2,6 +2,8 @@ package main
import (
"log"
+ "net/url"
+ "path"
"k8s.io/api/extensions/v1beta1"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -74,33 +76,... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's rewritten getURL behaviour should get a simple unit test, if it isn't too much hassle.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stakater__IngressMonitorController__644 | stakater/IngressMonitorController | 644 | defect | 7506e03abc8826ee8900506b49f7311c29ee208b | 4e79ed526923da1f4ad03cd7da5bfe085ec0d118 | Update azure sdk to track 2 | * Upgraded azure-sdk-for-go to use version (track) 2
* Upgraded go version to 1.24
* Updated ApplicationInsights Documentation
* Updated Helm chart to pass necessary labels for using AKS Workload Identity
* Added parameter for `subscriptionId` in provider configuration for Application Insights | diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index eb68533bb..ddb9bd122 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -12,7 +12,7 @@ on:
- 'config/'
env:
DOCKER_FILE_PATH: Dockerfile
- GOLANG_VERSION: 1.21
+ GOLANG_VERSIO... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Dockerfile builds the image with golang:1.24 while go.mod pins Go 1.23, which the reviewer says is a slight inconvenience, and asks to update the Dockerfile image to 1.23.0 so the versions match.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
stakater__IngressMonitorController__662 | stakater/IngressMonitorController | 662 | defect | 05109a2156f037df09a243b18e086e9683bda147 | 2338d6f2dd9cfacea212e0411cc1fdec68328375 | feat(statuscake): add StatusCake Heartbeat monitor type support | Hi there,
i stumbled over your project and really like it, would love to use it in my k8s setup.
One thing i am missing is support statuscake push tests (aka heartbeat) so that i can configure a deadmanswitch for my monitoring setup.
I hope i implemented everything necessary for it and the code looks good enough... | diff --git a/api/v1alpha1/endpointmonitor_types.go b/api/v1alpha1/endpointmonitor_types.go
index 96c172739..4b9de2795 100644
--- a/api/v1alpha1/endpointmonitor_types.go
+++ b/api/v1alpha1/endpointmonitor_types.go
@@ -167,11 +167,13 @@ type StatusCakeConfig struct {
// +optional
BasicAuthSecret string `json:"basicAu... | 7 | 3 | 2 | [{"id": "G0", "claim": "The `enum` list items for `statusCakeConfig.testType` are not indented under the `enum:` key in the CRD YAML (both the config/crd copy and the Helm chart copy), which the reviewer says makes the YAML invalid and will break YAML parsing / CRD application; indent the list items under `enum:`.", "c... | null |
stakater__IngressMonitorController__663 | stakater/IngressMonitorController | 663 | defect | 6dd6198a23e185d5a91696b1b203102eafd30694 | 01bb2110ebb5f39f22fa9f3b94ad957f0e64d3a6 | global cache not used when watchNamespaces is empty in the helm values | When `watchNamespaces` is set to an empty string, the controller fails to list pods in specific namespaces with:
```shell
"route-wrapper","msg":"List Pods of service[] error:unable to list: because of unknown namespace for the cache"
```
`DefaultNamespaces` was always populated, including with `{"": {}}` when ... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e39133fc..2a3d7cee 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -96,7 +96,7 @@ And then handle it accordingly in your monitor's implementation.
#### Examples
-In [endpointmonitor_types.go](./pkg/apis/endpointmonitor/v1alpha1/endpointmonitor_types.go)
+I... | 1 | 1 | 1 | [{"id": "G0", "claim": "Guard against watch-namespace values consisting only of commas (e.g. \",\" or \",,\"), which after splitting and trimming would yield an entry with an empty-string key in the namespace map - the same bug this PR set out to fix.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
stakater__IngressMonitorController__664 | stakater/IngressMonitorController | 664 | defect | 6dd6198a23e185d5a91696b1b203102eafd30694 | cdfa3c96e5de93ec682618b76c15afdb743b2eed | Fix statuscake duplication on ratelimits | I had duplication entries on statuscake and found out that GetAll() was silently swallowing all API failures.
I fixed that and alos improved the error 429 using the documentation: https://developers.statuscake.com/guides/api/ratelimiting/
result:
<img width="1876" height="273" alt="image" src="https://github.com... | diff --git a/internal/controller/endpointmonitor_controller.go b/internal/controller/endpointmonitor_controller.go
index 094bf8a09..168cc5eb9 100644
--- a/internal/controller/endpointmonitor_controller.go
+++ b/internal/controller/endpointmonitor_controller.go
@@ -88,7 +88,10 @@ func (r *EndpointMonitorReconciler) Reco... | 5 | 5 | 3 | [{"id": "G0", "claim": "The PR updates findMonitorByName to propagate errors but misses two other callers (findMonitorServicesThatContainsMonitor in endpointmonitor_util.go and removeMonitorIfExists in endpointmonitor_deleted.go) that still discard GetByName errors with _, so if GetAll fails during deletion the error i... | null |
stakater__IngressMonitorController__75 | stakater/IngressMonitorController | 75 | defect | 09f85fbb87374b44162ea938adae9ddfe9335d2f | 3fbd06cc824a2094e4a878771e21df359dce9f4b | Add annotation for setting monitor friendly name | Back at it again with another annotation ... but this one was a little more complicated, sorry! I wanted to be able to control the monitor friendly name in Uptime Robot from an annotation on the ingress, but the monitor name resolution was a bit tied up with the MetaNamespaceKeyFunc stuff, as mentioned in #64.
Anyw... | diff --git a/README.md b/README.md
index 0f2ef809..633e0703 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,7 @@ The following optional annotations allow you to set further configuration:
|---------------------------------------|--------------------------------------------------------------------------------------... | 3 | 3 | 1 | [{"id": "G0", "claim": "Updating the Ingress to change the monitor friendly name creates a bug where the controller thinks it is a new monitor (monitorService.getByName) even though it already exists in Uptime Robot.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
stakater__Konfigurator__5 | stakater/Konfigurator | 5 | defect | 78eac65cb94e2d7a228ae9bac4be43d5638522e5 | 660bccdbb896eab317bca6fe73d17b04b4e82809 | [STK-376] Add test cases | Added unit test cases for kube package
Added unit test cases for dockergen funcs | diff --git a/pkg/kube/configmap_test.go b/pkg/kube/configmap_test.go
new file mode 100644
index 0000000..568d8b8
--- /dev/null
+++ b/pkg/kube/configmap_test.go
@@ -0,0 +1,16 @@
+package kube
+
+import (
+ "testing"
+
+ "github.com/stakater/Konfigurator/pkg/apis/konfigurator/v1alpha1"
+)
+
+func TestCreateConfigMap(t *t... | 3 | 3 | 0 | [{"id": "G0", "claim": "The helper getkonfiguratorTemplate added by the pull request is unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests should omit comparison to bool constants (e.g. result.(bool) != true, result.(bool) != f... | null |
stakater__Reloader__142 | stakater/Reloader | 142 | defect | 732cd5b53a4643e93650f82226baed62c529676e | 6bcec06052bf9a90d7639e1068db2f913355dbd2 | Adds support for auto-reloading secrets and configmaps by annotation. | This introduces ability to restrict auto-reloading secrets and configmaps only to those marked by particular annotation. For example, when a deployment is annotated with `reloader.stakater.com/search: "true"`, modifying any secret or configmap annotated with `reloader.stakater.com/match: "true"` will cause its reloadin... | diff --git a/README.md b/README.md
index c0039789e..e1f2acd2b 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,33 @@ spec:
This will discover deployments/daemonsets/statefulset automatically where `foo-configmap` or `foo-secret` is being used either via environment variable or from volume mount. And it will perfo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The README's search-annotation section should drop the garbled duplicated sentences (\"and then annotate your `ConfigMap` or `Secret` so:\" and \"is modified,\") and add a note that `reloader.stakater.com/search: \"true\"` and `reloader.stakater.com/auto: \"true\"` don't work together, since wit... | null |
stakater__Reloader__19 | stakater/Reloader | 19 | defect | a3125e876cc9dc4f51f562095b10b764982b6e53 | 8c89f1aef07fa5f8262b6b909608e8159da35e20 | Optimize logging in reloader | This PR handles the issue [16](https://github.com/stakater/Reloader/issues/16) | diff --git a/internal/pkg/constants/constants.go b/internal/pkg/constants/constants.go
index d01792df4..c25c6df4e 100644
--- a/internal/pkg/constants/constants.go
+++ b/internal/pkg/constants/constants.go
@@ -2,9 +2,9 @@ package constants
const (
// ConfigmapEnvVarPostfix is a postfix for configmap envVar
- Config... | 5 | 4 | 0 | [{"id": "G0", "claim": "The reviewer asks what the 'create handler' is, questioning the unclear 'Create Handler' wording of the new nil-object log message in create.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions why th... | null |
stakater__Reloader__341 | stakater/Reloader | 341 | defect | 11dc0487097cddefe0948353e497319ba8fd166e | 2bf892cbffefd56f644f0fa1f34273413f95d4b9 | Leadership election | Hello
This PR is to address running Reloader with multiple replicas as requested in #112 and it's something that we'd love to have at Nutmeg!
I'm opening the PR at this point hoping to get some feedback on my approach and to find out whether you are amenable to it.
Outstanding items include, but are likely n... | diff --git a/README.md b/README.md
index abf2b0c7d..b2d9ab1f5 100644
--- a/README.md
+++ b/README.md
@@ -245,6 +245,14 @@ You can enable to scrape Reloader's Prometheus metrics by setting `serviceMonito
| isArgoRollouts | Enable Argo Rollouts. Valid value are either `true` or `false` | boolean |
| rel... | 7 | 6 | 6 | [{"id": "G0", "claim": "The pull request should add test cases for the new functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The chart's reloadOnCreate default should stay false so reloading on create remains opt-in and the default behaviour... | null |
stakater__Reloader__356 | stakater/Reloader | 356 | defect | 5662919f728c11293a2b9051719bbe478139503f | 08e6f81a15d00779a931865f8e04091e9d341bd3 | Namespace selector | Add support for namespace selection in order to enable the controller to effect only market namespaces with spastic labels. | diff --git a/deployments/kubernetes/chart/reloader/templates/deployment.yaml b/deployments/kubernetes/chart/reloader/templates/deployment.yaml
index 14341b96e..0cf87d919 100644
--- a/deployments/kubernetes/chart/reloader/templates/deployment.yaml
+++ b/deployments/kubernetes/chart/reloader/templates/deployment.yaml
@@ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The README should be updated to document how to use the namespace selectors and explain why key:value pairs were chosen, since the new --namespace-selector flag ships with no documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
stakater__Reloader__690 | stakater/Reloader | 690 | defect | 8595b4ac43b1882f069feeb40f7038cec6fb5e4c | 220a9d5f68ea6517c94597372471e56e1b81079b | feat: add new opt-in metric of reloads by namespace | Reloader currently keeps track of the number of successful and failed reloads. This is useful for general debugging, but in some cases it would also be useful to monitor reloads by namespace.
To implement this, I created a new metric (`reload_executed_total_by_namespace`) with `success` and `namespace` as attributes... | diff --git a/README.md b/README.md
index 7c4a3edb6..763eb5548 100644
--- a/README.md
+++ b/README.md
@@ -328,6 +328,7 @@ helm uninstall {{RELEASE_NAME}} -n {{NAMESPACE}}
| `reloader.readOnlyRootFileSystem` | Enforce readOnlyRootFilesystem ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The docs use \"opt-in\" where the verb form \"opt in\" is required.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stakater__Reloader__74 | stakater/Reloader | 74 | defect | b3d3c3704afdabfe0ef3f3e5bf86df6a28449f35 | ff5f28ba00773947c4189d368812646896e71366 | Add support for DeploymentConfigs for openshift | **Tasks:**
- [x] Add openshift client
- [x] Perform Rolling upgrade on DeploymentConfigs
- [x] Add Test cases
- [x] Update helm chart
- [x] Update Readme
- [x] Update app version
- [x] Upgrade golang version
- [x] Reduce wait times for resource creation when running tests | diff --git a/.version b/.version
index 9a86712cf..b82608c0b 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-v0.0.34
+v0.1.0
diff --git a/Makefile b/Makefile
index 184f9a02e..5d3128816 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ LDFLAGS =
default: build test
install:
- "$(GLIDECMD)" install
+ "$(GLIDECM... | 1 | 1 | 0 | [{"id": "G0", "claim": "When Reloader runs on non-Openshift (minikube), the 'Unable to create Openshift Apps client' message is logged at warning level more than 15 times on startup, so the log level should be info instead of warning, and Reloader should either detect its environment or take a flag specifying it.", "ca... | null |
stakater__Reloader__764 | stakater/Reloader | 764 | defect | b1cb6df1fa12edee4ba3c07951be272b9e232c3f | 3748fc54f5f404fd6ba7c151515c369b75728432 | Provide annotations to exclude reloading resources | This PR fixes : https://github.com/stakater/Reloader/issues/740
Provide annotations to exclude reloading resources based on the annotation set on the owner resources.
Exclude Configmaps Annotation: `configmaps.exclude.reloader.stakater.com/reload`
Exclude Secrets Annotation: `secrets.exclude.reloader.stakater.c... | diff --git a/internal/pkg/handler/upgrade.go b/internal/pkg/handler/upgrade.go
index 78d675cf8..ad4e87592 100644
--- a/internal/pkg/handler/upgrade.go
+++ b/internal/pkg/handler/upgrade.go
@@ -199,6 +199,9 @@ func PerformAction(clients kube.Clients, config util.Config, upgradeFuncs callba
searchAnnotationValue, foun... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request needs unit tests for the new exclude-reload annotations, covering both the positive and the negative use cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 3-second time.Sleep in CreateDeploymentWithExclud... | null |
stakater__Reloader__865 | stakater/Reloader | 865 | defect | ee12df2b32f7c22500c25eaef9a6424dd531292b | a76d3bcb0baf5e1df3184065a0ee137eb92e1f1f | Add OwnerReference to generated Jobs | Since https://github.com/stakater/Reloader/pull/486 Reloader is able to trigger Jobs from existing CronJob, which is awesome :tada:
But I noticed that the generated Jobs are missing [owner references](https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/#owner-references-in-object-spe... | diff --git a/internal/pkg/callbacks/rolling_upgrade.go b/internal/pkg/callbacks/rolling_upgrade.go
index 4ef9159a1..47c939ca0 100644
--- a/internal/pkg/callbacks/rolling_upgrade.go
+++ b/internal/pkg/callbacks/rolling_upgrade.go
@@ -15,6 +15,8 @@ import (
"k8s.io/apimachinery/pkg/runtime"
patchtypes "k8s.io/apimach... | 2 | 1 | 1 | [{"id": "G0", "claim": "Please update the relevant test cases (`TestCreateJobFromCronjob`, and `TestReCreateJobFromJob` — that part retracted by the reviewer in M006) in `rolling_upgrade_test.go`; per M006, to validate that the owner reference was actually added.", "category": "testing", "verdict": "supported", "priori... | null |
stakater__Reloader__928 | stakater/Reloader | 928 | defect | 516f9e8bc5bced6881f8f2424aea658ce23da512 | be09beac29a61a8561b997adbfcf47c6c59e9774 | feat: add ignore annotation support for skipping reloads | Adds support for the `reloader.stakater.com/ignore` annotation on ConfigMaps and Secrets. When set to "true", this annotation prevents Reloader from triggering a reload of dependent workloads, even if the resource changes. This allows users to opt out of reload behavior for specific resources where restarts are unneces... | diff --git a/README.md b/README.md
index 23e404253..ec11ec926 100644
--- a/README.md
+++ b/README.md
@@ -153,6 +153,22 @@ This pattern allows fine-grained reload control — workloads only restart if th
1. ✅ You want to reload a workload only if it references a ConfigMap or Secret that has been explicitly tagged with `r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README has linting issues (extra blank lines) that should be fixed before the pull request can be merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stakater__Reloader__989 | stakater/Reloader | 989 | defect | 1107fee109c21895aa39735c1c0ffa09909e0591 | 6defef59acc3f21115bd82ecd0592b194f5712ee | fix: handle operator crash when using workloadRef | Description
This MR fixes issue #751 where restarting an Argo Rollout configured with workloadRef causes the Reloader operator pod to crash with a panic: "runtime error: index out of range [0] with length 0".
Root Cause
The issue occurs because Argo Rollouts using workloadRef reference an existing Deployment/Repli... | diff --git a/internal/pkg/handler/upgrade.go b/internal/pkg/handler/upgrade.go
index 1e45c3924..914056d46 100644
--- a/internal/pkg/handler/upgrade.go
+++ b/internal/pkg/handler/upgrade.go
@@ -417,7 +417,11 @@ func getContainerUsingResource(upgradeFuncs callbacks.RollingUpgradeFuncs, item
container = getContainerWi... | 3 | 2 | 0 | [{"id": "G0", "claim": "The fix will only result in a NoContainerFound error rather than an actual reload, since the underlying referenced workload is never fetched; a full fix would probably need to fetch the referenced workload and find the container to restart from there.", "category": "design", "verdict": "uncertai... | null |
stakater__Reloader__997 | stakater/Reloader | 997 | defect | 177d2756a8fbbf324c6e29855cd72ea23efc36c9 | 92590e96d49808cb7a4c42cf74c91e4d969474e4 | fix: Controller not respecting ignore* flags #966 | ## Problem
Fixes #996: Setting `ignoreJobs` or `ignoreCronJobs` in Helm values removes RBAC permissions but Reloader still attempts to access Jobs/CronJobs, causing permission errors.
## Solution
Implemented a unified `--ignored-workload-types` flag that accepts both `jobs` and `cronjobs` values (individually or t... | diff --git a/README.md b/README.md
index 3e887e4a0..a813c35cd 100644
--- a/README.md
+++ b/README.md
@@ -329,11 +329,12 @@ Reloader supports multiple strategies for triggering rolling updates when a watc
|------|-------------|
| `--resources-to-ignore=configmaps` | Ignore ConfigMaps (only one type can be ignored at a... | 3 | 3 | 1 | [{"id": "G0", "claim": "The reworked README note block lost the trailing whitespace that produced markdown line breaks, breaking the blockquote's formatting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ignored-workload-types check is better... | null |
stakpak__agent__421 | stakpak/agent | 421 | defect | 32ed06f39fa5356bd517d523ececbbb7e77d44b6 | f40b146ed10dd61ac7a5970712e73af757a4f207 | patch(stakai): finish reason and usage types | This commit introduces a new `FinishReasonKind` enum to provide a more structured way of representing finish reasons. It also updates the `Usage` type to include detailed input and output token breakdowns, aligning with the structure used by providers like Gemini and Anthropic.
The `FinishReason` struct now supports... | diff --git a/libs/ai/src/lib.rs b/libs/ai/src/lib.rs
index 05edc2867..c8cb098fe 100644
--- a/libs/ai/src/lib.rs
+++ b/libs/ai/src/lib.rs
@@ -44,10 +44,11 @@ pub mod types;
pub use client::{Inference, InferenceConfig};
pub use error::{Error, Result};
pub use types::{
- AnthropicOptions, ContentPart, FinishReason, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The per-variant #[serde(rename = \"...\")] attributes on the GeminiModality enum are redundant because the enum-level rename_all = \"SCREAMING_SNAKE_CASE\" already produces the same serialized names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
stalwartlabs__dns-update__15 | stalwartlabs/dns-update | 15 | defect | dee26ab350dc8594f95063f8ea764ada4206de91 | 26ae844bd15fdf809dfa4c877bf9287a174122eb | Support for deSEC (desec.io) | This PR adds support for the German DNS service [deSEC](https://desec.io). Besides the actual implementation of the provider itself, I've modified and extended some parts of the general library.
The deSEC provider is unit tested with mockito and tokio. I also added a manual integration test to check the implementati... | diff --git a/.gitignore b/.gitignore
index ad3bbf3..dfeef2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
/target
_ignore
Cargo.lock
+
+.idea/
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e8cb27..e9341e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+dns-update 0.2.0
+==================... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the strum_macros dependency, since the maintainer wants to keep the number of dependencies as low as possible.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stalwartlabs__dns-update__35 | stalwartlabs/dns-update | 35 | defect | 4b9ec84932d8337307e5d89c63f238e8d495aad2 | 251a06bb2ebd68de5c3c592fc159b7ac13995321 | initial route53 provider contribution | Hello,
This is a rewrite of the Route53 provider #23 to use the bare minimum. It might be possible to reduce this further. I tried to find a balance and figured that using hex, time, and XML in libraries could be useful to future providers.
This is not a complete implementation for Route53; it currently doesn't s... | diff --git a/Cargo.toml b/Cargo.toml
index 8f47d33..9e47e71 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,14 +37,17 @@ aws-lc-rs = [
tokio = { version = "1", features = ["rt", "net"] }
hickory-client = { version = "0.25", default-features = false }
serde = { version = "1.0.197", features = ["derive"] }
-serde_json... | 2 | 2 | 1 | [{"id": "G0", "claim": "The contributed files carry an AGPL license header, but the crate is dual-licensed MIT/Apache, so AGPL cannot be accepted and the headers should be replaced with MIT/Apache.", "category": "licensing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The qu... | null |
stampit-org__stampit__231 | stampit-org/stampit | 231 | defect | f25a7e0469a2ba280bf842a2c5239b1f96ddca2f | 589a598bd26acb072ad56114b66953fb475bc84c | Final adjustments before publishing stampit v3. | After this PR I'm publishing stampit v3. Please, take an extra care.
- Spelling
- Ambiguous text
- Something is missing
- Something is redundant
- Basically, tell me anything you would improve for better readability and clearness
Thanks everyone!
| diff --git a/.travis.yml b/.travis.yml
index c622e0d..e2cc1a2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,8 @@
language: node_js
node_js:
- "0.12"
- - "4.0"
- - "5.0"
- - "6.0"
+ - "4"
+ - "5"
+ - "6"
script:
- npm run check
diff --git a/README.md b/README.md
index 2047dda..ba7a1ff 100644
--- a... | 11 | 2 | 1 | [{"id": "G0", "claim": "The Breaking-changes document should also state that `refs` are deprecated.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The heading \"stamp.props() and stamp.props() and stamp.properties()\" wrongly repeats stamp.props()... | null |
stampit-org__stampit__295 | stampit-org/stampit | 295 | defect | 8f1c016df0955441e39cb995c1659ef588a45932 | 5c1dc02ea5b31370d16264596183ec3bc23fde3d | chore(package): update rollup to version 0.41.1 | Closes #294
https://greenkeeper.io/ | diff --git a/package.json b/package.json
index 721f5f5..a2bccd4 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
"nsp": "^2.1.0",
"require-all": "^2.0.0",
"rimraf": "^2.3.4",
- "rollup": "^0.38.2",
+ "rollup": "^0.41.1",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-files... | 1 | 1 | 0 | [{"id": "G0", "claim": "The benchmark test 'object instances property access must be as fast as plain object' fails on Node 7 in CI (stampit property access far slower than a plain object), likely because it takes too long there, and koresar is asked to look into why.", "category": "performance", "verdict": "supported"... | null |
stampit-org__stampit__32 | stampit-org/stampit | 32 | defect | 297e450cad7a04e5e707fdb884921c2738348f1a | 91724255f7c2fb5ea4f031bdab03917a1fa1663f | stamp.compose() implementation | I decided that it is not a good idea to modify 'this' while composing two stamps. So, the `stamp.compose()` creates a new stamp unlike the 'methods', 'state', and 'enclose' functions. All that is described in the docs.
Also minor optimisations were made. See the commit log messages.
| diff --git a/README.md b/README.md
index ce3765e..aeaf20c 100644
--- a/README.md
+++ b/README.md
@@ -136,10 +136,12 @@ myBar.add({name: 'Homer' }).open().getMember('Homer');
## More chaining
-You can chain `.methods()` ...
+You can change the stamp in question (`this`) using chaining methods.
+
+Chain `.methods()`... | 2 | 1 | 1 | [{"id": "G0", "claim": "The rewritten sentence \"You can change the stamp in question (`this`) using chaining methods.\" sounds more confusing than the text it replaced.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "None of the chaining examples ... | null |
stan-dev__cmdstanpy__107 | stan-dev/cmdstanpy | 107 | defect | 0e5b19e57c3aee705c283478c952dde59d4779a3 | 55c1d3a534c444fb01786a5757a4ebea70ba9c63 | Threadpoolexecutor + tqdm | #### Submission Checklist
- [x] Run unit tests
- [x] Declare copyright holder and open-source license: see below
#### Summary
Use tqdm (optional) for progressbar
#### Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as ... | diff --git a/.appveyor.yml b/.appveyor.yml
index 01f60caf..849c917e 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -56,11 +56,11 @@ install:
- "python -m pip install --quiet --disable-pip-version-check --upgrade pip"
- "python -m pip install --quiet -r requirements.txt"
- - "python -m pip install --quiet... | 7 | 3 | 1 | [{"id": "G0", "claim": "The pull request needs good setup instructions in the docs for Jupyter users of the progress-bar feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tqdm should be handled as an optional dependency rather than added to ... | null |
stan-dev__cmdstanpy__12 | stan-dev/cmdstanpy | 12 | defect | 1791d7cf8ca8b98cbf302c17ebe3ca06e82e34eb | a3049c1e3b1e271798b6225919dd7fff2964accd | Travis fix | #### Submission Checklist
- [x ] Run unit tests
- [ ] Declare copyright holder and open-source license: see below (??)
#### Summary
I fixed the branch by maedoc.
I did some changes do travis works now.
This might not work on Windows 2.7.
#### Copyright and Licensing
Please list the copyright holder fo... | diff --git a/.travis.yml b/.travis.yml
index 1f79c5a3..c927c231 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,20 +1,27 @@
+dist: xenial
+
language: python
python:
- "2.7"
- "3.6"
+env:
+ - CSVER=2.18.1
+
cache:
directories:
- - cmdstan
+ - cmdstan-$CSVER
- $HOME/.cache/pip
install:
- - dev/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Protect the subprocess32 import in a try-except so that it defaults to the stdlib subprocess when the user doesn't have the 32 variant installed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stan-dev__cmdstanpy__147 | stan-dev/cmdstanpy | 147 | defect | 557ae659f972fbe087beb7868ee5023d897ace26 | 3e1af852ea99bbe88da5ff40c3f979b0152f8b78 | Feature/134 140 generate quantities | #### Submission Checklist
- [x] Run unit tests
- [x] Declare copyright holder and open-source license: see below
#### Summary
Updated `generate_quantities` method and resulting `CmdStanGQ` object to improve the workflow. Updated the example in docs/notebooks, as well as unit tests.
#### Copyright and Lice... | diff --git a/cmdstanpy/model.py b/cmdstanpy/model.py
index 2d6cb0b5..9f8227b1 100644
--- a/cmdstanpy/model.py
+++ b/cmdstanpy/model.py
@@ -617,10 +617,10 @@ def sample(
mcmc._validate_csv_files()
return mcmc
- def run_generated_quantities(
+ def generate_quantities(
self,
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The bare `except Exception:` handler in `generate_quantities` discards the underlying exception and raises only a generic message, making it really hard to debug what actually failed when processing the sample csv files.", "category": "maintainability", "verdict": "supported", "priority": "P1", ... | null |
stan-dev__cmdstanpy__168 | stan-dev/cmdstanpy | 168 | defect | 5bc88478eada36fcd950b671b7684b1e27669ddc | 7eca76c0851fe03bc5622e8d13a1669fc3aae0f7 | Implement cmd as List | #### Submission Checklist
- [x] Run unit tests
- [x] Declare copyright holder and open-source license: see below
#### Summary
Changes command into a List. Previously it was a String and `.split()` was used. In addition an absolute path is used for the target stanfile in the scenario where it is copied from a ... | diff --git a/cmdstanpy/cmdstan_args.py b/cmdstanpy/cmdstan_args.py
index 67050aa4..d429522d 100644
--- a/cmdstanpy/cmdstan_args.py
+++ b/cmdstanpy/cmdstan_args.py
@@ -194,47 +194,48 @@ def validate(self, chains: int) -> None:
' or any adaptation parameters.'
)
- def compose(self, idx:... | 1 | 1 | 0 | [{"id": "G0", "claim": "A unit test for a pathname that contains a space should be added to the PR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.