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
FairwindsOps__pluto__27
FairwindsOps/pluto
27
defect
c093abd2810b73da4b207e1941403475394afe34
78af43b9cc4d685af8723363dbc0c1e31f1fdec6
initial pass at refactoring helm pkg and adds helm 2 feature
Setting this as a draft because I want to work on testing, but have not had time. Wanted the code out there for others to look at though. I have to pull in two different versions of the helm repo for now even though the helm 3 package seems to support pulling configmaps AND secrets, I can't get that one to actually ...
diff --git a/go.mod b/go.mod index 56d15208..c25803d6 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,20 @@ module github.com/fairwindsops/pluto go 1.14 require ( + github.com/DATA-DOG/go-sqlmock v1.4.1 // indirect + github.com/jmoiron/sqlx v1.2.0 // indirect + github.com/lib/pq v1.3.0 // indirect + github.com/rubenv/...
2
1
0
[{"id": "G0", "claim": "Asks whether there is a reason to import only the GKE auth plugin instead of pulling in all of the client-go auth plugins, implying the broader import should be restored.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The autho...
null
FairwindsOps__pluto__279
FairwindsOps/pluto
279
defect
a1f0cdbdcdaddd2249b03f82c968114e01ee10bf
0ea64a545ccf7ef68c11d46821e30be9d6fafb50
Add CSV output option
This PR fixes #278 ## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? The goal of this PR is to add another output option via the `--output` flag to be able to output CSV formatted data. ### What changes did you make...
diff --git a/cmd/root.go b/cmd/root.go index 133c1176..1a8c8e28 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -55,6 +55,7 @@ var outputOptions = []string{ "wide", "custom", "markdown", + "csv", } func init() { @@ -63,7 +64,7 @@ func init() { rootCmd.PersistentFlags().BoolVarP(&onlyShowRemoved, "only-show-re...
1
1
0
[{"id": "G0", "claim": "Remove the substitution of empty column values with \"n/a\" in the csv output, since csv files conventionally contain consecutive commas for empty values.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FairwindsOps__pluto__29
FairwindsOps/pluto
29
defect
88687963ddfe0031675ca2d33b4f98ba7ff59df6
4bd19e40930ebff79d9a935c2f5e2d515d593870
Add e2e testing for helm 2. Remove ref to --show-non-deprecated. Add helm2 to readme.
Fixes #28 - Remove ref to --show-non-deprecated.
diff --git a/README.md b/README.md index aeae19d9..6afd1297 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,15 @@ StatefulSet apps/v1beta1 true audit-dashboard-prod-rabbitmq-ha This indicates that the StatefulSet audit-dashboard-prod-rabbitmq-ha was deployed with apps/v1beta1 which is deprecated in 1...
1
1
0
[{"id": "G0", "claim": "The README sentence \"You can also use this if you use helm2:\" should be reworded to \"You can also use Pluto with helm 2:\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FairwindsOps__pluto__30
FairwindsOps/pluto
30
defect
a28239950cde3b2faabcbd55eb821eab67a13693
27107f12b10f808b718726dbcfb3748bdc162a48
Adding exit codes
Fixes #25 TODO: - [x] Fix e2e testing once #29 is merged.
diff --git a/cmd/root.go b/cmd/root.go index 402bbeed..edfa31f5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -36,11 +36,13 @@ var ( outputFormat string showNonDeprecated bool helmVersion string + ignoreErrors bool ) func init() { rootCmd.AddCommand(detectFilesCmd) rootCmd.PersistentFlags(...
1
1
1
[{"id": "G0", "claim": "The duplicated `os.Exit(retCode)` line added in cmd/root.go's detectCmd block is extra and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FairwindsOps__pluto__302
FairwindsOps/pluto
302
defect
ab7039b02b27982b0c6ddee8d99a9a8482555aa9
9f50642985df5d70a9482cc9819b4636d54321ae
Add flag for --kube-context
This PR fixes #301 ## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? Add a kube-context flag to the detect-helm command that sets the kube context on the kube client. ### What changes did you make? - Added the flag...
diff --git a/cmd/root.go b/cmd/root.go index c43d46fd..acf7ab21 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -47,6 +47,7 @@ var ( customColumns []string componentsFromUser []string onlyShowRemoved bool + kubeContext string ) const ( @@ -78,6 +79,7 @@ func init() { rootCmd.A...
2
2
0
[{"id": "G0", "claim": "getKubeClient should not need to branch on an empty kubeContext, since config.GetConfigWithContext(\"\") already returns the current context of the kubeconfig.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The snapshot job's work...
null
FairwindsOps__pluto__412
FairwindsOps/pluto
412
defect
0d447deb18d24e62162af8603f3121f57b77c0b4
bde1ee5351cf0c3cc93f454e9e3751aa9020c25d
fix: preserve ordering of custom columns
Fixes https://github.com/FairwindsOps/pluto/issues/409 Replaces https://github.com/FairwindsOps/pluto/issues/408 ## Checklist * [x] I have signed the CLA * [ ] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? This PR fixes the ordering of custom columns. ### W...
diff --git a/pkg/api/columns.go b/pkg/api/columns.go index 967a7e98..3cba0804 100644 --- a/pkg/api/columns.go +++ b/pkg/api/columns.go @@ -161,8 +161,8 @@ func (instance *Instance) wideColumns() columnList { // customColumns returns a custom list of columns based on names func (instance *Instance) customColumns() col...
1
1
1
[{"id": "G0", "claim": "The pull request's reordering of custom columns also requires updating the functional (e2e) tests, which were not updated in S1.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FairwindsOps__pluto__417
FairwindsOps/pluto
417
defect
0d447deb18d24e62162af8603f3121f57b77c0b4
fea4233d2f0ad3c3e7d7c4b2643d5de31db932a6
feat: allow hiding headers in output
## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? Allow hiding headers in output. ### What changes did you make? Add a `--no-headers` flag that hide headers in tab, markdown and csv outputs. ### What alternative soluti...
diff --git a/cmd/root.go b/cmd/root.go index d1db33b7..29d61e96 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -63,6 +63,7 @@ var ( componentsFromUser []string onlyShowRemoved bool kubeContext string + noHeaders bool ) const ( @@ -83,6 +84,7 @@ func init() { rootCmd.Persist...
1
1
0
[{"id": "G0", "claim": "Prefix the CSV example commands in docs/advanced.md with `$` for consistency with the rest of the PR.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
FairwindsOps__pluto__45
FairwindsOps/pluto
45
defect
7f7808a60337641c5d8f819a32e0051d78c96151
e5a31d67ddfe781807964168057e57e2b2ee7f02
Changing from pure deprecated to DeprecatedIn. Enable yaml and json for helm detection
Fixes #8 TODO: - [x] Fix the functional testing and add test cases for the target-version flag - [x] Add usage and new output to README
diff --git a/README.md b/README.md index 815ed332..592c4690 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,9 @@ You should see an output something like: ``` $ pluto detect-files -d pkg/finder/testdata -KIND VERSION DEPRECATED FILE -Deployment extensions/v1beta1 true pkg/finde...
2
2
1
[{"id": "G0", "claim": "Make `padChar` a package variable instead of a parameter, since every caller passes the same hardcoded value, to cut the argument count of `DisplayOutput()` and `tabOut()`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The output...
null
FairwindsOps__pluto__452
FairwindsOps/pluto
452
defect
3d62079d42d9d8ab08562611b216c68e70e75d14
863cee04b6ee3d573a82587d21472680f50bb689
add replacement-available-in
This PR fixes https://github.com/FairwindsOps/pluto/issues/447 ## Checklist * [x] I have signed the CLA * [ ] I have updated/added any relevant documentation ## Description If the specifications are acceptable, I would like to update the documentation. ### What's the goal of this PR? Add an option to i...
diff --git a/cmd/root.go b/cmd/root.go index 239b5f59..3ac7f86f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -48,23 +48,24 @@ import ( ) var ( - version string - versionCommit string - versionFileData []byte - additionalVersionsFile string - directory string - outputForm...
4
2
1
[{"id": "G0", "claim": "The `AVAILABLE IN` column header is confusing at first glance and should get a clearer name, possibly `REPL AVAIL IN`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Exit code 2 is inappropriate for \"replacement not available in ...
null
FairwindsOps__pluto__69
FairwindsOps/pluto
69
defect
24979307af8a181145fa3eda683fd8c17703008c
bf1442bd830edf89a17b81612e62b4ac89b31dc0
don't show duplicate deployed releases (#63). add release name to the name output for helm (#67)
also adds release name to output for helm fixes #63 fixes #67
diff --git a/e2e/tests/01_helm-detect-3.yaml b/e2e/tests/01_helm-detect-3.yaml index 4ff0aa88..c84aa02f 100644 --- a/e2e/tests/01_helm-detect-3.yaml +++ b/e2e/tests/01_helm-detect-3.yaml @@ -12,36 +12,36 @@ testcases: - script: pluto detect-helm --helm-version=3 -A -t v1.16.0 assertions: - result.code Shou...
4
2
1
[{"id": "G0", "claim": "A debug statement (`fmt.Println(\"done\")`) looks to have been left at the top of `findVersions` and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above `marshalToRelease` ('casts a marshals re...
null
FairwindsOps__pluto__72
FairwindsOps/pluto
72
defect
5b1de39e7b05e5892309d398990489dbcae2d326
080073ececd937a9ca5afbc844340ca73703787e
Add ingresses in extensions/v1beta1 to versions list
Fixes #71
diff --git a/pkg/api/list.go b/pkg/api/list.go index 25d4d653..3523b5d8 100644 --- a/pkg/api/list.go +++ b/pkg/api/list.go @@ -39,6 +39,7 @@ var VersionList = []Version{ {"apps/v1beta2", "StatefulSet", "v1.9.0", "v1.16.0", "apps/v1"}, {"extensions/v1beta1", "NetworkPolicy", "v1.9.0", "v1.16.0", "networking.k8s.io...
1
1
1
[{"id": "G0", "claim": "The Ingress entry uses the wrong deprecation versions — it was deprecated in v1.14.0 and removed in v1.22.0, not v1.9.0/v1.16.0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FairwindsOps__pluto__77
FairwindsOps/pluto
77
defect
abaad7ed95c7c1dffff31d3d1450126eb2f724e7
72261e0d4568d1c3be764c2639e4a18a976e1a9a
Adding a namespace flag to restrict helm checking
Fixes #70
diff --git a/cmd/root.go b/cmd/root.go index 1c41217c..5016ef28 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -41,6 +41,7 @@ var ( ignoreDeprecations bool ignoreRemovals bool targetVersion string + namespace string ) func init() { @@ -56,6 +57,7 @@ func init() { rootCmd.AddCommand(detect...
1
1
0
[{"id": "G0", "claim": "The new namespace filter check would give a larger performance benefit if it ran earlier in the loop, before the kube API call at line 93, instead of after it.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FairwindsOps__pluto__79
FairwindsOps/pluto
79
defect
f7e3a0636586d080a419d72dba91bdf841b8a8a9
dd570d624a2ebf446457ca1747db78f50a624b1a
Add support for secrets for helm v2
It's possible to use helm v2 with added security mesure (disable tiller svc & secrets instead of configmaps): ```bash helm init --history-max 5 --service-account tiller --override 'spec.template.spec.containers[0].command'='{/tiller,--listen=127.0.0.1:44134,--storage=secret} ``` In order to support this feature, ...
diff --git a/.gitignore b/.gitignore index 9e8f863d..ef0fde0e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ coverage.txt cover.html /pluto + +# Editor +.vscode \ No newline at end of file diff --git a/cmd/root.go b/cmd/root.go index 5016ef28..82054c82 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -38,6 +...
9
9
4
[{"id": "G0", "claim": "The editor-specific `.vscode` entry should be moved to each user's global gitignore (e.g. `~/.gitignore`) instead of being committed to the repo's .gitignore.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error from ...
null
FairwindsOps__pluto__81
FairwindsOps/pluto
81
defect
81c8d3298a4415075750d4ccdb1580b15c9b972e
f1cef2baba2b12ba1dccf4615f52f43549151702
Add Support for Istio and cert-manager
This pull request addresses issue #20. This worked for the use cases I had but might not fit what you have in mind. Feel free to reject. **Note**: The deprecations for Istio are to by best knowledge but I was unable to find an exhaustive list of deprecations.
diff --git a/README.md b/README.md index 5f20e709..02556d06 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,11 @@ $ pluto detect-helm --helm-version 3 -ojson | jq . "removed": false } ], - "target-version": "v1.16.0" + "target-versions": { + "k8s": "v1.16.0", + "istio": "v1.6.0", + "cert...
6
4
1
[{"id": "G0", "claim": "The cert-manager target version should be v0.15.0, not the non-existent v1.15.0, in the --cert-manager-target-version flag default and the README JSON/YAML examples.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TargetVersio...
null
FairwindsOps__polaris__1082
FairwindsOps/polaris
1,082
defect
4b87bafbb958fbbb643830f80abec3fed21ba2b9
bd611feed821b61be5e7e148fc9ea2300b3f84af
INSIGHTS-475 Add 3 new checks to polaris
This PR fixes # ## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? ### What changes did you make? ### What alternative solution should we consider, if any?
diff --git a/pkg/config/checks.go b/pkg/config/checks.go index 9707d8457..0888755ab 100644 --- a/pkg/config/checks.go +++ b/pkg/config/checks.go @@ -29,11 +29,14 @@ var ( "deploymentMissingReplicas", // Pod checks "hostIPCSet", + "hostPathSet", + "hostProcess", "hostPIDSet", "hostNetworkSet", "autom...
2
2
0
[{"id": "G0", "claim": "The hostProcess check's failureMessage in pkg/config/checks/hostProcess.yaml should read \"Privileged access to the host is disallowed\" instead of \"Privileged access to the host is disallowed in the Baseline policy\".", "category": "documentation", "verdict": "supported", "priority": "P2", "sc...
null
FairwindsOps__polaris__149
FairwindsOps/polaris
149
defect
50d32b9b4cdfe035d64e3138b122f2ec0a644f6e
c6e3550293d5067a0e2208b8daa93ac35c6cadcb
#146 Fixing Container Security Context Logic
Kubernetes rationalizes Container Security Context in conjuction with the Pod Spec Security Context. In this scenario you can 'leave out' certain security context settings and rely on the pod spec definition to still set these settings for you. The RunAsNonRoot setting originally only checked to see if the value wa...
diff --git a/pkg/validator/bool_pointer_helpers.go b/pkg/validator/bool_pointer_helpers.go new file mode 100644 index 000000000..98b1ba98d --- /dev/null +++ b/pkg/validator/bool_pointer_helpers.go @@ -0,0 +1,55 @@ +package validator + +/* +This bool_pointer_helpers.go file are a set of helpers to validate a pointer to ...
4
3
0
[{"id": "G0", "claim": "The pull request is still missing its CHANGELOG additions, which should be added once the change is ready.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The three bool-pointer helpers in bool_pointer_helpers.go should be r...
null
FairwindsOps__polaris__181
FairwindsOps/polaris
181
defect
819b77ae1a1d032027eb58615854325bd038bd66
a6525fc8076b1757732e1cc5af4655e38e4d8f71
Wl/config url
Expanded ParseFile to include URL's and added a test for it.
diff --git a/pkg/config/config.go b/pkg/config/config.go index 18f268e42..cd2c97da7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -19,6 +19,8 @@ import ( "fmt" "io" "io/ioutil" + "net/http" + "strings" packr "github.com/gobuffalo/packr/v2" corev1 "k8s.io/api/core/v1" @@ -112,16 +114,27 @@ ...
3
3
2
[{"id": "G0", "claim": "Move the `configBox := packr.New(...)` creation up out of the local-file else block and put it next to the `if path == \"\"` check, as it was before, to be a little cleaner and more efficient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
FairwindsOps__polaris__239
FairwindsOps/polaris
239
defect
03cc3fb1bd8de5685fb5ad5ea0c210b1af60f6c0
7b0817202c8c14f8110121e7d433bde2bfa8c0a6
Exclude individual checks from a controller
Added the ability to exclude a controller from individual checks via annotation.
diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e243da9..e79b7babd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # x.x.x (next release) +# 0.6.1 +* Added the ability to exempt a particular controller from a particular check. + # 0.6.0 * Fixed webhook support in Kubernetes 1.16 * this also remove...
2
2
1
[{"id": "G0", "claim": "Drop the newly added `# 0.6.1` heading from CHANGELOG.md and leave the new entry under the existing `x.x.x (next release)` section, since the team is working on 1.0.0 and will do the version bump after more refactoring.", "category": "documentation", "verdict": "supported", "priority": "P2", "sc...
null
FairwindsOps__polaris__245
FairwindsOps/polaris
245
defect
6213291be8c9ab2bc6be309c7b017394f5d75fd9
ec4e755f2f00e001d0b6258a48484b1c0435d18b
Add support for more controller versions
Fixes https://github.com/FairwindsOps/polaris/issues/244 The most disruptive change here is that if building the webhook fails, we don't exit the process. This way if we try to watch a type/version that's not available in the cluster, it won't fail to start.
diff --git a/cmd/polaris/webhook.go b/cmd/polaris/webhook.go index a7bbbb89d..be9fa5eae 100644 --- a/cmd/polaris/webhook.go +++ b/cmd/polaris/webhook.go @@ -106,7 +106,9 @@ var webhookCmd = &cobra.Command{ for innerIndex, supportedAPIType := range controllerToScan.ListSupportedAPIVersions() { webhookName := st...
1
1
1
[{"id": "G0", "claim": "The DaemonSets fetch in CreateResourceProviderFromAPI should use the getDaemonSets helper like the other controllers, since calling kube.AppsV1().DaemonSets directly still misses appsv1beta2 daemonsets.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
FairwindsOps__polaris__26
FairwindsOps/polaris
26
defect
1280530f8545262a410d13e229727a5fe931162b
6047af08aa8073cd4852e040f07a247769d4b4f3
jg/21 host network checks
Re: Issue #21 This PR contains the following changes: - Update `validateContainer` so that it returns a `resourceResult` so that all `validateX` methods have a similar interface (i.e. they all take the same args: 1. fairwinds conf and 2. resource, and all return a `resourceResult`) - Creates a `podValidation` ob...
diff --git a/config.yml b/config.yml index 099cc0969..e7fd307cc 100644 --- a/config.yml +++ b/config.yml @@ -22,3 +22,14 @@ images: tagRequired: true whitelistRepos: - gcr.io +hostNetwork: + hostAlias: + require: true + hostIPC: + require: true + hostNetwork: + require: true + hostPID: + requ...
2
2
1
[{"id": "G0", "claim": "The pull request should add more host networking specific tests somewhere.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The config type name HostNetwork with a field also called HostNetwork is overly repetitive and should be re...
null
FairwindsOps__polaris__285
FairwindsOps/polaris
285
defect
69621f7034d6d13b3ec12678412023e45045c190
413acd6e5718d8cb0476cbe3c60beb9521e9d813
Add the capability for controller level checks
Brings along the JSON of the top level object. I also added a single check mostly for documentation purposes (but it could be a pretty useful check too)
diff --git a/checks/multipleReplicasForDeployment.yaml b/checks/multipleReplicasForDeployment.yaml new file mode 100644 index 000000000..b2836fda5 --- /dev/null +++ b/checks/multipleReplicasForDeployment.yaml @@ -0,0 +1,26 @@ +successMessage: Multiple replicas are scheduled +failureMessage: Only one replica is schedule...
1
1
0
[{"id": "G0", "claim": "The new multipleReplicasForDeployment check should be moved out of examples/config.yaml into examples/config-full.yaml and offered as an optional check, since there are legitimate reasons to run only one replica.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
FairwindsOps__polaris__329
FairwindsOps/polaris
329
defect
03331147ca24bd0eade98fd1676862fcaf8c3c88
9b2eed002c3928c5a90677644b759750f90c5954
Don't assume all objects have pods.
The string based audits are picking up services and other objects as controllers. See issue #328
diff --git a/pkg/kube/resources.go b/pkg/kube/resources.go index 54b954f37..c01098f99 100644 --- a/pkg/kube/resources.go +++ b/pkg/kube/resources.go @@ -228,7 +228,10 @@ func GetPodSpec(yaml map[string]interface{}) interface{} { return GetPodSpec(childYaml.(map[string]interface{})) } } - return yaml + if _, ok...
2
2
1
[{"id": "G0", "claim": "The change to GetPodSpec (objects without pods now return nil) should get a quick test case added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test assertion message \"Should have four controllers\" no longer matches the n...
null
FairwindsOps__polaris__421
FairwindsOps/polaris
421
defect
3c1533790f4be4062b542500f733c0345a05f41e
48b64c94c46c00ec2395ac2dd66f2b14d782a68e
Implement namespace support for exceptions
Add namespace support for exceptions for shared clusters.
diff --git a/examples/config-full.yaml b/examples/config-full.yaml index 19d01d07a..c4553d0d1 100644 --- a/examples/config-full.yaml +++ b/examples/config-full.yaml @@ -35,6 +35,12 @@ exemptions: rules: - hostNetworkSet - hostPortSet + - namespace: kube-system + controllerNames: + - my-network-c...
2
2
0
[{"id": "G0", "claim": "The debug `fmt.Println` in IsActionable should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Documentation for the exemptions feature should also be added at docs/usage.md#exemptions.", "category": "documenta...
null
FairwindsOps__polaris__469
FairwindsOps/polaris
469
defect
ef4f5aeaebaaa804caf3e241774edb7df8471ee0
5ab9f0b251b73ce6a53912ec6a48c6a3147eb73f
Add support for ingress objects
This PR adds support for checking Ingress kubernetes objects
diff --git a/checks/tlsSettingsMissing.yaml b/checks/tlsSettingsMissing.yaml new file mode 100644 index 000000000..1774e0672 --- /dev/null +++ b/checks/tlsSettingsMissing.yaml @@ -0,0 +1,19 @@ +successMessage: Ingress has TLS configured +failureMessage: Ingress does not have TLS configured +category: Security +target: ...
3
2
1
[{"id": "G0", "claim": "The resolveCheck signature should be changed to pass names/metadata (target kind, metav1.ObjectMeta, containerName) rather than the underlying objects, to make it more future-proof.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "R...
null
FairwindsOps__polaris__48
FairwindsOps/polaris
48
defect
beb7791165bb89bc3a70672870590f211687dbc4
bf1d27bb7d1a98ad3495925e7bfa5fc91bad253e
Adding Security Validations
Security validation syntax has changed from the original designs, but this should cover the most common scenarios.
diff --git a/config.yml b/config.yml index 823c0088e..5f69e7c59 100644 --- a/config.yml +++ b/config.yml @@ -50,29 +50,17 @@ networking: hostPIDSet: error hostPortSet: error security: - runAsPriviliged: warning + runAsRootAllowed: warning + runAsPrivileged: error notReadOnlyRootFileSystem: warning - runAs...
8
3
2
[{"id": "G0", "claim": "The condition guarding RunAsNonRoot could equivalently be flipped to a direct check like `if securityContext.RunAsNonRoot`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The IfAnyNotDropped check reports failure whenever a...
null
FairwindsOps__polaris__487
FairwindsOps/polaris
487
defect
512a5f2886fe9bd4e06b9608486ef9d14cd27410
fe0060af7736e40aeea87a8f3a87b153ec42cc98
Audit- Only show the failed test if flag is specified.
Fixes #433
diff --git a/cmd/polaris/audit.go b/cmd/polaris/audit.go index 0b14ba7b9..56c62cdf7 100644 --- a/cmd/polaris/audit.go +++ b/cmd/polaris/audit.go @@ -32,6 +32,7 @@ import ( ) var setExitCode bool +var onlyShowFailedTests bool var minScore int var auditOutputURL string var auditOutputFile string @@ -42,6 +43,7 @@ ...
2
2
0
[{"id": "G0", "claim": "The success-filtering loop should be defined once as a method on ResultSet and reused (e.g. res.Results.removeSuccessfulResults()) in Result, PodResult and ContainerResult instead of being duplicated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
FairwindsOps__polaris__543
FairwindsOps/polaris
543
defect
a995e7e724abab4fab2a183474ad7eebe4e53640
f431971a305ebef123c957b67ae9cf01e9e5a690
update notReadOnlyRootFilesystem check
Update file check to include good and bad security context
diff --git a/checks/notReadOnlyRootFilesystem.yaml b/checks/notReadOnlyRootFilesystem.yaml index d4e203fe8..d72d6364a 100644 --- a/checks/notReadOnlyRootFilesystem.yaml +++ b/checks/notReadOnlyRootFilesystem.yaml @@ -2,15 +2,49 @@ successMessage: Filesystem is read only failureMessage: Filesystem should be read only ...
1
1
1
[{"id": "G0", "claim": "Remove the `runAsUser` requirements from the notReadOnlyRootFilesystem check schema, since runAsUser constraints are unrelated to the read-only-root-filesystem check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FairwindsOps__polaris__678
FairwindsOps/polaris
678
defect
861fd42d29be63b3e51a4ee07d2b030a4f2c392e
4bb71d33e94e66aa5ca7fc9325e2c5bc560ed745
skip incomplete or broken YAML - warn user
This PR: - changes `visitFile()` (WalkFunc for `filepath.Walk()`) to log parsing failures and continue (eg, patch files; fixes #667) - removes error logging of failed parsing - upper functions are now responsible for bubbling up the parse error and reporting it - corrects test for parsing resources to work again :...
diff --git a/pkg/kube/resources.go b/pkg/kube/resources.go index 711f71754..ea56c2c0d 100644 --- a/pkg/kube/resources.go +++ b/pkg/kube/resources.go @@ -201,7 +201,11 @@ func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error) logrus.Errorf("Error reading file: %v", path) return err }...
3
3
2
[{"id": "G0", "claim": "The assertion message still says 'CreateResource From Path should fail with bad yaml' although the test now expects success; it should say 'should not fail with bad yaml'.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "addResourc...
null
FairwindsOps__polaris__70
FairwindsOps/polaris
70
defect
97e2c17b364c5b3e89c2ba24aca8307f6ad4d040
b8d4be16815a55223f0bc86e7669376696dc69bc
Add ability to audit a directory of files
Per request from EJ - would be great if we could use Fairwinds as part of a CI/CD process.
diff --git a/main.go b/main.go index 84849c30f..3d2f6ff59 100644 --- a/main.go +++ b/main.go @@ -43,6 +43,7 @@ func main() { dashboard := flag.Bool("dashboard", false, "Runs the webserver for Fairwinds dashboard.") webhook := flag.Bool("webhook", false, "Runs the webhook webserver.") audit := flag.Bool("audit", f...
3
3
2
[{"id": "G0", "claim": "The new flag should not be named `audit-directory` but something generic like `source` that can support either a directory or a specific file path.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Auditing a YAML file that contains ...
null
FairwindsOps__polaris__712
FairwindsOps/polaris
712
defect
5e4d6bd857fac1457bfa8beec9e2e41fe6b81caf
63d03165c28e0dd04246c5b146f99b885da28aea
Add mutation field to `imagePolicyNotAlways`
This PR fixes # ## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? The goal of the PR is to add a mutation field for one check and try to update the `YAML` based on the mutation definition. ### What changes did you mak...
diff --git a/checks/pullPolicyNotAlways.yaml b/checks/pullPolicyNotAlways.yaml index 25a50aac9..669c9dafa 100644 --- a/checks/pullPolicyNotAlways.yaml +++ b/checks/pullPolicyNotAlways.yaml @@ -9,3 +9,7 @@ schema: properties: imagePullPolicy: const: Always +mutations: + - op: add + path: /spec/contain...
3
3
2
[{"id": "G0", "claim": "The mutation patch path should be scoped down to the container level (e.g. `path: /imagePullPolicy`) instead of hardcoding `/spec/containers/0/imagePullPolicy`, with the JSON Patch returned inside the `ResultMessage` struct and applied later by iterating through the results based on the user's c...
null
FairwindsOps__polaris__726
FairwindsOps/polaris
726
defect
861fd42d29be63b3e51a4ee07d2b030a4f2c392e
b917866e0c7b9a98f242f67629af9ef1587cb078
Change `target: Pod` to `target: PodSpec`
**breaking change** ## Checklist * [x] I have signed the CLA * [x] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? We currently use the `target` field a few ways: * You can specify a `Kind` (e.g. `Deployment`, `Ingress`, `PodDisruptionBudget`), and the schema wi...
diff --git a/checks/hostIPCSet.yaml b/checks/hostIPCSet.yaml index db62a24ff..c9cd17b69 100644 --- a/checks/hostIPCSet.yaml +++ b/checks/hostIPCSet.yaml @@ -1,7 +1,7 @@ successMessage: Host IPC is not configured failureMessage: Host IPC should not be configured category: Security -target: Pod +target: PodSpec schem...
1
1
0
[{"id": "G0", "claim": "The debug statement fmt.Println(\"apply controller\") that the pull request adds at the top of applyControllerSchemaChecks in pkg/validator/schema.go needs to be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FairwindsOps__polaris__801
FairwindsOps/polaris
801
defect
ccaa384cd0d5b9bdc2d01e947b9993c7613d60aa
39da5c5bbc64a6e741eb1d82c4b59a409dbc978d
Add `target PodTemplate` which exposes the full Pod (not only the spec)
This PR fixes #735 ## Checklist * [x] I have signed the CLA * [ ] I have updated/added any relevant documentation ## Description ### What's the goal of this PR? Add a `target: PodTemplate` to make the full pod (not only the spec) available to schema-checking. ### What changes did you make? Added a new ta...
diff --git a/pkg/config/schema.go b/pkg/config/schema.go index c9623dfb7..d872ab4d5 100644 --- a/pkg/config/schema.go +++ b/pkg/config/schema.go @@ -41,6 +41,8 @@ const ( TargetContainer TargetKind = "Container" // TargetPodSpec points to the pod spec TargetPodSpec TargetKind = "PodSpec" + // TargetPodTemplate po...
1
1
1
[{"id": "G0", "claim": "With check.Target=PodTemplate and target=PodSpec, IsActionable() skips the check.Target != target guard via the catch-all condition added for PodTemplate, so a PodSpec-targeted case that should fail does not; the reviewer asks to keep the old `check.Target != target` check and handle PodTemplate...
null
FairyProject__fairy__181
FairyProject/fairy
181
defect
e6a7bf7ef9a76c1c2078d44e45d2798451f11c9d
f07dd74cfb1eac09b17e05d1b63eb4bfcf99b3c3
feat: enhance ContainerObjectBinder with TypeDescriptor support
enhance ContainerObjectBinder with TypeDescriptor support for generic dependency injection (basic implementation)
diff --git a/framework/platforms/core-platform/src/main/java/io/fairyproject/container/binder/ContainerObjectBinder.java b/framework/platforms/core-platform/src/main/java/io/fairyproject/container/binder/ContainerObjectBinder.java index ec2ad9d8..0f70b91e 100644 --- a/framework/platforms/core-platform/src/main/java/io/...
3
3
1
[{"id": "G0", "claim": "Remove the now-unneeded @RequiredArgsConstructor from MethodInvokeInstanceProvider, since the PR added an explicit constructor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "SingletonObjectFactory and PrototypeObjectFa...
null
FairyProject__fairy__49
FairyProject/fairy
49
defect
3b4e08a3846dd3d3dc0cba2ff32b2c6ca508fb81
2124d618ae8058b32d608e918186c1358117e552
Improved Serializers
Don't throw error if duplication happens unless serializer mark as `@AvoidDuplicate` Separate JacksonObjectSerializer and JacksonObjectDeserializer to independent class Cleaned up JacksonObjectSerializer, JacksonObjectDeserializer and SerializerFactory Documented SerializerFactory Documented ObjectSerializer Fixed ...
diff --git a/io.fairyproject.platforms/core-platform/src/main/java/io/fairyproject/ObjectSerializer.java b/io.fairyproject.platforms/core-platform/src/main/java/io/fairyproject/ObjectSerializer.java index e0088cfd..7081eb69 100644 --- a/io.fairyproject.platforms/core-platform/src/main/java/io/fairyproject/ObjectSeriali...
1
1
0
[{"id": "G0", "claim": "Using getOrDefault(type, null) on a ConcurrentHashMap is unnecessary because get also returns null when the key is absent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FalkorDB__FalkorDB__1038
FalkorDB/FalkorDB
1,038
defect
e6e97b00a7e46bee9ce7d30a89e4439391d642dd
6f8717b764db32e60d7b161cb3e5c9270c8d5bf2
check for empty frontier
Resolves: #1033 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Enhanced the graph search process to promptly conclude when no further nodes are available for exploration. - **Tests** - Introduced a new test case to validate proper handling when t...
diff --git a/src/algorithms/all_shortest_paths.c b/src/algorithms/all_shortest_paths.c index ad1589b38b..8f01e4b4f5 100644 --- a/src/algorithms/all_shortest_paths.c +++ b/src/algorithms/all_shortest_paths.c @@ -42,8 +42,12 @@ int AllShortestPaths_FindMinimumLength if(neighborCount == 0) { // current level deplet...
4
1
1
[{"id": "G0", "claim": "In test07_all_shortest_paths_unreachables the graph creation query is defined but never executed, so the graph is never populated and the test must call the query method to actually create the graph it intends to query.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": ...
null
FalkorDB__FalkorDB__1095
FalkorDB/FalkorDB
1,095
defect
ecbf9617458e45dd20083b155a150321e64b2605
3e446a09f4e27b1502b9264bc3f25ec6175110d2
String intern
Resolves: #1094 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced string interning support to store identical strings uniquely and share them across the database. - Added a new scalar function `intern()` for explicit string internin...
diff --git a/src/arithmetic/aggregate_funcs/agg_collect.c b/src/arithmetic/aggregate_funcs/agg_collect.c index 95c9ba62c6..d47d69e76c 100644 --- a/src/arithmetic/aggregate_funcs/agg_collect.c +++ b/src/arithmetic/aggregate_funcs/agg_collect.c @@ -33,6 +33,7 @@ AggregateResult AGG_COLLECT switch(allocation) { case ...
25
13
4
[{"id": "G0", "claim": "Implement the TODO's thread-access validation so only writer threads or the Redis main thread can access the string pool, to prevent potential thread-safety issues or unauthorized access.", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
FalkorDB__FalkorDB__1142
FalkorDB/FalkorDB
1,142
defect
ccdd893ed85b43e93a57bdd03119e31efc869882
4f5fe67ceebd43afed20ab8ba38ca7905a5accb0
check for PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP
Resolves: #1141 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Improved platform compatibility by updating thread lock settings to depend on system macro availability. - Enhanced logging format for progress reports with standardized integer forma...
diff --git a/src/graph/graph.c b/src/graph/graph.c index beb1aeda3a..06c53c2a23 100644 --- a/src/graph/graph.c +++ b/src/graph/graph.c @@ -37,7 +37,7 @@ static void _CreateRWLock res = pthread_rwlockattr_init(&attr) ; ASSERT(res == 0) ; -#if !defined(__APPLE__) && !defined(__FreeBSD__) +#ifdef PTHREAD_RWLOCK_PREF...
3
1
0
[{"id": "G0", "claim": "The virtual-key log format string in src/serializers/decoders/prev/v15/decode_graph.c has a syntax error - an extra space after the '/' (\"/% \" PRIu64 instead of \"/%\" PRIu64) - and should be fixed as the suggested diff shows.", "category": "correctness", "verdict": "supported", "priority": "P...
null
FalkorDB__FalkorDB__1157
FalkorDB/FalkorDB
1,157
defect
2035982c10c9a1c37e9dd8a383231efe17f27d09
687c727bcabf6b4d74ef128ae097fbdab3e3286d
Multi writer
Resolves: #1156 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a dedicated write queue for managing concurrent write queries, providing improved control over write access and deferred execution. * Added new error messaging for wr...
diff --git a/src/commands/cmd_context.c b/src/commands/cmd_context.c index 7f2ef63025..3d57242924 100644 --- a/src/commands/cmd_context.c +++ b/src/commands/cmd_context.c @@ -8,7 +8,6 @@ #include "cmd_context.h" #include "../globals.h" #include "../util/rmalloc.h" -#include "../util/thpool/pools.h" #include "../slo...
11
6
1
[{"id": "G0", "claim": "ThreadPool_SetMaxPendingWork uses the undefined variable `val` instead of its parameter `cap`, which does not compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The graph's pending-write queue capacity of 1024 is hardcod...
null
FalkorDB__FalkorDB__1169
FalkorDB/FalkorDB
1,169
defect
7c2d45b87d4d1972faaab74a31ec51d563f83dfc
84de612bf6326005956ae5dbe50eddda8482350f
Param parser
Resolves: #1168 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a robust parser for Cypher query parameters, supporting advanced types (strings, numbers, booleans, null, arrays, maps) and escape sequences. * Expanded test coverage...
diff --git a/src/arithmetic/arithmetic_expression.c b/src/arithmetic/arithmetic_expression.c index bb3aebdf44..6548af112e 100644 --- a/src/arithmetic/arithmetic_expression.c +++ b/src/arithmetic/arithmetic_expression.c @@ -6,7 +6,7 @@ #include "./arithmetic_expression.h" -#include "../RG.h" +#include "RG.h" #incl...
12
4
2
[{"id": "G0", "claim": "The parser stores each parameter under its name concatenated with itself (e.g. 'foo' becomes 'foofoo'), which looks unintentional; replace it with a single copy of the name or, if intentional, explain why.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduce...
null
FalkorDB__FalkorDB__1218
FalkorDB/FalkorDB
1,218
defect
eb1fedd467ce49d383fb01a50d8f202261a80174
23eff8162d57e7dcb265b54f15a704aa5cc7d74a
Fix multiple inconsitent tests
fixed race conditions causing - Graph copy hanging - Test procedures failing - Test replication - Indexer use-after-free <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - None. - Bug Fixes - Improved task scheduling accuracy and responsi...
diff --git a/src/index/indexer.c b/src/index/indexer.c index cbccb6933a..d6de273620 100644 --- a/src/index/indexer.c +++ b/src/index/indexer.c @@ -253,6 +253,15 @@ static void *_indexer_run case INDEXER_EXIT: { + // free indexer + array_free (indexer->q) ; + indexer->q = NULL ; + + pthread_cond_de...
13
6
0
[{"id": "G0", "claim": "Replace test_replication.py's star import with an explicit import of wait_for_indices_to_sync so the new sync calls are not flagged as possibly undefined (Ruff F405).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The add...
null
FalkorDB__FalkorDB__1223
FalkorDB/FalkorDB
1,223
defect
25b221b71c691c883d70bec22d9808f8165ef160
3b83e549f940944d5ad0a0b7b697447e3493eec5
mutex circular buffer
Resolves: #1222 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Refactor - Improved buffering and cleanup for greater stability and thread-safety under load. - Streamlined finished-query streaming and query-logging paths for more reliable operation and reduced...
diff --git a/src/commands/cmd_query.c b/src/commands/cmd_query.c index 572c5f5831..4bc7843ebe 100644 --- a/src/commands/cmd_query.c +++ b/src/commands/cmd_query.c @@ -271,7 +271,7 @@ static void _ExecuteQuery(void *args) { // replicate original query QueryCtx_Replicate(query_ctx); } - } + } } Que...
8
5
0
[{"id": "G0", "claim": "CircularBuffer_Read returns 0 and 1 instead of false and true for its bool return type.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CircularBuffer_Free walks the items and destroys the internal mutex without ever acquiring...
null
FalkorDB__FalkorDB__1226
FalkorDB/FalkorDB
1,226
defect
f502813a4d07c4ad29b7cc061babe3b08a22a942
d54a9e8c25e174ccbd5f49e0302024ec59ea8195
cron test simple timer
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Replaced clock()-based timing in cron unit tests with a precise internal timer API, removing time.h dependency and keeping existing abort timing thresholds. * Made a replication monitor thread a daem...
diff --git a/tests/unit/test_cron.c b/tests/unit/test_cron.c index 590e0ea281..a6486873c1 100644 --- a/tests/unit/test_cron.c +++ b/tests/unit/test_cron.c @@ -6,10 +6,10 @@ #include "src/cron/cron.h" #include "src/util/rmalloc.h" +#include "src/util/simple_timer.h" #include <assert.h> #include <sys/select.h> -#...
6
4
0
[{"id": "G0", "claim": "Remove the extraneous blank line after the test_AbortRunningTask declaration and the extraneous consecutive blank lines in the loop body.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The loop declares ms, data, tic and ...
null
FalkorDB__FalkorDB__1568
FalkorDB/FalkorDB
1,568
defect
2fad85d9b69e2747c9bcff64f97cf0c97e32ccf2
3ef37d5ca093a5d93250ad40ae3af07cfad16c10
strict matrix sync policy change
Resolves: #1567 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved thread synchronization, locking and commit timing to reduce race conditions during graph updates and decoding. * Better state consistency during graph init, decode finaliz...
diff --git a/src/execution_plan/ops/op_merge.c b/src/execution_plan/ops/op_merge.c index 144aa281a1..a91ad7ee08 100644 --- a/src/execution_plan/ops/op_merge.c +++ b/src/execution_plan/ops/op_merge.c @@ -51,7 +51,6 @@ static void _UpdateProperties ( dict *node_pending_updates, dict *edge_pending_updates, - rax *blu...
7
2
0
[{"id": "G0", "claim": "The decoders acquire the graph write lock only when a new GraphContext is created, so when an existing GraphContext is reused, subsequent Graph_SetMatrixPolicy(g, SYNC_POLICY_NOP) calls would cause assertion failures; the lock should be acquired on that path too, consistently across all decoder ...
null
FalkorDB__FalkorDB__1590
FalkorDB/FalkorDB
1,590
defect
06f443f9932928377f0947c6ba6df6fbf2551d36
f88182f6a97e1e6ca5042e157ef1b64233128550
Fix reply when properties are null
This PR fixes handling null properties on reply by replying with empty array Solves #1572 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Added null-safety when reading entity attributes to prevent null dereferences and cleaned up extraneous ...
diff --git a/src/graph/entities/graph_entity.c b/src/graph/entities/graph_entity.c index 7a14da8b28..71d5f189e5 100644 --- a/src/graph/entities/graph_entity.c +++ b/src/graph/entities/graph_entity.c @@ -247,6 +247,10 @@ inline AttributeSet GraphEntity_GetAttributes ) { ASSERT(e != NULL); + if(!e->attributes) { + ...
11
8
1
[{"id": "G0", "claim": "Add a space after the 'if' keyword so the new guard reads `if (!e->attributes)`, consistent with project style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "GraphEntity_GetAttributes now returning NULL will crash the ma...
null
FalkorDB__FalkorDB__1816
FalkorDB/FalkorDB
1,816
defect
076bbdad256212a14cf546d5dc7d201fabc9f01c
37371d91c625fe90c0872af95764350cf5c478a2
fix(comparator): use safe three-way pattern for uint64_t qsort comparators
## Summary Fix integer overflow in qsort comparators that subtract `uint64_t` values and return the result as `int`. When the difference exceeds `INT_MAX` or wraps unsigned, the truncated result produces incorrect sort ordering. ## Changes - **`src/graph/graph_delete_edges.c`**: Replace `as - bs` and `at - bt` with ...
diff --git a/src/graph/graph_delete_edges.c b/src/graph/graph_delete_edges.c index 5f43d595b3..e75af8f7d6 100644 --- a/src/graph/graph_delete_edges.c +++ b/src/graph/graph_delete_edges.c @@ -34,12 +34,12 @@ static int _edge_cmp // same relationship-type, different source node ID if (as != bs) { - return as - bs ...
1
1
1
[{"id": "G0", "claim": "A regression unit test for SIValue_Compare on T_NODE/T_EDGE should be added using entity IDs > INT_MAX (e.g., 0 vs 1ULL<<32) to ensure ordering is preserved and does not regress to truncating/overflowing subtraction-based comparisons.", "category": "testing", "verdict": "supported", "priority": ...
null
FalkorDB__FalkorDB__1843
FalkorDB/FalkorDB
1,843
defect
b77fdc160539be24e9248c81df4112b28b9e081f
9899f373dcc743b1cae139a0ace81c6c3ea849bb
fix(serializer): add missing return after free on corrupted RDB buffer
## Summary Adds `RedisModule_Log` + `RedisModule_Assert` to the deleted-entity RDB decoders to abort on corrupted buffers, preventing use-after-free and double-free when the buffer is misaligned or the count does not match. ## Changes - Replace silent `return` with `RedisModule_Log` + `RedisModule_Assert(false)` in ...
diff --git a/src/serializers/decoders/current/v19/decode_graph_entities.c b/src/serializers/decoders/current/v19/decode_graph_entities.c index 2976237c76..9026b4eac0 100644 --- a/src/serializers/decoders/current/v19/decode_graph_entities.c +++ b/src/serializers/decoders/current/v19/decode_graph_entities.c @@ -204,6 +20...
2
2
1
[{"id": "G0", "claim": "In the v19 and v18 deleted-entity decoders the element-count check is only a debug-only ASSERT, so in release builds a corrupted RDB with a mismatched header count can make the loop read past the buffer (OOB read); the reviewer asks for a runtime validation (compare the counts, free the buffer, ...
null
FalkorDB__FalkorDB__488
FalkorDB/FalkorDB
488
defect
aff6a5746d08887346dc55abe749c15d574b3c56
5e6134192b3f5a1679a045ff852e70e83d2a9303
CREATE should not access its own unbounded entities
Resolves [#425](https://github.com/FalkorDB/FalkorDB/issues/425) The `CREATE` clause is not supposed to "see" its own newly created entities e.g. `CREATE (a {v:e.v+1})-[e:R {v:2}]->()` `CREATE (a {v:b.v}), (b {v:a.v})`
diff --git a/src/ast/ast_rewrite_filters.c b/src/ast/ast_rewrite_filters.c new file mode 100644 index 0000000000..86e586f62c --- /dev/null +++ b/src/ast/ast_rewrite_filters.c @@ -0,0 +1,183 @@ +/* + * Copyright FalkorDB Ltd. 2023 - present + * Licensed under the Server Side Public License v1 (SSPLv1). +*/ + +#include "...
5
2
0
[{"id": "G0", "claim": "AST_RewriteFilters is dead code that always returns false, so it should be removed if unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maybe an optimization should be introduced to merge consecutive CREATE clauses w...
null
FalkorDB__FalkorDB__540
FalkorDB/FalkorDB
540
defect
24ea8c63ee9cfbc6fbc34233670f643ab0967437
9d6ef6aab37409728616b6c77b577a0b73cb1ec2
address websocket review
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced the character limit for certain inputs to improve user experience. - Implemented version checking during the handshake process for better compatibility management. - **Bug Fixes** ...
diff --git a/src/bolt/bolt_api.c b/src/bolt/bolt_api.c index ac9bb10c31..2f7e20ff54 100644 --- a/src/bolt/bolt_api.c +++ b/src/bolt/bolt_api.c @@ -74,7 +74,7 @@ static bool is_authenticated } uint32_t len; - char s[10]; + char s[64]; bolt_read_string_size(&client->msg_buf.read, &len); bolt_read_string(&client...
14
7
2
[{"id": "G0", "claim": "A helper such as buffer_len(buff) returning the number of bytes written to the buffer should be introduced instead of computing it with buffer_index_diff.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_headers should not cop...
null
FalkorDB__FalkorDB__592
FalkorDB/FalkorDB
592
defect
6ceccaa8cdc497da7145f708873987470af3b218
38ecd529aace92bb6578e01a9d569cbbd63faced
Load CSV
Fix: #877 `LOAD CSV FROM 'a.csv' AS row RETURN row` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new dependency, `libcsv`, to enhance data import capabilities. - Introduced tests for loading CSV files in a graph database en...
diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c index e07ac298d6..c2104aa90f 100644 --- a/src/ast/ast_validations.c +++ b/src/ast/ast_validations.c @@ -504,6 +504,23 @@ static VISITOR_STRATEGY _Validate_pattern_comprehension return VISITOR_CONTINUE; } +// validate LOAD CSV clause +static VISITOR...
17
1
0
[{"id": "G0", "claim": "The mock-data behavior in the LOAD CSV op should be clearly documented or flagged so it is not confused with production behavior.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G9", "claim": "SIArray_Sort could check that the array is not...
null
FalkorDB__FalkorDB__604
FalkorDB/FalkorDB
604
defect
6ceccaa8cdc497da7145f708873987470af3b218
63d0e32d7c61da895b367150f77fb6d23329d781
fix crash in rewrite call subquery
fix https://github.com/FalkorDB/FalkorDB/issues/605 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Enhanced query processing capabilities to support complex queries with nested FOREACH and UNION operations in CALL blo...
diff --git a/src/ast/ast_rewrite_call_subquery.c b/src/ast/ast_rewrite_call_subquery.c index 674478e844..b610ca7cbe 100644 --- a/src/ast/ast_rewrite_call_subquery.c +++ b/src/ast/ast_rewrite_call_subquery.c @@ -425,6 +425,8 @@ static void _rewrite_projections _add_first_clause(clause, clause_ind, first_ind, names, ...
1
1
0
[{"id": "G0", "claim": "Please update the new test32_rewrite_callsubquery to use a more simplified query (a single FOREACH with CREATE instead of the nested FOREACH/MERGE).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FalkorDB__FalkorDB__765
FalkorDB/FalkorDB
765
defect
69350653a1eeff44f0327e8a80c3b368de0a81b2
9b6a77171c64671ce7aee736fca7feb4dd1e7933
expose vector options
fix https://github.com/FalkorDB/FalkorDB/issues/766 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced support for version 15 of the graph serialization protocol, including functions for encoding and decoding g...
diff --git a/deps/RediSearch b/deps/RediSearch index 5555bf0f7d..556dd4cfaf 160000 --- a/deps/RediSearch +++ b/deps/RediSearch @@ -1 +1 @@ -Subproject commit 5555bf0f7d886f59806c1e46abdf78b99a481f8d +Subproject commit 556dd4cfaf159ada712960cb45679e08d9b926ef diff --git a/src/commands/cmd_copy.c b/src/commands/cmd_copy....
8
5
1
[{"id": "G0", "claim": "The hardcoded default values for M, efConstruction and efRuntime in _parseOptions should be replaced with #define constants.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vector options (dimension, M, efConstruction,...
null
FalkorDB__FalkorDB__771
FalkorDB/FalkorDB
771
defect
d5b6941d4e3e49dfe736632606476a94e685e4ba
366ab49b904db55b97b6069016f494b1c6d6c7ba
expose similarity function
fix https://github.com/FalkorDB/FalkorDB/issues/773 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced support for dynamic similarity metrics in vector fields, allowing users to specify similarity functions such as Euclidean and Cos...
diff --git a/src/index/index.c b/src/index/index.c index 71bd5329ac..459893b71b 100644 --- a/src/index/index.c +++ b/src/index/index.c @@ -140,7 +140,8 @@ static void _Index_ConstructStructure field->vector_name); RediSearch_VectorFieldSetDim(rsIdx, fieldID, field->hnsw_options.dimension); - RediSearch_Ve...
5
4
1
[{"id": "G0", "claim": "The new similarity-function code (IndexField_NewVectorField, IndexField_OptionsSetSimFunc/GetSimFunc and vector index creation with a metric) is not covered by tests, and a test should be added that checks a vector index with the new metric function.", "category": "testing", "verdict": "supporte...
null
FalkorDB__FalkorDB__983
FalkorDB/FalkorDB
983
defect
bc500e45cc2fe9b38eae98f7f539ec56c45dea5b
33c62577b99f9fcd2c2c3dd81f49dffa854f5259
Reuse strings
Resolves: #982 This PR introduces a `string pool` shared across the entire DB. The pool can be enabled / disabled at load time via a new configuration: `DEDUPLICATE_STRINGS` If enabled, every attribute value (directed / indirected) (flat / nested) of type string resides within that pool, incase multiple entities h...
diff --git a/src/configuration/config.c b/src/configuration/config.c index 9a239d03c4..11ba288c36 100644 --- a/src/configuration/config.c +++ b/src/configuration/config.c @@ -75,6 +75,9 @@ // import folder #define IMPORT_FOLDER "IMPORT_FOLDER" +// deduplicate string +#define DEDUPLICATE_STRINGS "DEDUPLICATE_STRINGS...
15
6
1
[{"id": "G0", "claim": "If runtime configuration of DEDUPLICATE_STRINGS is intended, the new Config_DEDUPLICATE_STRINGS enum entry should also be added to the RUNTIME_CONFIGS array (or the startup-only intent documented).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "...
null
Falldog__pyconcrete__113
Falldog/pyconcrete
113
defect
33656ddfd5503cc24f32278802d67ebd1b0558c1
3641b28003e3d2a60058aea5db48de4e7d9f760d
Introduce meson-python for building system
This is a big step to change the building system from distutils to meson-python. ## Reason to create the PR Base on [PEP-632](https://peps.python.org/pep-0632/), python3.12 removed `distutils` package. Its original major building utility for pyconcrete. It also would be the largest reason which pyconcrete hard to c...
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..27f27d7 --- /dev/null +++ b/Makefile @@ -0,0 +1,59 @@ +DEFAULT_TEST_PY_VER = 3.10 + +.PHONY: help test attach + +help: + @printf "Usage: make [OPTION]\n" + @printf "\n" + @printf "test [version: 3.7|3.8|3.9|3.10|...]\n" + @printf "attach [version: 3.7...
3
3
3
[{"id": "G0", "claim": "Reading the version with run_command('cat', 'VERSION') is non-portable (unix-only); meson has a builtin for this, and the version should instead be given to project() via version: files('VERSION') with dynamic = [\"version\"] in pyproject.toml so it does not need to be bumped in two files.", "ca...
null
Fantom-foundation__Sonic__114
Fantom-foundation/Sonic
114
defect
433e313aa881795141d3cf470d2da4f47285d140
b2e48c8305dc0c71dff9bd2bfddcfeda11081d8d
Add tx tracing tests
Adding tests for tx tracing logger These tests are checking correct information in the transaction traces according to schema: https://docs.rs/web3/latest/web3/types/struct.TransactionTrace.html Tests are simulating EVM callbacks to the tracer to generate json response, so real EVM proccessing is not included in the...
diff --git a/ethapi/tx_trace.go b/ethapi/tx_trace.go index 2fa6a04d6..ef1420e3f 100644 --- a/ethapi/tx_trace.go +++ b/ethapi/tx_trace.go @@ -136,7 +136,11 @@ func (s *PublicTxTraceAPI) replayBlock(ctx context.Context, block *evmcore.EvmBl return nil, fmt.Errorf("cannot get message from transaction %s, error %s", t...
2
2
0
[{"id": "G0", "claim": "The expected trace values should be inlined in each test instead of referenced through package-level expectedXxxResult variables (the reviewer preferred this, stating it was not a must).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
Fantom-foundation__Sonic__189
Fantom-foundation/Sonic
189
defect
b01cae07f0896336181f8c4b07c9ececff113299
0cca790f58206bb6ef1d2334c7c1817ccdeae26e
Add batch and js tracer limits
This PR adds possibility to limit size of rpc **batch** calls in general and number of concurent **javascript tracers** used in `debug_trace` rpc calls. There are two new config variables - BatchRequestLimit: 1000 - JSTracerLimit: 0 From command line, they can be used with parameters - rpc.batchrequestlimit -...
diff --git a/config/flags/flags.go b/config/flags/flags.go index 78b158a09..66a382691 100644 --- a/config/flags/flags.go +++ b/config/flags/flags.go @@ -296,6 +296,16 @@ var ( Usage: "Time limit for RPC calls execution", Value: gossip.DefaultConfig(cachescale.Identity).RPCTimeout, } + BatchRequestLimitFlag = cl...
2
2
1
[{"id": "G0", "claim": "JSTracerLimit should have a nonzero (limiting) default value instead of 0, which means no limit.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The formatting of the touched code in ethapi/api.go is broken and should be fixed (gof...
null
Fantom-foundation__Sonic__216
Fantom-foundation/Sonic
216
defect
02b3875e2b5bfbca7fde57253284dce4162714f2
6c0ff09098d80b9a2d5a2f8e3d88920f384e0033
Enable Cancun upgrade when Sonic upgrade is enabled
Enable Cancun upgrade when Sonic upgrade is enabled. Because Sonic is not enabled by default in the new networks, new fakenets are being created with Cancun already enabled. The base Chainconfig structure "AllEthashProtocolChanges" is copied from Ethereum to avoid introducing EVM changes by go-ethereum dependency up...
diff --git a/gossip/blockproc/evmmodule/evm.go b/gossip/blockproc/evmmodule/evm.go index 72c4b2b21..dbb6aa18c 100644 --- a/gossip/blockproc/evmmodule/evm.go +++ b/gossip/blockproc/evmmodule/evm.go @@ -126,11 +126,7 @@ func (p *OperaEVMProcessor) Finalize() (evmBlock *evmcore.EvmBlock, skippedTxs [ p.statedb.EndBlock(...
3
2
1
[{"id": "G0", "claim": "CarmenStateDB.CreateContract should call c.db.CreateContract, not c.db.CreateAccount.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The SetStorage method body is not implemented, and the reviewer asks whether that is corre...
null
Fantom-foundation__Sonic__220
Fantom-foundation/Sonic
220
defect
6a31c498a543d5faad89a5fc626111fc660611df
9f49fa72fd3211b4ea896af4cb395f740de61cc7
Don't accept non empty blob transactions
This PR adds validation of the EIP-4844 blob transaction on the transaction pool level. If the blob transaction is not empty, it is not accepted by the transaction pool. Because this PR is dependant on correct upgrade handling, PR https://github.com/Fantom-foundation/Sonic/pull/216 needs to be merged before this PR
diff --git a/ethapi/api.go b/ethapi/api.go index 09ec13ee6..a59270717 100644 --- a/ethapi/api.go +++ b/ethapi/api.go @@ -1676,7 +1676,7 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c if err := b.SendTx(ctx, tx); err != nil { return common.Hash{}, err } // Print a log with ful...
2
2
0
[{"id": "G0", "claim": "The test helper createTestBlobTransaction could be simplified if the blob data were passed as []byte instead of a hex string, avoiding the need to decode from hex.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blob-t...
null
Fantom-foundation__Sonic__223
Fantom-foundation/Sonic
223
defect
75340d5d5cf29163af4cdd82c15606108126ed18
5ac30397f76a5189a066644aeb593748e7152f77
Kjezek/enable ethereum test
This PR adapts ethereum tests to run against Sonic client. It uses a customised version of ethereum tests in `go-ethereum-sonic` and passes carmen implementation into those test. It implements a factory and adaptor for carmen to be able to pass it to `go-ethereum-sonic`. `init_test.go` was copied and slightly...
diff --git a/gossip/evmstore/carmen.go b/gossip/evmstore/carmen.go index 52c046f33..c0b36e785 100644 --- a/gossip/evmstore/carmen.go +++ b/gossip/evmstore/carmen.go @@ -73,6 +73,27 @@ func (c *CarmenStateDB) GetLogs(txHash common.Hash, blockHash common.Hash) []*ty return logs } +func (c *CarmenStateDB) Logs() []*t...
2
1
0
[{"id": "G0", "claim": "No test verifies that the new CarmenStateDB.Logs() conversion produces correct logs, so one should be added to the todo list if none exists.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copied go-ethereum test infrastructure ...
null
Fantom-foundation__Sonic__255
Fantom-foundation/Sonic
255
defect
331c4bd2daf8ba57855525d04595be71f3e12515
ff546d4e7942f0566ad9b454e8a2b288444d5be1
Add end-to-end BlobBaseFee instruction test
This PR adds an end-to-end test for BlobBaseFee opcode ([EIP-7516](https://eips.ethereum.org/EIPS/eip-7516)) The test added performs the following steps: - deploys a smart contract capable of retrieving the current blobbasefee for archive queries - fetches the blobbasefee from the contract using a transaction (via...
diff --git a/tests/blobbasefee_test.go b/tests/blobbasefee_test.go new file mode 100644 index 000000000..1da8b8aa3 --- /dev/null +++ b/tests/blobbasefee_test.go @@ -0,0 +1,53 @@ +package tests + +import ( + "testing" + + "github.com/Fantom-foundation/go-opera/tests/contracts/blobbasefee" + "github.com/ethereum/go-ether...
2
2
1
[{"id": "G0", "claim": "Implement the EIP-4844 blob-base-fee formula from EIP-7516 in the test and verify that the block-header information is consistent with the blob base fee reported in transaction logs and archive queries.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
Fantom-foundation__Sonic__275
Fantom-foundation/Sonic
275
defect
77419d240c75f8e237e02381c14952f71a16f11d
7c0f140df595101c5da11f739931a3a9e29cfda8
Add RPC response size limit for debug and trace namespace
This PR adds functionality created in PR #193 which was not merged into develop branch yet. Refers to issue [#56](https://github.com/Fantom-foundation/sonic-admin/issues/56)
diff --git a/config/flags/flags.go b/config/flags/flags.go index 2ecf8f66c..f344abe0c 100644 --- a/config/flags/flags.go +++ b/config/flags/flags.go @@ -302,6 +302,11 @@ var ( Usage: "Maximum number of bytes returned from a batched call", Value: node.DefaultConfig.BatchResponseMaxSize, } + MaxResponseSizeFlag =...
5
5
2
[{"id": "G0", "claim": "The response size limit should not be a global variable but a member field of the APIs and the JsonResultBuffer that need it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Catching panics as the out-of-memory guard should be aban...
null
Fantom-foundation__Sonic__282
Fantom-foundation/Sonic
282
defect
4b4070a4701ffbfcd09d820af348db9726ee9729
dfea0d0fb10e1a20226591d25b3177684ae768da
Withdrawals verification test
This PR adds a test that aims to verify the `Withdrawals` field added by ([EIP-4895](https://eips.ethereum.org/EIPS/eip-4895)). The test: - sets up a network, looks at the first block and checks that both, the `Withdrawals` list and the Header's `WithdrawalsHash` are empty or nil. - creates a new block with an emp...
diff --git a/tests/withdrawals_test.go b/tests/withdrawals_test.go new file mode 100644 index 000000000..092dea210 --- /dev/null +++ b/tests/withdrawals_test.go @@ -0,0 +1,64 @@ +package tests + +import ( + "bytes" + "context" + "math/big" + "testing" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/...
13
10
2
[{"id": "G0", "claim": "The test lacks an enumeration of the properties it tests; its comments describe the process of running the code rather than what is tested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test asserts the block's Withdra...
null
Fantom-foundation__Sonic__299
Fantom-foundation/Sonic
299
defect
15cea75195c90aaa44b8c2e8f5fbe025f39e4cde
b74b0b61240ed3a014f9fd21ad7cdb8e07b9ec5c
Add integration test for transaction gas prices.
This PR adds tests for the fields `max_fee_per_gas`, `max_priority_fee_per_gas` in dynamic fee transactions (Type 1, eip-1559) and `gasPrice` in legacy transactions (type 0). All transactions have the following properties: - balance is reduced by an amount of gas equal to `effectiveGasPrice * transactionGasCost` ...
diff --git a/evmcore/tx_pool.go b/evmcore/tx_pool.go index 5393e73c9..fcb39f5a5 100644 --- a/evmcore/tx_pool.go +++ b/evmcore/tx_pool.go @@ -69,7 +69,7 @@ var ( // configured for the transaction pool. ErrUnderpriced = errors.New("transaction underpriced") - // ErrTxPoolOverflow is returned if the transaction pool...
3
3
2
[{"id": "G0", "claim": "Because the BaseFee can change with every block (and will with #297), getBaseFee should take a parameter specifying the block number for which the base fee is requested (available from receipt.BlockNumber) instead of reading the latest block.", "category": "correctness", "verdict": "supported", ...
null
Fantom-foundation__Sonic__327
Fantom-foundation/Sonic
327
defect
63190cb72ba47ca67ce8162046ab0b0cc18a76de
21b3f299a987de1117438d520a359f759da4530b
Lower integration tests memory usage
This PR lowers memory usage for fake net and integration tests by ~500 MB per test. Before: <img width="300" alt="Screenshot 2024-11-28 at 12 36 47" src="https://github.com/user-attachments/assets/6db9254a-9140-4972-b759-e13512c58e37"> After: <img width="300" alt="Screenshot 2024-11-28 at 12 37 05" src="https://g...
diff --git a/cmd/sonicd/app/launcher.go b/cmd/sonicd/app/launcher.go index 6bf9120dc..fe7582fff 100644 --- a/cmd/sonicd/app/launcher.go +++ b/cmd/sonicd/app/launcher.go @@ -222,6 +222,10 @@ func lachesisMain(ctx *cli.Context) error { } metrics.SetDataDir(cfg.Node.DataDir) // report disk space usage into metrics +...
3
2
1
[{"id": "G0", "claim": "Avoid the boolean flag parameter added to MakeGossipDb, because boolean arguments give callers no hint what true or false means and harm readability.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tying the cache configuration to ...
null
Fantom-foundation__Sonic__329
Fantom-foundation/Sonic
329
defect
27feb175ba89199e901a58147b692b4479725142
392e3ad91d3e96f07bba93e32458f5f7860e2fd0
Rewrite and test transaction pool replacement policy.
This PR rewrites the transaction pool replacement policy. The transaction pool performs a check before a transaction can be replaced. This happens when a transaction has been in the transaction pool for some time, it hasn’t been assigned to any event, and the user wants to reconfigure it (submit a new transaction wi...
diff --git a/evmcore/tx_list.go b/evmcore/tx_list.go index 5029e51d8..081398607 100644 --- a/evmcore/tx_list.go +++ b/evmcore/tx_list.go @@ -282,33 +282,36 @@ func (l *txList) Overlaps(tx *types.Transaction) bool { // Add tries to insert a new transaction into the list, returning whether the // transaction was acce...
7
5
1
[{"id": "G0", "claim": "Rename the local variable `minimumIncrement` to `minimumNewTipCap` in txList.Add, since it holds the minimum new tip cap rather than an increment.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reword the comment above th...
null
Fantom-foundation__Sonic__33
Fantom-foundation/Sonic
33
defect
369a7296ce3d245a22f8056d9dad8d2a457adf25
d200dee6fa58472d5cd6d5e43096cf2bf6cbe92e
Use 9/10 or pending in tx hashes spreading
This improves the network performance in cases, where it rely on random tx hashes distribution. I most of the cases, the node spreads the tx when it is promoted into pending in the given node. If it is lost in the transmission (or truncated from the pool), the node is unable to promote any following tx, until it rec...
diff --git a/evmcore/tx_list.go b/evmcore/tx_list.go index eebbb9815..5029e51d8 100644 --- a/evmcore/tx_list.go +++ b/evmcore/tx_list.go @@ -243,6 +243,15 @@ func (m *txSortedMap) LastElement() *types.Transaction { return cache[len(cache)-1] } +// GetElement returns element of a flattened list by index or nil. +fu...
1
1
0
[{"id": "G0", "claim": "sampleTxHashes should avoid the double iteration by generating a random skip and computing a (skip + size) % len() start point so the sampling fills the rest in a single loop, removing the anonymous function and its double call.", "category": "performance", "verdict": "supported", "priority": "P...
null
Fantom-foundation__Sonic__334
Fantom-foundation/Sonic
334
defect
2b4972cf42d7e70be57154dd746e507b30dc0518
64163f3d2233ceb23deb844b1eb865997bda7ab6
Lower memory consumption for integration tests.
This PR lowers memory consumption by fakenet and integration tests by StateDB instances by ~250 MB Before <img width="477" alt="Screenshot 2024-11-25 at 9 36 00" src="https://github.com/user-attachments/assets/f3bd65e5-f58e-4b3b-bc79-d209c701b129"> After: <img width="409" alt="Screenshot 2024-11-25 at 9 36 41" sr...
diff --git a/cmd/sonicd/app/launcher.go b/cmd/sonicd/app/launcher.go index 6bf9120dc..75d56105b 100644 --- a/cmd/sonicd/app/launcher.go +++ b/cmd/sonicd/app/launcher.go @@ -222,6 +222,11 @@ func lachesisMain(ctx *cli.Context) error { } metrics.SetDataDir(cfg.Node.DataDir) // report disk space usage into metrics +...
2
2
1
[{"id": "G0", "claim": "The comment on the new StateDbCapacity field should note that 0 selects the DB-selected default (apply the suggested wording '(0 for DB-selected default)').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The StateDB cache c...
null
Fantom-foundation__Sonic__336
Fantom-foundation/Sonic
336
defect
63190cb72ba47ca67ce8162046ab0b0cc18a76de
046480c182be07ffc7a3008e01846c88992ac13e
Remove unnecessary effective base-fee method
Removes the method `ftm_effectiveBaseFee` from the list of supported RPC methods. This method is nowhere documented and introduces complexity that restricts refactoring and other improvements. For instance, it blocks #326 due to the difficult interaction of network rules with those base-fee predictions. Furtherm...
diff --git a/ethapi/api.go b/ethapi/api.go index f2464df8a..77bb8f7ff 100644 --- a/ethapi/api.go +++ b/ethapi/api.go @@ -155,10 +155,6 @@ func (s *PublicEthereumAPI) FeeHistory(ctx context.Context, blockCount math.HexO return res, nil } -func (s *PublicEthereumAPI) EffectiveBaseFee(ctx context.Context) *hexutil.Bi...
1
1
0
[{"id": "G0", "claim": "Regenerate the Backend mock after the EffectiveMinGasPrice method is removed from the interface, so ethapi/mock_backend.go stays in sync.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Fantom-foundation__Sonic__339
Fantom-foundation/Sonic
339
defect
d2c069ba5857f29a780b6a23d197bafdc6a295ca
c2d5610bbb0323609b17a6f10fddb674c8ba121a
Add integration test for JSON Genesis
This PR adds an integration test checking the proper support for initiating the client state using a JSON genesis file.
diff --git a/Makefile b/Makefile index 99d6ac18a..0efb3edb6 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ sonic-image: .PHONY: test test: - go test -cover ./... + go test -cover ./... --timeout 30m .PHONY: coverage coverage: diff --git a/integration/makefakegenesis/genesis.go b/integration/makefakegene...
2
1
0
[{"id": "G0", "claim": "The BlockZeroTime field should also be added to example-genesis.json to provide an example of a valid value there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reviewer questions whether time.Time is the right type for Bl...
null
Fantom-foundation__Sonic__344
Fantom-foundation/Sonic
344
defect
f7eb9afdff2a6a75c53550e27a05085e89dbd74c
96e6f2b22ee3e0a8aa5362e0e7ad27eeb77fe2ea
Check completeness of logs
This PR adds an integration test verifying that log messages can be retrieved from the chain even after node restarts and re-initialization.
diff --git a/tests/block_header_test.go b/tests/block_header_test.go index 77279d65b..e4ca02685 100644 --- a/tests/block_header_test.go +++ b/tests/block_header_test.go @@ -1,9 +1,11 @@ package tests import ( + "cmp" "context" "fmt" "math/big" + "slices" "testing" "time" @@ -12,6 +14,8 @@ import ( "gi...
1
1
0
[{"id": "G0", "claim": "In both new log test helpers, the blockHash (and blockNumber) declarations should be moved before the client.BlockReceipts call and the blockHash variable used in rpc.BlockNumberOrHashWithHash instead of re-calling header.Hash() there.", "category": "maintainability", "verdict": "supported", "pr...
null
Fantom-foundation__Sonic__346
Fantom-foundation/Sonic
346
defect
5cfe1a81679b8b4a967c26c27faa02d297a608b8
906f2904ce610513a1c78182600a0ef66eed36c8
Add missing blob fields to rpc json serialization
To support type 3 (blob) transactions, these two missing fields need to be included in the serialization. This missing fields triggered an error during the deserialization when fetching the last block, after a blob tx was executed.
diff --git a/ethapi/api.go b/ethapi/api.go index 77bb8f7ff..b826cf734 100644 --- a/ethapi/api.go +++ b/ethapi/api.go @@ -1218,25 +1218,27 @@ func RPCMarshalBlock(block *evmcore.EvmBlock, receipts types.Receipts, inclTx bo // RPCTransaction represents a transaction that will serialize to the RPC representation of a t...
1
1
0
[{"id": "G0", "claim": "The sanity check should fetch and check all blocks up to the last, not just the last block, to make sure no new blocks were inserted between the one created with the blob transaction and the one tested (fetching those blocks should take no time).", "category": "testing", "verdict": "supported", ...
null
Fantom-foundation__Sonic__370
Fantom-foundation/Sonic
370
defect
1933d89b40f511df7a8481d19b8ccedd5f19e383
352fb364375b253ca5b98b76b81b8b180df60ef9
Implement getAccount RPC method
This PR adds getAccount method to the RPC according to [this](https://www.quicknode.com/docs/ethereum/eth_getAccount) documentation. Copy of #317 - `StorageRoot` can now be extracted from `WitnessProof`
diff --git a/ethapi/api.go b/ethapi/api.go index 22166561e..f3ceb6f54 100644 --- a/ethapi/api.go +++ b/ethapi/api.go @@ -708,6 +708,40 @@ func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Add return (*hexutil.U256)(state.GetBalance(address)), state.Error() } +// GetAccountResult is resul...
6
6
3
[{"id": "G0", "claim": "The integration test should verify the account's real values — code hash, balance, nonce and storage root, e.g. via the getProof RPC — rather than merely checking that they are non-zero or positive.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
Fantom-foundation__Sonic__377
Fantom-foundation/Sonic
377
defect
484623180f050781aa555c3a8a8abb6ec64b52e0
3465cd4fbf7ae384f9bfcbc6fba49de03e2c1b05
Handle every error in test routines
This PR add error handling in unit tests for every test file in the project. This PR does not change code used anywhere but tests. Part of: https://github.com/Fantom-foundation/sonic-admin/issues/90
diff --git a/cmd/cmdtest/test_cmd.go b/cmd/cmdtest/test_cmd.go index bfbf08da7..e093188f1 100644 --- a/cmd/cmdtest/test_cmd.go +++ b/cmd/cmdtest/test_cmd.go @@ -80,7 +80,9 @@ func (tt *TestCmd) Run(name string, args ...string) { // // cli.expect(`Passphrase: {{.InputLine "password"}}`) func (tt *TestCmd) InputLine(s...
1
1
0
[{"id": "G0", "claim": "The startEpoch value returned by setup() is ignored by its only call site, so that return value can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Fantom-foundation__Sonic__83
Fantom-foundation/Sonic
83
defect
a2b22e62619c76f8c611e48508aa8fcc245abaf4
f25dbf9407ef9ddfcf6748c57a4bcb557290f341
Removing StateDB wrapping struct, using StateDbInterface directly
Refactoring after removing of StateDB implementation switching. Removes code which becomes obsolete when Carmen StateDB becomes the only supported.
diff --git a/cmd/opera/launcher/fixdirty.go b/cmd/opera/launcher/fixdirty.go index 5bed453dc..a9eb43cfa 100644 --- a/cmd/opera/launcher/fixdirty.go +++ b/cmd/opera/launcher/fixdirty.go @@ -20,9 +20,6 @@ import ( "github.com/Fantom-foundation/go-opera/inter/iblockproc" ) -// maxEpochsToTry represents amount of last...
1
1
0
[{"id": "G0", "claim": "The new warning in revertGossipDb should drop the pronoun and use a more generic message, e.g. \"Carmen DB must be replaced manually before opening.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Fantom-foundation__Sonic__92
Fantom-foundation/Sonic
92
defect
f60064b2b138c8bfed8f37d7fe10f7ac315353f2
6c80593ea33c20a666b0b937e09abecca09e71fa
Move Carmen into EvmStore, handle startup errors without db breaking
* Moves Carmen configuration into EvmStore, removes our norma-specific "statedb" switching package * Improves the node startup error handling - avoids calling `log.Crit`/`utils.Fatalf`, which do hard termination of the process * `utils.StartNode` from go-ethereum inlined to allow this change (includes even `diskusa...
diff --git a/cmd/opera/launcher/accountcmd.go b/cmd/opera/launcher/accountcmd.go index 159a915e0..64a3b0830 100644 --- a/cmd/opera/launcher/accountcmd.go +++ b/cmd/opera/launcher/accountcmd.go @@ -19,7 +19,6 @@ package launcher import ( "errors" "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -199,7 +1...
1
1
1
[{"id": "G0", "claim": "Replace the time.Sleep() loop inside MonitorFreeDiskSpace() with a time.Ticker, since the sleep technically blocks the thread and cannot be terminated.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Fantom-foundation__go-opera__400
Fantom-foundation/go-opera
400
defect
559c17cb607b7d5656693f93aabebb041c03cce1
a25eb00fb05c86a21162875a1bc646e06afea2fe
Cache cap
- `--cache flag` is capped to 60% of available memory in order to prevent OEM. Previously `--cache` flag was meant to reflect upper bound of memory consumption but since 1.1.2, due to general increasing of DB caches, it's closer to average consumption (but still above it). Also, setting too high cache value may lead to...
diff --git a/cmd/opera/launcher/config.go b/cmd/opera/launcher/config.go index 704a73f64..2c046604e 100644 --- a/cmd/opera/launcher/config.go +++ b/cmd/opera/launcher/config.go @@ -19,6 +19,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/params" "github.com/naoina/toml" ...
1
1
0
[{"id": "G0", "claim": "The warning log message misspells 'available' as 'availible' and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FarGroup__FarManager__1062
FarGroup/FarManager
1,062
defect
1724659fb0cab68a74e94cf5ffa2427d786c1e24
87409bd128f70d223fb44a4c6c8e2e5546abf30c
Fullwidth-aware `VMenu` rendering and other improvements.
## Summary `VMenu` is rendered correctly in fullwidth-aware mode. ## References I promised to fix outstanding issues in the short discussion associated with 9f7479a1. Unfortunately, I cannot find this thread now. ## Checklist - [X] I have followed the [contributing guidelines](https://github.com/FarGroup/FarMa...
diff --git a/far/changelog b/far/changelog index 4a4fa7caf0..2fc330c3fd 100644 --- a/far/changelog +++ b/far/changelog @@ -1,3 +1,8 @@ +-------------------------------------------------------------------------------- +MZK 2026-01-04 17:57:18-05:00 - build 6626 + +1. Fullwidth-aware VMenu rendering and other improvement...
8
4
3
[{"id": "G0", "claim": "The helper should be named ClippedText rather than BoundedText, since it renders the string while hiding the parts outside of the bounds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ClippedText's return contract feels ...
null
FarGroup__FarManager__927
FarGroup/FarManager
927
defect
3c7775932889b0eccf0b52f4655c728ecfa16c0a
081726d2424809937c9da52f9d43be31ee8b9a45
gh-918: Introduced type `segment`
## Summary Using `segment` instead of `std::pair<int, int>` (or similar) because there is no way to remember what the `second` item represents: length, end, or last. ## References - gh-918 ## Checklist - [X] I have followed the [contributing guidelines](https://github.com/FarGroup/FarManager/blob/master/CONTRI...
diff --git a/far/changelog b/far/changelog index cb6700c251e..225e924bda3 100644 --- a/far/changelog +++ b/far/changelog @@ -1,3 +1,10 @@ +-------------------------------------------------------------------------------- +MZK 2025-03-15 22:40:45-04:00 - build 6451 + +1. gh-918: Introduced type segment + Using segment ...
5
3
0
[{"id": "G0", "claim": "segment_t looks suspiciously similar to std::ranges::subrange, so the PR should consider using the standard type instead of a hand-rolled one.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new segment.hpp carries a copyright ye...
null
FarGroup__FarManager__935
FarGroup/FarManager
935
defect
66ce1d93a024c93e89a4fbf1a032a40199198f3d
3d82daff4b6bcb92639e829669e916c801462e8b
gh-918: Keep found position in Find All dialog always visible
## Summary - Now it's possible to add fixed columns at the left side of Lists. - Used fixed columns in Find All dialog to keep found position always visible. - Fixed hot key auto-assignment (because it happened to be on the way). ## References - gh-918 <!-- Please review the items on the PR checklist before s...
diff --git a/far/common.tests.cpp b/far/common.tests.cpp index df01c16380..1119ee4392 100644 --- a/far/common.tests.cpp +++ b/far/common.tests.cpp @@ -1189,6 +1189,38 @@ TEST_CASE("preprocessor.literals") //---------------------------------------------------------------------------- +#include "common/segment.hpp" ...
11
8
4
[{"id": "G0", "claim": "Some compilers seem to be unhappy with the `<generator>` include, so the compilers should be upgraded or, if that is not possible, the code should stop using it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Clang warns with...
null
Farama-Foundation__Gymnasium__1006
Farama-Foundation/Gymnasium
1,006
defect
6047a8cfac2865c2dc0f6faf5e8197c602d430a5
f2e28b8f3a10c34c4803965101ca382c1ea3bc6e
Added metadata field to VectorEnv and VectorWrapper. Implements #1005.
# Description Added metadata field to VectorEnv and VectorWrapper. Fixes #1005 ## Type of change - [ ] Documentation only change (no code changed) - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feat...
diff --git a/gymnasium/vector/vector_env.py b/gymnasium/vector/vector_env.py index 7127dd9aa..271603a9a 100644 --- a/gymnasium/vector/vector_env.py +++ b/gymnasium/vector/vector_env.py @@ -92,6 +92,9 @@ class VectorEnv(Generic[ObsType, ActType, ArrayType]): :func:`make_vec` is the equivalent function to :func:...
2
2
1
[{"id": "G0", "claim": "Please quickly add tests covering the metadata field added to VectorEnv and VectorWrapper.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please add documentation about the metadata member variable to the vector API docs.", "cate...
null
Farama-Foundation__Gymnasium__1018
Farama-Foundation/Gymnasium
1,018
defect
94a7909042e846c496bcf54f375a5d0963da2b31
927e504e1584c15b849ee48bbd68c2a236ea74fc
Fixed `wrappers.vector.RecordEpisodeStatistics` episode length computation from new autoreset api
# Description Fixed wrappers.vector.RecordEpisodeStatistics episode length computation. Fixes #1017 ## Type of change Please delete options that are not relevant. - [ ] Documentation only change (no code changed) - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking c...
diff --git a/gymnasium/wrappers/vector/common.py b/gymnasium/wrappers/vector/common.py index d019b4a2d..af00ac38a 100644 --- a/gymnasium/wrappers/vector/common.py +++ b/gymnasium/wrappers/vector/common.py @@ -83,6 +83,7 @@ def __init__( self.episode_start_times: np.ndarray = np.zeros(()) self.episode_...
2
2
1
[{"id": "G0", "claim": "A comment should be added explaining why the info dicts cannot be compared directly (episode time taken varies between the two).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten test should assert the data_equiv...
null
Farama-Foundation__Gymnasium__1019
Farama-Foundation/Gymnasium
1,019
defect
94a7909042e846c496bcf54f375a5d0963da2b31
43970bca34b99e530e448b58f477be99fc7b4df4
Update Pusher-v5 model to one that is compatible with `mujoco>=3`
# Description increased the weight of the object to `7.85398163e-06 kg` from `1.30899694e-08 kg` (500x increase) Fixes https://github.com/Farama-Foundation/Gymnasium/issues/950 testing & validation was done using: https://github.com/Kallinteris-Andreas/Gymnasium-Pusher-v5-model-validation ## credits @Kallint...
diff --git a/gymnasium/envs/mujoco/assets/pusher_v5.xml b/gymnasium/envs/mujoco/assets/pusher_v5.xml new file mode 100644 index 000000000..49b45fcef --- /dev/null +++ b/gymnasium/envs/mujoco/assets/pusher_v5.xml @@ -0,0 +1,97 @@ +<!-- +Pusher model for `Pusher-v5`, based on openai/gym/Pusher +modified by @Kallinteris-A...
1
1
1
[{"id": "G0", "claim": "Add a warning to the version history of v4 (in the Pusher-v5 docstring) that the v4 environment is incompatible with mujoco>=3.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Farama-Foundation__Gymnasium__1126
Farama-Foundation/Gymnasium
1,126
defect
a01d94d70242062fd8407855997797e5fb76c00b
4a4b2c690e1333a82b08d09ab7ab2aa450a22dff
Add (A)syncVectorEnv support for sub-envs with different obs spaces
# Description In order to add Meta-World environments to use the Sync/Async Gymnasium methods, a change needed to be made in order to batch observations that have different low/high values. This change allows the user to specify one of 3 modes for batching observations: - 'same': current method of having the sam...
diff --git a/gymnasium/vector/async_vector_env.py b/gymnasium/vector/async_vector_env.py index 89999951d..6caafb8a1 100644 --- a/gymnasium/vector/async_vector_env.py +++ b/gymnasium/vector/async_vector_env.py @@ -14,7 +14,7 @@ import numpy as np -from gymnasium import logger +from gymnasium import Space, logger f...
6
6
3
[{"id": "G0", "claim": "The new parameter annotations should use `str | Space` instead of `str or Space`, which does not express a union type.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new observation_mode parameter should be documented i...
null
Farama-Foundation__Gymnasium__1130
Farama-Foundation/Gymnasium
1,130
defect
a01d94d70242062fd8407855997797e5fb76c00b
76faa298e150852723488247ab9042fa4b22be2c
Fix the off-by-one error in FunctionalJaxVectorEnv
See #1122 FunctionalJaxVectorEnv wasn't adapted to the new autoreset order
diff --git a/gymnasium/envs/functional_jax_env.py b/gymnasium/envs/functional_jax_env.py index 578e37d92..88741ad41 100644 --- a/gymnasium/envs/functional_jax_env.py +++ b/gymnasium/envs/functional_jax_env.py @@ -137,7 +137,7 @@ def __init__( self.steps = jnp.zeros(self.num_envs, dtype=jnp.int32) - ...
4
3
0
[{"id": "G0", "claim": "Seed the action space in the new episode-length test so the sampled actions are reproducible.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should assert that both envs truncate on the same step or neither does, instead...
null
Farama-Foundation__Gymnasium__1170
Farama-Foundation/Gymnasium
1,170
defect
4d15c99c3dae41b54f53d077295146a5123164c0
06fcd4240259541e0386832a539b9e1dc5421d9a
Fix `VectorizeActionTransform` for changing spaces
# Description Fixes #1169 `gymnasium.wrappers.vector.VectorizeActionTransform` was incorrectly implemented for changing spaces, i.e., `self.same_out is False` as the direction of data is the opposite of `VectorizeObservationTransform` from which it was copied.
diff --git a/gymnasium/wrappers/vector/vectorize_action.py b/gymnasium/wrappers/vector/vectorize_action.py index 3dc4a797a..f0f0b8e57 100644 --- a/gymnasium/wrappers/vector/vectorize_action.py +++ b/gymnasium/wrappers/vector/vectorize_action.py @@ -138,7 +138,7 @@ def __init__( self.action_space = batch_space(...
2
2
0
[{"id": "G0", "claim": "The first argument passed to `concatenate` (and `iterate`, whose docstring was copied from `concatenate`) should be the single action space rather than the batched space, as the docstrings suggest.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
Farama-Foundation__Gymnasium__1253
Farama-Foundation/Gymnasium
1,253
defect
ebe70a1aebcbf00f5f137e98da250b089ce7ad74
48502750e4f85bbc26dc8612cb022ddbf3ce524d
Fix discrete CarRacing-v3
# Description CarRacing-v3 in discrete mode first converts the action to a float value before checking if the action is part of the discrete action-space. This causes an error to be raised. Minimal example to reproduce this error: ``` import gymnasium as gym env = gym.make("CarRacing-v3", continuous=False) ...
diff --git a/gymnasium/envs/box2d/car_racing.py b/gymnasium/envs/box2d/car_racing.py index fe3320cce..a989467e3 100644 --- a/gymnasium/envs/box2d/car_racing.py +++ b/gymnasium/envs/box2d/car_racing.py @@ -541,8 +541,8 @@ def reset( def step(self, action: Union[np.ndarray, int]): assert self.car is not Non...
2
1
1
[{"id": "G0", "claim": "A test should be added (probably in tests/envs/test_env_implementations.py) that passes valid and invalid actions to discrete CarRacing-v3 and to LunarLander-v3, which has a similar continuous=False, and checks that the error occurs for the invalid one.", "category": "testing", "verdict": "suppo...
null
Farama-Foundation__Gymnasium__1299
Farama-Foundation/Gymnasium
1,299
defect
5bc344e03ae457712b49bf06c20a313b6b1accc4
d30fc6c4be9fb0ab6dae4c419c47e28a456515e5
Add full support for dlpack API
# Description This PR adds support for the modern dlpack API to transfer jax arrays to torch tensors and vice-versa. We now determine at initialization if the installed versions of jax and pytorch meet the API requirements, and select the suitable conversion path based on that flag. Fixes #1298 ## Type of cha...
diff --git a/gymnasium/wrappers/jax_to_torch.py b/gymnasium/wrappers/jax_to_torch.py index fb13d37eb..8dd56aea2 100644 --- a/gymnasium/wrappers/jax_to_torch.py +++ b/gymnasium/wrappers/jax_to_torch.py @@ -24,6 +24,19 @@ import jax import jax.numpy as jnp from jax import dlpack as jax_dlpack + + def _a...
2
1
1
[{"id": "G0", "claim": "The hand-rolled _at_least_version version check may not capture all possible version types (e.g. alpha, beta, post releases), so the PR should use the packaging library's version handling for the check instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
Farama-Foundation__Gymnasium__1411
Farama-Foundation/Gymnasium
1,411
defect
3b653fe9976a5ddefae331bfab7846c898c0d7b6
e035394f06b97d6287ccbd6aa1a3c7a79674b94d
Wrapper to discretize observations and actions
# Description Wrappers to discretize continuous states and actions. There are few environments with discrete states and actions, and it can be useful to benchmark algorithms on more of them -- especially to validate results on tabular algorithms before moving to approximate algorithsm (e.g., Q-Learning before DQN)....
diff --git a/gymnasium/wrappers/__init__.py b/gymnasium/wrappers/__init__.py index 1244e183e..1bbf6d226 100644 --- a/gymnasium/wrappers/__init__.py +++ b/gymnasium/wrappers/__init__.py @@ -76,11 +76,13 @@ from gymnasium.wrappers.stateful_reward import NormalizeReward from gymnasium.wrappers.transform_action import ( ...
5
3
1
[{"id": "G0", "claim": "The finite-bounds check should be written with np.any so that no low or high element may be infinite.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It is asked whether the wrapper works for 2+ dimensional boxes or only 1-D o...
null
Farama-Foundation__Gymnasium__1418
Farama-Foundation/Gymnasium
1,418
defect
58c6b7b49da20418b21df632866eb215f8c26876
1f3caa9be1108719be272e246f43fa5ab87424aa
Vector RecordVideo
# Description Vector RecordVideo wrapper. Related to [this issue](https://github.com/Farama-Foundation/Gymnasium/issues/1414#issuecomment-3084989093). Docs of the new class has an example. I copied the basic RecordVideo wrapper and changed `_capture_frame` to process tuples of frames (from VectorEnv). Then, ther...
diff --git a/gymnasium/wrappers/rendering.py b/gymnasium/wrappers/rendering.py index 12142911e..3bb34270f 100644 --- a/gymnasium/wrappers/rendering.py +++ b/gymnasium/wrappers/rendering.py @@ -183,8 +183,6 @@ class RecordVideo( However, you can also create recordings of fixed length (possibly spanning several epis...
12
10
8
[{"id": "G0", "claim": "Episode boundaries must also be detected in `step` for the vector autoreset modes (a parameter to only start recording on reset), since vector users generally never call `reset` after the initial call.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
Farama-Foundation__Gymnasium__1419
Farama-Foundation/Gymnasium
1,419
defect
58c6b7b49da20418b21df632866eb215f8c26876
ed854ca488cd814afd952af5c05a5ed216801a51
[Bugfix] fixed `step()` function in `AsyncVectorEnv` from hanging forever
# Description Added action space assertion in `AsyncVectorEnv` `step` method to ensure that the actions passed to the step method are validated against the action space, preventing `step_await` hangs forever. Fixes #1417 ## Type of change Please delete options that are not relevant. - [ ] Documentatio...
diff --git a/gymnasium/vector/async_vector_env.py b/gymnasium/vector/async_vector_env.py index 78584636d..adadff78d 100644 --- a/gymnasium/vector/async_vector_env.py +++ b/gymnasium/vector/async_vector_env.py @@ -385,7 +385,13 @@ def step( Returns: Batch of (observations, rewards, terminations, ...
2
2
2
[{"id": "G0", "claim": "The `assert self.action_space.contains(actions)` added to `AsyncVectorEnv.step` could cause significant slowdowns; the alternative is to confirm in `step_async` that every environment has an action, using `zip(..., strict=True)` (supported on 3.10+) which raises an error if the two sequences are...
null
Farama-Foundation__Gymnasium__1467
Farama-Foundation/Gymnasium
1,467
defect
20460c5be7b143b53b9599eeff43185e528f62b6
b149eea8b8e01f875e2b7a39a7ec1dec5b16c79b
Add dtype parameter to Discrete
# Description This is a continuation of the work started in #1197. During implementation, the following questions arose: 1. **MultiDiscrete dtype initialization**: In [`gymnasium/spaces/multi_discrete.py` (line 64)](https://github.com/Farama-Foundation/Gymnasium/blob/main/gymnasium/spaces/multi_discrete.py#L64), ...
diff --git a/gymnasium/spaces/discrete.py b/gymnasium/spaces/discrete.py index 38b96a3f6..baa5d6220 100644 --- a/gymnasium/spaces/discrete.py +++ b/gymnasium/spaces/discrete.py @@ -3,14 +3,17 @@ from __future__ import annotations from collections.abc import Iterable, Mapping, Sequence -from typing import Any +from ...
14
11
5
[{"id": "G0", "claim": "All spaces should validate that a provided dtype is correct, raising an error (through an assertion or raise) when it is not, since np.dtype(None) returns np.float64.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "_batch_di...
null
Farama-Foundation__Gymnasium__1526
Farama-Foundation/Gymnasium
1,526
defect
1b22cb891b48f4cc1e45b021d09e44bccdd1ca91
43aea3b34c3499e92c6486cee6f9c8189f97c1cf
Fix NormalizeReward extra return_rms updates during vector env autoreset
Fixes #1451 The vector `NormalizeReward` wrapper was counting phantom autoreset steps from `SyncVectorEnv` as real steps, causing `return_rms` to receive extra updates that diverged from per-env `NormalizeReward` behavior. When `SyncVectorEnv` autoresets a sub-env (AutoresetMode.NEXT_STEP), it returns reward=0, t...
diff --git a/gymnasium/wrappers/vector/stateful_reward.py b/gymnasium/wrappers/vector/stateful_reward.py index 72be451cb..ab09752c3 100644 --- a/gymnasium/wrappers/vector/stateful_reward.py +++ b/gymnasium/wrappers/vector/stateful_reward.py @@ -59,9 +59,9 @@ class NormalizeReward(VectorWrapper, gym.utils.RecordConstruc...
1
1
1
[{"id": "G0", "claim": "The vector NormalizeReward wrapper and the standard per-env wrapper should have equivalent return_rms statistics, and the new test should assert that equivalence explicitly (mean and var too, not just count).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
Farama-Foundation__Gymnasium__284
Farama-Foundation/Gymnasium
284
defect
d46ff0e129072163d0aba6736f1b7eb0581cce8d
d759ca758429ec609ab7035661503151bd6a498c
Add `Stack` to `Sequence` space - #217
# Description Added a `stack` parameter to stack samples from `Sequence`. Fixes #217 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to ...
diff --git a/gymnasium/spaces/sequence.py b/gymnasium/spaces/sequence.py index c2c84e165..f7a995877 100644 --- a/gymnasium/spaces/sequence.py +++ b/gymnasium/spaces/sequence.py @@ -8,6 +8,7 @@ import numpy as np import numpy.typing as npt +import gymnasium as gym from gymnasium.spaces.space import Space @@ -31...
1
1
0
[{"id": "G0", "claim": "Add two example spaces to TESTING_COMPOSITE_SPACES in tests/spaces/utils.py using Sequence(Box(), stack=True) and Sequence(Dict({...}), stack=True) so stacked sequence spaces get the standard composite-space test coverage, after which the PR is good to merge.", "category": "testing", "verdict": ...
null
Farama-Foundation__Gymnasium__495
Farama-Foundation/Gymnasium
495
defect
54a268f3d825781451d88d54d3053a2a63ebec64
a9a2d7984fb7f89bb4b46a368b247c9d2a1081bd
Disallow `Box` `low > high` and `low == inf` and `high == -inf`
# Description This disallows the user from creating box spaces where the range is 0. Fixes #493 ## Type of change Please delete options that are not relevant. - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) # Checklist: - [x] I have run the [`p...
diff --git a/gymnasium/spaces/box.py b/gymnasium/spaces/box.py index 44217f5bb..6c9b2fe24 100644 --- a/gymnasium/spaces/box.py +++ b/gymnasium/spaces/box.py @@ -89,7 +89,7 @@ def __init__( if shape is not None: assert all( np.issubdtype(type(dim), np.integer) for dim in shape - ...
5
4
1
[{"id": "G0", "claim": "Instead of disallowing `low == high` outright, the check should only prevent the three cases `np.any(low > high)`, `np.any(low == np.inf)` and `np.any(high == -np.inf)`, since sampling a single value (`np.random.uniform(low=0, high=0)`) is supported.", "category": "correctness", "verdict": "supp...
null
Farama-Foundation__Gymnasium__731
Farama-Foundation/Gymnasium
731
defect
54d2ba79404e9937ba2a1d44449915ecb00f95ce
67dd66331bcfee5d7ddf2333ab328870882b8d75
More control over offscreen dimensions and scene geometries
# Description Offscreen Renderers do not allow control of viewer dimensions or the maximum number of geometries in the scene. We fix this issue with minimal implementation to address #730. This is motivated by the need to have multiple renderers at different resolutions and to render cluttered scenes Fixes #730 ...
diff --git a/gymnasium/envs/mujoco/mujoco_rendering.py b/gymnasium/envs/mujoco/mujoco_rendering.py index 78abbbeec..d2c73af5f 100644 --- a/gymnasium/envs/mujoco/mujoco_rendering.py +++ b/gymnasium/envs/mujoco/mujoco_rendering.py @@ -38,7 +38,12 @@ def _import_osmesa(width, height): class BaseRender: def __init_...
5
5
3
[{"id": "G0", "claim": "The `max_geom` parameter should default to the int 1000 instead of `Optional[int] = None`, and be passed straight to `MjvScene` without the `max_geom or 1000` fallback.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The refactor o...
null
Farama-Foundation__Gymnasium__774
Farama-Foundation/Gymnasium
774
defect
2b2e853536bab403112c21e377ff6e6291de442c
e8a0b9bee6484afeba8f0a2a55269bb353c490f4
Fix Box casting and sampling edge-cases
# Description Changes Box to raise an error during init if either `low` or `high` are outside the limits of the Box's dtype. Values that are `np.inf`, `-np.inf`, or `np.nan` are ignored. Also changes Box's sampling to prevent an edge-case. Having a `low` value near a dtype's _max_ int and an unbounded `high` valu...
diff --git a/gymnasium/spaces/box.py b/gymnasium/spaces/box.py index 418cb7158..1ff223999 100644 --- a/gymnasium/spaces/box.py +++ b/gymnasium/spaces/box.py @@ -10,7 +10,7 @@ from gymnasium.spaces.space import Space -def _short_repr(arr: NDArray[Any]) -> str: +def array_short_repr(arr: NDArray[Any]) -> str: "...
11
6
0
[{"id": "G0", "claim": "Box silently accepts out-of-range, nan, and unsigned-int inf/-inf low/high bounds, producing overflowed, platform-dependent or otherwise invalid values, and should raise errors for these cases in __init__ instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "p...
null
Farama-Foundation__Gymnasium__830
Farama-Foundation/Gymnasium
830
defect
ede2ed1af2146bd9d3a3129418eb929636c78d96
2be19db5dad44bbe259d3ea0f03dfa47d9ccc264
Add `padding_type` parameter to `FrameSkipObservation` and change default to "reset" to preserve backwards comp
# Description FrameStacking as initially (from long time ago) designed filled the buffer with the initial observation from env.reset, I.e. repeated many times as the stacking number. In the re-implementation the assumption changed to fill it with zeroes, but this not only breaks many codes, it breaks "what is exp...
diff --git a/gymnasium/wrappers/stateful_observation.py b/gymnasium/wrappers/stateful_observation.py index a77f7c230..ecbc0762c 100644 --- a/gymnasium/wrappers/stateful_observation.py +++ b/gymnasium/wrappers/stateful_observation.py @@ -371,7 +371,7 @@ def step( Returns: Stacked observations, rewa...
1
1
1
[{"id": "G0", "claim": "Replacing the previous zero padding with the first observation breaks the prior implementation, so the user should be able to select the padding observation in `__init__` with the options \"zero\", \"initial\", and custom.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
Farama-Foundation__Gymnasium__900
Farama-Foundation/Gymnasium
900
defect
de909da30a1fe40288275da331fa7ad8e219a2bc
9e669d759a5081e0c0cb59d59e7da41c0b2690ab
Add `params` and `rng` argument to all `FuncEnv` member functions
# Description Fixes https://github.com/Farama-Foundation/Gymnasium/issues/851, https://github.com/Farama-Foundation/Gymnasium/issues/861 <!-- Note: this PR does fix the issue where `params` are not tested --> ## Type of change - [ ] Documentation only change (no code changed) - [ ] Bug fix (non-breaking chan...
diff --git a/gymnasium/envs/functional_jax_env.py b/gymnasium/envs/functional_jax_env.py index 2fc5e55c7..577012caf 100644 --- a/gymnasium/envs/functional_jax_env.py +++ b/gymnasium/envs/functional_jax_env.py @@ -66,7 +66,7 @@ def reset(self, *, seed: int | None = None, options: dict | None = None): rng, self....
2
2
1
[{"id": "G0", "claim": "Can the rng argument be made optional in the same way as params?", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the rng argument can be made optional, add tests covering all calling variants (implicit None, explicit None, expli...
null
Farama-Foundation__Gymnasium__959
Farama-Foundation/Gymnasium
959
defect
5417ed9f23479ecc593cf8eaca6eac64f2e2d154
be402205e7549fd2290aab9c1655cf7125eba1e2
Randomize LunarLander wind generation at reset to gain statistical independence between episodes
# Description This request changes the way `gymnasium/envs/box2d/lunar_lander.py` randomly draws a new `wind_idx` and `torque_idx` so new indexes are drawn randomly whenever the environment is reset rather than only at initialization. This ensures that the environment is statistically independent between episodes, w...
diff --git a/gymnasium/envs/box2d/lunar_lander.py b/gymnasium/envs/box2d/lunar_lander.py index 4e3790bac..583e11de6 100644 --- a/gymnasium/envs/box2d/lunar_lander.py +++ b/gymnasium/envs/box2d/lunar_lander.py @@ -254,8 +254,6 @@ def __init__( self.turbulence_power = turbulence_power self.enable_wind...
4
4
4
[{"id": "G0", "claim": "The wind and turbulence indices must be drawn with the environment's seeded self.np_random instead of the global np.random so reset(seed) controls them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests are needed to ...
null
Farama-Foundation__Metaworld__102
Farama-Foundation/Metaworld
102
defect
a199179d680c4014cb0288bd2835d270e6b66d8f
18240e724603c40bef51246d86caa4aeb1c6b0a0
Scripted policies for peg-insert and peg-unplug
The peg-unplug env was fairly straightforward and solvable in V1. peg-insert was very broken so I added a V2 environment. Adjustments are listed in the changelog comment at the top of the class. Success rates: - peg-insert-v1: 0% - peg-insert-v2: 96% - peg-unplug-v1: 99%
diff --git a/metaworld/envs/mujoco/env_dict.py b/metaworld/envs/mujoco/env_dict.py index 0ce4fe7bf..f942c780b 100644 --- a/metaworld/envs/mujoco/env_dict.py +++ b/metaworld/envs/mujoco/env_dict.py @@ -21,6 +21,7 @@ from metaworld.envs.mujoco.sawyer_xyz.sawyer_drawer_close import SawyerDrawerCloseEnv from metaworld.en...
3
2
0
[{"id": "G0", "claim": "Use simple L2 distance, i.e. a 1-element value, for the hole's location in the observation instead of the 3-element vector pointing from end effector to hole.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Soften the docstring's c...
null