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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wasp-lang__wasp__2542 | wasp-lang/wasp | 2,542 | defect | b76031641e69ac7d77b1e9bd383dc18706a74a1a | 42d3030800374352762dd174aa8ab22ef69353f0 | Updates CRUD operation type signatures | ### Description
Adds default values to match general operations and enable better type inference
Fixes #2541
### Select what type of change this PR introduces:
1. [ ] **Just code/docs improvement** (no functional change).
2. [x] **Bug fix** (non-breaking change which fixes an issue).
3. [ ] **New feature**... | diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md
index e87119d617..1408c315b9 100644
--- a/waspc/ChangeLog.md
+++ b/waspc/ChangeLog.md
@@ -1,5 +1,11 @@
# Changelog
+## 0.16.3
+
+### Bug fixes
+
+- CRUD operations can now have their return types inferred like regular operations ([#2541](https://github.com/wasp-la... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please add @Genyus next to the ChangeLog bug-fix line so the contributor is credited in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wasp-lang__wasp__2565 | wasp-lang/wasp | 2,565 | defect | ecb6cc1cb778f7b62508770f74301327354d5ad6 | 7cabda805f56c5389a41f75d622f22e2631c5320 | Add resolve alias to Vite to find Prisma's client | ### Description
When importing `@prisma/client` from client code, Vite can't resolve the funky import chain Prisma does internally. In this PR we explicitly tell Vite how to resolve it by adding the expected result as an alias. This solution won't break to either Vite fixing their resolver, or to Prisma changing how... | diff --git a/waspc/data/Generator/templates/react-app/vite.config.ts b/waspc/data/Generator/templates/react-app/vite.config.ts
index 048236b7db..776a59bc5e 100644
--- a/waspc/data/Generator/templates/react-app/vite.config.ts
+++ b/waspc/data/Generator/templates/react-app/vite.config.ts
@@ -4,6 +4,7 @@ import { mergeCon... | 10 | 8 | 1 | [{"id": "G0", "claim": "Add a headless test in the `todoApp` that relies on using Prisma enums, to exercise the new client-side Prisma capability.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `pathUtils` import binding to the more idiomatic... | null |
wasp-lang__wasp__2596 | wasp-lang/wasp | 2,596 | defect | 578bdb18a616890c1626061dc700bafde2934b2e | 433504c1b320a2066c9e506133f59a7e5040c9fd | Surface SendGrid errors from its response | ### Description
Fixes #2266
When SendGrid throws an error, we will try to see if it has a `response.body.errors` property [(recommended by them)](https://github.com/sendgrid/sendgrid-nodejs/blob/main/docs/use-cases/success-failure-errors.md), and surface those errors through an `AggregateError`.
New console ou... | diff --git a/waspc/data/Generator/templates/sdk/wasp/server/email/core/providers/sendgrid.ts b/waspc/data/Generator/templates/sdk/wasp/server/email/core/providers/sendgrid.ts
index e5a4ffc4eb..1086b3e45d 100644
--- a/waspc/data/Generator/templates/sdk/wasp/server/email/core/providers/sendgrid.ts
+++ b/waspc/data/Genera... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo \"appropiately\" in the new SendGrid error-handling comment to \"appropriately\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wasp-lang__wasp__2689 | wasp-lang/wasp | 2,689 | defect | c0ebab66c3c20479b63f1cbd20dd04d14f1e023c | 3e6d8143150881b8a2b5cf4c40dabca9327ca7f5 | Do not return a 401 error on unauthorized requests to `/auth/me` | ### Description
Fixes #1880
`/auth/me` will not return a 401 code for a user who is not logged in, but a 200 with `null`.
Thus, `useAuth()` will not print an error to the console when it's called when not logged in. The return value for `useAuth()` stays the same.
The `/auth/me` endpoint is not explicitly do... | diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md
index 82f631b840..a73c6b88fd 100644
--- a/waspc/ChangeLog.md
+++ b/waspc/ChangeLog.md
@@ -6,6 +6,10 @@
- In the `usernameAndPassword` authentication method, the function `login()` imported from `wasp/client/auth` now accepts an object with `username` and `password... | 3 | 2 | 1 | [{"id": "G0", "claim": "Returning a bare null from /auth/me produces a `TypeError: payload is null` on the client, so the todoApp fails to load; the endpoint should return superjsonSerialize(null) instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim... | null |
wasp-lang__wasp__2707 | wasp-lang/wasp | 2,707 | defect | 10cba640cdb51b1130db396c2b1b449c1ee43aff | e0200c612d0cf88834aa942b5dff5c938af8a581 | Run headless tests on `todoApp` production build | Updates the `todoApp` to be able to run headless tests in the CI.
Closes #884 | diff --git a/.github/workflows/waspc-ci.yaml b/.github/workflows/waspc-ci.yaml
index 8ba9d89d23..1aff65c775 100644
--- a/.github/workflows/waspc-ci.yaml
+++ b/.github/workflows/waspc-ci.yaml
@@ -219,15 +219,25 @@ jobs:
cd examples/todoApp
npx playwright install --with-deps
- - name: Headles... | 6 | 1 | 1 | [{"id": "G0", "claim": "The test-only email-verification scaffolding (HeadlessVerifyEmails page/route and verifyAllUserEmails action added to todoApp's main.wasp, driven by the helpers' performEmailVerification) should be compiled/used only when running headless tests against production builds rather than built into th... | null |
wasp-lang__wasp__2854 | wasp-lang/wasp | 2,854 | defect | 092aaece54c5f31a98c9c14743bcd06311af701e | c85a57389b8c739b74f9e600dfddadde70ee3b67 | Run example apps headless tests in CI | Fixes https://github.com/wasp-lang/wasp/issues/2825
As per discussion with Filip, we decide to do the PR in the most simple way for now, and the we will do the optimizations later.
Only "optimization" is that we are running a matrix of example apps, rather than sequentially.
The biggest benefit here is that we ... | diff --git a/.github/actions/setup-wasp-cli/action.yaml b/.github/actions/setup-wasp-cli/action.yaml
new file mode 100644
index 0000000000..af64f62c61
--- /dev/null
+++ b/.github/actions/setup-wasp-cli/action.yaml
@@ -0,0 +1,71 @@
+name: Setup Wasp CLI
+description: |
+ This action build on setuo-haskell action, and f... | 2 | 2 | 0 | [{"id": "G0", "claim": "The action description misspells 'setup-haskell' as 'setuo-haskell' and should read 'setup-haskell'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The action description misspells 'installs' as 'installt' and should be cor... | null |
wasp-lang__wasp__2999 | wasp-lang/wasp | 2,999 | defect | 7da79a8ed5bbeb8f5290713e47145c20c15041bb | 818135cf10694e550294560c5f54ac4618fd8b39 | Fixes App declaration in Wasp TS Spec | > [!NOTE]
> Note for reviewers, review only the `Fixes App declaration in Wasp TS Spec` commit to review the fix. The other commits are preparing the 0.17.1 version.
### Context
Given this `main.wasp.ts`:
```ts
import { App } from "wasp-config";
const app = new App("minimalRootCompnent", {
title: "minima... | diff --git a/waspc/packages/wasp-config/__tests__/mapTsAppSpecToAppSpecDecls.integration.test.ts b/waspc/packages/wasp-config/__tests__/mapTsAppSpecToAppSpecDecls.integration.test.ts
index e6c8bb14d7..992019242e 100644
--- a/waspc/packages/wasp-config/__tests__/mapTsAppSpecToAppSpecDecls.integration.test.ts
+++ b/waspc... | 3 | 3 | 0 | [{"id": "G0", "claim": "The keys of the mapApp argument object should be ordered consistently in the same order across all usage locations.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tsAppSpec field should be renamed to `webSocket` and t... | null |
wasp-lang__wasp__3189 | wasp-lang/wasp | 3,189 | defect | 92cb2350d2d725fbc53cae4a057c6b35d6a10c47 | 28e05f3f2a766124aaa1bd829bcf70295389d7b1 | Fix NODE_ENV TypeScript duplication error in server env template | Fixes https://github.com/wasp-lang/wasp/issues/3188
> [!NOTE]
> Coded by Copilot, reviewed by human.
| diff --git a/waspc/data/Generator/templates/sdk/wasp/server/env.ts b/waspc/data/Generator/templates/sdk/wasp/server/env.ts
index e4e3ff7377..392e496d0e 100644
--- a/waspc/data/Generator/templates/sdk/wasp/server/env.ts
+++ b/waspc/data/Generator/templates/sdk/wasp/server/env.ts
@@ -158,8 +158,9 @@ const serverEnvSchema... | 2 | 1 | 0 | [{"id": "G0", "claim": "The equivalent change to the client code (client env handling) that the server-side NODE_ENV fix got was not made in this pull request.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The NODE_ENV default should be declared at... | null |
wasp-lang__wasp__3316 | wasp-lang/wasp | 3,316 | defect | 092aed4a431bdf72d556205ea33e0a6ad8606fe1 | e9d4844384d5be5f87e37a3816a4a60b3e2866f4 | Add e2e snapshot tests to the tutorial app executor | <!--
Thanks for contributing to Wasp!
Make sure to follow this PR template, so that we can speed up the review process.
It will also help you not forget important steps when making a change.
If you don't know how to fill any of the sections below, it's okay to leave
them blank and ask for help.
-->
#... | diff --git a/web/tutorial-actions-executor/.gitignore b/web/tutorial-actions-executor/.gitignore
index f7ed446125..e89b2210df 100644
--- a/web/tutorial-actions-executor/.gitignore
+++ b/web/tutorial-actions-executor/.gitignore
@@ -1,2 +1,3 @@
node_modules/
.result/
+e2e-tests/.result/
diff --git a/web/tutorial-action... | 19 | 14 | 1 | [{"id": "G0", "claim": "The npm scripts in package.json repeat the same option flags for every command and should be restructured, e.g. with a shared default script, a bin entry instead of running through tsx, or by moving the scripts to the web package.", "category": "maintainability", "verdict": "supported", "priorit... | null |
wasp-lang__wasp__3547 | wasp-lang/wasp | 3,547 | defect | 15f87713ae98b071d8368300cd081d3e83486f6c | 5d25eba2e28a49b91935e84ca7b272c2ccded0d1 | Use current run-wasp-app | <!--
Thanks for contributing to Wasp!
Make sure to follow this PR template, so that we can speed up the review process.
It will also help you not forget important steps when making a change.
If you don't know how to fill any of the sections below, it's okay to leave
them blank and ask for help.
-->
#... | diff --git a/.github/workflows/ci-examples-test.yaml b/.github/workflows/ci-examples-test.yaml
index 24b42d4f5e..0fa8dc0689 100644
--- a/.github/workflows/ci-examples-test.yaml
+++ b/.github/workflows/ci-examples-test.yaml
@@ -55,9 +55,14 @@ jobs:
DATABASE_PROVIDER=$($GITHUB_WORKSPACE/scripts/get-wasp-databa... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new `assert` import and guard are added only in the starters config; for consistency they should be applied in all the configs, or deferred to a refactor task.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the n... | null |
wasp-lang__wasp__3748 | wasp-lang/wasp | 3,748 | defect | 5bf277ecf801939d4b14c91ec7d0bae59fc2d75a | c68cf70f380e5c3b466b370626e67dd878bd1da4 | Load `.env.client` only in development | <!--
Thanks for contributing to Wasp!
Make sure to follow this PR template, so that we can speed up the review process.
It will also help you not forget important steps when making a change.
If you don't know how to fill any of the sections below, it's okay to leave
them blank and ask for help.
-->
#... | diff --git a/waspc/data/Generator/templates/sdk/wasp/client/vite/plugins/envFile.ts b/waspc/data/Generator/templates/sdk/wasp/client/vite/plugins/envFile.ts
index 2f79d6037c..90aae40bc9 100644
--- a/waspc/data/Generator/templates/sdk/wasp/client/vite/plugins/envFile.ts
+++ b/waspc/data/Generator/templates/sdk/wasp/clie... | 4 | 3 | 0 | [{"id": "G0", "claim": "The author is unsure whether the switch for loading the .env.client file should key on `config.mode` (development/production) or on `env.command` (serve/build).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If `envPrefix` is alwa... | null |
wasp-lang__wasp__3771 | wasp-lang/wasp | 3,771 | defect | 0cb10e07ded5035b7540757e094d1e58d3cf1b1f | 5708dbfcbceeddf4de5c8229d6997afe12ab92de | Update Vite config plugin to force certain options | <!--
Thanks for contributing to Wasp!
Make sure to follow this PR template, so that we can speed up the review process.
It will also help you not forget important steps when making a change.
If you don't know how to fill any of the sections below, it's okay to leave
them blank and ask for help.
-->
#... | diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md
index d85fbba3fe..c47bf0e200 100644
--- a/waspc/ChangeLog.md
+++ b/waspc/ChangeLog.md
@@ -1,5 +1,11 @@
# Changelog
+## 0.21.2
+
+### 🔧 Small improvements
+
+- The `wasp()` Vite plugin now enforces certain Vite config options that Wasp requires (e.g. `base`, `envP... | 8 | 6 | 1 | [{"id": "G0", "claim": "The new e2e test fails even though the command is expected to fail, and the author asks whether they are doing something wrong with expectCommandFailure.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs table implies users... | null |
wasp-lang__wasp__3831 | wasp-lang/wasp | 3,831 | defect | 91c658a7235fe6a747aa49fb9ca7acc51d9c2e6e | a4dc54326b17bd30216cbf86b9eb1d0f0c07b35b | Remove server.open config from Vite plugin | ## Description
This removes the `open: true` default configuration from the Vite server setup in waspConfig.ts. This allows the Vite dev server to use its default behavior instead of always opening the browser automatically.
## Type of change
- [ ] **🔧 Just code/docs improvement** <!-- no functional change -->
- [x... | diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md
index 788edda850..166a5acdb6 100644
--- a/waspc/ChangeLog.md
+++ b/waspc/ChangeLog.md
@@ -8,6 +8,10 @@
- The `wasp()` Vite plugin now enforces certain Vite config options that Wasp requires (e.g. `base`, `envPrefix`, `build.outDir`) and throws an error if the user t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changelog entry filed under \"🐞 Bug fixes\" mischaracterizes the removal of `server.open` as a bug fix when the previous browser-opening behavior was an intentional choice on Wasp's side, so the change log should be updated.", "category": "documentation", "verdict": "supported", "priority":... | null |
wasp-lang__wasp__3912 | wasp-lang/wasp | 3,912 | defect | 17c453340043947e35bc5d2b08e30c523012a3ba | e331c3ca31c80c87af36081a4aebd0ec28c81489 | Add tests for deploy package pure logic | ## Description
Adds unit tests for the pure logic and data transformations in the deploy package (both Fly and Railway providers). Includes small refactorings to make pure functions testable:
- Extract `getRailwayEnvVarValueReference` to its own module
- Extract `stripServerSuffix`/`stripClientSuffix` helpers fr... | diff --git a/waspc/data/packages/deploy/src/providers/fly/flyCli.ts b/waspc/data/packages/deploy/src/providers/fly/flyCli.ts
index 1508cac433..2ce9be73b6 100644
--- a/waspc/data/packages/deploy/src/providers/fly/flyCli.ts
+++ b/waspc/data/packages/deploy/src/providers/fly/flyCli.ts
@@ -82,8 +82,5 @@ async function regi... | 9 | 7 | 0 | [{"id": "G0", "claim": "In DeploymentInstructions.test.ts the 'my-app' base name should be extracted into a const and reused in the expectations (e.g. expect(result.dbName).toBe(baseName + \"-db\")) so the transformation is easier to notice, and the same should be done in future test files.", "category": "maintainabili... | null |
watchexec__watchexec__859 | watchexec/watchexec | 859 | defect | 08367c6db714d3df8feedd2b788c6cc6c527ce8e | e3be9e84fb33b6f57e144c7d4265412c041cfe96 | Whitelist files if explicitly watched | Closes #674 by whitelisting files that were explicitly watched for.
For example, `cargo run -- -w target/sample_file echo changed` now registers changes in target/sample_file (target is in .gitignore)
Also, took some liberty to add tests for ignore_files with tempfile crate | diff --git a/Cargo.lock b/Cargo.lock
index d037380c..abd0f7bf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4139,6 +4139,7 @@ version = "4.0.1"
dependencies = [
"ignore",
"ignore-files",
+ "tempfile",
"tokio",
"tracing",
"tracing-subscriber",
diff --git a/crates/cli/src/filterer.rs b/crates/cli/src/filterer.r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added whitelist block in crates/cli/src/filterer.rs should be formatted with rustfmt and/or use tabs like the surrounding code.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wave-k8s__wave__12 | wave-k8s/wave | 12 | defect | 86f2e7f4d02aa055143551f1c4f5196dabcf09b5 | 8efb752d058b27eeb08501940f4f4a6a0fc85345 | Implement update hash | Implements the `updateHash` method:
- Fetch Pod Template annotations
- Initialize them if they are `nil`
- Set the `configHashAnnotation` to the desired hash value | diff --git a/pkg/controller/deployment/hash.go b/pkg/controller/deployment/hash.go
index d36607f2..50ce53e9 100644
--- a/pkg/controller/deployment/hash.go
+++ b/pkg/controller/deployment/hash.go
@@ -39,6 +39,13 @@ func calculateConfigHash(children []metav1.Object) (string, error) {
// updateHash upates the configurati... | 1 | 1 | 0 | [{"id": "G0", "claim": "The function `updateHash` should be renamed to `setHash`, or better `setConfigHash`, since it sets rather than updates and this would mirror `calculateConfigHash`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
wave-k8s__wave__15 | wave-k8s/wave | 15 | defect | 1968527a6604b51d0ffa54123bd254f10f96f751 | f5da3148d69463d25021515a360c5abb319580b3 | Enable controller test suite | This PR enables the remaining pending tests, adds a little logging to the controller so we get some indication of what's going on and fixes the finalizer so that it is "valid" according to K8s definitions | diff --git a/Gopkg.lock b/Gopkg.lock
index fa99b446..9c3f319c 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -59,6 +59,14 @@
revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7"
version = "v1.0.0"
+[[projects]]
+ branch = "master"
+ digest = "1:6c280b44782900265b0827ceb9a7f9982dd15f183f05107b73cc06c65c8dc5b6"
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The logger name \"Wave\" passed to logf.Log.WithName should be lower case rather than capitalized.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wave-k8s__wave__34 | wave-k8s/wave | 34 | defect | 6b0a85962ab98e83556d1f35cf75d7c4d508b7e1 | 776c1a2f3fb5e08fba47f1ab2d7882c048bee491 | Handle env section in deployment yaml | Changes made:
- Added two new types:
- ConfigObject: contains the k8s `Object`, a flag for whether this entry is only "single-field" env entries, and a list of referenced keys (map of key-name to a ConfigField)
- ConfigField: contains metadata about that entry. At the moment this is only a flag for whether th... | diff --git a/pkg/controller/deployment/deployment_controller_test.go b/pkg/controller/deployment/deployment_controller_test.go
index 06120511..83cea5ad 100644
--- a/pkg/controller/deployment/deployment_controller_test.go
+++ b/pkg/controller/deployment/deployment_controller_test.go
@@ -51,8 +51,10 @@ var _ = Describe("... | 6 | 6 | 1 | [{"id": "G0", "claim": "Tests asserting the hash does not change should use Consistently (with consistentlyTimeout) instead of Eventually, otherwise they pass vacuously even if the hash is updated before the first check.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
wave-k8s__wave__38 | wave-k8s/wave | 38 | defect | 8e88bd54ddcff293c87aff4131f079303792deb6 | 1a3734a9eec4efdf990610d7d26e63e79c27a5fa | Refactoring to support other pod controller types | This is the first step in fixing issue https://github.com/pusher/wave/issues/22.
This refactors to wrap the deployment object in a new interface, `PodController`. This follows @JoelSpeed 's guidance, with a minor change. The interface defines Get and SetPodTemplate that uses the `corev1.PodTemplateSpec` resource ins... | diff --git a/Gopkg.lock b/Gopkg.lock
index 9c3f319c..4631b586 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -878,6 +878,7 @@
"github.com/go-logr/glogr",
"github.com/onsi/ginkgo",
"github.com/onsi/gomega",
+ "github.com/onsi/gomega/types",
"github.com/spf13/pflag",
"k8s.io/api/apps/v1",
"k... | 4 | 4 | 0 | [{"id": "G0", "claim": "The deployment controller should keep calling a thin HandleDeployment wrapper (which itself delegates to HandlePodController) so the podController plumbing is abstracted away from the deployment controller package.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "intro... | null |
wave-k8s__wave__4 | wave-k8s/wave | 4 | defect | 83568e67082a8d21b90ed7b0edeec5f79f29d2cd | 96ab48ae37d71466142062d6a3fd0e7da9642eb7 | Calculate hash from provided children | Take the list of children given to this method and calculate a hash based on the data within each of the children.
Also updates the test suite to actually send all items to the API server, this ensure that the `Data` within secrets is accurate. Should make our tests more stable. | diff --git a/pkg/controller/deployment/hash.go b/pkg/controller/deployment/hash.go
index d36607f2..0c9c50c7 100644
--- a/pkg/controller/deployment/hash.go
+++ b/pkg/controller/deployment/hash.go
@@ -17,9 +17,13 @@ limitations under the License.
package deployment
import (
+ "crypto/sha256"
+ "encoding/json"
"fmt"... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message for an unknown child type should start with a lowercase character, like the other error messages.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wave-k8s__wave__40 | wave-k8s/wave | 40 | defect | 8e88bd54ddcff293c87aff4131f079303792deb6 | 615255e8825ebac6342e5b8020f5c06ee0c34d31 | Copy build improvements from Faros | This basically mirrors the work done in https://github.com/pusher/faros/pull/94 to prepare this repo for use with Prow | diff --git a/.gitignore b/.gitignore
index a18a2a77..89a543b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
bin
vendor
cover.out
+.env
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 365c81a9..57135e02 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -11,6 +11,29 @@ git clone git@github.com:<YOU... | 2 | 1 | 0 | [{"id": "G0", "claim": "Since the CI image is being changed anyway, it should be bumped to Go v1.12 rather than v1.11.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `-report-dir` flag needs to be added to the Ginkgo test invocation before t... | null |
wave-k8s__wave__41 | wave-k8s/wave | 41 | defect | 8e88bd54ddcff293c87aff4131f079303792deb6 | 75e6ff27b48d0309ceeb093f15bce8d1c9a4cbca | Add reporters for JUnit outputs | This adds JUnit XML output for displaying build status goodder. | diff --git a/pkg/controller/deployment/deployment_controller_suite_test.go b/pkg/controller/deployment/deployment_controller_suite_test.go
index 5df5d889..6ab29db0 100644
--- a/pkg/controller/deployment/deployment_controller_suite_test.go
+++ b/pkg/controller/deployment/deployment_controller_suite_test.go
@@ -26,6 +26,... | 1 | 1 | 1 | [{"id": "G0", "claim": "pkg/core/wave_suite_test.go uses reporters.Reporters() in TestMain but is missing the import of the reporters package, so this file likely needs the additional import statement added.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
wave-k8s__wave__6 | wave-k8s/wave | 6 | defect | 83568e67082a8d21b90ed7b0edeec5f79f29d2cd | c421b963ff3fbfeee18d11f0a93fd2d41cecfc27 | Implement fetching of current Deployment children | Implements the `getCurrentChildren` method.
Update the tests so that we can make sure the caches are synced before we run the test. | diff --git a/pkg/controller/deployment/children.go b/pkg/controller/deployment/children.go
index b888416e..cddb420d 100644
--- a/pkg/controller/deployment/children.go
+++ b/pkg/controller/deployment/children.go
@@ -17,15 +17,130 @@ limitations under the License.
package deployment
import (
+ "context"
+ "fmt"
+ "st... | 5 | 3 | 0 | [{"id": "G0", "claim": "The test descriptions say ConfigMaps/Secrets are \"referenced in EnvFromSource\" and should say \"EnvFrom\" instead, to be consistent with the field name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The slice collectin... | null |
wave-k8s__wave__61 | wave-k8s/wave | 61 | defect | 5eccf2ce74b57882bf14c5c04f1fb3f7b8243598 | 15e01171150e469039284ea7a77667c00b6042a9 | Allow optional ConfigMap / Secrets | It's possible to specify Secrets and ConfigMaps as `optional` for a Deployment (and potentially other resource types), and Wave appears to have support for this with regards to values in the `EnvFrom` section, but not when mounting a Secret or ConfigMap.
This allows secrets and config maps mounted from a `Volume`, ... | diff --git a/pkg/core/children.go b/pkg/core/children.go
index 21e34ea1..f36fd538 100644
--- a/pkg/core/children.go
+++ b/pkg/core/children.go
@@ -105,10 +105,10 @@ func getChildNamesByType(obj podController) (map[string]configMetadata, map[stri
// and Secrets
for _, vol := range obj.GetPodTemplate().Spec.Volumes {... | 7 | 7 | 0 | [{"id": "G0", "claim": "Rename the `isOptional` helper to `isRequired`, since it returns the negation of `cm.Optional` and the current name reads the opposite of what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the volume name... | null |
wave-k8s__wave__8 | wave-k8s/wave | 8 | defect | 9b93b9882ec614ffe88d7f84edbbd3506a60fa3e | 44902f240542fd3240e06d8e1c396209f346de9e | Implement fetching of existing Children | I copied over the changes to the tests made in #6 to make this easier to rebase when one of them gets merged first.
Implements listing all ConfigMaps and Secrets in the Deployment's namespace and filtering them based on having an OwnerReference with a matching UID to the Deployment. | diff --git a/pkg/controller/deployment/children.go b/pkg/controller/deployment/children.go
index b888416e..c5af2386 100644
--- a/pkg/controller/deployment/children.go
+++ b/pkg/controller/deployment/children.go
@@ -17,8 +17,13 @@ limitations under the License.
package deployment
import (
+ "context"
+ "fmt"
+
app... | 3 | 3 | 0 | [{"id": "G0", "claim": "The error message for listing Secrets should capitalise \"Secrets\" (\"error listing secrets\" -> \"error listing Secrets\") to be consistent with the \"error listing ConfigMaps\" message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
wavetermdev__waveterm__1701 | wavetermdev/waveterm | 1,701 | defect | 0d7439e0fd33b27a4cb1c39bb378a4c05f4bbe6a | 93257a576d28fa219ed0e7a78f93c652713f6496 | Better XDG directory variable fix for Snap | This fix will overwrite the XDG variables when creating a shell session and only if the installation is Snap (as determined by the presence of the `$SNAP` environment variable). It also will parse the user's PAM files, if present, to ensure that if the XDG variables were set there, they're restored. Otherwise, if the v... | diff --git a/pkg/shellexec/shellexec.go b/pkg/shellexec/shellexec.go
index 35a9401ad6..6a2bcefadd 100644
--- a/pkg/shellexec/shellexec.go
+++ b/pkg/shellexec/shellexec.go
@@ -22,6 +22,7 @@ import (
"github.com/wavetermdev/waveterm/pkg/panichandler"
"github.com/wavetermdev/waveterm/pkg/remote"
"github.com/waveterm... | 15 | 4 | 1 | [{"id": "G0", "claim": "The precedence order of the merged PAM environment sources in tryGetPamEnvVars should be documented (and made explicit), with the ordering also made configurable and overwrites logged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
wavetermdev__waveterm__1755 | wavetermdev/waveterm | 1,755 | defect | 07d07472db28fc6f4e3cd5cf71305cd9cffc0cef | 61b0fb4baec87c6fa91bdeadc43fab75fd29eb61 | conn updates 5 | * token swap
* setting environment variables for different local/remote shells
* bug fixes for init scripts
* more logging
* update connserver startup flow | diff --git a/cmd/wsh/cmd/wshcmd-connserver.go b/cmd/wsh/cmd/wshcmd-connserver.go
index 844735d7da..98948ca1f4 100644
--- a/cmd/wsh/cmd/wshcmd-connserver.go
+++ b/cmd/wsh/cmd/wshcmd-connserver.go
@@ -11,6 +11,7 @@ import (
"net"
"os"
"path/filepath"
+ "strings"
"sync/atomic"
"syscall"
"time"
@@ -124,14 +125,... | 20 | 2 | 2 | [{"id": "G0", "claim": "setupRpcClientWithToken prints the token value to the log, which can expose sensitive data in logs; the token should not appear in any logs.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "handleAuthenticateTokenCommand logs msg.... | null |
wavetermdev__waveterm__1906 | wavetermdev/waveterm | 1,906 | defect | 6e2ff6c5fceecee358b0672061feaf24c88872f0 | f277ae7a39d8278a8a7b13fa3b63999ad247c540 | Fix WSH copy internal | I was dumb and used `os.Rename` for copy on the same WSH remote. This change makes it a proper copy, with recursion if needed. | diff --git a/pkg/wshrpc/wshremote/wshremote.go b/pkg/wshrpc/wshremote/wshremote.go
index f324f52fec..b2ab0d537f 100644
--- a/pkg/wshrpc/wshremote/wshremote.go
+++ b/pkg/wshrpc/wshremote/wshremote.go
@@ -348,11 +348,113 @@ func (impl *ServerImpl) RemoteFileCopyCommand(ctx context.Context, data wshrpc.C
if err != nil {... | 3 | 3 | 3 | [{"id": "G0", "claim": "In the filepath.Walk closure, `path` is overwritten with the destination path before os.Open and copyFileFunc, so the code opens the destination file for reading and passes the destination path to the writer instead of keeping source and destination separate.", "category": "correctness", "verdic... | null |
wavetermdev__waveterm__2414 | wavetermdev/waveterm | 2,414 | defect | 47bdc387452805a2595fd002d97c88b9cbccbb6b | b723292efc869665f8a6d10530e0b3e714fd0d98 | Add read_dir AI tool for reading directory contents | - [x] Explore repository structure and understand existing tools pattern
- [x] Create tools_readdir.go file with read_dir tool implementation
- [x] Add GetReadDirToolDefinition() function following the pattern of read_text_file
- [x] Register the new tool in tools.go GenerateTabStateAndTools function
- [x] Create compr... | diff --git a/pkg/aiusechat/tools.go b/pkg/aiusechat/tools.go
index 02105a9155..8b9ba3f82b 100644
--- a/pkg/aiusechat/tools.go
+++ b/pkg/aiusechat/tools.go
@@ -127,6 +127,7 @@ func GenerateTabStateAndTools(ctx context.Context, tabid string, widgetAccess bo
if widgetAccess {
tools = append(tools, GetCaptureScreensho... | 3 | 2 | 2 | [{"id": "G0", "claim": "The changes to the tsunami demo go.mod and go.sum files should be undone because they are out of scope for this PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "read_dir slices entries before sorting them and reports the tr... | null |
wavetermdev__waveterm__2507 | wavetermdev/waveterm | 2,507 | defect | a7d76d3dae04a2d5b3894b5dc8b52fa897ceb36b | 330030809b1a183cbb35a65d1503b6d585a34114 | better tool input descriptions | better tool input descriptions, also fixes a bug with utf-8/base64 in the diff viewer. | diff --git a/.roo/rules/rules.md b/.roo/rules/rules.md
index 54ef512159..d455e69277 100644
--- a/.roo/rules/rules.md
+++ b/.roo/rules/rules.md
@@ -41,6 +41,8 @@ It has a TypeScript/React frontend and a Go backend. They talk together over `ws
- NEVER use cursor-help (it looks terrible)
- useAtom() and useAtomV... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test error message should say `ToolCallDesc` instead of the stale `ToolInputDesc`, to match the field the check examines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wavetermdev__waveterm__2899 | wavetermdev/waveterm | 2,899 | defect | e8d4cddb5aaa56d316902b9db6b6dee86f4993ba | 4f4727901d0a264d56b8b541d1a5372cee1d27c4 | Generate WaveEvent as a typed discriminated union with explicit null payloads for no-data events | This updates WaveEvent typing to be event-aware instead of `data?: any`, while keeping safe fallback behavior for unmapped events. It also codifies known no-payload events as `null` payloads and documents event payload expectations alongside the Go event constants.
- **Event registry + payload documentation (Go)**
-... | diff --git a/cmd/generatets/main-generatets.go b/cmd/generatets/main-generatets.go
index b4ea9c3dad..2202c781fe 100644
--- a/cmd/generatets/main-generatets.go
+++ b/cmd/generatets/main-generatets.go
@@ -21,6 +21,7 @@ func generateTypesFile(tsTypesMap map[reflect.Type]string) error {
fileName := "frontend/types/gotype... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new files pkg/tsgen/tsgenevent.go and pkg/tsgen/tsgenevent_test.go carry a 2025 copyright year and should be updated to 2026 for consistency with the other files this PR updates.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
waycrate__exwlshelleventloop__66 | waycrate/exwlshelleventloop | 66 | defect | 9ae0d2fff1d87ee591b4bc4ecaf071b4d196e1a2 | 304436a7ecc6d30326387763e80662f62007db49 | macro refactor | Hey, here's the refactor I promised. :)
It adds support for generics and also now allows you to provide any kinds of attributes separated by "|" inside of a literal string (I tried different approaches but could only make this one work without needing too much boilerplate) (can check in README).
Let me know what... | diff --git a/Cargo.lock b/Cargo.lock
index f89a06ba..a2311b26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -913,6 +913,41 @@ dependencies = [
"zbus",
]
+[[package]]
+name = "darling"
+version = "0.20.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6f63b86c8a8826a49b8c21f08a2d07338... | 2 | 2 | 0 | [{"id": "G0", "claim": "The CI build fails on stable Rust because darling's diagnostics feature is nightly-only.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "The macro's attrs parameter should be dropped so derives are written as a normal #[deri... | null |
waycrate__exwlshelleventloop__67 | waycrate/exwlshelleventloop | 67 | defect | 8fbadcc3f9855fcca93e9e3730ed8c3d31cad1b5 | f432c7a180d5aa7a587ddec7f2dec77f5c1996ce | iced_sessionlock macro for Message enums + some clippy lint fixes | Hey, took a look at the API and thought of this. I also fixed some clippy lints that were popping up for me. Lmk if I need to change anything :) | diff --git a/Cargo.lock b/Cargo.lock
index 9ac238f6..f786af86 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1872,6 +1872,7 @@ dependencies = [
"iced_graphics",
"iced_renderer",
"iced_runtime",
+ "iced_sessionlock_macros",
"log",
"sessionlockev",
"thiserror",
@@ -1879,6 +1880,18 @@ dependencies = [
"window_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request adds #[allow(clippy::too_long_first_doc_paragraph)] attributes for clippy lints that are not yet available on the stable toolchain, so they should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wazuh__wazuh__34303 | wazuh/wazuh | 34,303 | defect | 10cf237120596d48d3a7ae4fd22a834768e91342 | ea04d320ae33198340708fed35f8b53131346c1b | Remove agent 000 from manager wazuh-modulesd scope | <!--
This template reflects sections that must be included in new Pull requests.
- If a determined section does not apply, it must not be removed but completed with `N/A`.
- Contributions from the community are really appreciated.
-->
## Description
This PR removes all special behaviors related to agent 000 i... | diff --git a/docs/ref/modules/agent_info/api-reference.md b/docs/ref/modules/agent_info/api-reference.md
index a662f1ff44e..1c134114ef8 100644
--- a/docs/ref/modules/agent_info/api-reference.md
+++ b/docs/ref/modules/agent_info/api-reference.md
@@ -96,16 +96,6 @@ Stops the module's execution.
```cpp
void stop();
```... | 7 | 3 | 1 | [{"id": "G0", "claim": "agent_info_get_cluster_name() and agent_info_get_cluster_node() can legally return nullptr depending on initialization/handshake timing, so the unguarded std::string construction is undefined behavior (typically a crash); guard the pointers (e.g., store empty string when null) before constructin... | null |
wazuh__wazuh__34516 | wazuh/wazuh | 34,516 | defect | f93cb699f7b7026ff6945499cd8cf88048279013 | aad7ac92b5d2a27bd6e1aabc76bb138a939fff1f | Remove agent 000 from wdb and wazuh-modules | <!--
This template reflects sections that must be included in new Pull requests.
- If a determined section does not apply, it must not be removed but completed with `N/A`.
- Contributions from the community are really appreciated.
-->
## Description
This PR removes all special-case handling related to agent `... | diff --git a/.github/actions/check_files/manager_base.csv b/.github/actions/check_files/manager_base.csv
index 096aee46fa48..1fab20366652 100644
--- a/.github/actions/check_files/manager_base.csv
+++ b/.github/actions/check_files/manager_base.csv
@@ -1,117 +1,114 @@
-full_filename,owner_name,group_name,mode,type,prot_p... | 4 | 4 | 1 | [{"id": "G0", "claim": "If the PR removes the syscollector and sca modules from the manager, the recently added manager-differentiated code in wm_syscollector.c and wm_sca.c (dummy manager agentd query function, manager-only remote_commands and document-limit branches) is no longer necessary and should be dropped.", "c... | null |
wazuh__wazuh__34582 | wazuh/wazuh | 34,582 | defect | a7d2764656b3171a82e607d904746d96bfdfa1d4 | 4169019915a978990883a454b492f7e168951f50 | Avoid warning on missing scanner source f… | <!--
This template reflects sections that must be included in new Pull requests.
- If a determined section does not apply, it must not be removed but completed with `N/A`.
- Contributions from the community are really appreciated.
-->
## Description
This PR fixes repeated `WARNING` logs generated during the v... | diff --git a/src/wazuh_modules/vulnerability_scanner/src/scanOrchestrator/factory/eventDetailsBuilder.hpp b/src/wazuh_modules/vulnerability_scanner/src/scanOrchestrator/factory/eventDetailsBuilder.hpp
index 66824c850a1..cba7ea65344 100644
--- a/src/wazuh_modules/vulnerability_scanner/src/scanOrchestrator/factory/eventD... | 4 | 4 | 1 | [{"id": "G0", "claim": "enrichVulnerabilityModel() takes baseCna from context->m_vulnerabilitySource.first, which is overwritten per package, so if the scan context holds detections from multiple CNAs the wrong vulnerability.scanner.source is set without throwing; use a per-detection value or persist the (base, expande... | null |
wazuh__wazuh__34672 | wazuh/wazuh | 34,672 | defect | 9f43cb6af714a350effdeddbe2c272fe5e0a066b | 321a338cc58c38d2d909f0e4a50215a4cac1432f | Add remoteConf module | ## Description
close [#34484](https://github.com/wazuh/wazuh/issues/34484)
> ⚠️ **Note:** This PR delivers the remote-configuration framework (fetch/cache/synchronize/defaults) and scheduler integration. Runtime module bindings via `addTrigger` (e.g., Raw Event Indexer dynamic toggle) are intentionally deferred t... | diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt
index 969e24ca5bf..0c7160a3fcc 100644
--- a/src/engine/CMakeLists.txt
+++ b/src/engine/CMakeLists.txt
@@ -294,6 +294,7 @@ add_subdirectory(${ENGINE_SOURCE_DIR}/fastqueue)
add_subdirectory(${ENGINE_SOURCE_DIR}/httpsrv)
add_subdirectory(${ENGINE_SOURCE_... | 23 | 22 | 4 | [{"id": "G0", "claim": "The indexer query should drop the hardcoded document-id filter and request the `engine` section in the source includes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The remote-settings fetch logic (index names, filters, response... | null |
wazuh__wazuh__34901 | wazuh/wazuh | 34,901 | defect | 5ed5de39d65938cf333f734de66e20d8e9936a7f | 4f073f25b9a11e0e28f8b134b12fddcef1301d53 | feat: integrate rawEventIndexer with remoteConf for runtime control | ## Description
Moves `RawEventIndexer` enable/disable control from static local configuration to the remote global configuration managed by `confremote`. On startup the engine reads the persisted cache or the remote value from wazuh-indexer and applies it immediately; during periodic `synchronize()` calls, changes a... | diff --git a/src/engine/source/api/README.md b/src/engine/source/api/README.md
index 3eb76b290b65..0cd4a14e05dd 100644
--- a/src/engine/source/api/README.md
+++ b/src/engine/source/api/README.md
@@ -77,7 +77,7 @@ api/
│ ├── src/handlers.cpp
│ └── test/src/unit/handlers_test.cpp
│
-├── rawevtindexer/ ... | 4 | 4 | 1 | [{"id": "G0", "claim": "With the enable/disable of raw events deleted from the API, the spec.yaml documentation should be updated accordingly - the 'Raw Event Indexer' tag description still advertises enabling and disabling.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
wazuh__wazuh__35174 | wazuh/wazuh | 35,174 | defect | d50d41887573d5d0a818224801321f3d7b4b92d0 | c1fa42978e7124a7784a0e13dfc20d7275308e65 | Escape document id in delete bulk operations | ## Description
This PR fixes `_id` not being escaped in `delete` bulk operations in `indexer-connector`, causing OpenSearch to reject requests with `json_parse_exception` when the document ID contains control characters.
## Proposed Changes
- The fix applies `needEscape / escapeJSONString` to the `_id` field i... | diff --git a/src/shared_modules/indexer_connector/src/indexerConnector.cpp b/src/shared_modules/indexer_connector/src/indexerConnector.cpp
index 1bed776b747..0703515cfde 100644
--- a/src/shared_modules/indexer_connector/src/indexerConnector.cpp
+++ b/src/shared_modules/indexer_connector/src/indexerConnector.cpp
@@ -180... | 1 | 1 | 0 | [{"id": "G0", "claim": "Extract a small helper that appends an escaped JSON string into bulkData and reuse it from both builderBulkDelete() and builderBulkIndex(), to remove the duplicated ID-escaping block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wazuh__wazuh__35263 | wazuh/wazuh | 35,263 | defect | ac9e64720b233c89f079f28b2fff20d0aec87225 | 834a66c3369c2631cd5dbc3531491918f8d186fe | Fix use-after-free race conditions in AgentInfo and Syscollector during agent reload | ## Description
When an agent reload arrives while AgentInfo is executing its module coordination flow (pausing SCA, Syscollector, and FIM to synchronize a version bump), two independent use-after-free race conditions are triggered:
- `agent_info_stop()` was destroying the C++ object while its loop thread was still... | diff --git a/src/shared_modules/sync_protocol/src/agent_sync_protocol.cpp b/src/shared_modules/sync_protocol/src/agent_sync_protocol.cpp
index 1ee39b1c55e..84409c65648 100644
--- a/src/shared_modules/sync_protocol/src/agent_sync_protocol.cpp
+++ b/src/shared_modules/sync_protocol/src/agent_sync_protocol.cpp
@@ -969,7 +... | 3 | 3 | 2 | [{"id": "G0", "claim": "flush() calls m_spSyncProtocol->shouldStop() twice (once for the log level and again for the return value), which can behave inconsistently if the stop flag changes between calls; store the result in a local bool and use it for both.", "category": "maintainability", "verdict": "supported", "prio... | null |
wazuh__wazuh__35373 | wazuh/wazuh | 35,373 | defect | d553f7a14292f4f2e16dfb8884a09d2dd91b3839 | 9b091ade3b9b5c102b9c86933397d1b4244335ce | Normalize inode field to string for events and states to avoid warning | ## Description
During the first FIM scan on 5.0 (development), `wazuh-syscheckd` could emit massive amounts of:
> `WARNING: (6960): Inode field received with a wrong type, it must be a string.`
The root cause was that inode normalization (int → string) was only applied to `data.attributes.inode` for state record... | diff --git a/src/shared/src/fs_op.c b/src/shared/src/fs_op.c
index 33626075075..92fa83bc14f 100755
--- a/src/shared/src/fs_op.c
+++ b/src/shared/src/fs_op.c
@@ -106,7 +106,7 @@ short skipFS(const char *dir_name)
int i;
for ( i=0; skip_file_systems[i].name != NULL; i++ ) {
if(skip_file_sys... | 4 | 3 | 2 | [{"id": "G0", "claim": "In the new test callback, if result_type is not MODIFIED the function performs no assertions and the test can still pass; the callback should assert the expected MODIFIED type so regressions are caught deterministically.", "category": "testing", "verdict": "supported", "priority": "P1", "scope":... | null |
wazuh__wazuh__35380 | wazuh/wazuh | 35,380 | defect | 6376a98eb7c03e375dd8d3ce01e9255e1678b2c0 | 694feec35acae5a276ee24311a57423aabea98c0 | Skip macOS receipts that are no longer installed | ## Description
Closes #35248
Syscollector on macOS reports packages from residual receipts (`.plist` files) that no longer have installed payload on disk. This causes false-positive entries in the packages inventory and triggers unexpected CVE alerts in the vulnerability detector.
## Proposed Changes
- **BO... | diff --git a/src/data_provider/src/packages/pkgWrapper.h b/src/data_provider/src/packages/pkgWrapper.h
index 7ce7df55db6..976e2458a02 100644
--- a/src/data_provider/src/packages/pkgWrapper.h
+++ b/src/data_provider/src/packages/pkgWrapper.h
@@ -12,14 +12,21 @@
#ifndef _PKG_WRAPPER_H
#define _PKG_WRAPPER_H
+#include... | 3 | 3 | 2 | [{"id": "G0", "claim": "The header should include <utility> (or avoid std::move) because setReceiptLivenessChecker() uses std::move without it, risking non-portable builds that rely on transitive includes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
wazuh__wazuh__35421 | wazuh/wazuh | 35,421 | defect | ab7c0704eb7a20dd5ffcc8f943d27101a9cdf960 | a432a1a19d92d25f5b09145337c6f4cab815b587 | Skip vdFirst and polling for vdSync when a feedUpdate occurs | <!--
This template reflects sections that must be included in new Pull requests.
- If a determined section does not apply, it must not be removed but completed with `N/A`.
- Contributions from the community are really appreciated.
-->
## Description
The Vulnerability Detector performs a full scan for all agen... | diff --git a/src/shared_modules/indexer_connector/include/indexerConnector.hpp b/src/shared_modules/indexer_connector/include/indexerConnector.hpp
index a2e921aa0e1..878e6699276 100644
--- a/src/shared_modules/indexer_connector/include/indexerConnector.hpp
+++ b/src/shared_modules/indexer_connector/include/indexerConne... | 10 | 9 | 1 | [{"id": "G0", "claim": "The condition-variable predicate in waitForFeedReady() loads m_feedReady with memory_order_relaxed while the updater callback uses a release-store, and should use memory_order_acquire so the wake-up path consistently synchronizes with the release-store and the data prepared before it.", "categor... | null |
wbolster__black-macchiato__7 | wbolster/black-macchiato | 7 | defect | 7348594d6130b6b668f2dece2624d4444ea47fd2 | 4c57af15bf7947ac7557c6950a0c74f9f2f0e60b | Refactor so that wrapping functionality can be reused more easily | I wanted to incorporate black-macchiato into a plugin, so I refactored the `macchiato` function to expose the wrapping functionality. I'm not sure if this is the sort of change you'd want to merge, but in case it looks worthwhile, here it is :slightly_smiling_face: | diff --git a/macchiato.py b/macchiato.py
index a963f8b..4e942bf 100644
--- a/macchiato.py
+++ b/macchiato.py
@@ -2,102 +2,168 @@
import sys
import tempfile
import tokenize
+from typing import IO, Iterable, List, NamedTuple, Optional, Tuple, cast
import black
__version__ = "1.2.0"
+_single_indent = " " * 4
... | 5 | 5 | 1 | [{"id": "G0", "claim": "The module-level constant should be named SINGLE_INDENT (uppercase) instead of _single_indent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The prefix line in _fake_before_lines should use SINGLE_INDENT instead of _sing... | null |
we-like-parsers__pegen__21 | we-like-parsers/pegen | 21 | defect | 74eb1c37c8c2fab2767a349e9e3fb9bbcf1edd6e | 5ab448d13e559259e28bdf4800d82ea2fa65292b | Add a special SOFT_KEYWORD rule allowing to match any soft keyword | This is used once in the Python parser for error reporting. | diff --git a/docs/grammar.md b/docs/grammar.md
index b4912265..c1add4da 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -101,6 +101,18 @@ alternative won't be considered, even if some_rule or ')' fail
to be parsed.
+### Keywords
+
+Keywords are identified in the grammar as quoted names. Single quotes `'def'`... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test_soft_keyword never exercises the SOFT_KEYWORD alternative: with the \"number\" rule first, any input starting with \"number\" matches the first rule without testing the second, so the test should be reworked (e.g. several soft-keyword rules plus one rule accepting SOFT_KEYWORD tried... | null |
we-like-parsers__pegen__22 | we-like-parsers/pegen | 22 | defect | 04e1a31095cae20698b4a4853d3515cf49e4745f | 6a2639d77d9849ab99d928f0e0b26631ae71fbd9 | Add support for Forced grammar node in the parser generator | If the parsing fails, we immediately raise an error built using `make_syntax_error` | diff --git a/docs/grammar.md b/docs/grammar.md
index 9c39ab2c..0cf5514d 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -61,18 +61,18 @@ rule_name: e (',' e)* [',']
```
##### `e*`
-Match zero or more occurences of e.
+Match zero or more occurrences of e.
```
rule_name: (e1 e2)*
```
##### `e+`
-Match one... | 2 | 2 | 2 | [{"id": "G0", "claim": "Forced applied to a group currently fails to generate a parser, and the behavior of forced on groups is untested; make forced work on groups (e.g. `&&( a | b)`) and add a test covering how it behaves on groups.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
we-like-parsers__pegen__41 | we-like-parsers/pegen | 41 | defect | 6b8faab23767607548882eeffaa2e6a4d332e7c7 | b10ed922faab226be080787b181c0824086a8a1c | python.gram: reflect changes in cpython | See https://github.com/python/cpython/commit/e5f13ce5b48b551c09fdd0faeafa6ecf860de51c
I will try to add validation of the line and offsets values in the tests but maybe not before next week. | diff --git a/data/python.gram b/data/python.gram
index 598b186d..e7051975 100644
--- a/data/python.gram
+++ b/data/python.gram
@@ -1580,10 +1580,10 @@ invalid_arguments[NoReturn]:
"invalid syntax. Maybe you meant '==' or ':=' instead of '='?", a, b
)
}
- | a=args for_if_clauses {
- ... | 6 | 4 | 1 | [{"id": "G0", "claim": "The end node passed for the 'Generator expression must be parenthesized' error (b) is not the node furthest into the comprehension; the code needs to use the node further away in the comprehension, as CPython's C helper does.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
wealthfolio__wealthfolio__615 | wealthfolio/wealthfolio | 615 | defect | 464e59ac1037ba278e3c03fde62627362bc63bbd | b5e8d43445a85a3a099ddc4ef462acc2487c867d | Add splits on price syncs for accurate portfolio performance history | ## Description
Made the following changes
1. market-data/src/models/mod.rs — Add a SplitEvent { date, ratio } struct to store split events
2. market-data/src/lib.rs — re-exports SplitEvent
3. market-data/src/provider/traits.rs — get_splits() optional method on MarketDataProvider (default:
NotSupported)... | diff --git a/crates/core/src/quotes/client.rs b/crates/core/src/quotes/client.rs
index 3ef146cba7..8fad97c2c1 100644
--- a/crates/core/src/quotes/client.rs
+++ b/crates/core/src/quotes/client.rs
@@ -41,7 +41,7 @@ use wealthfolio_market_data::{
AlphaVantageProvider, AssetProfile as MarketAssetProfile, FinnhubProvid... | 2 | 2 | 2 | [{"id": "G0", "claim": "Inserting one SPLIT activity per account for the same asset/date/ratio over-applies splits during valuation when an asset has activity in more than one account, because calculate_split_factors aggregates by asset_id so two generated rows become a cumulative factor.", "category": "correctness", "... | null |
wealthfolio__wealthfolio__635 | wealthfolio/wealthfolio | 635 | defect | de7d1da2f2594840ec699b675440fd3133f489d6 | 6cb405246bc496bf43d83cdb66348f2e515e0269 | Optimize portfolio updates | ### Description
Resolves #633
This PR changes the logic for how portfolio snapshot and valuations recalculation works. Previously there were two styles of updates, full & incremental. Full updates would recalculate snapshots and valuations for every day since the beginning of the portfolio. For portfolios with l... | diff --git a/apps/server/src/api/alternative_assets.rs b/apps/server/src/api/alternative_assets.rs
index 117534d276..5c6cfc88ba 100644
--- a/apps/server/src/api/alternative_assets.rs
+++ b/apps/server/src/api/alternative_assets.rs
@@ -30,6 +30,7 @@ use wealthfolio_core::{
UpdateAssetDetailsRequest as CoreUpdat... | 2 | 2 | 2 | [{"id": "G0", "claim": "In SnapshotRecalcMode::SinceDate, seeding initial_snapshot_for_acc from the inclusive get_latest_snapshot_before_date(acc_id, *since) can start from a keyframe on the cutoff date itself, so that day's activities are applied again and snapshots/valuations after backdated activity edits are double... | null |
wealthfolio__wealthfolio__733 | wealthfolio/wealthfolio | 733 | defect | 6584402d0389a643653b6b7f3cd3bb3624c6258d | d016573082c6de9aa59d5c28dcc1ed4fc2b7ae32 | fix(frontend): allow future manual activity dates on web (#624) | ## Description
Root cause:
- Desktop/web manual activity forms use the shared `DatePicker` with its default `allowFutureDates={false}`, which clamps `activityDate` to today.
- Mobile and backend already permit future-dated activities, so desktop/web edit and create flows were inconsistent and blocked valid future date... | diff --git a/apps/frontend/src/pages/activity/components/forms/__tests__/buy-form.test.tsx b/apps/frontend/src/pages/activity/components/forms/__tests__/buy-form.test.tsx
index 08d63e94a0..8b02907d21 100644
--- a/apps/frontend/src/pages/activity/components/forms/__tests__/buy-form.test.tsx
+++ b/apps/frontend/src/pages... | 1 | 1 | 1 | [{"id": "G0", "claim": "Since every caller of DatePicker now passes allowFutureDates={true}, the default `allowFutureDates = false` in date-picker.tsx is wrong and should be flipped to true (or the prop removed), which would turn the 13-file PR into a ~2-file change.", "category": "design", "verdict": "supported", "pri... | null |
wealthfolio__wealthfolio__767 | wealthfolio/wealthfolio | 767 | defect | d793866b391f102f13bf8fdcfc61b2d8eceb46a7 | 661cccdb051d1a045f73ba69848419358a287c07 | feat(income): add account filter to income page with mobile drawer | ## Changes
### Frontend
- Added account filter dropdown to income page (desktop) and mobile filter sheet drawer
- Created new `IncomeMobileFilterSheet` component for mobile filter interface
- Added `createPortfolioAccount()` helper function to create synthetic "All Portfolio" account for filter defaults
- Updated inco... | diff --git a/apps/frontend/src/adapters/shared/portfolio.ts b/apps/frontend/src/adapters/shared/portfolio.ts
index 85be1ce4a6..42bd117c22 100644
--- a/apps/frontend/src/adapters/shared/portfolio.ts
+++ b/apps/frontend/src/adapters/shared/portfolio.ts
@@ -27,8 +27,8 @@ export const getHoldings = async (accountId: string... | 1 | 1 | 1 | [{"id": "G0", "claim": "After adding account_id filtering, get_income_summary still computes monthly-average denominators from the portfolio-wide get_first_activity_date_overall(), so in environments where another account has older history the per-account summaries can divide by too many months and understate monthlyAv... | null |
wealthfolio__wealthfolio__843 | wealthfolio/wealthfolio | 843 | defect | 23bc088778898a499aab658694e2e2a8c1d208f1 | 67d55a95adc308c9882dd37513ec5650d6090b0f | feat: symbol mapping validation with real-time feedback and E2E tests | ## Summary
- **Real-time symbol validation** in the Market Data tab: each provider override row now validates the typed symbol against the selected provider (Yahoo Finance, Börse Frankfurt, etc.) with an 800ms debounce, showing a spinner → green check or red error icon
- **Provider-specific validation**: threaded `pre... | diff --git a/.claude/skills/run-e2e-tests/SKILL.md b/.claude/skills/run-e2e-tests/SKILL.md
new file mode 100644
index 0000000000..30958b953a
--- /dev/null
+++ b/.claude/skills/run-e2e-tests/SKILL.md
@@ -0,0 +1,14 @@
+---
+name: run-e2e-tests
+description: >
+ How to run Wealthfolio E2E tests correctly. Use this skill ... | 7 | 6 | 3 | [{"id": "G0", "claim": "The web adapter sends the query parameter as \"provider_id\" (snake_case) while the Axum struct's camelCase serde rename expects \"providerId\", so provider-specific validation silently falls back to default provider resolution in web mode; it should send \"providerId\".", "category": "correctne... | null |
wealthfolio__wealthfolio__887 | wealthfolio/wealthfolio | 887 | defect | aec62f82ca9eb08b009d7c8776df9e684fde2ec5 | 946272664eba17cf57450b88a99fa33eca8387f9 | Link existing transfer activities as an internal pair + fix Transfer In cost basis edit | ## Description
Two related improvements to manual transfer handling.
### 1. Link two existing transfers as an internal pair (new feature)
Users who created two separate external transfer activities (one `TRANSFER_IN`, one `TRANSFER_OUT`) had no way to retroactively pair them — the form path can create internal pairs... | diff --git a/apps/frontend/src/adapters/shared/activities.ts b/apps/frontend/src/adapters/shared/activities.ts
index 66ee4c87c3..55708f56c7 100644
--- a/apps/frontend/src/adapters/shared/activities.ts
+++ b/apps/frontend/src/adapters/shared/activities.ts
@@ -140,6 +140,21 @@ export const deleteActivity = async (activit... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new linkTransferActivities adapter invokes link_transfer_activities, but the web invoke layer does not register that command, so in web mode the call throws 'Unsupported command link_transfer_activities' and the feature is broken there.", "category": "correctness", "verdict": "supported", "p... | null |
wealthfolio__wealthfolio__936 | wealthfolio/wealthfolio | 936 | defect | beaba34806d47ae802d15ad77ae627567541432a | e028d2f9587c1c0da24777eb9932ecd0be5f99cd | Expose quote sync status reasons | ## Summary
- return latest quote snapshots for requested assets even when no provider quote exists, including a `noQuoteReason` for manual pricing, inactive assets, expired options, matured bonds, error cooldown, pending sync, and generic no-data states
- tooltip the existing "No quotes" warning on desktop and mobile ... | diff --git a/apps/frontend/src/lib/types.ts b/apps/frontend/src/lib/types.ts
index 40ce127955..53f467aaa1 100644
--- a/apps/frontend/src/lib/types.ts
+++ b/apps/frontend/src/lib/types.ts
@@ -672,10 +672,14 @@ export interface Quote {
}
export interface LatestQuoteSnapshot {
- quote: Quote;
+ quote?: Quote | null;... | 1 | 1 | 1 | [{"id": "G0", "claim": "get_latest_quotes_snapshot iterates the requested asset_ids and uses quotes.remove(asset_id), so duplicate asset IDs in the user-provided request body consume the real quote on the first pass and later passes create quote: None snapshots that overwrite the earlier entry, causing false 'No quotes... | null |
weareprestatech__hotpdf__105 | weareprestatech/hotpdf | 105 | defect | 526ca85cf41e994c57b5a0fd474af82699c734e0 | 2120f3c2bdbc9a28b098389a3d56252a9009e002 | feat: Add include_annotation_spaces flag | - good feature but need to be tested more so for now flag is added to disable | diff --git a/hotpdf/hotpdf.py b/hotpdf/hotpdf.py
index c77c39e..3f0d8b5 100644
--- a/hotpdf/hotpdf.py
+++ b/hotpdf/hotpdf.py
@@ -20,6 +20,7 @@ def __init__(
page_numbers: Optional[list[int]] = None,
extraction_tolerance: int = 4,
laparams: Optional[dict[str, Union[float, bool]]] = None,
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the add_anno parameter to a full, semantic name such as include_annotation_spaces, since add_anno could mean anything.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__grafanalib__301 | weaveworks/grafanalib | 301 | defect | e010c779d85f5ff28896ca94f549f92e4170b13e | 3625ee7775ed67c11a06d1ab0c339e216324f072 | Feature/cloudwatch target | closes #145 | diff --git a/docs/api/grafanalib.rst b/docs/api/grafanalib.rst
index 4638337a..7ac152a6 100644
--- a/docs/api/grafanalib.rst
+++ b/docs/api/grafanalib.rst
@@ -4,6 +4,14 @@ grafanalib package
Submodules
----------
+grafanalib.cloudwatch module
+----------------------------
+
+.. automodule:: grafanalib.cloudwatch
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Python 2/3 version check is unnecessary since grafanalib no longer supports py2.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add a note to the changelog about what the pull request adds.", "category": "docum... | null |
weaveworks__grafanalib__36 | weaveworks/grafanalib | 36 | defect | 39cf167ffebbd3ac1ef8976ee970ce8e22fea295 | 6d0e7e54560b8ed9fbb0881976c5ecbd5eff8050 | Zabbix Triggers panel added | Grafana Zabbix triggers panel.
http://docs.grafana-zabbix.org/reference/panel-triggers/ (page exists but its blank =)) | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 544b72d1..a3a97336 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -14,6 +14,7 @@ NEXT (YYYY-MM-DD)
* OpenTSDB datasource support added (https://github.com/weaveworks/grafanalib/pull/27)
* Additional fields for ``XAxis`` (https://github.com/weaveworks/grafanalib/pu... | 2 | 2 | 1 | [{"id": "G0", "claim": "The Percent validator should not be restricted to `int` but accept numbers generally.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Zabbix panel's mutable defaults — fontSize (a Percent) and triggerSeverity (severity colors) ... | null |
weaveworks__grafanalib__380 | weaveworks/grafanalib | 380 | defect | e58492dca61e50c2dd868c8d121d5e13b48a87b2 | 871ae0cc76d09c835504bf1a44292c6dd66a088d | Add extraJson attribute to the Panel class for overriding the panel with raw JSON | ## What does this do?
This adds a new attribute called `extraJson` to the `Panel` class, enabling users to add attributes that are not currently supported by grafanalib, for example `fillGradient` and color mappings:
Example 1, a Graph with aligned y-axes and a fill gradient:
```py
Graph(
title="...",
... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 756b404b..185c5db0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -9,6 +9,7 @@ x.x.x (TBD)
* Added missing attributes from xAxis class
* Added transformations for the Panel class (https://grafana.com/docs/grafana/next/panels/transformations/types-options/#transforma... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a docstring line to the Panel class describing the new extraJson attribute.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__grafanalib__403 | weaveworks/grafanalib | 403 | defect | 850c02b7fec3f2c28ba5ceef8ead9172aa461f58 | e074316796c4af771194abfb0d9120e27f54b848 | Discrete panel | ## What does this do?
Adds basic support for Discrete https://grafana.com/grafana/plugins/natel-discrete-panel/ including panel itself and color mappings (DiscreteColorMappingItem to keep things tidy).
## Why is it a good idea?
Adds "Discrete".
## Context
Discrete inherits from Panel to keep the changes small.... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index ed265c00..173ff7d7 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,12 +5,12 @@ Changelog
x.x.x (TBD)
===================
-* Added ...
+* Added Discrete panel
Changes
-------
-* Changed ...
+* Changed Refine expectations of is_color_code
0.5.14 (2021-09-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'datasource', 'grid', 'targets' and 'title' entries in Discrete.to_json_data can all be removed, since they will be inherited from the Panel class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__grafanalib__410 | weaveworks/grafanalib | 410 | defect | 62d1c7577c8fad9fe0c2e934fd2bb8beb3f7518c | a22fef48f146097ab335cd208ce3182d3b9cff9c | Support all display options in the Logs panel | <!--
Hi, thanks for this PR! We are really grateful, and deeply appreciate the work and effort involved.
It might take a little while for us to get around to reviewing it. Sorry for the delay.
To help things go as quickly as possible, please:
- update the CHANGELOG in your PR
- keep the PR as small and focused... | diff --git a/grafanalib/core.py b/grafanalib/core.py
index 20489645..b4100576 100644
--- a/grafanalib/core.py
+++ b/grafanalib/core.py
@@ -3098,15 +3098,23 @@ class Logs(Panel):
Grafana doc on Logs panel: https://grafana.com/docs/grafana/latest/panels/visualizations/logs-panel/
:param showLabels: Show or hi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please add a new-version section to the Changelog documenting that the missing Logs panel attributes were added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__grafanalib__423 | weaveworks/grafanalib | 423 | defect | 94175f42d1490cb0ed9bed6228b9ed5bb4788461 | 470597f493b97d3cc8de23f9d988b04ffa3ee6f2 | Add Cloudwatch Logs Insights Target | <!--
Hi, thanks for this PR! We are really grateful, and deeply appreciate the work and effort involved.
It might take a little while for us to get around to reviewing it. Sorry for the delay.
To help things go as quickly as possible, please:
- update the CHANGELOG in your PR
- keep the PR as small and focused... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 32b3d0bc..32630534 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -6,6 +6,7 @@ x.x.x (TBD)
==================
* Added missing attributes to the Logs panel
+* Added Cloudwatch Logs Insights Target
* ...
Changes
diff --git a/grafanalib/cloudwatch.py b/grafanalib... | 1 | 1 | 0 | [{"id": "G0", "claim": "The previous PR's rename of `wrapLogMessages` to `wrapLogMessage` breaks compatibility with existing dashboards, so keep the plural name — or, if the singular stays, also update the docstring to drop the 's'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existin... | null |
weaveworks__grafanalib__429 | weaveworks/grafanalib | 429 | defect | 02b5da00f906d68f0bab8cb5dab357657b17f7f7 | 5884288246ab77d9cb92315e9352cb4a624c3925 | Add SQL Target | This change is supposed to make it possible to define SQL queries as well for targets so Data Sources like MySQL, PostgreSQL can work too.
## What does this do?
Creates a New Target class named SqlTarget. With this now it is possible to define panels (Graphs) with SQL queries in them for datasources like MySQL and ... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 32630534..0e9c0c66 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -14,6 +14,16 @@ Changes
* ...
+0.6.1 (TBD)
+==================
+
+* Added new SqlTarget to core to be able to define SQL queries as well
+
+Changes
+-------
+
+* Add SqlTarget
+
0.6.0 (2021-10-26)... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new SqlTarget code has pep8/linting issues (e.g. missing blank lines) that should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added to check that the new SqlTarget class serialises.", "ca... | null |
weaveworks__grafanalib__512 | weaveworks/grafanalib | 512 | defect | 181b6c9d69dc88b4524ad008b9212932de750f49 | ab4ce00102d7dfa7773cba805c35e94e1a551f65 | Add ePict Plugin | ## What does this do?
Make the [ePict](https://grafana.com/grafana/plugins/larona-epict-panel/) plugin available.
## Why is it a good idea?
More functionality | diff --git a/.gitignore b/.gitignore
index 4edeec2b..7333a110 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,7 @@ test-results/junit-*.xml
.ensure-*
/.tox
/.coverage
-/venv/
+/venv*/
/.idea/
# Documentation
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index ff1af03e..2e08dd6f 100644
--- a/CHANGELOG.rst
+++ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The changes made to the examples and docs should be moved into a separate PR, because the reviewer is not sure they will work.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deleted files grafanalib/tests/examples/table-exampl... | null |
weaveworks__grafanalib__523 | weaveworks/grafanalib | 523 | defect | fcbc30ebf2c8c475aa21931b91979b1eadf91f30 | e7e33c19ed22b0eb49a40ca13af56cd9475de242 | Grafana 8.x new Alert Rule | <!--
Hi, thanks for this PR! We are really grateful, and deeply appreciate the work and effort involved.
It might take a little while for us to get around to reviewing it. Sorry for the delay.
To help things go as quickly as possible, please:
- update the CHANGELOG in your PR
- keep the PR as small and focused... | diff --git a/.gitignore b/.gitignore
index 7333a110..80bdfe77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ test-results/junit-*.xml
/.coverage
/venv*/
/.idea/
+/.vscode/
# Documentation
docs/build
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 209f6c9c..035a07aa 100644
--- a/CHANGELOG.rst
+++ b/C... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request fails flake8, and a fix for the failing lint has been submitted as a separate pull request.", "category": "style", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add basic documentation, including an example usage of the new AlertRule/Al... | null |
weaveworks__grafanalib__535 | weaveworks/grafanalib | 535 | defect | 633f0a3d00fc13ac5acc98019113d2c870edc3c6 | 372a37402f4795bd963e48b9d55cdc311b10023b | Add support for Grafana alerts in v9 |
Had to add a separate class for v8 and v9 alerts as the format was quite different, this meant I have renamed the AlertRule class to
Changes the name of `AlertRule` to `AlertRulev8` and `AlertRulev9`.
| diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml
index d66bb0c0..2c0eb315 100644
--- a/.github/workflows/publish-to-pypi.yml
+++ b/.github/workflows/publish-to-pypi.yml
@@ -5,7 +5,7 @@ on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 t... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new alerting support still needs documentation added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new alert classes could use some more input validation.", "category": "correctness", "verdict": "supported", "prio... | null |
weaveworks__grafanalib__622 | weaveworks/grafanalib | 622 | defect | bc85259bf774d88d6355cd7f181b34c0eea981dd | e54b7c62470ffa57543d87350c871ffdc7b1df6f | Main improved dashboard links | <!--
Hi, thanks for this PR! We are really grateful, and deeply appreciate the work and effort involved.
It might take a little while for us to get around to reviewing it. Sorry for the delay.
To help things go as quickly as possible, please:
- update the CHANGELOG in your PR
- keep the PR as small and focused... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index af9c2c7d..aa3aa071 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,6 +5,10 @@ Changelog
0.x.x (?)
==================
+* Extended DashboardLink to support links to dashboards and urls, as per the docs_
+
+.. _`docs`: https://grafana.com/docs/grafana/latest/dashbo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The DASHBOARD_TYPE Literal's first member should be 'dashboard' instead of 'dashboards', matching the default value set on the class.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
weaveworks__mesh__101 | weaveworks/mesh | 101 | defect | d4a110823e88dfd185768e7eb60c6f3d604cef7c | 63b5378c0f75b4c4e47fdae33fac1a6304d59a8a | make gossipInterval configurable through router config |
Fixes #100 | diff --git a/router.go b/router.go
index 27be495..a2abbac 100644
--- a/router.go
+++ b/router.go
@@ -17,11 +17,12 @@ var (
// ChannelSize is the buffer size used by so-called actor goroutines
// throughout mesh.
ChannelSize = 16
+
+ gossipInterval = 30 * time.Second
)
const (
tcpHeartbeat = 30 * time.Se... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new gossipInterval field on Config should be exported so callers can set it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Having the interval as a package-scoped variable will get confusing if two different callers try to co... | null |
weaveworks__mesh__117 | weaveworks/mesh | 117 | defect | b7aea39ecc405bc9a791f96312eca9fd0f328513 | 19a7593ae4985691a3b5fdad76e7bbdf99d08b14 | serialize broadcast topology updates and coalesce updates | This PR is an attempt to address high topology updates gossip's that can result in certain use-cases.
- minimizes the concurrent topology gossip broadcast updates
- coalesce the topology updates when possible before sending gossip broadcast
Fixes #116 | diff --git a/local_peer.go b/local_peer.go
index 833da7b..b71a65f 100644
--- a/local_peer.go
+++ b/local_peer.go
@@ -8,13 +8,20 @@ import (
"time"
)
+const (
+ topologyUpdateInterval = 1 * time.Second
+)
+
// localPeer is the only "active" peer in the mesh. It extends Peer with
// additional behaviors, mostly to... | 7 | 7 | 3 | [{"id": "G0", "claim": "The new function name brodcastTopologyUpdates misspells 'broadcast' and should be spelled with 'broad'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The timer drain block (timer.Stop plus the select that drains C) is no... | null |
weaveworks__mesh__124 | weaveworks/mesh | 124 | defect | 7c98a184dc5cf075def692ba42f3e9ad443dff49 | 68f49455f954d4249d7be2ae4f368ca48fa29f41 | Tweak some coefficients | ### Double the number of neighbours we gossip to, for improved coverage.
Previously a 3-node cluster would send to 1 peer each time, and a 7-node cluster to 2, so information could take a while to get everywhere.
This calculation maintains the spirit that the number grows slowly in larger clusters - in a 100-node c... | diff --git a/gossip_test.go b/gossip_test.go
index bb597b7..d7ddd27 100644
--- a/gossip_test.go
+++ b/gossip_test.go
@@ -294,7 +294,7 @@ func TestRandomNeighbours(t *testing.T) {
// Run randomNeighbours() several times, and count the distribution
for trial := 0; trial < nTrials; trial++ {
targets := r.rand... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment at routes.go line 139 ('we choose log2(n_peers) *neighbours*, not peers') needs updating to match the new 2*log2 coefficient the pull request introduced.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__mesh__33 | weaveworks/mesh | 33 | defect | f51319a38f36573c377a6640d6e835adbd9d3fc9 | 6a673819c6f7a50d855a6a68f90d9cf07c811522 | shrink Connection interface | RemoteConnection represents information about connections that another peer has. As such it does not need tie breaking, logging or shutdown.
For testing we need mock `LocalConnections`, so we introduce an interface, imaginatively named `LConnection`, which both the real and mock `LocalConnections` implement.
`LConnec... | diff --git a/connection.go b/connection.go
index 3a0bb06..eb02b4c 100644
--- a/connection.go
+++ b/connection.go
@@ -14,11 +14,17 @@ type Connection interface {
Remote() *Peer
getLocal() *Peer
- breakTie(Connection) connectionTieBreak
remoteTCPAddress() string
isOutbound() bool
isEstablished() bool
+}
+
+ty... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added exported LConnection interface should be renamed to something that says what it is for (the two reviewers settled on ourConnection) and should not be exported, since it is only used within package mesh.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i... | null |
weaveworks__scope__1225 | weaveworks/scope | 1,225 | defect | c9b323ff84674cb31ebd81e5e220e9145ce33103 | 1a99bfc8cf2a8650fe3b65c9b7df159c940c7e5e | Set the memory and open files maximums based on the host | Fixes #1149
Now the max on Memory, and Open Files metrics are set based on the host.
However, it seems like the sparklines don't use the max value? @davkal @foot ?
| diff --git a/probe/docker/container.go b/probe/docker/container.go
index e575cec209..65f5be5344 100644
--- a/probe/docker/container.go
+++ b/probe/docker/container.go
@@ -273,7 +273,7 @@ func (c *container) ports(localAddrs []net.IP) report.StringSet {
func (c *container) memoryUsageMetric(stats []docker.Stats) report... | 1 | 1 | 1 | [{"id": "G0", "claim": "The open files limit (and by extension the max memory) fetched by the reporter is a host-level value, whereas the limit should be the per-process limit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
weaveworks__scope__1245 | weaveworks/scope | 1,245 | defect | 201c29050361ad233ffd9747ecdaf340d6992d72 | fbd86f1d8c82c9dec9c66b898cf15f1dd9eba455 | Ensure connection rows have unique IDs. | Fixes #1218
Introduces a new type for ConnectionsTable and ConnectionsRow.
TODO(@davkal)
- [x] update UI for `node_id` and field name changes.
| diff --git a/Makefile b/Makefile
index 528491b005..6b8ff6568d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CODECGEN_EXE=$(CODECGEN_DIR)/bin/codecgen_$(shell go env GOHOSTOS)_$(shell go en
GET_CODECGEN_DEPS=$(shell find $(1) -maxdepth 1 -type f -name '*.go' -not -name '*_test.go' -not -name '*.codecgen.go' -n... | 6 | 4 | 2 | [{"id": "G0", "claim": "The connections API returns snake_case JSON field names (topology_id, node_id) where the JS side expects camelCase (topologyId, nodeId); they should be renamed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The node id is passed ... | null |
weaveworks__scope__1290 | weaveworks/scope | 1,290 | defect | 7e9edb03a757a73badad1eb7ee656d9f9d170a30 | eda2a208c6d443dbe3f08fd9f4b3990bfc561eb4 | Add control for removing stopped docker containers. | Also fixes #1367
| diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js
index 2094e257ba..1b654a9343 100644
--- a/client/app/scripts/actions/app-actions.js
+++ b/client/app/scripts/actions/app-actions.js
@@ -322,6 +322,14 @@ export function receiveApiDetails(apiDetails) {
});
}
+export ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The remove control should not sit first in the details panel; controls should be ordered lifecycle-wise (start, restart, pause, stop, remove).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing a container takes 15 seconds, s... | null |
weaveworks__scope__1332 | weaveworks/scope | 1,332 | defect | 4810bbc572c5eb29605c5073b7a204b0e6ff107b | 415ac7c5db5c47861022a8e84b3fa6d682426f08 | Support docker rename events | Fixes #1091
@foot, doesn't propagate through to the canvas, just the details panel.
| diff --git a/client/app/scripts/charts/nodes-chart.js b/client/app/scripts/charts/nodes-chart.js
index df4a5f887d..b64d53efb6 100644
--- a/client/app/scripts/charts/nodes-chart.js
+++ b/client/app/scripts/charts/nodes-chart.js
@@ -333,9 +333,6 @@ export default class NodesChart extends React.Component {
const st... | 4 | 3 | 2 | [{"id": "G0", "claim": "The reviewer is worried the rename doesn't come through to the canvas and asks whether the backend is sending the right data to the frontend, since the canvas does not in-place-update on rename.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
weaveworks__scope__1386 | weaveworks/scope | 1,386 | defect | a81b116672df6e4008653711244a88c760519d75 | d709b906f06f1101abe56209dd9deb3409f854e3 | Filter by Kubernetes Namespaces | Fixes #1340
Won't really work in multitenant, as the topologyRegistry shouldn't
change. We need to apply it transiently on each call, on a per-report
basis.
Options are:
a) replace topologyRegistry.walk() with topologyRegistry.Topologies(),
and then modify them, in renderTopologies.
b) make APITopologyDesc.Options ... | diff --git a/app/api_topologies.go b/app/api_topologies.go
index 0d4a61fdd2..adf2611129 100644
--- a/app/api_topologies.go
+++ b/app/api_topologies.go
@@ -1,6 +1,7 @@
package app
import (
+ "fmt"
"net/http"
"sort"
"sync"
@@ -8,6 +9,7 @@ import (
"github.com/gorilla/mux"
"golang.org/x/net/context"
+ "git... | 6 | 6 | 3 | [{"id": "G0", "claim": "The services topology is still showing the wrong node-count: it shows the pod node count instead of the service node count.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Deleted pods/services should be filtered out when figu... | null |
weaveworks__scope__1531 | weaveworks/scope | 1,531 | defect | 25685c55f9054e53a83ad5b265e0a4325db0bb89 | cb9e2d660418f293b66886a8f6b8ac4d6690a87f | Use image name without version as id. | Fixes #1521
As part of this, I made it so parent links don't have to be real nodes; to simplify, I also removed the container image parent for processes.
| diff --git a/probe/docker/reporter.go b/probe/docker/reporter.go
index 640689707a..a7eb051f2f 100644
--- a/probe/docker/reporter.go
+++ b/probe/docker/reporter.go
@@ -37,7 +37,7 @@ var (
}
ContainerImageMetadataTemplates = report.MetadataTemplates{
- ImageID: {ID: ImageID, Label: "Image ID", From: repor... | 3 | 1 | 1 | [{"id": "G0", "claim": "Before merging, the pull request's behaviour with old probes (probes without this change) should be considered and tested.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Removing the ContainerImage parent from container nodes mea... | null |
weaveworks__scope__1579 | weaveworks/scope | 1,579 | defect | f06731183bdea4ebdcf1c4462fab88cae10bc978 | 3542c6b2f84e59af93242dbd90ae72149e1d8835 | probe: add timeout to publisher and cancel requests on Stop() | Fixes #1576
| diff --git a/probe/appclient/app_client.go b/probe/appclient/app_client.go
index 84a47fec6f..92fa3a8f0d 100644
--- a/probe/appclient/app_client.go
+++ b/probe/appclient/app_client.go
@@ -19,9 +19,10 @@ import (
)
const (
- initialBackoff = 1 * time.Second
- maxBackoff = 60 * time.Second
- dialTimeout = 5 * t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The mutex around setting req.Cancel is unnecessary, since reading c.quit from another thread without concurrent modification is safe.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__1684 | weaveworks/scope | 1,684 | defect | 528936af4b08b3c9fa8583964892614c5c1b4e3a | bbd75ddd24b87629c5c7348e6a0e9e54f4ea96d1 | Add options for storing memcached reports with different compression levels | Also factor out functions for calculating the keys we use for storage. Not intrinsically related to this change, but helped me understand what was going on.
Note that now if we have the same compression level between memcache & s3, we'll duplicate work.
Fixes #1671
<!-- Reviewable:start -->
---
This change is [<im... | diff --git a/app/multitenant/aws_collector.go b/app/multitenant/aws_collector.go
index 2365f8c551..346b7ebb47 100644
--- a/app/multitenant/aws_collector.go
+++ b/app/multitenant/aws_collector.go
@@ -1,7 +1,6 @@
package multitenant
import (
- "bytes"
"crypto/md5"
"fmt"
"io"
@@ -338,45 +337,55 @@ func (c *awsCo... | 3 | 2 | 0 | [{"id": "G0", "claim": "calculateReportKey should be renamed to make clear it computes the S3 key (e.g. calculateS3Key or calculateReportS3Key).", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "S3Store.StoreBytes should be inlined into StoreReport s... | null |
weaveworks__scope__1863 | weaveworks/scope | 1,863 | defect | 94cd73c72b6155e499df61018ca64b0cac593694 | f512a030dbb009289550e5d31638990d80659d8b | Add pseudo-nodes for known services | Fixes #1082
| diff --git a/probe/endpoint/dns_snooper.go b/probe/endpoint/dns_snooper.go
new file mode 100644
index 0000000000..eb81dcd72f
--- /dev/null
+++ b/probe/endpoint/dns_snooper.go
@@ -0,0 +1,217 @@
+package endpoint
+
+import (
+ "bytes"
+ "fmt"
+ "math"
+ "time"
+
+ log "github.com/Sirupsen/logrus"
+ "github.com/bluele/gca... | 8 | 7 | 2 | [{"id": "G0", "claim": "The two DNS-snooper configuration flags (enabled and interface) are overkill/YAGNI and the snooper should simply be on by default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Stuffing names obtained by snooping forward DNS reso... | null |
weaveworks__scope__1868 | weaveworks/scope | 1,868 | defect | 94cd73c72b6155e499df61018ca64b0cac593694 | a0bef49991ee1e474b95be6e74fc5c42b5d46b01 | fix inbound internet connections counts | Fixes #1867.
| diff --git a/render/detailed/connections.go b/render/detailed/connections.go
index ce8deaa656..fd75284616 100644
--- a/render/detailed/connections.go
+++ b/render/detailed/connections.go
@@ -57,32 +57,9 @@ func (s connectionsByID) Less(i, j int) bool { return s[i].ID < s[j].ID }
// Intermediate type used as a key to... | 1 | 1 | 0 | [{"id": "G0", "claim": "Create an ID-printing helper function instead of repeating the identical ID-formatting fmt.Sprintf invocation in many test places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__1875 | weaveworks/scope | 1,875 | defect | 7b0f0cb158d3f8e468913ee5658ddbfae933b8b7 | bcf21b1966a79a4cace8ccfcfc4116be437edf7a | show more details of a node's internet connections | in the details panel, instead of showing connections to/from the internet as "TheInternet <port>", we now show "<dns-name>(<ip_addr>) <port>" (or just "<ip_addr> <port>" if we don't have a dns name).
Fixes #1713.
| diff --git a/render/detailed/connections.go b/render/detailed/connections.go
index fd75284616..cc5750ea8e 100644
--- a/render/detailed/connections.go
+++ b/render/detailed/connections.go
@@ -57,9 +57,9 @@ func (s connectionsByID) Less(i, j int) bool { return s[i].ID < s[j].ID }
// Intermediate type used as a key to ... | 1 | 1 | 0 | [{"id": "G0", "claim": "For sets with more than one reverse-DNS name, the renderer should either display all the names or select the displayed name in a more meaningful way; at the very least the arbitrary choice of set[0] needs a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
weaveworks__scope__1877 | weaveworks/scope | 1,877 | defect | 2db892fd538af6a8b949b219f057013e945e6471 | ac741a034e8ec750778a391f341f59f34781a508 | Fixes left alignment of numbers in the details panel tables | - By declaring more things to be numbers
- Also fixes initial sort direction of number columns from asc to desc.
Fixes #1794
| diff --git a/client/app/scripts/components/node-details/node-details-table.js b/client/app/scripts/components/node-details/node-details-table.js
index 754841e014..9d39356494 100644
--- a/client/app/scripts/components/node-details/node-details-table.js
+++ b/client/app/scripts/components/node-details/node-details-table.... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new Column field should be named `Datatype` instead of `DataType`, to be consistent with the field's name in `MetadataRow`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Datatype should be taken out of the cells ... | null |
weaveworks__scope__1901 | weaveworks/scope | 1,901 | defect | 0cc794248b52215c67a9eb0101e0e7ad8b2350fa | de5890a56ff99e92c07f04a5b041963c13d63486 | Allow user to specify URLs on the command line, and use that to allow per-target tokens. | Fixes #1696
| diff --git a/app/controls_test.go b/app/controls_test.go
index 2e1a7c5209..6700d8fbaf 100644
--- a/app/controls_test.go
+++ b/app/controls_test.go
@@ -4,6 +4,7 @@ import (
"net"
"net/http"
"net/http/httptest"
+ "net/url"
"strings"
"testing"
"time"
@@ -43,7 +44,7 @@ func TestControl(t *testing.T) {
Value... | 5 | 4 | 1 | [{"id": "G0", "claim": "Default the target port to 80/443 when a scheme is specified and no port is given, and to 4040 when neither scheme nor port is given (explicit port always wins), so existing hostname-only usage is preserved.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
weaveworks__scope__1912 | weaveworks/scope | 1,912 | defect | 2bc31e8728ae3b3e366d73d3276329e9e4d1d88d | bec4d281c3612e4c4071ac23e134acd302540b5e | Add label_minor to tooltips in connections table | Sometimes label is not enough to distinguish between rows.
Fixes #1844
| diff --git a/client/app/scripts/components/node-details/node-details-table-node-link.js b/client/app/scripts/components/node-details/node-details-table-node-link.js
index f821f0f110..b8d787abf7 100644
--- a/client/app/scripts/components/node-details/node-details-table-node-link.js
+++ b/client/app/scripts/components/no... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new Connection JSON field should use camelCase (labelMinor) instead of snake_case (label_minor), per the API's existing convention.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__2114 | weaveworks/scope | 2,114 | defect | 5c3ea83846625ae1cc6b3588a906d76d83bc907e | 89a0ab6799895a3d187aea3ab624aabe6c541e2e | Report persistent connections in states other than ESTABLISHED | This aligns the `/proc` connection tracking (persistent connections) with
conntrack (short-lived connections).
Fixes #1972
EDIT: Also, make `/proc` parsing a bit more robust | diff --git a/probe/endpoint/procspy/procnet.go b/probe/endpoint/procspy/procnet.go
index 3eabd2838b..1946d5f6a8 100644
--- a/probe/endpoint/procspy/procnet.go
+++ b/probe/endpoint/procspy/procnet.go
@@ -5,22 +5,23 @@ import (
"net"
)
+// Used to check whether we are parsing a header line
+var slHeader = []byte("sl... | 3 | 1 | 1 | [{"id": "G0", "claim": "Reporting a connection for every TCP state may be undesirable: the set of states that result in a connection should be reviewed and restricted (e.g. to ESTABLISHED and CLOSE_WAIT) rather than all states.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
weaveworks__scope__2118 | weaveworks/scope | 2,118 | defect | b4e1fc707420de0f8eef4fd6243163d480f61e87 | a57360afe9ac67fd934015550413cb5b3f246853 | probe: conntrack: fix output parsing | With net.netfilter.nf_conntrack_acct = 1, conntrack adds the following
fields in the output: packets=3 bytes=164
And with SELinux (e.g. Fedora), conntrack adds: secctx=...
The parsing with fmt.Sscanf introduced in #2095 was unfortunately
rejecting lines with those fields. This patch fixes that by adding more
c... | diff --git a/probe/endpoint/conntrack.go b/probe/endpoint/conntrack.go
index da55323ead..4c090c44b6 100644
--- a/probe/endpoint/conntrack.go
+++ b/probe/endpoint/conntrack.go
@@ -8,8 +8,10 @@ import (
"io/ioutil"
"path/filepath"
"strconv"
+ "strings"
"sync"
"time"
+ "unicode"
log "github.com/Sirupsen/logr... | 4 | 4 | 2 | [{"id": "G0", "claim": "The regexp-based flow parsing likely performs badly; confirm with a test and prefer a simple \"key=value\" parser instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The ~60 duplicated key=value parsing lines should be extra... | null |
weaveworks__scope__2244 | weaveworks/scope | 2,244 | defect | c9048d8661a02200b76826d30f01db97e1947cbf | a5db87bbd9983a615fdc9544c5f275d2b3716c68 | Fix filtering out uncontained nodes in DNS view | Fixes #2170.
The problem was that no decorators were being applied to `ContainerRenderer` in `ContainerHostnameRenderer` (line `238` in `render/container.go`), so the *Uncontained* node wouldn't be filtered out there.
My solution was to move the `ApplyDecorators` call from `ContainerWithImageNameRenderer` higher ... | diff --git a/render/container.go b/render/container.go
index a79dee7d83..77ca2ef350 100644
--- a/render/container.go
+++ b/render/container.go
@@ -23,7 +23,7 @@ const (
// NB We only want processes in container _or_ processes with network connections
// but we need to be careful to ensure we only include each edge on... | 1 | 1 | 1 | [{"id": "G0", "claim": "Wrapping ContainerRenderer in ApplyDecorators means the decorators are applied multiple times wherever ContainerRenderer is used by other renderers (e.g. ContainerWithImageNameRenderer), so the decorators should be applied only once at the top level (e.g. only invoked in api_topologies), ideally... | null |
weaveworks__scope__2306 | weaveworks/scope | 2,306 | defect | 4f24d9bba8743bf389798f16fe56905d67ed6d93 | 48adc236cc080a7587f1583f8243989989992bf0 | Add options to hide args and env vars | To allow for use of weave-scope in an unauthenticated environment,
add options to the probe to hide comand line arguments and
environment variables, which might contain secret data.
Fixes #2222 | diff --git a/probe/docker/container.go b/probe/docker/container.go
index 419fb86059..19973bcf38 100644
--- a/probe/docker/container.go
+++ b/probe/docker/container.go
@@ -98,20 +98,24 @@ type Container interface {
type container struct {
sync.RWMutex
- container *docker.Container
- stopStats chan<- bool
- la... | 1 | 1 | 0 | [{"id": "G0", "claim": "The argument list of NewRegistry is too long; the arguments should be moved into a struct passed to NewRegistry.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__2649 | weaveworks/scope | 2,649 | defect | 286e48177178bd6c0998a2af60ef75406e2abc56 | 927bb2547a6024508d23392411256b10be53e205 | Honor DOCKER_* env variables in probe and app | Changed default for flag `-app.docker` to use the DOCKER_* env variables
instead of hardcoded /var/run/docker.sock; uses docker's default if
no DOCKER_HOST defined, for both probe and app.
Fixes #1975
---
This is technically a breaking change (if someone had DOCKER_HOST set before and not provided an alternate... | diff --git a/app/weave.go b/app/weave.go
index 7ea3711700..fb7fe35a99 100644
--- a/app/weave.go
+++ b/app/weave.go
@@ -12,10 +12,9 @@ import (
// Default values for weave app integration
const (
- DefaultHostname = "scope.weave.local."
- DefaultWeaveURL = "http://127.0.0.1:6784"
- DefaultContainerName ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The dockerEndpoint parameter of overlay.NewWeave is no longer needed and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__2779 | weaveworks/scope | 2,779 | defect | d7c1bfb035743ea801765ec42795a39345178dde | 8a7370de672db5987ee5ba8e0b13617fa68be79d | synthesise k8s service network from service IPs | This prevents cluttering host.LocalNetworks with lots of /32 addresses. These were unsightly and rather distracting in the UI. They also bloated the report and slowed down server-side rendering.
Fixes #2748. | diff --git a/probe/kubernetes/reporter.go b/probe/kubernetes/reporter.go
index 519c5ba115..bda02378dc 100644
--- a/probe/kubernetes/reporter.go
+++ b/probe/kubernetes/reporter.go
@@ -2,6 +2,7 @@ package kubernetes
import (
"fmt"
+ "net"
"strings"
"k8s.io/apimachinery/pkg/labels"
@@ -294,23 +295,32 @@ func (r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The copied stdlib commonPrefixLen helper is convoluted; it should simply convert addresses to 4-byte ints and progressively shift a logical & mask.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__3013 | weaveworks/scope | 3,013 | defect | 90cbd8defe3f0c074db362b1645be28523fec5f6 | 0b86c65e668328efd6611ca612abd1cf1139112e | Reading pod logs returns all container logs | This is achieved by issuing an http request for each container to kubernetes' API, which yields one Reader for the corresponding container.
`logReadCloser' then reads from the above readers in parallel as data is available, buffering when necessary, forwarding it to clients by implementing the io.ReadCloser interface.... | diff --git a/probe/kubernetes/client.go b/probe/kubernetes/client.go
index c629ae0e03..7e3f2f1561 100644
--- a/probe/kubernetes/client.go
+++ b/probe/kubernetes/client.go
@@ -39,7 +39,7 @@ type Client interface {
WatchPods(f func(Event, Pod))
- GetLogs(namespaceID, podID string) (io.ReadCloser, error)
+ GetLogs(n... | 6 | 5 | 0 | [{"id": "G0", "claim": "The low-level error logging in readInput should be dropped, since logging each read failure there is too low-level to be of much use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks how the log output is interleaved and sugges... | null |
weaveworks__scope__3014 | weaveworks/scope | 3,014 | defect | e2e0496be497d9350de4a91851517975307f8f96 | 3e5f920c9af02eac314e7946c40bcc31dda9fa5f | Stop fetching ReplicaSets and ReplicationControllers | They are not reported back to the scope app.
Fixes #3010 | diff --git a/probe/kubernetes/client.go b/probe/kubernetes/client.go
index 6f2d31f94d..0fc5c04a30 100644
--- a/probe/kubernetes/client.go
+++ b/probe/kubernetes/client.go
@@ -30,11 +30,9 @@ type Client interface {
WalkPods(f func(Pod) error) error
WalkServices(f func(Service) error) error
WalkDeployments(f func(D... | 5 | 5 | 0 | [{"id": "G0", "claim": "The \"Deployments, ReplicaSets and DaemonSets are not supported...\" log message should be updated now that ReplicaSets are no longer fetched.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Now that only one entry remains, ... | null |
weaveworks__scope__3060 | weaveworks/scope | 3,060 | defect | 8ac481137e0b2de27b035e13d40f70564d94555e | 9700c6a5360c8db4679dddf128ddd328f064cb9c | Replace service cpu/mem link to 'Monitor' | The previous link to 'Monitor' contained a recording rule metric, and since not all Weave Clound instances have recording rules, the link would redirect to a 'Monitor' page without data points.
The recording rule metric has been substituted with the underlying query.
Fixes #2925 | diff --git a/render/detailed/links.go b/render/detailed/links.go
index 9dd175d5f6..f5e337b780 100644
--- a/render/detailed/links.go
+++ b/render/detailed/links.go
@@ -71,8 +71,8 @@ var (
// NB: Pods need to be labeled and selected by their respective Service name, meaning:
// - The Service's `spec.selector` nee... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new service PromQL queries should select pods by the cAdvisor-provided `_weave_pod_name` label instead of joining on `kube_pod_labels` (which requires users to carry a `name` label in their manifests), and should not use `_weave_namespace`, which is about to be renamed.", "category": "correc... | null |
weaveworks__scope__3110 | weaveworks/scope | 3,110 | defect | da6995bd87d13a36608eff11d3ea155dc7a319c4 | fc0b5dea54cc044868e5138f0ce110d4e2c2731a | Support controls in more k8s topologies | Adds the ability for more k8s topologies to have controls displayed in the frontend by plugins. Namely Service, DaemonSet, StatefulSet, Cronjob.
Fixes #3107 | diff --git a/probe/kubernetes/cronjob.go b/probe/kubernetes/cronjob.go
index 5b8177b5e3..abdeb421c1 100644
--- a/probe/kubernetes/cronjob.go
+++ b/probe/kubernetes/cronjob.go
@@ -26,7 +26,7 @@ const (
type CronJob interface {
Meta
Selectors() ([]labels.Selector, error)
- GetNode() report.Node
+ GetNode(probeID str... | 3 | 2 | 2 | [{"id": "G0", "claim": "The topology functions (serviceTopology, daemonSetTopology, statefulSetTopology, cronJobTopology) do not need to take r.probeID as a parameter since they are methods on Reporter and already have access to it; the parameter should be dropped.", "category": "design", "verdict": "supported", "prior... | null |
weaveworks__scope__3135 | weaveworks/scope | 3,135 | defect | c938a5ffa44e9d96d1ab5fc3332b67aede9f9d5a | dd087cff014fde218fad4019c0639b0e017e3cfe | Simplify Map.Render() | Make all `MapFunc`s return a single `Node` instead of a set.
This lets us save a bit of time by not creating all those `map`s, and re-integrate the adjacency mapping code that was split out into `joinResults`.
Benchmarks, using a set of reports from Weave Cloud - the timings are a bit mixed but bytes and allocati... | diff --git a/render/container.go b/render/container.go
index 82f054f286..53162c2ef4 100644
--- a/render/container.go
+++ b/render/container.go
@@ -255,10 +255,10 @@ func MapContainer2IP(m report.Node) []string {
// format for a container, but without any Major or Minor labels.
// It does not have enough info to do th... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment noting that returning (report.Node, bool) would be the more idiomatic MapFunc signature but was avoided for the clutter it introduces.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
weaveworks__scope__3138 | weaveworks/scope | 3,138 | defect | c938a5ffa44e9d96d1ab5fc3332b67aede9f9d5a | f60d947bb7136b6a2ee0a5205a6b668e848c0f69 | Use single-owner code path to accumulate children when rendering | We added `ps.Map.UnsafeMutableSet()` to optimise the case where you know a NodeSet is not shared with any other nodes. We can arrange this quite easily for the `Children` of each node in `joinResults`, hence speed up rendering.
I had to adjust the smart/dumb merger benchmarks when they showed an improvement, which ... | diff --git a/app/merger_test.go b/app/merger_test.go
index 2626d0c675..5ec36c3075 100644
--- a/app/merger_test.go
+++ b/app/merger_test.go
@@ -67,13 +67,17 @@ func benchmarkMerger(b *testing.B, merger app.Merger) {
for i := 0; i < numHosts*5; i++ {
reports = append(reports, makeReport())
}
+ replacements := []re... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new method for adding to a single-owner NodeSet should be named `UnsafeAdd` instead of `SingleOwnerAdd`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
weaveworks__scope__3141 | weaveworks/scope | 3,141 | defect | e2b4b3edf63a62836ca27024003cc38aa6b9c0b5 | ddae23d41bc36c7104e2f899088a42555ff6f99f | Workaround Ubuntu kernel oops | Workaround for https://github.com/weaveworks/scope/issues/3131 until the issue is fixed upstream.
Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763454 | diff --git a/probe/endpoint/ebpf.go b/probe/endpoint/ebpf.go
index 7b4b10fdeb..4554e9aaef 100644
--- a/probe/endpoint/ebpf.go
+++ b/probe/endpoint/ebpf.go
@@ -53,16 +53,16 @@ type EbpfTracker struct {
closedDuringInit map[fourTuple]struct{}
}
-var releaseRegex = regexp.MustCompile(`^(\d+)\.(\d+).*$`)
+var release... | 3 | 2 | 0 | [{"id": "G0", "claim": "Consider waiting until Ubuntu publishes the kernel fix so the exact broken abiNumber range is known instead of hardcoding abiNumber >= 119, or dropping the check altogether if the fix ships within a few days.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introd... | null |
weaveworks__scope__3173 | weaveworks/scope | 3,173 | defect | 7384e24e6382d04aa73c3c8faa78dc20e3e89b55 | ad6d996087f3bf0a5537c102371c9e31372e2d7b | Show image tag in node details | Resolves #3161.


| diff --git a/probe/docker/registry.go b/probe/docker/registry.go
index d399da3eb9..04426443a1 100644
--- a/probe/docker/registry.go
+++ b/probe/docker/registry.go
@@ -472,13 +472,26 @@ func (r *registry) WalkNetworks(f func(docker_client.Network)) {
}
}
-// ImageNameWithoutVersion splits the image name apart, retu... | 3 | 2 | 0 | [{"id": "G0", "claim": "The image-name helper functions should be moved out of registry.go into container.go, which would be a better place for them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The helper naming should consistently use \"Ta... | null |
weaveworks__scope__3204 | weaveworks/scope | 3,204 | defect | 72169891734b4f0594ca798a74c1314a9e7a11d1 | 07fc564cd2e01fa08c667f8e7efe81ca0f687d8b | Add option to print probe reports to stdout, for debugging | It's fairly common that, while debugging, I need to check whether the probe sent the wrong thing or the app rendered the wrong thing. This option gives a crude way to view the raw probe data as json in the container logs.
It wasn't immediately obvious how to add it, so I removed two layers of cruft from the app cli... | diff --git a/extras/fixprobe/main.go b/extras/fixprobe/main.go
index 5b99925cbc..7dcc9a821c 100644
--- a/extras/fixprobe/main.go
+++ b/extras/fixprobe/main.go
@@ -2,6 +2,8 @@
package main
import (
+ "bytes"
+ "compress/gzip"
"flag"
"fmt"
"io/ioutil"
@@ -60,8 +62,12 @@ func main() {
log.Fatal(err)
}
- r... | 6 | 5 | 1 | [{"id": "G0", "claim": "The report-serialisation helpers introduced by this PR (serializeReport in probe/appclient/multi_client.go and stdoutPublisher in prog/probe.go) should live in report/marshal.go instead (serializeReport as a method on Report).", "category": "design", "verdict": "supported", "priority": "P1", "sc... | null |
weaveworks__scope__3231 | weaveworks/scope | 3,231 | defect | c14dc0213796902a70ed8957824e6a47d8bdae06 | c36293c55c346a6332b35e027f9605d28ea934d8 | [Power Support] Enable weaveworks scope on Power. |
Observed this particular test was failing on ppc64le architecture. Added the test failure log below,
walker_linux_test.go:97:
``` --- want
+++ have
@@ -32,7 +32,7 @@
Cmdline: (string) (len=15) "curl google.com",
Threads: (i... | diff --git a/probe/process/walker_linux_test.go b/probe/process/walker_linux_test.go
index cfa18d8d97..1739534629 100644
--- a/probe/process/walker_linux_test.go
+++ b/probe/process/walker_linux_test.go
@@ -8,6 +8,7 @@ import (
"github.com/weaveworks/common/test"
"github.com/weaveworks/common/test/fs"
"github.com... | 5 | 4 | 2 | [{"id": "G0", "claim": "The pull request fails lint: probe/process/walker_linux_test.go needs to be reformatted with `gofmt -s -w` to clear the lint error.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Go convention is to list standard-library ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.