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
CrunchyData__pg_parquet__115
CrunchyData/pg_parquet
115
defect
6014e1193dfea5baf7640c03617d436228a45185
f1c7adf623099772b9907c2de9bc9b2415dc6644
Support http(s) stores
pg_parquet supports reading/writing from/to public http(s) parquet uris to/from Postgres tables. Closes #108.
diff --git a/Cargo.toml b/Cargo.toml index 589beb3..524f7bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ aws-credential-types = {version = "1", default-features = false} azure_storage = {version = "0.21", default-features = false} futures = "0.3" home = "0.5" -object_store = {version = "0.11", default-...
2
2
1
[{"id": "G0", "claim": "The unsupported-scheme error messages added by this PR should advertise the `az://` scheme instead of `azure://`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "create_http_object_store should not unconditionally allow inva...
null
CrunchyData__pg_parquet__120
CrunchyData/pg_parquet
120
defect
8cec92c656090076dc6e103da938cae8da9ceb42
84e70403a1379224b60501916aca22c3806c86ff
Support copying from glob patterns
- [x] Adds udf `parquet.list(<uri_with_pattern>)` where `uri_with_pattern` might contain `*` for words of arbitrary length or `**` for arbitrarily nested directories. - [x] Support `COPY FROM <uri_with_pattern>`. ```sql COPY test1 TO '/tmp/parent/child/test1.parquet'; COPY test2 TO '/tmp/parent/child/test2.parqu...
diff --git a/Cargo.lock b/Cargo.lock index b04ecf3..b0ab316 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2539,6 +2539,7 @@ dependencies = [ "aws-credential-types", "azure_storage", "futures", + "glob", "home", "object_store", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index d828ad8..b46f852 100644 --...
4
3
1
[{"id": "G0", "claim": "The README line added for Http(s) storage should read `https` (lowercase) instead of `Https`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `is_pattern` check is redundant because any path containing `**` also contains...
null
CrunchyData__pg_parquet__146
CrunchyData/pg_parquet
146
defect
b533b2427378bd657fd07226db4bf6b22f7080c5
3982e9807dfcdb3f09b66bca305fe970f27ae19c
Support "COPY FROM/TO PROGRAM '...' WITH (format parquet)"
Now it is possible to use programs with `COPY table TO/FROM PROGRAM '...' WITH (format parquet)` syntax. e.g. ```sql pg_parquet=# CREATE TABLE test_table(a int); CREATE TABLE pg_parquet=# INSERT INTO test_table SELECT i FROM generate_series(1,10) i; INSERT 0 10 pg_parquet=# COPY test_table TO PROGRAM 'cat ...
diff --git a/src/arrow_parquet/uri_utils.rs b/src/arrow_parquet/uri_utils.rs index f24d232..8d98bea 100644 --- a/src/arrow_parquet/uri_utils.rs +++ b/src/arrow_parquet/uri_utils.rs @@ -40,10 +40,21 @@ pub(crate) struct ParsedUriInfo { pub(crate) path: Path, pub(crate) scheme: ObjectStoreScheme, pub(crate...
2
2
1
[{"id": "G0", "claim": "The way program handling is mixed into the stdin/stdout temp-file state is confusing and should be renamed to reduce confusion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new program execution for COPY FROM should...
null
CrunchyData__pg_parquet__61
CrunchyData/pg_parquet
61
defect
1b5878dfa4c15257194f6fb7987020b21a5aa104
d6957e08e95bd04ed7f49fbd8a26104a0019e891
Adds Support for COPY TO/FROM Google Cloud Storage
Supports following Google Cloud Storage uri forms: - gs:// \<bucket\> / \<path\> **Configuration** The simplest way to configure object storage is by creating a json config file like `~/.config/gcloud/application_default_credentials.json` (can be generated by `gcloud auth application-default login`): ```bash ...
diff --git a/.devcontainer/.env b/.devcontainer/.env index f5074b9..51f795e 100644 --- a/.devcontainer/.env +++ b/.devcontainer/.env @@ -22,5 +22,10 @@ AZURE_TEST_READ_WRITE_SAS="se=2100-05-05&sp=rcw&sv=2022-11-02&sr=c&sig=TPz2jEz0t ALLOW_HTTP=true HTTP_ENDPOINT=http://localhost:8080 +# GCS tests +GOOGLE_TEST_BUCKE...
1
1
1
[{"id": "G0", "claim": "The README's Google Cloud Storage section points to `/tmp/gcs.json` as the config file and does not mention the default credentials location or `gcloud auth application-default login`, which is probably not the default location and should be in the docs.", "category": "documentation", "verdict":...
null
CrunchyData__pg_parquet__94
CrunchyData/pg_parquet
94
defect
fcb50367861771180445da6af6eca6375a78e398
fef4b5536341d25391b45955963731c532da0301
Adds basic geoparquet support
We already write postgis geometry column as WKB formatted binary, as specified by [geoparquet spec](https://geoparquet.org/releases/v1.1.0/). With this PR, we also write basic geoparquet metadata to key value metadata of the parquet file. We support only basic info (required by the spec) to be interoperable with [du...
diff --git a/Cargo.lock b/Cargo.lock index bfe857f..67ce14a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2477,6 +2477,8 @@ dependencies = [ "pgrx", "pgrx-tests", "rust-ini", + "serde", + "serde_json", "tokio", "url", ] diff --git a/Cargo.toml b/Cargo.toml index c545672..3ec97ef 100644 --- a/Cargo.toml +++ b/...
2
1
0
[{"id": "G0", "claim": "The comment saying the typmod constants were \"taken from Postgis source code\" should be reworded, since citing GPL-licensed Postgis source could raise licensing eyebrows — e.g. reference the WKT Wikipedia page or just say \"see postgis:\".", "category": "documentation", "verdict": "supported",...
null
CrunchyData__pg_parquet__98
CrunchyData/pg_parquet
98
defect
fcb50367861771180445da6af6eca6375a78e398
b8f90612a705f39d9ab32ff095f27b14805f9b5e
Support copying numerics with larger scale than precision
In parquet, we cannot write numeric with larger scale than precision. But postgres allows it. We can adjust the numeric typmod in that case.
diff --git a/Cargo.lock b/Cargo.lock index bfe857f..67ce14a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2477,6 +2477,8 @@ dependencies = [ "pgrx", "pgrx-tests", "rust-ini", + "serde", + "serde_json", "tokio", "url", ] diff --git a/Cargo.toml b/Cargo.toml index c545672..3ec97ef 100644 --- a/Cargo.toml +++ b/...
1
1
0
[{"id": "G0", "claim": "The new comment on the scale > precision adjustment in extract_precision_and_scale_from_numeric_typmod should be expanded to explain why setting precision to scale is ok.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CrunchyData__pg_parquet__99
CrunchyData/pg_parquet
99
defect
fcb50367861771180445da6af6eca6375a78e398
39bbefe1e97210312873fb9b5ba2ad7a9b10c230
Cache object stores per scheme + bucket per session
In this PR, we cache object stores per scheme (e.g. s3) + bucket (or container) combination in each Postgres session. This will reduce authentication costs by only doing it at the first time. For s3, object_store does not perform sts assume_role to get temp token, so pg_parquet make use of aws sdk to perform it. And...
diff --git a/.devcontainer/entrypoint.sh b/.devcontainer/entrypoint.sh index 43944ed..d2858aa 100755 --- a/.devcontainer/entrypoint.sh +++ b/.devcontainer/entrypoint.sh @@ -4,5 +4,6 @@ trap "echo 'Caught termination signal. Exiting...'; exit 0" SIGINT SIGTERM # create azurite container az storage container create -...
3
1
0
[{"id": "G0", "claim": "Question whether the expiration warning needs to be thrown at all, given that new credentials will be automatically retrieved.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing an expired entry from the cache may not release...
null
CrunchyData__postgres-operator__1801
CrunchyData/postgres-operator
1,801
defect
75b49e90863eed545e8faae7b520a5184abb7b7a
8b299355072819594bef8f59db85c83c2d1fde25
Update the Restore Workflow to Use the '--restore-from' Approach
When a PostgreSQL cluster restore is requested (e.g. via `pgo restore mycluster` when using the `pgo` client, when calling the `restore` REST endpoint directly, or when submitting a pgBackRest restore pgtask), the workflow utilized when creating a new cluster from an existing backup (i.e. the workflow used when the `--...
diff --git a/installers/ansible/roles/pgo-operator/files/pgo-configs/cluster-bootstrap-job.json b/installers/ansible/roles/pgo-operator/files/pgo-configs/cluster-bootstrap-job.json index 231dcb49e1..0e8f187e6c 100644 --- a/installers/ansible/roles/pgo-operator/files/pgo-configs/cluster-bootstrap-job.json +++ b/installe...
3
3
0
[{"id": "G0", "claim": "The restore confirmation message should use %q instead of '%s' for the quoted opts and pitr-target values.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Several log.Errorf calls in the restore handler pass a concatenated...
null
CrunchyData__postgres-operator__1993
CrunchyData/postgres-operator
1,993
defect
de63c7a403b004d28b19f64dcb431785d4b32e7a
4c51f807f6f100635d53b32f8b56f836f1e05664
Update image standard image tag when using a GIS enabled pgcluster
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/operator/cluster/pgadmin.go b/internal/operator/cluster/pgadmin.go index eabe7454c8..a4494df6a3 100644 --- a/internal/operator/cluster/pgadmin.go +++ b/internal/operator/cluster/pgadmin.go @@ -349,7 +349,7 @@ func createPgAdminDeployment(clientset kubernetes.Interface, cluster *crv1.Pgclu Name:...
2
2
1
[{"id": "G0", "claim": "The `strings.Count(imageTag, \"-\") == 3` guard is problematic for RC tags that carry an extra hyphen (e.g. `centos8-13.0-3.0-4.5.0-rc.1`), for which the function would simply return the value passed in instead of stripping the GIS version.", "category": "correctness", "verdict": "supported", "p...
null
CrunchyData__postgres-operator__2540
CrunchyData/postgres-operator
2,540
defect
31cd265585adf10dfb4ed9b399aa632ec6e12a49
697a1babc51aa3f2851f2cb1a7a2cfda27ed3182
Custom shared preload libraries
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/controller/postgrescluster/controller.go b/internal/controller/postgrescluster/controller.go index c52eb118d8..ab45c6d175 100644 --- a/internal/controller/postgrescluster/controller.go +++ b/internal/controller/postgrescluster/controller.go @@ -25,7 +25,6 @@ import ( appsv1 "k8s.io/api/apps/v1" ...
2
2
1
[{"id": "G0", "claim": "New code in Reconcile should declare the monitoring secret with the `corev1` alias instead of the `v1` alias.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unconditional type assertion on `parameters[k]` can panic wh...
null
CrunchyData__postgres-operator__2573
CrunchyData/postgres-operator
2,573
defect
7c9e2532d8b6a56e6dfe2c5fd1f094bbd4d3e620
85b1a2ac58dd629f0d04b0daa4dcd58f938af50e
Reconcile PVCs Using Labels
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x...
diff --git a/internal/controller/postgrescluster/instance.go b/internal/controller/postgrescluster/instance.go index 13c6fe49e7..ac73cf18bb 100644 --- a/internal/controller/postgrescluster/instance.go +++ b/internal/controller/postgrescluster/instance.go @@ -1028,7 +1028,7 @@ func (r *Reconciler) reconcileInstance( ...
6
3
2
[{"id": "G0", "claim": "The new PVC-lookup helpers (getPVCName, getRepoPVCNames, getPGPVCNames) silently discard errors and return empty results, so a failed API call looks like no PVC exists; the errors should be handled (e.g. logged), and per cbandy the List error should be returned so reconciliation stops.", "catego...
null
CrunchyData__postgres-operator__2583
CrunchyData/postgres-operator
2,583
defect
7c9e2532d8b6a56e6dfe2c5fd1f094bbd4d3e620
a4d4676fb9ecb9d80f53913fe744284073361293
Fix Type Assertion for pg_hba Config
In accordance with the default types used when unmarshalling JSON into an interface value (https://pkg.go.dev/encoding/json#Unmarshal), the logic within the `patroni.DynamicConfiguration` function that detects user-provided `pg_hba` configuration (as provided using the `spec.patroni.dynamicConfiguration` section of th...
diff --git a/internal/patroni/config.go b/internal/patroni/config.go index e16d2aed56..69060ad662 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -280,8 +280,10 @@ func DynamicConfiguration( for i := range pgHBAs.Mandatory { hba[i] = pgHBAs.Mandatory[i].String() } - if section, ok := ...
2
2
2
[{"id": "G0", "claim": "The pull request's unchecked type assertion section.(string) could panic when the pg_hba input contains values that are not strings; the reviewer suggested skipping values that are not strings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
CrunchyData__postgres-operator__2642
CrunchyData/postgres-operator
2,642
defect
1d6b9328d8189e3d2adb1712b7d8435100a1d47e
ac1ab6efc471dea4ef76ed0635c4c080477a12da
Ensure shared memory is fully available to containers
7e0c1e5b6 introduced the ability to have full access to POSIX shared memory within a Postgres instance, which is fundamental to how Postgres works. This commit ensures that this configuration is carried forward into v5. Issue: [ch11872] fixes #2640
diff --git a/internal/controller/postgrescluster/instance.go b/internal/controller/postgrescluster/instance.go index 8a7dd139ba..20b577849d 100644 --- a/internal/controller/postgrescluster/instance.go +++ b/internal/controller/postgrescluster/instance.go @@ -1081,6 +1081,11 @@ func (r *Reconciler) reconcileInstance( ...
1
1
1
[{"id": "G0", "claim": "The new shared-memory emptyDir volume should set `Medium: corev1.StorageMediumMemory` so it is backed by memory (tmpfs) rather than the node's disk.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CrunchyData__postgres-operator__2667
CrunchyData/postgres-operator
2,667
defect
b284ed4ee4e51bf009ed1060315baefadcb66811
8bed16a4fb0e535073ef48d72b746130a12f601d
Custom Database Initialization SQL
As part of the reconcile loop, the DatabaseInitSQL field is checked. When found, the name and fieldPath from this field will be used to get data from the named Kubernetes ConfigMap. This data will be treated as a SQL file and executed in the database. The SQL statement(s) are passed in via stdin and may contain app...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index e98fb370db..9bd1eeba7a 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
15
13
5
[{"id": "G0", "claim": "reconcileDatabaseInitSQL should return the error from writing the SQL (return err) instead of returning nil and swallowing it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `if podExecutor == nil` check in reconcilePostg...
null
CrunchyData__postgres-operator__2817
CrunchyData/postgres-operator
2,817
defect
63480d3369216cf2f74201815aea9e86006fecc4
4dab7c4185c608dd2745846c2fa444ff6c8beb4d
Reload PgBouncer when TLS certificates change
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/docs/content/tutorial/administrative-tasks.md b/docs/content/tutorial/administrative-tasks.md index cbf77c1b4f..f9fb021bfe 100644 --- a/docs/content/tutorial/administrative-tasks.md +++ b/docs/content/tutorial/administrative-tasks.md @@ -52,7 +52,9 @@ When changing the PostgreSQL certificate authority, mak...
3
3
0
[{"id": "G0", "claim": "Consider surfacing an error or warning event (or eventually a validating webhook) when the custom TLS Secret does not contain all the expected certificates, and for this PR at least track future webhook validation with a TODO comment.", "category": "design", "verdict": "supported", "priority": "...
null
CrunchyData__postgres-operator__2866
CrunchyData/postgres-operator
2,866
defect
9ba6b9f760e0df18f2fe43a1e74b3e7751a711f4
67eee6f3a1fa6f6e71853cd4f32ac2a967aed810
Small cleanups to PKI tests
These two commits: - Add `Equal` methods to `pki.Certificate` and `pki.PrivateKey` so they can be used by `assert.DeepEqual` in tests. - Remove some Kubernetes API calls from `TestReconcileCerts`. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes t...
diff --git a/internal/controller/postgrescluster/pki_test.go b/internal/controller/postgrescluster/pki_test.go index b7b4c81e46..4cd65781cd 100644 --- a/internal/controller/postgrescluster/pki_test.go +++ b/internal/controller/postgrescluster/pki_test.go @@ -18,7 +18,6 @@ package postgrescluster import ( - "bytes" ...
2
1
0
[{"id": "G0", "claim": "Question whether the new PrivateKey.Equal should evaluate nil == nil to true (i.e. whether two zero values should be equal).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add test cases where the Certificates / PrivateKeys are equa...
null
CrunchyData__postgres-operator__2873
CrunchyData/postgres-operator
2,873
defect
e04750e35264092b0be302d6ebacb8e9fd192f6a
c4bb12daed2832a18ad74f2db737be113294e595
Add additional configuration files
**Checklist:** - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? [Note: Documentation changes were determined to be not necessary at this time if the spec description is clear enough] - [...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index b479f73059..fb97e697a0 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
1
1
1
[{"id": "G0", "claim": "The additional config volume mount has no write intention, so `ReadOnly: true` should be set regardless of whether projected volumes are ever writable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CrunchyData__postgres-operator__2882
CrunchyData/postgres-operator
2,882
defect
ad4d4a0764271bff5c59dc18a25e522b201f21e0
2c4048ec8410e68e476b13997acf673ae5ab6b8b
Remove unused pgBackRest configuration
A few functions were exported from our internal pgbackrest package but they were never called. This removes them and their constants. The remaining functions in this file do not make any API calls, so remove them from the tests as well. **Checklist:** <!--- Make sure your PR is documented and tested before submi...
diff --git a/internal/pgbackrest/config.go b/internal/pgbackrest/config.go index b221376b26..c0b64ddd32 100644 --- a/internal/pgbackrest/config.go +++ b/internal/pgbackrest/config.go @@ -39,10 +39,6 @@ const ( // DefaultStanzaName is the name of the default pgBackRest stanza DefaultStanzaName = "db" - // configma...
1
1
0
[{"id": "G0", "claim": "The test body would read better if everything after the setup started a new `t.Run` section, so the setup shared by the two cases is separated from the two cases (\"standard in every way\" and \"custom metadata\").", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intr...
null
CrunchyData__postgres-operator__2890
CrunchyData/postgres-operator
2,890
defect
24b8b3663bde51a2789fec619b180c9895238d3c
858ec23c89aee6f5f4ff90431babe679f07414c6
Manage pgAdmin server connections
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/controller/postgrescluster/pgadmin.go b/internal/controller/postgrescluster/pgadmin.go index 70afb8ca4d..91dfcf9bea 100644 --- a/internal/controller/postgrescluster/pgadmin.go +++ b/internal/controller/postgrescluster/pgadmin.go @@ -349,7 +349,7 @@ func (r *Reconciler) reconcilePGAdminUsers( } ...
8
6
1
[{"id": "G0", "claim": "The new code queries via the magic ServerGroup.query/Server.query shortcuts instead of SQLAlchemy's recommended db.session.query(Thing), and the reviewer asks to use db.session.query in both places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
CrunchyData__postgres-operator__2944
CrunchyData/postgres-operator
2,944
defect
09f5aade1ff906db955ef6240c8a9b8d3e7064d7
1bbea5b52ca493fe40945d0559578278296ddb7a
Allow passwords to be generated without symbols
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index 07e3187942..98be8c0683 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
10
6
0
[{"id": "G0", "claim": "The tutorial's 'Deleting a User' and 'Deleting a Database' paragraphs begin with 'As mentioned earlier' although the tutorial never mentioned it earlier, so the stale phrase should be struck (with the details left to the architecture docs, as suggested in the thread).", "category": "documentatio...
null
CrunchyData__postgres-operator__3006
CrunchyData/postgres-operator
3,006
defect
81d9124a62b9ed16d135559117d88de36beda9ae
df7ce0a4c4e80499d378f1d81772c525e5d6dab8
KUTTL: Add scaledown test
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/postgrescluster/cluster_test.go b/internal/controller/postgrescluster/cluster_test.go index f3cc3456f9..0979c6300b 100644 --- a/internal/controller/postgrescluster/cluster_test.go +++ b/internal/controller/postgrescluster/cluster_test.go @@ -47,6 +47,8 @@ import ( "github.com/crunchyd...
3
2
0
[{"id": "G0", "claim": "Use the existing initialize.Int32() helper instead of adding a new Int32 helper function in cluster_test.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assertions in 01-errors.yaml may overlap with the previous assert that...
null
CrunchyData__postgres-operator__3027
CrunchyData/postgres-operator
3,027
defect
6dbb021cb4d4573d7f9fb3cdde13401c1a2d6d10
6e76b6c81a7f5ea8c628884c49dbfd344f403a1b
Set resources on init container for restore pod
All containers in the restore pod should have resources set. Use the resources defined on the restore container to set resources on the nss_wrapper init-container. Issue: [sc-13689] **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: -->...
diff --git a/internal/controller/postgrescluster/util.go b/internal/controller/postgrescluster/util.go index 3729dea304..e449487360 100644 --- a/internal/controller/postgrescluster/util.go +++ b/internal/controller/postgrescluster/util.go @@ -156,6 +156,10 @@ func addNSSWrapper(image string, imagePullPolicy corev1.Pull...
2
2
1
[{"id": "G0", "claim": "In TestAddNSSWrapper, beforeAddNSS aliases template.Spec.Containers so the else-branch assertion that other containers are unchanged can never fail; the reviewer asks whether moving the assertion outside the else branch would pass, and if so to use DeepCopy() around L340 so the before values sta...
null
CrunchyData__postgres-operator__3052
CrunchyData/postgres-operator
3,052
defect
37292ee8350a0a116a005b45a0951f80fa34888c
34d6282f3c957cf76e5646309708e74e01d073da
Enable Support for Secrets for pgAdmin LDAP_BIND_PASSWORD
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index 1f73501772..157155e052 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
7
6
1
[{"id": "G0", "claim": "The LDAPBindPassword field should use a SecretKeySelector instead of a SecretProjection, since SecretProjection carries a list of KeyToPath when only one key is wanted.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In podConfigFi...
null
CrunchyData__postgres-operator__3114
CrunchyData/postgres-operator
3,114
defect
bbe528db567b4d38e1782d27d57eea7afc4463a6
d73ad5bf94597db28cd44381f0a3b172a354b874
Pgbackrest 2.38
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/docs/config.toml b/docs/config.toml index 2c08e29ec0..fe36399667 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -27,6 +27,7 @@ highlightClientSide = false # set true to use highlight.pack.js instead of the d menushortcutsnewtab = true # set true to open shortcuts links to a new tab/window enable...
2
1
0
[{"id": "G0", "claim": "The comment added in reloadCommand still says the forked connection handlers are detached/orphaned from the server, but in pgBackRest 2.38 they no longer detach, and the reviewer proposed rewording the comment accordingly (via a suggestion block).", "category": "documentation", "verdict": "suppo...
null
CrunchyData__postgres-operator__3168
CrunchyData/postgres-operator
3,168
defect
44c4c5c5835be2220ecffa39fd726f3118815d48
572a790242a08f6ddd709a2fd440ef94f94e061b
Convert container security context test to kuttl
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/controller/postgrescluster/cluster_test.go b/internal/controller/postgrescluster/cluster_test.go index 58189b9eaf..b446486920 100644 --- a/internal/controller/postgrescluster/cluster_test.go +++ b/internal/controller/postgrescluster/cluster_test.go @@ -20,10 +20,7 @@ package postgrescluster imp...
3
2
1
[{"id": "G0", "claim": "The new file testing/kuttl/e2e/security-context/00--cluster.yaml is missing a newline at the end of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also move over the exporter container's ...
null
CrunchyData__postgres-operator__3169
CrunchyData/postgres-operator
3,169
defect
44c4c5c5835be2220ecffa39fd726f3118815d48
60184a15fb4ca849263d0a1a9c89d0ed9781fff4
Replace TestReconcilerHandleDelete With Kuttl Test
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/postgrescluster/delete_test.go b/internal/controller/postgrescluster/delete_test.go index 5bd6e45e99..5066f5b97b 100644 --- a/internal/controller/postgrescluster/delete_test.go +++ b/internal/controller/postgrescluster/delete_test.go @@ -20,7 +20,6 @@ package postgrescluster import (...
7
7
0
[{"id": "G0", "claim": "Deleting all events in the namespace with `kubectl delete events --all` could become an issue when the kuttl tests are run together in a single namespace, and the reviewer asked whether the author had tested that way.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i...
null
CrunchyData__postgres-operator__3172
CrunchyData/postgres-operator
3,172
defect
c13154e93977c09e03a3f046eae4493a54bbb135
c71495531d64be7672ebf11558319ea3d168fd12
Replace HandleDeleteNamespace Test With KUTTL
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/postgrescluster/delete_test.go b/internal/controller/postgrescluster/delete_test.go deleted file mode 100644 index 5066f5b97b..0000000000 --- a/internal/controller/postgrescluster/delete_test.go +++ /dev/null @@ -1,157 +0,0 @@ -//go:build envtest -// +build envtest - -/* - Copyright 202...
2
2
0
[{"id": "G0", "claim": "The delete-namespace error test should also assert that no ConfigMaps (and possibly other resources the operator typically deploys) remain after the namespace is deleted.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The delete-...
null
CrunchyData__postgres-operator__3173
CrunchyData/postgres-operator
3,173
defect
43f2c3a19092060c289155347dd9c3d51c738085
f4b7050c85b1fc51aa8fd37a4b746297626e4c1c
Replace TestReconcileCerts owner reference test with Kuttl test
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/controller/postgrescluster/pki_test.go b/internal/controller/postgrescluster/pki_test.go index 02f5584a86..f59801c1a2 100644 --- a/internal/controller/postgrescluster/pki_test.go +++ b/internal/controller/postgrescluster/pki_test.go @@ -21,20 +21,16 @@ import ( "context" "crypto/x509" "fmt" ...
9
9
2
[{"id": "G0", "claim": "Keep the USE_EXISTING_CLUSTER skip guard at the top of TestReconcileCerts so the test will not run at all in existing-cluster tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Indent the pgo-root-cacert continuation line unde...
null
CrunchyData__postgres-operator__3200
CrunchyData/postgres-operator
3,200
defect
cc5f2a49a02a053d08e526b6e772bfed8f13e711
d61f50e81b8346e205c42bce1e856654d898c885
Pre-release update for v5.1.1
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ x] Have you updated or added documentation for the change, as applicable? - [ ...
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 32324a5a55..08704bef34 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -29,7 +29,7 @@ Please provide the following details: - Platform: (`Kubernetes`, `OpenShift`, `Rancher`,...
2
2
2
[{"id": "G0", "claim": "Update the Makefile's PostgreSQL version to the latest PG 14 release instead of the PG 13.x version the PR sets (PGO_PG_VERSION 13, PGO_PG_FULLVERSION 13.7).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR's rewrite of ...
null
CrunchyData__postgres-operator__3248
CrunchyData/postgres-operator
3,248
defect
dc9a10151d51ed078775acc10774a31a588b4800
abfd3f506ae426d746a532401ec30b3789dc166c
Add support for feature gates
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index ab6ad112a5..c382692913 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -30,6 +30,7 @@ import ( "github.com/crunchydata/postgres-operator/internal/controller/runtime" "github.com/crunchydata/postgres-op...
3
3
0
[{"id": "G0", "claim": "The temporary-looking variable `testValue` should not be left holding the PGO_FEATURE_GATES value in main().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The feature gate code needs more explanation than its link lists ...
null
CrunchyData__postgres-operator__3258
CrunchyData/postgres-operator
3,258
defect
a9d38d81ab4bf4e2f345fb7ec7a394c72680c86e
998b3e8a96b8fc4b7ac10c13a590722fe82edb82
Change use_pg_rewind for PG10
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/patroni/config.go b/internal/patroni/config.go index 02cdcdf176..eb3dbf4d24 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -263,7 +263,7 @@ func DynamicConfiguration( postgresql["pg_hba"] = hba // TODO(cbandy): explain this. - postgresql["use_pg_rewind"] = true +...
5
4
1
[{"id": "G0", "claim": "The TODO on the `use_pg_rewind` line should be replaced now with an explanation of why pg_rewind is enabled and its permission requirements on PG10 and earlier.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "There should ...
null
CrunchyData__postgres-operator__3297
CrunchyData/postgres-operator
3,297
defect
d3300d2f2f1385ffc483bdb55af60ef1a28c0515
c9e3451bad3d5bccc441db07270442c2fbafc922
Allow NodePort Port to be Specified via the PostgresCluster Spec
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index cedf1d3e8d..716f60987a 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
8
8
0
[{"id": "G0", "claim": "The nodePort field description in the CRD should link to the Kubernetes Service documentation (service/#type-nodeport) instead of the Go API reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment about the Cl...
null
CrunchyData__postgres-operator__3370
CrunchyData/postgres-operator
3,370
defect
3951ab8a0c3b851d05d676a77393319f60e43458
6eea791db63a8f8b6cfcae9398a4e784016a6a85
Fix compatibility with Kubernetes 1.25
Add support for Kubernetes 1.25. Move to CRDs removed in Kubernetes 1.25: * policyv1beta1.PodDisruptionBudget => policyv1.PodDisruptionBudget * batchv1beta1.CronJob => batchv1.CronJob Issue: #3365
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 50027d8ec8..aba99c67e5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -51,7 +51,7 @@ jobs: strategy: fail-fast: false matrix: - kubernetes: [v1.24, v1.20] + kubernetes: [v1.24, v1...
3
3
2
[{"id": "G0", "claim": "Simplify the pull request to focus only on the policyv1 and batchv1 API deprecations, since the dependency-update changes (logging, Handler=>ProbeHandler, patch change) are being handled in #3362.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1",...
null
CrunchyData__postgres-operator__3400
CrunchyData/postgres-operator
3,400
defect
5b30cfcbaee223d60424272aab997940c1d127e8
2d5556aeaac4f9d4e8f1998718d93f4ee2072cd7
PGO updates pgnodemx/pg_stat_statements
**Checklist:** - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/postgrescluster/pgmonitor.go b/internal/controller/postgrescluster/pgmonitor.go index b9f3849b0c..e4f2227bab 100644 --- a/internal/controller/postgrescluster/pgmonitor.go +++ b/internal/controller/postgrescluster/pgmonitor.go @@ -78,6 +78,8 @@ func (r *Reconciler) reconcilePGMonitorExpo...
2
2
1
[{"id": "G0", "claim": "The reconciler should return early when either the exporter or the database image SHA is missing, since pgImageSHA also goes into the hash.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new block around L90-L109 that col...
null
CrunchyData__postgres-operator__3720
CrunchyData/postgres-operator
3,720
defect
eedf513582b7d90c7763f64eb55c5bb266d729f5
d18913fc55b2c8718f516d0fa6165cfabf2c7015
Custom queries
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b3288f3031..6bdab05a1a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,9 +8,6 @@ on: branches: - master -env: - QUERIES_CONFIG_DIR: "${{ github.workspace }}/hack/tools/queries" - jobs: go-te...
5
2
0
[{"id": "G0", "claim": "The exporter start script should use one set of back ticks around the entire script, similar to how the exporter web config is defined.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `&&` additions in the watcher's if c...
null
CrunchyData__postgres-operator__3747
CrunchyData/postgres-operator
3,747
defect
c9e326763c708dfaa5ce3a81a15563b6c2b28425
a10ac31be5325e6731c714afae6785d6764ff7af
add pgadmin config
**Checklist:** - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/standalone_pgadmin/config.go b/internal/controller/standalone_pgadmin/config.go index 3bee6ae248..059439cf40 100644 --- a/internal/controller/standalone_pgadmin/config.go +++ b/internal/controller/standalone_pgadmin/config.go @@ -14,13 +14,12 @@ package standalone_pgadmin +// Inclu...
10
10
0
[{"id": "G0", "claim": "The generated volume name constants should drop the `standalone` prefix and be prefixed with `pgadmin` like the other volume names, including `config-system` becoming `pgadmin-config-system`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
CrunchyData__postgres-operator__3761
CrunchyData/postgres-operator
3,761
defect
c9e326763c708dfaa5ce3a81a15563b6c2b28425
6170e8f98c7754b38e934540232a55ce903a839d
When requested, load the "citus" library first
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/patroni/config.go b/internal/patroni/config.go index a0ff076fe3..db2a987873 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -227,17 +227,24 @@ func DynamicConfiguration( // Override the above with mandatory parameters. if pgParameters.Mandatory != nil { for k, v ...
1
1
0
[{"id": "G0", "claim": "Reviewer wouldn't mind an extra test case showing AppendToList taking multiple values in one call and appending them onto an existing list (e.g. 'a,b' then 'c,d' giving 'a,b,c,d'), while allowing it might be unnecessary.", "category": "testing", "verdict": "supported", "priority": "P2", "scope":...
null
CrunchyData__postgres-operator__3825
CrunchyData/postgres-operator
3,825
defect
192a6980ae4e3d8b8953f005802acac28823c761
314ce6c9c0915db2e1dea112e6f2182a76eeb90c
Additional TDE configuration for Patroni pg_rewind
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/patroni/config.go b/internal/patroni/config.go index 376494293c..c6b861fd3a 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -206,6 +206,15 @@ func DynamicConfiguration( // TODO(cbandy): explain this. requires an archive, perhaps. "use_slots": false, } + + // Whe...
3
1
0
[{"id": "G0", "claim": "The blank line added to internal/postgres/reconcile_test.go at line 254 looks like an accidental check-in.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the use_pg_rewind assignment should be updated beca...
null
CrunchyData__postgres-operator__3863
CrunchyData/postgres-operator
3,863
defect
f42fba624a340f4b94fdb1efd356da474df68ca9
1b2d1441378801b73634a961119d3c5e4ea7336e
Adding tests for Bridge stuff that does not interact with Bridge API.
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go b/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go index bfd358fecc..1b8e22df73 100644 --- a/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go +++ b/internal/bridge/crunchybridgecluster/crun...
15
10
2
[{"id": "G0", "claim": "watchForRelatedSecret (and Watch) create their own context.Background() instead of having a context passed in from the caller.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "In findCrunchyBridgeClustersForSecret the List call shou...
null
CrunchyData__postgres-operator__3877
CrunchyData/postgres-operator
3,877
defect
cf40aa9d8bd5be9e0ad835df3fd2b6ba59adaecf
f44f1714f16a32fef81c271b4742e6a93ccad1b2
Adjust standalone pgadmin startup logic to support pgAdmin v8. Adjust…
… unit tests accordingly. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the ch...
diff --git a/internal/controller/standalone_pgadmin/pod.go b/internal/controller/standalone_pgadmin/pod.go index f9fee92131..5e78b58ffb 100644 --- a/internal/controller/standalone_pgadmin/pod.go +++ b/internal/controller/standalone_pgadmin/pod.go @@ -242,28 +242,52 @@ func podConfigFiles(configmap *corev1.ConfigMap, pg...
3
2
0
[{"id": "G0", "claim": "The v7 and v8 loadServerCommand variables should use camel case, i.e. loadServerCommandV7 instead of loadServerCommandv7.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conditional statements inside the generated star...
null
CrunchyData__postgres-operator__3884
CrunchyData/postgres-operator
3,884
defect
0ebdef0c75daf5d3c5e8bcd05e15dba378e64a82
c798f0c9fd3d18263d0cc2adcb8026c56be65242
Add shared functions for Kubernetes in tests
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you tested your changes on all related environments with successful result...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index dea0066095..3a6937640d 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -167,7 +167,6 @@ func addControllersToManager(mgr manager.Manager, openshift bool, log logr.Logge Client: mgr.GetClient(), ...
2
1
0
[{"id": "G0", "claim": "The new helper names Kubernetes2 and kubernetes3 are not descriptive and feel strange; consider renaming them (e.g. KubernetesAndClientConfig).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pull setupKubernetes and setupNa...
null
CrunchyData__postgres-operator__3899
CrunchyData/postgres-operator
3,899
defect
e5dd23ff7c99702cb37b95fe8e95cc328800cad8
5fed45f6ced6b4d271b66b97b47e76bd710a1f11
Reject invalid Postgres user specs
The PASSWORD option was never effective. CEL validation rules, available in beta since Kubernetes 1.25, can detect and reject values that the RE2 pattern validation of [github.com/go-openapi could not](https://pkg.go.dev/github.com/go-openapi/validate@v0.24.0#hdr-Known_limitations). **Checklist:** <!--- Make sur...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index 700b0e3173..89b2b16a25 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
1
1
0
[{"id": "G0", "claim": "Apply the linter advice by updating the code in sanitizeAlterRoleOptions around the parse check (the author commits: \"The linter advice is good. I'll update these.\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CrunchyData__postgres-operator__3902
CrunchyData/postgres-operator
3,902
defect
990631fefc5861a047df93fb9b7d1c3b65b8792c
b32ed9f7a73040b6b81ad3cfe4e72d59c333ed1e
Allow users to configure CONFIG_DATABASE_URI setting in a Secret
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/build/crd/pgadmins/todos.yaml b/build/crd/pgadmins/todos.yaml index 20733cd56f..5412d0ad21 100644 --- a/build/crd/pgadmins/todos.yaml +++ b/build/crd/pgadmins/todos.yaml @@ -16,5 +16,8 @@ - op: copy from: /work path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/users/items/prop...
2
2
0
[{"id": "G0", "claim": "The reworded startup-command comment in pod.go should use plural agreement — 'files (if it exists) and sets those variables globally. That way those values are' instead of 'file (if it exists) ...' — since it now lists both config-database-uri and the ldap-bind-password file.", "category": "docu...
null
CrunchyData__postgres-operator__3920
CrunchyData/postgres-operator
3,920
defect
cb3fa0d6b538fc798d8f15536cf3efcd3fe26e6b
a2a69a270068305612901051d01aef090bbfa4a6
pgData Volume Autogrow
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index a24c97c53d..f1b51e13a1 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
12
9
0
[{"id": "G0", "claim": "The Pod annotation added by the autogrow script should be named `suggested-pgdata-pvc-size` instead of `diskstarved`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `desiredRequestsBackup` variable would be more precisely name...
null
CrunchyData__postgres-operator__3940
CrunchyData/postgres-operator
3,940
defect
94898c516c6e460f0eb389646221ab62e967a1ed
c675ac54255514f984aeb46ee8b9419f4126e5b1
Create schemas for users in granted databases
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/controller/postgrescluster/postgres.go b/internal/controller/postgrescluster/postgres.go index 0d36f50090..a920d113cd 100644 --- a/internal/controller/postgrescluster/postgres.go +++ b/internal/controller/postgrescluster/postgres.go @@ -534,7 +534,7 @@ func (r *Reconciler) reconcilePostgresUsersIn...
4
3
2
[{"id": "G0", "claim": "The schema created by `CREATE SCHEMA ... AUTHORIZATION :username` is not locked down (no REVOKE from PUBLIC / GRANT USAGE) the way the operator's pgbouncer schema is.", "category": "security", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The list of data...
null
CrunchyData__postgres-operator__3942
CrunchyData/postgres-operator
3,942
defect
c7a885d862fa7e3c43e802c623dad4c4e9991e5c
076c7ef6bc7f909e6f1c4cbc62a047155e578b7b
Add constructors for valid reconcile.Result values
The result list of Reconciler.Reconcile is a pair of types with multiple fields and special values. Some combinations are confusing, ignored, or cause warnings at runtime. The following values can be combined eighteen ways: Result.Requeue = { true, false } Result.RequeueAfter = { negative, zero, positive } ...
diff --git a/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go b/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go index b4000232ab..1743ffdb1c 100644 --- a/internal/bridge/crunchybridgecluster/crunchybridgecluster_controller.go +++ b/internal/bridge/crunchybridgecluster/crun...
2
1
0
[{"id": "G0", "claim": "The two Error* helper funcs should be placed closer to the Requeue* funcs, since they all seem to be helper funcs that keep reconcile returns consistent.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "benjaminjb asks where the `re...
null
CrunchyData__postgres-operator__3954
CrunchyData/postgres-operator
3,954
defect
319875ebb11d895c2f9f807d913db15c46bfbe42
6cf8069e45f8936615f1e7a84c7a067001547375
Add health checks to PGO.
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index c2a4880054..bfd02f8c46 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -28,6 +28,7 @@ import ( "k8s.io/apimachinery/pkg/util/validation" "k8s.io/client-go/discovery" "k8s.io/client-go/rest" + "sigs.k...
1
1
0
[{"id": "G0", "claim": "Using `os.Exit` in `main()` prevents deferred functions from running; use the existing `assertNoError` helper for the two health-probe registrations instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CrunchyData__postgres-operator__3956
CrunchyData/postgres-operator
3,956
defect
5dde08a3475a27487ce7d8bd267c8f560dcc8b48
6116648bbe34a124dc16f86a5b4867950215ce61
Add ability to watch multiple namespaces without watching all namespa…
…ces in a cluster. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, a...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index c2a4880054..8ff8e2a49b 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -86,8 +86,27 @@ func initManager() (runtime.Options, error) { options.LeaderElectionNamespace = os.Getenv("PGO_NAMESPACE") } - ...
3
2
1
[{"id": "G0", "claim": "The parsing of PGO_TARGET_NAMESPACES should be more tolerant than splitting on commas alone — whitespace such as `ns1, ns2` or a trailing newline should be handled — and, once whitespace is removed, the `len(...) > 0` emptiness checks may need rearranging, e.g. building the map and assigning Def...
null
CrunchyData__postgres-operator__3972
CrunchyData/postgres-operator
3,972
defect
198fdf891f5f9510b80cb9ceed3d610efc074d08
df1f34284aa798db4fd28b12ecc6feb6e0727af8
Provide a method for adding custom LDAP CA cert
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/patroni/config.go b/internal/patroni/config.go index 8fcd845b78..1bffcf46e5 100644 --- a/internal/patroni/config.go +++ b/internal/patroni/config.go @@ -450,6 +450,19 @@ func instanceEnvironment( Name: "PATRONICTL_CONFIG_FILE", Value: configDirectory, }, + // This allows a custom CA c...
1
1
0
[{"id": "G0", "claim": "The new comment's wording 'When TLS_CACERT is used as an environment variable rather 'LDAP' is appended as a prefix.' is confusing, and it should state the documented OpenLDAP rule that env vars are named LDAP<option-name> (e.g. LDAPTLS_CACERT for TLS_CACERT).", "category": "documentation", "ver...
null
CrunchyData__postgres-operator__3992
CrunchyData/postgres-operator
3,992
defect
c09468cea76d23cd91a5c4ec0a31e5adcadeca11
7775e20eace9a1b7d38be5c078b0d06ba1127857
Add information to header
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index 0062e3a25a..7e6b2da3d3 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -168,7 +168,7 @@ func main() { registrar, err := registration.NewRunner(os.Getenv("RSA_KEY"), os.Getenv("TOKEN_PATH"), shutdown) a...
10
9
0
[{"id": "G0", "claim": "The readable-token test case should be adjusted so that it checks that r.CheckToken() actually returns a valid token.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Go-doc comment descriptions should be added for the new test and...
null
CrunchyData__postgres-operator__4028
CrunchyData/postgres-operator
4,028
defect
561c650aec7369a9d32e11eaa2b5466da1e6d9bb
b17d8f361846f05a9a5c4de834baa911acf7423c
Create warning event when postgres version is EOL.
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] ...
diff --git a/internal/controller/postgrescluster/controller.go b/internal/controller/postgrescluster/controller.go index d459d30a10..043da358d2 100644 --- a/internal/controller/postgrescluster/controller.go +++ b/internal/controller/postgrescluster/controller.go @@ -136,6 +136,14 @@ func (r *Reconciler) Reconcile( ...
3
3
0
[{"id": "G0", "claim": "ReleaseIsFinal does not belong in config.go; it should be moved to a new file, internal/postgres/versions.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The implementation should be more \"data\" than \"behavior\" (a finalRele...
null
CrunchyData__postgres-operator__4029
CrunchyData/postgres-operator
4,029
defect
446c9c76ab05d4a694b8fa1bcb4825db1aa88375
dd39d693cd5612efe916132c4c550d46df7bdafa
Update feature gate logging to include default on
**Checklist:** - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/cmd/postgres-operator/main.go b/cmd/postgres-operator/main.go index b2f8ae49b6..841cf9bb62 100644 --- a/cmd/postgres-operator/main.go +++ b/cmd/postgres-operator/main.go @@ -134,7 +134,8 @@ func main() { features := feature.NewGate() assertNoError(features.Set(os.Getenv("PGO_FEATURE_GATES"))) - log.I...
10
9
0
[{"id": "G0", "claim": "The PR should stop leaking more featuregate types (the added GetAll() map[Feature]featuregate.FeatureSpec method) from the internal feature package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ShowGates should leave GetAll() in...
null
CrunchyData__postgres-operator__4036
CrunchyData/postgres-operator
4,036
defect
ec9911718e34a6635282a136ef828c1177c48a10
0852d46b49c1ecbe10d4359db44662f2114b81a2
Add a Runner that watches for Kubernetes APIs
This adds an `internal/kubernetes` package with types and functions for interrogating the Kubernetes API version and the APIs it has installed. - `kubernetes.APIs` is an interface for some read-only methods of [k8s.io/…/sets.Set](https://pkg.go.dev/k8s.io/apimachinery/pkg/util/sets#Set). - `kubernetes.APISet` imple...
diff --git a/.golangci.yaml b/.golangci.yaml index d46231c417..d886a4fb1e 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -40,6 +40,9 @@ linters-settings: - pkg: github.com/crunchydata/postgres-operator/internal/testing/* desc: The "internal/testing" packages should be used only in tests. ...
7
5
0
[{"id": "G0", "claim": "NewAPISet should also insert the full GVKs that were passed in, or at least carry a code comment explaining that they are added by sets.New on line 32.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "initialize.FromPointer rea...
null
CrunchyData__postgres-operator__4060
CrunchyData/postgres-operator
4,060
defect
612a8b00db3a83a18cdf5c9befb05602aefca530
31b4c4d981fb156c2ee502780595e7e8ba54f09d
Add a validated field for Postgres parameters
The validation rules of Kubernetes 1.29 (Beta in 1.25) allow for this kind of field. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included?...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index 6e055a5911..36f73ce36c 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
4
2
1
[{"id": "G0", "claim": "Adding a maxLength to the string values of the parameters map may reduce CEL validation costs.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should make explicit whether the parameters field is atomic or gra...
null
CrunchyData__postgres-operator__4084
CrunchyData/postgres-operator
4,084
defect
740400d7f70b42385528a23cc55790004e46114b
d086472d91636979947d932ba00a618ea40507ad
pgbouncer user password change should not require verifier
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] ...
diff --git a/internal/pgbouncer/postgres.go b/internal/pgbouncer/postgres.go index d9a9d91539..495711012c 100644 --- a/internal/pgbouncer/postgres.go +++ b/internal/pgbouncer/postgres.go @@ -12,8 +12,6 @@ import ( "github.com/crunchydata/postgres-operator/internal/logging" "github.com/crunchydata/postgres-operato...
5
5
3
[{"id": "G0", "claim": "The pull request's new verifier behaviour should be covered by a test, e.g. by expanding the existing PgBouncer Secret test to verify the functionality implemented.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `err == nil` ...
null
CrunchyData__postgres-operator__4090
CrunchyData/postgres-operator
4,090
defect
f2a80ac5d68b0b54171a41ff9a17197ceaa4cd68
b393115e2ae3381094bbc652665243a1962ed28f
Ensure OTel directories are writable
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/internal/collector/patroni.go b/internal/collector/patroni.go index 8fdcbd263c..f6426a77a1 100644 --- a/internal/collector/patroni.go +++ b/internal/collector/patroni.go @@ -21,6 +21,7 @@ func EnablePatroniLogging(ctx context.Context, // Keep track of what log records and files have been processed. ...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the new comment in internal/shell/paths.go so it reads \"the [filepath] package\" instead of \"the [filepath] to package\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
CrunchyData__postgres-operator__4105
CrunchyData/postgres-operator
4,105
defect
00c9068b2f72b3fdae6335855144c63a250f7f91
549911ecc344ddd299dda039f0ca7b32f88b15f2
If the OpenTelemetryLogs feature gate is set, tell patroni to log to …
…file regardless of whether the user has set any logging settings in the spec. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [...
diff --git a/internal/controller/postgrescluster/cluster.go b/internal/controller/postgrescluster/cluster.go index 67544d621b..5cd515f5a6 100644 --- a/internal/controller/postgrescluster/cluster.go +++ b/internal/controller/postgrescluster/cluster.go @@ -15,6 +15,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/met...
1
1
1
[{"id": "G0", "claim": "Add a test where both the OpenTelemetryLogs gate and a Patroni log Storage Limit are set, so the test shows a configured Storage Limit wins.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CrunchyData__postgres-operator__4111
CrunchyData/postgres-operator
4,111
defect
6dbbf9b91da43f57ea140d9b5798d6fdea34c1f9
955bc816666fb310309db0c0893f3c5c00281256
Calculate Postgres HBA rules in the controller
The controller assigned mandatory and default rules but did nothing with rules defined in the spec. The `patroni.DynamicConfiguration` function was interpreting its schemaless fields while also combining Postgres HBA rules from elsewhere. Its tests were long and complicated. 1. Postgres HBA rules are now extracte...
diff --git a/internal/controller/postgrescluster/cluster.go b/internal/controller/postgrescluster/cluster.go index 4cd62f60c8..ead4881b1e 100644 --- a/internal/controller/postgrescluster/cluster.go +++ b/internal/controller/postgrescluster/cluster.go @@ -30,7 +30,7 @@ import ( // files (etc) that apply to the entire c...
4
2
0
[{"id": "G0", "claim": "In OrderedHBAs.Append, the nils could be filtered out before calling slices.Grow.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changed config_test.go case suggests custom pg_hba entries do not come through, questioning ...
null
CrunchyData__postgres-operator__4113
CrunchyData/postgres-operator
4,113
defect
6dbbf9b91da43f57ea140d9b5798d6fdea34c1f9
2963398a16356b5f027f67678c8648d8588b960c
Allow tuning of logs batching behavior
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index e07621a2a7..ccace27977 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
6
1
0
[{"id": "G0", "claim": "The reviewer asks the author to confirm whether the API field name `batches` is the right name for this section of the API (logging a single batching configuration).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two pgadmin l...
null
CrunchyData__postgres-operator__4115
CrunchyData/postgres-operator
4,115
defect
6dbbf9b91da43f57ea140d9b5798d6fdea34c1f9
35f1b6d8c824b675de39062b429a0618cb13d0ad
Provide a way to enable resource detectors
Resource detectors are a simple way to gather resource attributes from the environment automatically. They are especially useful in managed or cloud environments. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index e07621a2a7..d67aee5ffa 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
2
1
0
[{"id": "G0", "claim": "The doc comment on the Attributes field is missing the word \"to\" and should read \"Names omitted here behave according to detector defaults\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should say wh...
null
CrunchyData__postgres-operator__4120
CrunchyData/postgres-operator
4,120
defect
1d8457a5fd5fff2c992aff2b524f3d29c437d6c6
758ee792d123acd9ce59e4a14938ea9fdb06a350
Add a validated field for Postgres HBA rules
These structured fields are easier and safer to use than raw HBA records. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Ha...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index abd625f827..8b8bfee823 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
3
3
0
[{"id": "G0", "claim": "The options emitted by HostBasedAuthentication.Options are iterated straight from a map, so they come out in arbitrary order and need to be sorted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment above quoteDatab...
null
CrunchyData__postgres-operator__4123
CrunchyData/postgres-operator
4,123
defect
d7f4913ca023440df74fd350edc5f9ddfa182d52
4634e822b86f89dc181de06c3afb7639760b4521
Pgadmin oauth secrets
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index 1d3f1635a8..8197e08158 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
5
5
2
[{"id": "G0", "claim": "The comment above where checkOauthSecretsChange and checkConfigMapChange are called does not explain why hashes of the OAuth Secrets and ConfigMap are stored in StatefulSet annotations, and should be made descriptive (they force a Pod restart when the configuration changes).", "category": "docum...
null
CrunchyData__postgres-operator__4126
CrunchyData/postgres-operator
4,126
defect
37ea0c33020c3abcd45a6d11b77beef333cfad02
ee1434be7833eb7cf62c91e77bfec8c050a2f685
Otel custom queries
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index 1d3f1635a8..a503ce9564 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
5
1
0
[{"id": "G0", "claim": "The custom-queries name field/type should perhaps be renamed, though no better name was proposed.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the Prometheus setup is not changed, the pods meant to be scraped should ca...
null
CrunchyData__postgres-operator__4134
CrunchyData/postgres-operator
4,134
defect
e19f3fefba338ecd6672d7d6876bd0d2e366975c
17630445977daa870fce8467e545c55717da0fcc
Modify context path of OTEL transformers
**Checklist:** - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/collector/generated/pgbackrest_logs_transforms.json b/internal/collector/generated/pgbackrest_logs_transforms.json index adf3b09af9..32b3809c02 100644 --- a/internal/collector/generated/pgbackrest_logs_transforms.json +++ b/internal/collector/generated/pgbackrest_logs_transforms.json @@ -1 +1 @@ -...
1
1
1
[{"id": "G0", "claim": "Reviewer questions whether the pull request still needs to set `context=log` on the patroni log transforms, doubting the benefit of that newly added setting.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CrunchyData__postgres-operator__4135
CrunchyData/postgres-operator
4,135
defect
e19f3fefba338ecd6672d7d6876bd0d2e366975c
03a41c146d80f537bbff2bc1b91fa7c605ae3917
Tell collector to watch the .log.1 files to avoid missing records aro…
…und rotation time. Add comments around each components filelog receiver settings. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [ ] Have you added an explanation of what your changes do and why you'd like them to be included...
diff --git a/internal/collector/patroni.go b/internal/collector/patroni.go index 6b22df6a09..aa6a7a85e3 100644 --- a/internal/collector/patroni.go +++ b/internal/collector/patroni.go @@ -39,7 +39,14 @@ func EnablePatroniLogging(ctx context.Context, // https://github.com/open-telemetry/opentelemetry-collector-contrib...
1
1
0
[{"id": "G0", "claim": "Move the pgadmin rotation comment up a line so it visibly applies to both filelog/* receivers instead of sitting indented inside the pgadmin map.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CrunchyData__postgres-operator__4169
CrunchyData/postgres-operator
4,169
defect
cdc6795cf15a45e5b72dc50e7a114d133acad9c2
f0a225f4def4bab1ac2b4fc768bcba397a17f403
Add pg_hba checksum metric
**Checklist:** - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Have you tested your changes on all related environments with successful results, as applicable? - [ ] Have you ...
diff --git a/internal/collector/generated/postgres_5m_metrics.json b/internal/collector/generated/postgres_5m_metrics.json index a9a3500a02..2dd76b73bd 100644 --- a/internal/collector/generated/postgres_5m_metrics.json +++ b/internal/collector/generated/postgres_5m_metrics.json @@ -1 +1 @@ -[{"metrics":[{"attribute_col...
5
4
1
[{"id": "G0", "claim": "The ccp_pg_hba_checksum metric description should read 'monitoring' (not 'monitioring') and refer to pg_catalog.pg_hba_file_rules (pg_hba.conf) rather than pg_catalog.pg_settings (postgresql.conf).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
CrunchyData__postgres-operator__4189
CrunchyData/postgres-operator
4,189
defect
8f4e9767227cca1eff5f59f2c5d21eaeb028cb92
ee958520bc08c48af33fc7bf5486e2a3077ddbd5
OTel: Allow users to add metrics exporters.
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index c1e6ebef59..da5ae9bc63 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
2
1
0
[{"id": "G0", "claim": "The spec gives users no way to remove the Prometheus exporter from the metrics pipeline, and the exposed port would then need reconsidering.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A metrics exporter stage could be added to t...
null
CrunchyData__postgres-operator__4221
CrunchyData/postgres-operator
4,221
defect
899c4a02f3eff606ae58d5c26ebb71877deae43e
1ae29da53222c59ed65df657f442c6988b5ed699
Allow user to set an annotation that will specify an existing PVC to …
…be mounted to cloud backup jobs so that the backup logs can be persisted. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] H...
diff --git a/internal/controller/postgrescluster/pgbackrest.go b/internal/controller/postgrescluster/pgbackrest.go index aada99ec57..49bbde0f45 100644 --- a/internal/controller/postgrescluster/pgbackrest.go +++ b/internal/controller/postgrescluster/pgbackrest.go @@ -38,6 +38,7 @@ import ( "github.com/crunchydata/post...
4
2
0
[{"id": "G0", "claim": "Consider differentiating a NotFound error from other error types when looking up the log-volume PVC, instead of treating every lookup error the same way.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider whether the PVC lookup...
null
CrunchyData__postgres-operator__4240
CrunchyData/postgres-operator
4,240
defect
7844fe20af7493ba7947d79750a3d27be9f44d4c
503ac6bbe9c529d3cdd41e39a3df2b5f64ace808
Add additional volumes to pgbouncer
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [ ] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] Ha...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml index 4db85ca848..973d1ce70a 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml +++ b/config/crd/bases/postgres-operator.cru...
2
2
0
[{"id": "G0", "claim": "The warning message should capitalize the product name as \"PgBouncer\" instead of \"pgBouncer\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test's expected-YAML literals could start with a leading newline and sti...
null
CrunchyData__postgres-operator__4272
CrunchyData/postgres-operator
4,272
defect
1d2806739eb59aa9e0df9d51e83fe126f2a45188
5c54b9eb7fab4a7d875e674b4f94b24989754623
Allow indented YAML in tests
We use YAML literals to assert the contents of complex Kubernetes DTOs, but it is time-consuming to align those literals correctly with spaces. This PR adds logic to test helpers that allows us to indent YAML and indent it with tabs. Rather than import any internal packages in pkg/apis, I copied one test helper ther...
diff --git a/internal/testing/cmp/cmp.go b/internal/testing/cmp/cmp.go index d7b5764e41..14f7ad8013 100644 --- a/internal/testing/cmp/cmp.go +++ b/internal/testing/cmp/cmp.go @@ -5,7 +5,10 @@ package cmp import ( + "bufio" + "bytes" "regexp" + "slices" "strings" gocmp "github.com/google/go-cmp/cmp" @@ -80,7...
1
1
0
[{"id": "G0", "claim": "Make the spaces buffer sized to the need (spaces = need) instead of pre-allocating 20*tabWidth spaces and growing them on demand in dedentLines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CrunchyData__postgres-operator__4299
CrunchyData/postgres-operator
4,299
defect
af97e79d21333085253f8d4ec17a917d955d6761
42756590c6dfb46021a435667a94234422142799
Run Shellcheck on instance reload command
Shellcheck was being run on the reload command for pgBackRest. During the auto-grow work, we noticed that the reload command for the instance was not being checked. Since we had to update the auto-grow bash logic to pass Shellcheck for pgBackRest, it seemed appropriate to enable the checks for the instance as well. ...
diff --git a/internal/postgres/config.go b/internal/postgres/config.go index 0300d4d34b..422510dba7 100644 --- a/internal/postgres/config.go +++ b/internal/postgres/config.go @@ -302,9 +302,9 @@ func reloadCommand( # Parameters for curl when managing autogrow annotation. APISERVER="https://kubernetes.default.svc" SE...
1
1
0
[{"id": "G0", "claim": "Since the script lives in a different package, the comments should be updated to explain what the script (the autogrow df parsing) does here, roughly copying the explanation from internal/pgbackrest/config.go.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int...
null
CrunchyData__postgres-operator__4302
CrunchyData/postgres-operator
4,302
defect
b3d57df79128293f6013f638004d7833223c8652
bb2697e2904e464dad347b2ab0c06ccede25fca2
Image volume mounts
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added documentation for the change, as applicable? - [ ] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml index c729da25ee..d55e4d24b0 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml +++ b/config/crd/bases/postgres-operator.crunchydata.com_pgadmins.ya...
5
2
1
[{"id": "G0", "claim": "The documentation link in the Image volume comment should be shortened to `https://docs.k8s.io/concepts/storage/volumes#image`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The upstream ImageVolumeSource Reference field l...
null
CrunchyData__postgres-operator__4308
CrunchyData/postgres-operator
4,308
defect
b1b6652455fa04ef8aea0c21b75b230f62577e26
909426e1297c26fd470dd7b1303bdf90546aa9c2
Use OpenAPI to validate ImageVolumeSource.Reference
**Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [x] Have you updated or added documentation for the change, as applicable? - [x] ...
diff --git a/config/crd/bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml b/config/crd/bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml index 6add75dad3..5313e686e1 100644 --- a/config/crd/bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml +++ b/config/crd/bases/postgr...
3
1
0
[{"id": "G0", "claim": "The jq approach of identifying schemas to post-process via the controller-gen title marker may be \"too clever\" (smuggling information through a marker that does something else).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When ...
null
CrunchyData__postgres-operator__4310
CrunchyData/postgres-operator
4,310
defect
b9fb1d8e0b619d414c7e71e3635843fdc849bc41
f7445ff9e0532edaecb3cbe04e6091c5ce0bc909
Look in more directories for restore binaries
This is similar to https://github.com/CrunchyData/postgres-operator/pull/4304, but for restore jobs in PostgresCluster using Postgres images. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of wha...
diff --git a/internal/controller/postgrescluster/pgbackrest.go b/internal/controller/postgrescluster/pgbackrest.go index e4e1a06d31..ffa716a868 100644 --- a/internal/controller/postgrescluster/pgbackrest.go +++ b/internal/controller/postgrescluster/pgbackrest.go @@ -11,6 +11,7 @@ import ( "path/filepath" "reflect" ...
2
1
0
[{"id": "G0", "claim": "The comment about '--repo' being set with or without an equals sign is no longer applicable now that the switch looks up collected flags, so it should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The restore-o...
null
CrunchyData__postgres-operator__4392
CrunchyData/postgres-operator
4,392
defect
11210f8f95e9d62b270d4aac4d2c0df9526ef8f1
6cd08d59bda752b2cf55d1c0f1f73a7e88121b3a
Fix issue with resourcedetection processor failing with no detectors …
…set. Minor refactoring of some collector code. **Checklist:** <!--- Make sure your PR is documented and tested before submission. Put an `x` in all the boxes that apply: --> - [x] Have you added an explanation of what your changes do and why you'd like them to be included? - [ ] Have you updated or added...
diff --git a/internal/collector/patroni.go b/internal/collector/patroni.go index 307d203fa5..fbde30102d 100644 --- a/internal/collector/patroni.go +++ b/internal/collector/patroni.go @@ -17,12 +17,8 @@ func EnablePatroniLogging(ctx context.Context, inCluster *v1beta1.PostgresCluster, outConfig *Config, ) { - var s...
2
1
0
[{"id": "G0", "claim": "The reviewer asks whether something changed so that the removed `inCluster != nil`/`Instrumentation != nil` checks in the Enable*Logging functions are no longer necessary.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "OpenTele...
null
CryoByte33__steam-deck-utilities__52
CryoByte33/steam-deck-utilities
52
defect
9f284feb1b16d1a92f4bcba58620a4575a22f060
d04cb30dea8ae5e8ef61c711a3f5853e7cbee98f
feat: add GPU tab to display VRAM info
Hi, I thought it will be nice to have a tab to display the VRAM and teach people how to change it. (native speaker might help to review my english) I am not proficient in go and tried to adapt to your style. I did not see any Unit Tests but I could add some. (e.g.: for the regex parsing). ![1](https://user-im...
diff --git a/internal/config.go b/internal/config.go index 5a87878a..2b85e2ce 100644 --- a/internal/config.go +++ b/internal/config.go @@ -26,6 +26,7 @@ var RecommendedCompactionProactiveness = "0" var RecommendedHugePageDefrag = "0" var RecommendedPageLockUnfairness = "1" var RecommendedShMem = "advise" +var Recomm...
6
4
0
[{"id": "G0", "claim": "The 'Increase VRAM' button feels misleading, as if it would change the VRAM right in the UI; the tab should show the instructions directly instead of a button.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The current VRAM settin...
null
Cue__scales__23
Cue/scales
23
defect
6f11e88a256f5c26db383f7a8c714a556b11753e
e29966f1db81dab32f431c96fb744949d9540359
Added Python 3.3 support
Hi, I've added Python 3.3 support to this project. All tests pass in versions 2.6, 2.7, and 3.3. Please look at the 2to3 branch for all changes.
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50941fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.egg/ +build/ +dist/ +venv/ diff --git a/requirements.txt b/requirements.txt index 4f74cb6..d88410f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -simplejson==2.6.1 +sim...
5
5
3
[{"id": "G0", "claim": "A leftover debug print(aggregators) statement in the leaf branch of _aggregate should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Everywhere the pull request changed iteritems()/itervalues()/iterkeys() to items...
null
Cuprate__cuprate__109
Cuprate/cuprate
109
defect
e6465ec613333280f221586c80c0000d9ee36c08
a8a87ca23394c479154b7a50a6a90793bd3c2833
P2P: async buffer
This adds an async buffer that works as a queue which supports arbitrary weights for values. This is used between the block downloader and Cuprate.
diff --git a/Cargo.lock b/Cargo.lock index 6a69a1dad..b469e1483 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,6 +109,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "async-buffer" +version = "0.1.0" +dependencies = [ + "futures", + "pin-project", + "thiserror", + "tokio", +] + [[package]] ...
9
4
0
[{"id": "G0", "claim": "The crate's documentation does not explain what `weight` means or what it does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The buffer should live in `cuprate_helper::asynch` rather than as its own crate.", "category": "...
null
Cuprate__cuprate__190
Cuprate/cuprate
190
defect
fe1d5faac974fff5fb7a2278b40a7636ccc1c830
cfca1a68cc182e527414038ea6965599be32da2b
Consensus: fix Rx VM initialization
### What Currently RandomX VM initialization is broken, specifically if you request to verify a batch of blocks and RX activates somewhere in the batch and the RX seed height is outside the batch, the VM wont be initialized and we will panic. ### How I separated RX VMs from the rest of the context service, t...
diff --git a/consensus/src/block.rs b/consensus/src/block.rs index 9fb46b956..ac62162eb 100644 --- a/consensus/src/block.rs +++ b/consensus/src/block.rs @@ -21,6 +21,7 @@ use cuprate_consensus_rules::{ calculate_pow_hash, check_block, check_block_pow, is_randomx_seed_height, randomx_seed_height, Block...
3
3
1
[{"id": "G0", "claim": "Use `let Some(last_block) = blocks.last() else { return Err(ExtendedConsensusError::NoBlocksToVerify); }` instead of the `blocks.is_empty()` guard, and take `top_hf_in_batch` from the bound `last_block` instead of `blocks.last().unwrap().hf_version`.", "category": "maintainability", "verdict": "...
null
Cuprate__cuprate__204
Cuprate/cuprate
204
defect
7e9891de5b54f9caf11fd1ed57a5c45daeb57a11
2bc432698e2bde83260ed7d668188c713b3e571a
P2P: Fix freeze in D++
### What Fixes: #177 This prevent freezing in the d++ router by changing the peer discover to a stream that returns an enum with a variant to tell the router there are no more outbound peers.
diff --git a/p2p/dandelion-tower/Cargo.toml b/p2p/dandelion-tower/Cargo.toml index 5e2fec53e..976dad60e 100644 --- a/p2p/dandelion-tower/Cargo.toml +++ b/p2p/dandelion-tower/Cargo.toml @@ -10,7 +10,7 @@ default = ["txpool"] txpool = ["dep:rand_distr", "dep:tokio-util", "dep:tokio"] [dependencies] -tower = { workspa...
2
1
0
[{"id": "G0", "claim": "The doc comment on the peer service should read \"its error\" instead of the grammatically incorrect \"it's error\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Handling outbound-peer exhaustion by logging a warning and ...
null
Cuprate__cuprate__257
Cuprate/cuprate
257
defect
59adf6dcf8a1adfbfbf05583866f6c5b0d85b374
701d032cabefd06b7764983916e0179ad11e80f6
dandelion-tower: improve API
### What This PR makes the dandelion crate's tx-pool abstraction more efficient. ### How by separating new tx handling from the pool maintenance.
diff --git a/p2p/dandelion-tower/src/lib.rs b/p2p/dandelion-tower/src/lib.rs index aa622f308..60b5ea5d5 100644 --- a/p2p/dandelion-tower/src/lib.rs +++ b/p2p/dandelion-tower/src/lib.rs @@ -2,17 +2,17 @@ //! //! This crate implements [dandelion++](https://arxiv.org/pdf/1805.11060.pdf), using [`tower`]. //! -//! Thi...
4
4
0
[{"id": "G0", "claim": "Rename the type parameters `TxID` and `PID` to `TxId` and `Pid` to follow the concise UpperCamelCase convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the `upper_case_acronyms` clippy lint to the project's de...
null
Cuprate__cuprate__288
Cuprate/cuprate
288
defect
e7c6bba63d7224decc0fd30f27fb50eb2072c4ea
5ee10a3775618844af40631a7046ff4a4b1db5c1
p2p/p2p-core: enable workspace lints
### What Enables and fixes workspace lints for `cuprate-p2p-core`.
diff --git a/Cargo.lock b/Cargo.lock index 61fa2a2ad..83177112e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -774,6 +774,7 @@ version = "0.1.0" dependencies = [ "async-trait", "borsh", + "cfg-if", "cuprate-helper", "cuprate-pruning", "cuprate-test-utils", @@ -788,7 +789,6 @@ dependencies = [ "tokio-util", ...
2
2
1
[{"id": "G0", "claim": "Moving p2p/p2p-core/tests into p2p/p2p-core/src/tests makes cuprate-test-utils depend on cuprate-p2p-core in a dev-dependency cycle, so the crate is built twice and the CI build of the tests fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"i...
null
Cuprate__cuprate__306
Cuprate/cuprate
306
defect
80bfe0a34cf20681307d41b274d9999e5f7fa09e
7c09a3711c89c7bb24bcfb44827b3bae1dfecb5a
P2P: move seed nodes to config
### What Moves the seed nodes to the config + removes a few unused constants ### Why Seeds nodes depend on the network.
diff --git a/p2p/address-book/src/book/tests.rs b/p2p/address-book/src/book/tests.rs index aefbd842d..216fcfac7 100644 --- a/p2p/address-book/src/book/tests.rs +++ b/p2p/address-book/src/book/tests.rs @@ -20,10 +20,7 @@ fn test_cfg() -> AddressBookConfig { } } -fn make_fake_address_book( - numb_white: u32, -...
2
1
0
[{"id": "G0", "claim": "Removing the built-in seed nodes leaves users to provide seed nodes manually, and asks whether default seed nodes will eventually be added to `P2PConfig`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added assertion sh...
null
Cuprate__cuprate__367
Cuprate/cuprate
367
defect
27a97ab106b61225b678cf7376dee35a0c74653f
6ca2ee8257fe1c89886d17028ac662993588b265
lints: enable `wildcard_enum_match_arm`
<!-- PR titles should be: <AREA>: <SHORT_DESCRIPTION> For example: books: fix typo --> <!-- If your pull request is long and/or has sections that need clarifying, consider leaving a review on your own PR with comments explaining the changes. --> ### What Enables the ["hot"](https://github.com/Cuprate/...
diff --git a/Cargo.toml b/Cargo.toml index e6237239b..34842aa86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -433,7 +433,7 @@ allow_attributes = "deny" undocumented_unsafe_blocks = "deny" # multiple_unsafe_ops_per_block = "deny" # single_char_lifetime_names = "deny" -# wildcard_enum_match_arm = "deny" +wildcard_enum_...
1
1
0
[{"id": "G0", "claim": "The wildcard arm in the incoming stream request match should be ignored with an `#[expect]` attribute instead of enumerating the handled variants alongside a wildcard arm.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Cuprate__cuprate__385
Cuprate/cuprate
385
defect
7e8e62135c9a814d4157a2927849aadde35cc4a8
0ad71915b79d571d3aa43fb13a746d6a460cc0e7
P2P: fix deadlock
### What Fixes #383 ### How Added a timeout for handling request to Cuprate and also add a new `Client` type that doesn't require requests be handled one at a time but only supports certain messages
diff --git a/binaries/cuprated/src/txpool/dandelion/stem_service.rs b/binaries/cuprated/src/txpool/dandelion/stem_service.rs index 1a288f3d8..32e35eb9c 100644 --- a/binaries/cuprated/src/txpool/dandelion/stem_service.rs +++ b/binaries/cuprated/src/txpool/dandelion/stem_service.rs @@ -12,7 +12,7 @@ use cuprate_dandelion...
3
2
1
[{"id": "G0", "claim": "The extra `interval.tick().await` after the `tokio::select!` (which already awaits the interval) should be removed, as it adds another tick before processing the event loop.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
Cuprate__cuprate__408
Cuprate/cuprate
408
defect
e84f5c151f633ac23d7484ca01e7dab2ca24d204
71450fcfcca3e18828e7481f67b9d0724eb16a25
Cuprated: Fix reorgs
### What Fixes #404
diff --git a/Cargo.lock b/Cargo.lock index 4593984ed..518b71bdb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1106,6 +1106,7 @@ dependencies = [ "serde", "serde_bytes", "serde_json", + "tempfile", "thiserror", "thread_local", "tokio", diff --git a/binaries/cuprated/Cargo.toml b/binaries/cuprated/Cargo.toml i...
2
1
0
[{"id": "G0", "claim": "The `include_alt_blocks: bool` parameter of `find_split_point` could be dropped by taking `table_alt_block_heights` as `Option<&impl DatabaseRo<AltBlockHeights>>` instead.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `Difficul...
null
Cuprate__cuprate__66
Cuprate/cuprate
66
defect
a58d33b95eea30dcae1f610b9a0eeb74a7ddc1a9
d37312e7fd975b568df6e72bb35b9340219d2b73
imporove Monerod spawn stability
This PR removes the ability for tests to share monerod's, and makes it so if a test fails the monerod spawned for that test will output its logs.
diff --git a/p2p/monero-p2p/tests/handshake.rs b/p2p/monero-p2p/tests/handshake.rs index 45e97f27c..541713ae4 100644 --- a/p2p/monero-p2p/tests/handshake.rs +++ b/p2p/monero-p2p/tests/handshake.rs @@ -111,11 +111,7 @@ async fn handshake_cuprate_to_monerod() { let semaphore = Arc::new(Semaphore::new(10)); let ...
2
2
0
[{"id": "G0", "claim": "The monerod spawn should pick ports by binding to port 0 and asking the OS for an available one (with a get_available_port helper taking already-taken ports) instead of using random ports and hoping for no collision.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int...
null
Cuprate__cuprate__89
Cuprate/cuprate
89
defect
729b0fb0cfe584e53516c20bf3b24f3a009fab3c
a12032b1e31438d017d69b99797873b6b4a2986d
P2P Address book & Handshake changes
This contains changes I made to the address book in #73 I will add more details here when this is ready
diff --git a/Cargo.lock b/Cargo.lock index 4bb47a9b1..5c96bc3a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1051,7 +1051,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.11", - "indexmap 2.2.4", + "indexmap 2.2.5", "slab", "tokio", "tokio-util", @@ -1362,9 +1362,9 @@ dependencies = [ [[pa...
6
4
1
[{"id": "G0", "claim": "The `epee_object!` macro definition should be split over multiple lines, with comments explaining what each input means.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The suggested `let (&key, _) = self.peers[n];` indexi...
null
CuriousLearner__django-phone-verify__19
CuriousLearner/django-phone-verify
19
defect
e11566531b522a301b178a6d00e64c64ce69c853
3a25888b7166906c45a63203593b9e344a1fa8da
feat(phone_verify): Add nexmo interface and docs for custom backend
This adds an option for integrating the `nexmo` service along with docs to do so. It also provides detailed docs for creating the custom backend of your choice. This closes https://github.com/CuriousLearner/django-phone-verify/issues/12
diff --git a/docs/how_to_integrate_nexmo.rst b/docs/how_to_integrate_nexmo.rst new file mode 100644 index 0000000..2025dc5 --- /dev/null +++ b/docs/how_to_integrate_nexmo.rst @@ -0,0 +1,27 @@ +How to integrate ``Nexmo``? +=========================== + +**Note**: ``django-phone-verify`` provides ``Nexmo`` as an addition...
11
11
1
[{"id": "G0", "claim": "The new docs examples and nexmo.py should use Python 3 syntax for the super() call instead of the Python 2-style super(Class, self) form.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "nexmo should be added to install_requires in s...
null
CuriousLearner__django-phone-verify__38
CuriousLearner/django-phone-verify
38
defect
082dd234c950f355960baeb3f7afefab35d35bf8
d61df1b3c17c5cbcefeb017967ef3fba905b2973
fix(phone_verify): Return same number of arguments in the overridden method
This fixes https://github.com/CuriousLearner/django-phone-verify/issues/37
diff --git a/docs/how_to_write_custom_backend.rst b/docs/how_to_write_custom_backend.rst index 96e4714..2d25a51 100644 --- a/docs/how_to_write_custom_backend.rst +++ b/docs/how_to_write_custom_backend.rst @@ -113,6 +113,7 @@ The above steps will remain same if you wish to create a sandbox utility for you # Third P...
2
1
0
[{"id": "G0", "claim": "Use the absolute import `from phone_verify.models import SMSVerification` instead of the relative `from ..models import SMSVerification` in the nexmo and twilio backend modules.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim...
null
CurvineIO__curvine__678
CurvineIO/curvine
678
defect
bfd972390d5a935c486a45359ecb474c793fca81
a9694bf9b5b3cd8000c40626db01c3b21505c657
refactor(client): simplify write types to CacheMode and FsMode only
## Summary Unify the previous four write types (Cache, Through, AsyncThrough, CacheThrough) into two modes: **CacheMode** and **FsMode**. This reduces complexity in the unified client and CLI while keeping the main use cases: writing through to UFS only (CacheMode) and writing to Curvine with optional sync to UFS (F...
diff --git a/curvine-cli/src/cmds/mount.rs b/curvine-cli/src/cmds/mount.rs index 283231c8a..781ca80d9 100644 --- a/curvine-cli/src/cmds/mount.rs +++ b/curvine-cli/src/cmds/mount.rs @@ -13,6 +13,7 @@ // limitations under the License. use crate::util::*; +use bigdecimal::Zero; use clap::Parser; use curvine_client::...
4
3
2
[{"id": "G0", "claim": "When fail_if_not_found is false, wait_job_complete0 swallows all errors from get_job_status (not just JobNotFound) and keeps retrying until timeout, which can hide real failures such as auth/transport errors and turn them into long hangs; only FsError::JobNotFound should be retried and other err...
null
CurvineIO__curvine__683
CurvineIO/curvine
683
defect
61208909b5f6e3ee6fcf5eab3880207640f56e04
3f980c0a95477362f184cbf8a59b54972a04c9a4
feat(server): add UfsLoader to sync journal metadata to UFS (#680)
## Summary 1. **Integrate UfsLoader with JournalLoader**: When the leader applies a journal batch, it now calls `UfsLoader::apply_batch` so metadata operations (mkdir, complete_file, rename, delete) are mirrored to UFS and load tasks are submitted for completed files. 2. **InodeFile**: On `complete()` with non-empt...
diff --git a/curvine-server/src/master/journal/journal_loader.rs b/curvine-server/src/master/journal/journal_loader.rs index aa84afbff..4a5eb78c1 100644 --- a/curvine-server/src/master/journal/journal_loader.rs +++ b/curvine-server/src/master/journal/journal_loader.rs @@ -17,7 +17,7 @@ use crate::master::journal::*; ...
7
4
2
[{"id": "G0", "claim": "wait_job_complete() loops indefinitely with no timeout or backoff, so a job stuck in a non-terminal state (or a lost job store) can hang the caller forever; consider adding a maximum wait duration (or max retries) and returning a clear error when exceeded.", "category": "correctness", "verdict":...
null
CurvineIO__curvine__684
CurvineIO/curvine
684
defect
dbeb1c78340f44c2c368c33ec421cdf87fd14ecd
5b4ddab056d2fe954489778f55284c1c327597aa
refactor(mount): simplify mount proto and state, replace consistency …
## Description ### Summary This PR simplifies the mount metadata model and RPC surface by removing unused enums and replacing the previous consistency-strategy abstraction with a single boolean flag. ### Changes - **Proto (curvine-common/proto/mount.proto)** - Remove `MountTypeProto` enum and `mount_type...
diff --git a/curvine-cli/src/cmds/mount.rs b/curvine-cli/src/cmds/mount.rs index 9ba6d9e95..adc192907 100644 --- a/curvine-cli/src/cmds/mount.rs +++ b/curvine-cli/src/cmds/mount.rs @@ -18,8 +18,7 @@ use curvine_client::unified::{UfsFileSystem, UnifiedFileSystem}; use curvine_common::error::FsError; use curvine_common...
4
2
1
[{"id": "G0", "claim": "Reusing and renumbering protobuf tag numbers (write_type moved to 11, provider to 12 after mount_type was removed) is a breaking wire-compat change that can silently misinterpret old data; keep existing tags for unchanged fields and reserve removed tags instead.", "category": "correctness", "ver...
null
CurvineIO__curvine__686
CurvineIO/curvine
686
defect
dbeb1c78340f44c2c368c33ec421cdf87fd14ecd
ea8639856b8a96062533cc24faa7f54aea49193c
feat(master): add Free RPC to release Curvine cache after UFS sync (#…
## Description ### Summary This PR adds a **Free** RPC that allows releasing Curvine’s cached block metadata and local cache for a path **after** its data has been synchronized to UFS. This supports reclaiming space and simplifying metadata once a file is safely stored in UFS. ### Changes - **Proto & RPC** ...
diff --git a/curvine-client/src/file/curvine_filesystem.rs b/curvine-client/src/file/curvine_filesystem.rs index 65ade30cd..90f7bd975 100644 --- a/curvine-client/src/file/curvine_filesystem.rs +++ b/curvine-client/src/file/curvine_filesystem.rs @@ -189,6 +189,10 @@ impl CurvineFileSystem { self.fs_client.delet...
7
5
4
[{"id": "G0", "claim": "InodeFile::overwrite no longer applies opts.storage_policy and only resets self.storage_policy.ufs_mtime = 0, which can ignore other storage policy fields from the overwrite request (e.g. storage type / TTL) and persist an incorrect policy after overwrite.", "category": "correctness", "verdict":...
null
CurvineIO__curvine__701
CurvineIO/curvine
701
defect
e6f32d5694a6399bdcb52afc854baa47723f4a40
be5613896354eb5f1f58e9d037e551fd70fccb35
feat(client): add FallbackFsReader for UFS fallback in FsMode
## Problem In FsMode, reads fail when Curvine master is unavailable or when a worker serving file blocks becomes unhealthy. The client needs a transparent fallback path to UFS read. ## Design Introduce `FallbackFsReader` as a wrapper around `FsReader` that holds UFS context. On worker-related read errors (IO/Pipeline/...
diff --git a/curvine-client/src/unified/fallback_fs_reader.rs b/curvine-client/src/unified/fallback_fs_reader.rs new file mode 100644 index 000000000..503805a46 --- /dev/null +++ b/curvine-client/src/unified/fallback_fs_reader.rs @@ -0,0 +1,306 @@ +// Copyright 2025 OPPO. +// +// Licensed under the Apache License, Vers...
4
2
1
[{"id": "G0", "claim": "open() returning UnifiedReader::Fallback for Curvine/cache hits breaks existing callers that key off UnifiedReader::Cv (curvine-fuse meta_cache only caches blocks when the reader is Cv, so it stops populating the cache); the Cv variant should be preserved or in-tree callers updated in the same P...
null
CurvineIO__curvine__704
CurvineIO/curvine
704
defect
1b1d96c88c03d8f65a99d197f7e17bdd812ed0e5
f4ef7b284758a1e72ea3ca83861d3fe1a28675a8
refactor(raft): modernize AppStorage/LogStorage traits and async appl…
### Summary This PR refactors the Raft storage layer (`AppStorage`, `LogStorage`, `PeerStorage`, `RaftNode`) to establish a cleaner, fully-async contract between the Raft consensus engine and the application state machine (`JournalLoader`). The main motivation is to unblock follow-on work such as: - Leader/...
diff --git a/curvine-common/src/raft/raft_node.rs b/curvine-common/src/raft/raft_node.rs index 26b1ea750..7acfc7169 100644 --- a/curvine-common/src/raft/raft_node.rs +++ b/curvine-common/src/raft/raft_node.rs @@ -17,7 +17,7 @@ use crate::conf::JournalConf; use crate::proto::raft::*; use crate::raft::raft_error::Raft...
9
7
4
[{"id": "G0", "claim": "AppStorage::apply implementations (JournalLoader, HashAppStorage, RocksAppStorage) unconditionally call msg.take_entry(), which will panic at runtime for ApplyMsg::Scan that RaftNode::install_snapshot sends (and in JournalLoader borrows a temporary Entry across an .await); they should match on A...
null
CurvineIO__curvine__721
CurvineIO/curvine
721
defect
8cab0836102393e757d53698c64ebdc212c18095
3dd7c6e5c8b8bebdc64a6a54b6cc459a323b6534
feat(server): add recursive flag and FreeResult; TTL-only free (#717)
## Summary Extend the `free` API with a **recursive** option and a structured **FreeResult** return value. Free semantics are aligned with TTL: only inodes that are eligible for TTL free (e.g. `ttl_action == Free`, UFS synced, CV has data) are actually freed. ## Changes ### API and Proto - **FreeRequest** (...
diff --git a/curvine-client/src/file/curvine_filesystem.rs b/curvine-client/src/file/curvine_filesystem.rs index f44c51d9b..250eb5d41 100644 --- a/curvine-client/src/file/curvine_filesystem.rs +++ b/curvine-client/src/file/curvine_filesystem.rs @@ -19,7 +19,7 @@ use bytes::BytesMut; use curvine_common::conf::ClusterCo...
8
4
4
[{"id": "G0", "claim": "In unprotected_free, file.free(mtime) clears file.blocks before locs are computed via file.get_locs, so the returned block map will likely be empty and workers won't remove the freed blocks; capture block locations before clearing blocks or make InodeFile::free return them.", "category": "correc...
null
CurvineIO__curvine__723
CurvineIO/curvine
723
defect
44c17cffa1524c17c1f0e50c67bdfc8aa160b651
593fbda93cc586b72c44d83d4cd0676cebe54965
fix(fs): simplify free path and fix TTL free condition
- UnifiedFileSystem::free: always use cv.free, remove mount/ufs branch - Skip cache validity check when blocks.cv_exists() is false - InodeFile::free: only skip when ttl_action is None (#close 717)
diff --git a/curvine-client/src/unified/unified_filesystem.rs b/curvine-client/src/unified/unified_filesystem.rs index 397bf1ab9..b0cd176c5 100644 --- a/curvine-client/src/unified/unified_filesystem.rs +++ b/curvine-client/src/unified/unified_filesystem.rs @@ -168,19 +168,7 @@ impl UnifiedFileSystem { } pub...
3
2
2
[{"id": "G0", "claim": "With free() always calling cv.free(), cache-mode mounts no longer delete the CV cache inode, breaking the test_cache_mode_free expectation that the file is gone from CV after free and changing user-visible semantics, so the cache-mode branch should be restored or the tests/docs updated to define...
null
CurvineIO__curvine__734
CurvineIO/curvine
734
defect
d7ce2c575dc76f1e7c5cdb3274d611f25b95f160
00dd83570d4fea2d37c1538443f39396a3d0ee4e
refactor(ttl): simplify bucket-based TTL pipeline and expiration sema…
## Summary This change simplifies the master TTL pipeline by moving from a retry-heavy, multi-manager TTL implementation to a lean bucket-indexed model centered on inode metadata (`mtime + ttl_ms`). It unifies imports and module exports, reduces coupling with mount/UFS/job components, and makes TTL cleanup behavior ...
diff --git a/curvine-common/src/state/file_status.rs b/curvine-common/src/state/file_status.rs index d653f9f7a..9397ff2bf 100644 --- a/curvine-common/src/state/file_status.rs +++ b/curvine-common/src/state/file_status.rs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limit...
8
6
2
[{"id": "G0", "claim": "The skip warnings in TtlBucketList::add and TtlBucketList::remove say \"cannot remove directory entry\" although the skipped variant is FileEntry (and on the add path the operation is not a removal); reword the log messages to describe the actual operation and type.", "category": "maintainabilit...
null
CurvineIO__curvine__745
CurvineIO/curvine
745
defect
0e11c29030c7de0192e626898ffa455027c7fdb3
5079a0dd8b1af88a2d2b39dfa22a780de4c88454
feat(fuse): stream-based readdir, list_options fixes, and env defaults
### Summary - **FUSE `readdir` / `DirHandle`** - Directory handles now wrap a **`ListStream`** with an internal **`VecDeque`** buffer and configurable **`list_limit`** (from **`FuseConf`**). - **`get_batch(offset)`** fills the buffer from the stream, supports **resume after FUSE offset** when inner index was r...
diff --git a/Cargo.lock b/Cargo.lock index f3ea0cb64..1422cf284 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1082,7 +1082,6 @@ name = "curvine-ufs" version = "0.2.0" dependencies = [ "anyhow", - "async-stream", "async-trait", "bytes", "cc", diff --git a/curvine-common/src/conf/cluster_conf.rs b/curvine-common...
6
4
3
[{"id": "G0", "claim": "The readdir loop passes `index` starting at `arg.offset` as the cookie while `FuseDirentList::add*` writes `dirent.off` exactly as provided, so the first entry can be emitted with off=0 and offsets may not advance as the kernel expects, which can cause readdir to repeat entries or loop; consider...
null