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
GoogleCloudPlatform__golang-samples__4872
GoogleCloudPlatform/golang-samples
4,872
defect
e567a2b771a44cefe155a9b8a6ff61812f9ef48c
752422b8611ec49f92414f23719b33cd385963c6
feat: batch create with custom network sample
## Description Samples, which demonstrates how to create batch with custom network and subnetwork. Documentation reference [here](https://cloud.google.com/batch/docs/specify-job-network#create-job-specific-network) ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.c...
diff --git a/batch/create_with_custom_network.go b/batch/create_with_custom_network.go new file mode 100644 index 0000000000..93aefd5758 --- /dev/null +++ b/batch/create_with_custom_network.go @@ -0,0 +1,117 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you...
9
1
1
[{"id": "G0", "claim": "The function's doc comment should be expanded to explain how the function works, the purpose of each parameter, and the expected behavior.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code assumes the specified networ...
null
GoogleCloudPlatform__golang-samples__4894
GoogleCloudPlatform/golang-samples
4,894
defect
54f78ad46cfec6d5f4379b59bebf1aabd392b0eb
281c09875e6593d4a4df24691bc8b68df74d42e9
chore(secretmanager): add optional argument ttl to createSecret
## Description chore(secretmanager): add optional argument ttl to createSecret and updated tests with/without ttl Fixes #[b/384052840](http://b/384052840) Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Con...
diff --git a/secretmanager/create_secret.go b/secretmanager/create_secret.go index 54219b3d7f..b79cf86234 100644 --- a/secretmanager/create_secret.go +++ b/secretmanager/create_secret.go @@ -27,7 +27,7 @@ import ( // createSecret creates a new secret with the given name. A secret is a logical // wrapper around a coll...
2
1
1
[{"id": "G0", "claim": "The sample function createSecret must not return a value other than error (per the samples style guide); instead of calling the value-returning sample from the test, a dedicated function (e.g. testSecretWithTtl based on testSecret) should be added so creating a secret with a ttl is still covered...
null
GoogleCloudPlatform__golang-samples__5076
GoogleCloudPlatform/golang-samples
5,076
defect
943b6ee54af1dd221cfbd22a8c0b5e0b1354ae7c
445d282ca3e8d0fe7488a7ce97bc6c5fd0396c9f
chore(compute): Minor updates to regional consistency group listing
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/disks/consistency_group_list.go b/compute/disks/consistency_group_list.go index b09f61a12b..e62e38b419 100644 --- a/compute/disks/consistency_group_list.go +++ b/compute/disks/consistency_group_list.go @@ -14,7 +14,7 @@ package snippets -// [START compute_consistency_group_list] +// [START com...
3
2
0
[{"id": "G0", "claim": "The error returned when creating the regional disks REST client is mislabeled: it should refer to NewRegionDisksRESTClient instead of NewResourcePoliciesRESTClient.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The functio...
null
GoogleCloudPlatform__golang-samples__5090
GoogleCloudPlatform/golang-samples
5,090
defect
73b45f396c738201b1e9755db194d1a4c5b16e22
6bd5d1d008df500823342f66490129274fb820e3
fix(securitycenter): issues related to flaky tests in SHA & ETD
## Description Fixes https://github.com/GoogleCloudPlatform/golang-samples/issues/4866, https://github.com/GoogleCloudPlatform/golang-samples/issues/4871 Flakiness in tests due to Concurrent Modification error by refactoring the clean up process of created modules for testing. This pull request addresses flaky te...
diff --git a/securitycenter/management_api/create_security_health_analytics_custom_module.go b/securitycenter/management_api/create_security_health_analytics_custom_module.go index 8fed0eddfa..953721ffe9 100644 --- a/securitycenter/management_api/create_security_health_analytics_custom_module.go +++ b/securitycenter/ma...
3
2
0
[{"id": "G0", "claim": "In create_security_health_analytics_custom_module.go the regex should be precompiled (e.g. as a package-level var) instead of being compiled on every call, for better performance.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
GoogleCloudPlatform__golang-samples__5237
GoogleCloudPlatform/golang-samples
5,237
defect
edee6f1df11052015ba853ea20e5041a9495e3c6
4d5e9e611f790693e3837e17cdf6d4df08166558
feat(firestore): add new sample for sessions
## Description Add new sample for sessions, this sample has a direct implementation of Firestore for to avoid using the deprecated package [firestore-gorilla-sessions](https://github.com/GoogleCloudPlatform/firestore-gorilla-sessions) package. Fixes b/403118194 Note: Before submitting a pull request, please open...
diff --git a/getting-started/sessions_new/go.mod b/getting-started/sessions_new/go.mod new file mode 100644 index 0000000000..67e24c32d6 --- /dev/null +++ b/getting-started/sessions_new/go.mod @@ -0,0 +1,54 @@ +module github.com/GoogleCloudPlatform/golang-samples/getting-started/sessions_new + +go 1.23.0 + +require ( +...
9
8
2
[{"id": "G0", "claim": "Using the Firestore document ID directly as the session ID might expose internal data structure and could be a security concern; the sample should generate a random, opaque session ID with crypto/rand instead.", "category": "security", "verdict": "opposed", "priority": "P3", "scope": "introduced...
null
GoogleCloudPlatform__golang-samples__5243
GoogleCloudPlatform/golang-samples
5,243
defect
ab8c6eabababd8503d9ed8e954fb2ef49214169d
2da987c18b7e8f56421aaf8448402bd86f8244e1
feat(storage): add samples and tests for object soft delete (list, list versions, restore)
Part 2 - samples for object soft delete (part 1 in https://github.com/GoogleCloudPlatform/golang-samples/pull/5231) Fixes #4789 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from C...
diff --git a/storage/go.mod b/storage/go.mod index bb0263a99d..daa9a3cfb7 100644 --- a/storage/go.mod +++ b/storage/go.mod @@ -3,38 +3,38 @@ module github.com/GoogleCloudPlatform/golang-samples/storage go 1.23.0 require ( - cloud.google.com/go/iam v1.3.1 - cloud.google.com/go/pubsub v1.45.3 - cloud.google.com/go/st...
6
2
0
[{"id": "G0", "claim": "The new files are missing the license header; please add the license header to all new files.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Define the hardcoded 10-day retention duration in the test as a constant (or varia...
null
GoogleCloudPlatform__golang-samples__5245
GoogleCloudPlatform/golang-samples
5,245
defect
ee847a2eb967106429363189056c8ffded08d31a
df9486b0de3dafca89b84957a07d81d6f4012c6d
feat(workflows): add samples for workflow execution
## Description Add samples for workflow execution with and without parameters Fixes Internal b/407786060 ## Checklist - [X] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [X] **Tests** pass: `go test -v ./..` (...
diff --git a/.gitignore b/.gitignore index dc5a1c4b8e..9c22a1529c 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ testing/kokoro/test-env.sh .DS_Store go.work.sum sponge_log.xml +.vscode/* \ No newline at end of file diff --git a/go.work b/go.work index 791d9a836a..29cf71bf95 100644 --- a/go.work +++ b/go...
22
18
1
[{"id": "G0", "claim": "The TODO placeholder IDs in the sample should be made configurable (e.g. via environment variables or command-line flags) rather than left as hardcoded values.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test helpers should...
null
GoogleCloudPlatform__golang-samples__5262
GoogleCloudPlatform/golang-samples
5,262
defect
0aca11152736c6e945b11729547aa626a9798523
021cd8b4843d5165fb4f4233ca88899811d2eddb
feat(parametermanager): Added samples for kms_key in regional parameter
## Description Added samples for kms_key field in regional parameter using Parameter manager SDK #### Sample List (regional): 1. create_regional_param_with_kms_key 2. update_regional_param_kms_key 3. remove_regional_param_kms_key Added required Tests for the same. ## Checklist - [X] I have followed [...
diff --git a/parametermanager/go.mod b/parametermanager/go.mod index eb37b19312..25caebc1a6 100644 --- a/parametermanager/go.mod +++ b/parametermanager/go.mod @@ -1,40 +1,61 @@ module github.com/GoogleCloudPlatform/golang-samples/parametermanager -go 1.22.7 +go 1.23.0 + +toolchain go1.23.4 require ( - cloud.googl...
7
1
0
[{"id": "G0", "claim": "testCleanupKeyVersions should disable or destroy the crypto key instead of calling DestroyCryptoKeyVersion, which the reviewer says is not the supported way to clean up the KMS resources.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
GoogleCloudPlatform__golang-samples__5271
GoogleCloudPlatform/golang-samples
5,271
defect
c18b45ee42816ea5e0ad53632fcd1a131aefc08b
8c202d5732b89e22f4218252d46bb0167d9f5512
feat(modelarmor): Added snippets for create and delete template
## Description Added Modelarmor code snippet for simple model armor template creation and deletion ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see ...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/create_template.go b/modelarmor/crea...
5
5
1
[{"id": "G0", "claim": "The tests should use t.Error(err) instead of t.Fatal(err) so that a failure does not stop the test immediately and multiple errors can be reported.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "createModelArmorTemplate and delet...
null
GoogleCloudPlatform__golang-samples__5273
GoogleCloudPlatform/golang-samples
5,273
defect
b3db6e18b370347ba108923aabb2c715e564d07f
cb7c703d0bbfdc354e12ac3a0e151f9cc9eb179f
feat(modelarmor): #9 Added snippets for create template with labels and metadata
## Description Added snippets for create template with labels and metadata ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.co...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/create_template.go b/modelarmor/crea...
7
7
2
[{"id": "G0", "claim": "Remove the modelarmor/testdata/env/test.env file that provides environment variables (organization and folder IDs) with the samples.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the \"Returns\" and \"Example\" bl...
null
GoogleCloudPlatform__golang-samples__5276
GoogleCloudPlatform/golang-samples
5,276
defect
b3db6e18b370347ba108923aabb2c715e564d07f
ea732e9f7ce8b1c90795b5fc46b4e0ebf3bee0a6
feat(modelarmor): #10 Added snippets for get template and list templates
## Description - Added modelarmor get and list template code snippets ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/Goo...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/create_template.go b/modelarmor/crea...
4
1
0
[{"id": "G0", "claim": "The client-creation error messages could be more descriptive and consistent with other error messages in the code, for example by including the template ID for easier debugging.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
GoogleCloudPlatform__golang-samples__5280
GoogleCloudPlatform/golang-samples
5,280
defect
b3db6e18b370347ba108923aabb2c715e564d07f
b45b0df44c436f4f01ccba552493a56a2fc873a3
feat(modelarmor): #14 Added snippets for update template with mask config
## Description Added sample for update template with mask config ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCl...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/create_template.go b/modelarmor/crea...
6
2
2
[{"id": "G0", "claim": "The new samples' client-creation error messages should include the template ID so that failures are easier to debug.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test suite creates a new Model Armor client in each h...
null
GoogleCloudPlatform__golang-samples__5282
GoogleCloudPlatform/golang-samples
5,282
defect
c18b45ee42816ea5e0ad53632fcd1a131aefc08b
ba6ff5811d0555f14d4b722f1865fd200310bda8
feat(modelarmor): #16 Added snippets for update floor settings
## Description Added sample for modelarmor update floorsettings ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleClo...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/go.mod b/modelarmor/go.mod new file ...
4
2
0
[{"id": "G0", "claim": "The floor settings tests use t.Fatal, which stops the test at the first failure; consider using t.Error instead so the test continues and reports multiple errors.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The success message...
null
GoogleCloudPlatform__golang-samples__5283
GoogleCloudPlatform/golang-samples
5,283
defect
c18b45ee42816ea5e0ad53632fcd1a131aefc08b
0485bd86e4d0dcded8ed69873ada1c6847cdbacd
feat(modelarmor): #7 Added snippets for sanitization user prompt
## Description Added code snippets for modelarmor sanitization user prompt ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.c...
diff --git a/go.work b/go.work index 93521440ad..d5f30fd603 100644 --- a/go.work +++ b/go.work @@ -106,6 +106,7 @@ use ( ./media ./memorystore ./monitoring + ./modelarmor ./opentelemetry/instrumentation/app ./opentelemetry/trace ./parametermanager diff --git a/modelarmor/create_template.go b/modelarmor/crea...
5
3
1
[{"id": "G0", "claim": "Loading the test environment file via the relative path './testdata/env/test.env' can be fragile when the test is run from a different directory; the loading should use a more robust path (e.g., relative to the project root).", "category": "testing", "verdict": "supported", "priority": "P2", "sc...
null
GoogleCloudPlatform__golang-samples__5329
GoogleCloudPlatform/golang-samples
5,329
defect
df79804b16cfcb815b55ed963b18bd5148283770
027bfb8cde6dad13e8aa338441fe69766106f7bd
docs(bigquery): update job creation optional sample for GA
Corresponding with the changes to JCO GA, this updates the existing Go sample to use client instantiation options rather than the preview enablement mechanism.
diff --git a/bigquery/go.mod b/bigquery/go.mod index 393543ef3b..ba49ac21e0 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -3,40 +3,41 @@ module github.com/GoogleCloudPlatform/golang-samples/bigquery go 1.23.0 require ( - cloud.google.com/go v0.118.0 - cloud.google.com/go/bigquery v1.65.0 - cloud.google.com/...
3
3
0
[{"id": "G0", "claim": "The sample's output message on line 60 of bigquery_query_job_optional.go says \"Query was run in short mode\", which is outdated for the GA feature, and should be reworded to GA terminology such as \"job optional\" or \"without an explicit job\".", "category": "documentation", "verdict": "suppor...
null
GoogleCloudPlatform__golang-samples__5332
GoogleCloudPlatform/golang-samples
5,332
defect
a1835e7e0c26c0c2cfdba148029194706c471b2a
75124cad2078a4d7308fb601aee8f4726b2ca978
fix(translate): update translate text sample for consistency duty
## Description Update translate text sample in order to create consistency among all samples. Fixes Internal b/421246951 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [X] I have followed [Contributing Guidelines from CONTRI...
diff --git a/translate/snippet_test.go b/translate/snippet_test.go index 0dc66c6906..12359d3701 100644 --- a/translate/snippet_test.go +++ b/translate/snippet_test.go @@ -27,13 +27,16 @@ import ( func TestTranslateText(t *testing.T) { testutil.SystemTest(t) - in := "The Go Gopher is cute" - got, err := translateTe...
3
3
1
[{"id": "G0", "claim": "The labels \"Text\" and \"Translation\" in the sample's output are swapped, which could confuse users; \"Text\" should refer to the original input and \"Translation\" to the translated output.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
GoogleCloudPlatform__golang-samples__5335
GoogleCloudPlatform/golang-samples
5,335
defect
99582d91c7e1cccfe3347260af346e60aa9a6975
3f2ba19007085539330d9c858ba150e399d128a3
feat(bigtable): Add samples for deletes using streaming and batching
## Description Fixes b/417638724 This sample will show up in https://cloud.google.com/bigtable/docs/delete-data#delete-stream-batch ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** ...
diff --git a/bigtable/deletes/delete_streaming_batching.go b/bigtable/deletes/delete_streaming_batching.go new file mode 100644 index 0000000000..b25ae00b0f --- /dev/null +++ b/bigtable/deletes/delete_streaming_batching.go @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version...
5
5
2
[{"id": "G0", "claim": "The new files live in bigtable/deletes/ but declare `package writes`; change the package to `deletes` in both delete_streaming_batching.go and delete_streaming_batching_test.go to match the directory.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
GoogleCloudPlatform__golang-samples__5347
GoogleCloudPlatform/golang-samples
5,347
defect
a2f0b67f5b39189525b22f8a838570dd1df5d287
2b32adeadeb57ca3bd935c687aeae46755f5ce03
docs(bigquery): initial preview samples
This PR adds some initial snippets that target the pre-alpha BigQuery Cloud Client Library.
diff --git a/bigquery/go.mod b/bigquery/go.mod index ba49ac21e0..1a96bd6eca 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -3,29 +3,30 @@ module github.com/GoogleCloudPlatform/golang-samples/bigquery go 1.23.0 require ( - cloud.google.com/go v0.121.0 + cloud.google.com/go v0.121.3 cloud.google.com/go/bigqu...
3
2
1
[{"id": "G0", "claim": "The arguments to fmt.Fprintf for logging table information are swapped: the format string \"ListTables: table %q in dataset %q\" receives the dataset ID first and the table ID second, producing confusing output like table \"my_dataset\" in dataset \"my_table\".", "category": "correctness", "verd...
null
GoogleCloudPlatform__golang-samples__5352
GoogleCloudPlatform/golang-samples
5,352
defect
e2f9568026ff57458f3ffef15ca3ab48920ea105
9007519891b89201a4ede71ebfc8c3988f5183b7
feat(pubsub/v2): add single message transform samples
Migrates the [existing v1 SMT samples](https://github.com/GoogleCloudPlatform/golang-samples/pull/5290) to use the v2 library.
diff --git a/pubsub/subscriptions/create_message_transforms.go b/pubsub/subscriptions/create_message_transforms.go new file mode 100644 index 0000000000..4de0c1c914 --- /dev/null +++ b/pubsub/subscriptions/create_message_transforms.go @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache Lice...
7
5
3
[{"id": "G0", "claim": "The `subID` parameter is unused and the `Subscription` is built without a `Name`, so the `CreateSubscription` call will fail as written; set `Name` from `subID`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "If `status.FromE...
null
GoogleCloudPlatform__golang-samples__5358
GoogleCloudPlatform/golang-samples
5,358
defect
6aa30b8ac0fec9bd9ecb73c47048d71cf756344d
747ef8520221dc69d7a4d18816b2f1a4d080d558
feat(genai): Add samples for Content-cache and Text-generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/content_cache/content_cache_test.go b/genai/content_cache/content_cache_test.go index 1c9253efa1..852e58bd89 100644 --- a/genai/content_cache/content_cache_test.go +++ b/genai/content_cache/content_cache_test.go @@ -45,13 +45,19 @@ func TestContentCaching(t *testing.T) { t.Errorf("updateContentCac...
6
3
1
[{"id": "G0", "claim": "The step comment in TestContentCaching is misnumbered and should read step 3, not step 4.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The step comment for using the cached content is misnumbered and should read step 4, n...
null
GoogleCloudPlatform__golang-samples__5361
GoogleCloudPlatform/golang-samples
5,361
defect
7149e3c1d62d6324fbf16e9282e5b9801dd617ec
5aad05db0980b8460398af6b14bbe89597e99f5b
chore: move blunderbuss team mappings to CODEOWNERS
The [Blunderbuss bot](https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss) has been deprecated. This change handles team level Blunderbuss assignments by mapping them via paths instead of labels via CODEOWNERS. Nearly all of these cases were already in CODEOWNERS. We will contact individua...
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 61bf0f98b4e..0e03c0d75a7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -17,14 +17,14 @@ /testing/ @GoogleCloudPlatform/go-samples-reviewers @GoogleCloudPlatform/cloud-samples-infra # CNDB, Storage, and Infra-DB -/bi...
3
2
2
[{"id": "G0", "claim": "The new GoogleCloudPlatform/cloud-asset-analysis-team entries in CODEOWNERS are missing the required @ prefix, a syntax error that will prevent GitHub from recognizing the team as an owner.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
GoogleCloudPlatform__golang-samples__5366
GoogleCloudPlatform/golang-samples
5,366
defect
0f9d83276109eb453cf6bd6ca044bd9b99528545
1dd9ef581776b267ac3ceceb62fc5b3b8f2af05b
docs(bigquery): add more preview samples
* adds missing get samples * adds jobs.list * adds model samples
diff --git a/bigquery/snippets_preview/dataset/bigquery_get_dataset.go b/bigquery/snippets_preview/dataset/bigquery_get_dataset.go new file mode 100644 index 0000000000..3a4628b903 --- /dev/null +++ b/bigquery/snippets_preview/dataset/bigquery_get_dataset.go @@ -0,0 +1,61 @@ +// Copyright 2025 Google LLC +// +// Licens...
6
6
0
[{"id": "G0", "claim": "The END region tag in bigquery_delete_model.go should read bigquery_delete_model_preview, not bigquery_delete_dataset_preview (supplied as a suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comments in ...
null
GoogleCloudPlatform__golang-samples__5372
GoogleCloudPlatform/golang-samples
5,372
defect
ca42e6c1e4f3358e837f03711098d97c3f4cd8e3
8fae0a71f99126c8f44b0ec389df5d60841fc0fe
feat(genai): Add samples for Tools, Embeddings, Provisioned Throughput and Text-generation
feat(genai): Add samples for Tools, Embeddings, Provisioned Throughput and Text-generation ## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from...
diff --git a/genai/embeddings/embeddings_docretrieval_with_txt.go b/genai/embeddings/embeddings_docretrieval_with_txt.go new file mode 100644 index 0000000000..af95ecccde --- /dev/null +++ b/genai/embeddings/embeddings_docretrieval_with_txt.go @@ -0,0 +1,78 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Ap...
8
1
0
[{"id": "G0", "claim": "The provisioned-throughput sample sets the X-Vertex-AI-LLM-Request-Type header to \"shared\" (pay-as-you-go) where it should be \"dedicated\" to use provisioned throughput, making the sample misleading and incorrect.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope":...
null
GoogleCloudPlatform__golang-samples__5374
GoogleCloudPlatform/golang-samples
5,374
defect
ca42e6c1e4f3358e837f03711098d97c3f4cd8e3
6450da51ee0a296b7ce0f689a5d138b63328fa6d
feat(genai): Add samples for textgen, bounding box and ctrl generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/bounding_box/boundingbox_examples_test.go b/genai/bounding_box/boundingbox_examples_test.go new file mode 100644 index 0000000000..0439fd8755 --- /dev/null +++ b/genai/bounding_box/boundingbox_examples_test.go @@ -0,0 +1,38 @@ +// Unless required by applicable law or agreed to in writing, software +/...
7
6
1
[{"id": "G0", "claim": "The `for resp, err := range` loop over the iterator returned by `GenerateContentStream` is not valid for that type and the file will fail to compile; it should use `iter.Next()` with `iterator.Done`.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {...
null
GoogleCloudPlatform__golang-samples__5376
GoogleCloudPlatform/golang-samples
5,376
defect
ca42e6c1e4f3358e837f03711098d97c3f4cd8e3
52d4d15a4d264df2715cffc80b51ae165497f74c
feat(genai): Add samples for vertexAI express mode api key
## Description Mock test for local testing and so avoid api calls Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleC...
diff --git a/genai/express_mode/expressmode_with_api_key.go b/genai/express_mode/expressmode_with_api_key.go new file mode 100644 index 0000000000..10a8dc9484 --- /dev/null +++ b/genai/express_mode/expressmode_with_api_key.go @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Vers...
6
2
2
[{"id": "G0", "claim": "The test reads the API key from the YOUR_API_KEY environment variable while the skip message refers to GOOGLE_API_KEY, and GOOGLE_API_KEY should be used for clarity and consistency.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
GoogleCloudPlatform__golang-samples__5377
GoogleCloudPlatform/golang-samples
5,377
defect
0f9d83276109eb453cf6bd6ca044bd9b99528545
e801fcb8d44707ddea5974b10276281c51f87460
feat(genai): Add samples for Controlled, Safety and Video generation.
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/controlled_generation/controlled_generation_examples_test.go b/genai/controlled_generation/controlled_generation_examples_test.go index 311e86129f..9cc3d7a62b 100644 --- a/genai/controlled_generation/controlled_generation_examples_test.go +++ b/genai/controlled_generation/controlled_generation_exampl...
4
4
2
[{"id": "G0", "claim": "The GCS bucket name in TestVideoGeneration is hardcoded to the placeholder \"HERE-go-bucket-samples-tests\", which will cause the test to fail, and it should be replaced with a valid bucket, preferably read from an environment variable.", "category": "correctness", "verdict": "supported", "prior...
null
GoogleCloudPlatform__golang-samples__5387
GoogleCloudPlatform/golang-samples
5,387
defect
c6d32a6fcca919c0c0285f3e8bcf3082817b7873
24b13bcec8d12ac4614ea6da666c9f78fa1b65aa
feat(cloudrun): allow adding new readiness probe to cloud run
## Description `cloudrunci` updates to support readiness probe additions in #5368 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudP...
diff --git a/internal/cloudrunci/cloudrunci.go b/internal/cloudrunci/cloudrunci.go index 229c436b944..61e32a7585f 100644 --- a/internal/cloudrunci/cloudrunci.go +++ b/internal/cloudrunci/cloudrunci.go @@ -85,6 +85,21 @@ type Service struct { // Location to deploy the Service, and related artifacts Location string...
2
2
1
[{"id": "G0", "claim": "deployCmd unconditionally appends all probe settings, which can produce invalid values like timeoutSeconds=0 or httpGet.port=0 for settings the user did not specify, so it should only append settings that are explicitly set and only add the --readiness-probe argument when there are any probe par...
null
GoogleCloudPlatform__golang-samples__5392
GoogleCloudPlatform/golang-samples
5,392
defect
1ed9bcd03570692a2786d340d25d48a1c2d595f2
bbc77edea4a306c21cdebd32659d938f05cd3040
test(spanner): Add integration test to check that requests with large message sizes that are under the limit succeed
## Description ## Checklist - [X] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [X] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.m...
diff --git a/spanner/spanner_snippets/spanner/integration_test.go b/spanner/spanner_snippets/spanner/integration_test.go index 76d17bcb40..dc92c7852d 100644 --- a/spanner/spanner_snippets/spanner/integration_test.go +++ b/spanner/spanner_snippets/spanner/integration_test.go @@ -1332,6 +1332,17 @@ func TestAddSplitPoint...
3
3
0
[{"id": "G0", "claim": "The redundant `ctx := context.Background()` initialization, which is immediately shadowed on the next line, should be removed for code clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deprecated non-concurrency...
null
GoogleCloudPlatform__golang-samples__5394
GoogleCloudPlatform/golang-samples
5,394
defect
f9e8e87dda874eb51277547f699cef29bd4ac056
ffd51d83be70738f33100bd8af97eff3a8041440
feat(genai): Add samples for tuning and thinking generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/thinking/thinking_examples_test.go b/genai/thinking/thinking_examples_test.go new file mode 100644 index 0000000000..57478c0b8c --- /dev/null +++ b/genai/thinking/thinking_examples_test.go @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "Lice...
3
2
1
[{"id": "G0", "claim": "The tuning system tests call predictWithTunedEndpoint and getTuningJob with a hardcoded, invalid job name \"test-tuning-job\" against the real API and fail (Error 404), so they should be made robust and self-contained — e.g. by having createTuningJob return the created job name to chain the test...
null
GoogleCloudPlatform__golang-samples__5396
GoogleCloudPlatform/golang-samples
5,396
defect
f9e8e87dda874eb51277547f699cef29bd4ac056
565fd629380bbe38b7aa9c7d7afe6a7b638fb4c2
feat(genai): Add samples for live ground, func call and structured generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/live/live_examples_test.go b/genai/live/live_examples_test.go new file mode 100644 index 0000000000..9a824c7db7 --- /dev/null +++ b/genai/live/live_examples_test.go @@ -0,0 +1,72 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not u...
6
5
4
[{"id": "G0", "claim": "The LiveSession returned by client.Live.Connect in live_func_call_with_txt.go is never closed, which can leak resources; add defer session.Close() after the error check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The func...
null
GoogleCloudPlatform__golang-samples__5400
GoogleCloudPlatform/golang-samples
5,400
defect
f9e8e87dda874eb51277547f699cef29bd4ac056
8bf0404daea849ed91450e40060fc55221e4ff57
samples(storage): add Rapid storage samples
Samples for GCS Rapid Storage operations. These tests will have to be skipped for now pending b/452725162. Once that's complete I will re-enable the tests in a separate PR. ## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associa...
diff --git a/storage/rapid/create_and_write_appendable_object.go b/storage/rapid/create_and_write_appendable_object.go new file mode 100644 index 0000000000..2032187198 --- /dev/null +++ b/storage/rapid/create_and_write_appendable_object.go @@ -0,0 +1,75 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apach...
8
8
1
[{"id": "G0", "claim": "The tests TestFinalizeAppendableObject and TestPauseAndResumeAppendableUpload both use the hardcoded object name \"obj2\", which can create dependencies and flaky runs; each test should use a unique, more descriptive object name.", "category": "correctness", "verdict": "supported", "priority": "...
null
GoogleCloudPlatform__golang-samples__5401
GoogleCloudPlatform/golang-samples
5,401
defect
8d86bc369b168661e8c84ebe5b5cc5f6e4ec0c73
d69e0b29d0cc81b510b3f3840c0a48a500a770da
feat(genai): Add samples for tools generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/tools/tools_examples_test.go b/genai/tools/tools_examples_test.go index 867e868ae1..bd216ee34e 100644 --- a/genai/tools/tools_examples_test.go +++ b/genai/tools/tools_examples_test.go @@ -68,4 +68,40 @@ func TestTextGeneration(t *testing.T) { t.Error("expected non-empty output, got empty") } ...
4
2
0
[{"id": "G0", "claim": "The new test cases repeat so much boilerplate that they should be refactored into a single table-driven test.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename generateGmapsCoordinatesWithText to generateGoogleMapsCoo...
null
GoogleCloudPlatform__golang-samples__5402
GoogleCloudPlatform/golang-samples
5,402
defect
4013f2b29f0c60f7094e8f4c5d6fae77d4b758c6
2ed49f9f48ceba194aea4a1d09c45b4088f18781
samples(storage): add a sample for downloading chunks concurrently using Transfer Manager
## Description Fixes # Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **...
diff --git a/storage/transfer_manager/download_chunks_concurrently.go b/storage/transfer_manager/download_chunks_concurrently.go new file mode 100644 index 0000000000..c156c162c8 --- /dev/null +++ b/storage/transfer_manager/download_chunks_concurrently.go @@ -0,0 +1,88 @@ +// Copyright 2025 Google LLC +// +// Licensed ...
8
7
1
[{"id": "G0", "claim": "gemini-code-assist states it identified a potential issue with error handling in the test function that needs to be addressed.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sample's filename comment should give a local file ...
null
GoogleCloudPlatform__golang-samples__5403
GoogleCloudPlatform/golang-samples
5,403
defect
4013f2b29f0c60f7094e8f4c5d6fae77d4b758c6
1a9b60a43f6a567f379e97f62e4003b74efabfb3
samples(storage): add remaining Rapid samples
These will be included in the documentation for rapid storage class. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang...
diff --git a/storage/rapid/open_multiple_objects_ranged_read.go b/storage/rapid/open_multiple_objects_ranged_read.go new file mode 100644 index 0000000000..61866a8516 --- /dev/null +++ b/storage/rapid/open_multiple_objects_ranged_read.go @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache L...
5
2
1
[{"id": "G0", "claim": "Errors returned by NewWriterFromAppendableObject, appendWriter.Write and appendWriter.Close in the write loop are ignored, and the function should return an error if any of these steps fails.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1"...
null
GoogleCloudPlatform__golang-samples__5413
GoogleCloudPlatform/golang-samples
5,413
defect
2c9f7d4fe3c1b465d5285d558992506b46e78fd7
ab5c4a59640c9345dcb8d5538eb0da2f7b4e376c
samples(storage): add sample for ListBuckets with ReturnPartialSuccess
## Description Fixes # Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **...
diff --git a/storage/buckets/buckets_test.go b/storage/buckets/buckets_test.go index a4a8a65d8f..a54a81f613 100644 --- a/storage/buckets/buckets_test.go +++ b/storage/buckets/buckets_test.go @@ -159,6 +159,29 @@ func TestListBuckets(t *testing.T) { }) } +func TestListBucketsPartialSuccess(t *testing.T) { + tc := t...
2
2
1
[{"id": "G0", "claim": "The pull request contains unresolved merge conflict markers in storage/transfer_manager/download_chunks_concurrently_test.go, and these unrelated test changes should be resolved and moved to a separate pull request.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ...
null
GoogleCloudPlatform__golang-samples__5414
GoogleCloudPlatform/golang-samples
5,414
defect
2c9f7d4fe3c1b465d5285d558992506b46e78fd7
1e2c44a0ea9ceb1a68f7d1a3096872afbab1acab
feat(genai): Add samples for live generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/go.mod b/genai/go.mod index 033bf8cca1..649905ab01 100644 --- a/genai/go.mod +++ b/genai/go.mod @@ -4,6 +4,8 @@ go 1.24.0 require ( github.com/GoogleCloudPlatform/golang-samples v0.0.0-20250201051611-5fb145d1e974 + github.com/go-audio/audio v1.0.0 + github.com/go-audio/wav v1.1.0 golang.org/x/...
5
5
2
[{"id": "G0", "claim": "genai.LiveSendRealtimeInputParameters appears to be the wrong type for SendRealtimeInput and will likely cause a compilation error; the sample should use genai.LiveRealtimeInput instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "...
null
GoogleCloudPlatform__golang-samples__5415
GoogleCloudPlatform/golang-samples
5,415
defect
2c9f7d4fe3c1b465d5285d558992506b46e78fd7
8324fe895cd278c71237dd298e04609ca0c2dac5
feat(genai): Add samples for count tokens generation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/genai/count_tokens/count_tokens_examples_test.go b/genai/count_tokens/count_tokens_examples_test.go index 22da59959a..8775f36685 100644 --- a/genai/count_tokens/count_tokens_examples_test.go +++ b/genai/count_tokens/count_tokens_examples_test.go @@ -81,4 +81,30 @@ func TestTextGeneration(t *testing.T) { ...
4
3
0
[{"id": "G0", "claim": "The two test cases in count_tokens_examples_test.go duplicate logic and should be refactored into a single table-driven test.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error returned when tokenizer.NewLocalTokenizer fail...
null
GoogleCloudPlatform__golang-samples__5434
GoogleCloudPlatform/golang-samples
5,434
defect
e18ca2dbaba4b08b971929e343c77d4a4769df16
6834ca3e0f079ea607c6dad0ee09b5307e4f8321
feat(auth): Add validate service account key
## Description Fixes b/411641649 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md)...
diff --git a/auth/auth_test.go b/auth/auth_test.go index 126cae17a4..fe695935f0 100644 --- a/auth/auth_test.go +++ b/auth/auth_test.go @@ -121,3 +121,43 @@ func TestAuthenticateWithAPIKey(t *testing.T) { t.Errorf("authenticateWithAPIKey got %q, want %q", got, want) } } + +func TestValidateServiceAccountKey(t *tes...
5
5
1
[{"id": "G0", "claim": "Restructure TestValidateServiceAccountKey with t.Run sub-tests for the valid-key and invalid-key-type cases to make the test more readable and give clearer failure output.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error ...
null
GoogleCloudPlatform__golang-samples__5493
GoogleCloudPlatform/golang-samples
5,493
defect
1874ddadf16bec78f84da80ef87dcd6c6ddef269
9e02e9e1bbce9e0c532eca5b86f37525be1bcf07
fix(datastore): ensure idempotent index creation in tests
## Description Avoids `rpc error: code = AlreadyExists desc = index already exists` errors in 'TestMultipleInequalitiesQuery' when a previous test run failed to clean up. Since Datastore index deletion is not instantaneous, we now check for existence before attempting creation to ensure test stability. Fixes Intern...
diff --git a/datastore/snippets/query_test.go b/datastore/snippets/query_test.go index ec6236eedc3..741df21e770 100644 --- a/datastore/snippets/query_test.go +++ b/datastore/snippets/query_test.go @@ -21,6 +21,7 @@ import ( "bytes" "context" "log" + "os" "strings" "testing" @@ -29,15 +30,22 @@ import ( "c...
2
2
1
[{"id": "G0", "claim": "The existing-index lookup only compares the FieldPath of index fields, ignoring Order/ArrayConfig, so it may match the wrong index; use reflect.DeepEqual to compare idx.Fields to adminPbIndexFields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
GoogleCloudPlatform__gsutil__1043
GoogleCloudPlatform/gsutil
1,043
defect
5a5c4ab1ae3f65b7db3313e476c97dac8dec7c0f
10e7baf4b53025d5b78bdf581134314fc017ecf3
Better error message for cp with empty source directory
Make error message more clear for case where user tries to copy, and source files do not exist. http://b/150820007
diff --git a/gslib/commands/rm.py b/gslib/commands/rm.py index 1713f8d808..ceb1d601c7 100644 --- a/gslib/commands/rm.py +++ b/gslib/commands/rm.py @@ -30,7 +30,7 @@ from gslib.command_argument import CommandArgument from gslib.cs_api_map import ApiSelector from gslib.exception import CommandException -from gslib.exc...
3
2
0
[{"id": "G0", "claim": "Because the new generic 'No URLs matched' message is used for both cloud objects and local files, the wording 'files' should get a second opinion from tech writers to see whether it is okay.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
GoogleCloudPlatform__gsutil__1115
GoogleCloudPlatform/gsutil
1,115
defect
8ef63733bef08a60b2482c8dc5b89d6b72ad3a8c
56a89b926115785b771aa8d2d7c0b3e9c1842805
mTLS Part 1/2: Config Setup
Sets up config files needed for mTLS. Does not actually attempted to connect to mTLS endpoints yet. Note: Since the context_config.py file hasn't been tested against a live backend, it will probably require tweaking later. However, I think I got close to full unit test coverage. PEM parsing logic and tests were co...
diff --git a/gslib/commands/config.py b/gslib/commands/config.py index 4ca565a185..264ca50061 100644 --- a/gslib/commands/config.py +++ b/gslib/commands/config.py @@ -990,7 +990,26 @@ def _WriteBotoConfigFile(self, '# To impersonate a service account for "%s://" URIs over\n' '# JSON API, edit ...
8
6
0
[{"id": "G0", "claim": "The generated .boto template should include an example of how the cert_provider_command entry would look (or link to a help page), and should point out that it must be an absolute path.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
GoogleCloudPlatform__gsutil__1183
GoogleCloudPlatform/gsutil
1,183
defect
8a4acb743d12fedbc572e1fdfe19deec91afcb4c
f6e1aa86b84b6485a80b025928be87ab3af0a229
rsync add ignore-existing option
Added `--ignore-existing ` as in non-gsutil version of rsync. Some times need rsync with GCS folder with many huge, immutable files. On first time dest don't have mtime and gsutil starting calculate checksum.... With immutable files don't need check mtime and checksum. Use case for this cassandra backups. ht...
diff --git a/gslib/commands/rsync.py b/gslib/commands/rsync.py index 62b3fd40b3..4fa593ff59 100644 --- a/gslib/commands/rsync.py +++ b/gslib/commands/rsync.py @@ -448,6 +448,11 @@ what would be copied or deleted without actually doing any copying/deleting. + -i This fo...
3
2
1
[{"id": "G0", "claim": "Move the new -i help block so the options section stays alphabetized, placing it between -e and -j instead of before -p.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for the new -i flag: set up a file and a cor...
null
GoogleCloudPlatform__gsutil__1191
GoogleCloudPlatform/gsutil
1,191
defect
93a38cf3949c3e3c8ce17634c84ef40bb5d24f4c
19f40c86c5d48cc4339017e2ae4e6326071b527a
Show satisifiesPZS info in bucket info listing (ls -Lb)
The new field, if present, would look like this: ``` $ gsutil ls -Lb gs://bucket/ gs://bucket/ : Storage class: STANDARD Location type: multi-region Location constraint: US Versioning enabled: None Logging configu...
diff --git a/gslib/commands/ls.py b/gslib/commands/ls.py index 0c221e3e7e..08570cdc90 100644 --- a/gslib/commands/ls.py +++ b/gslib/commands/ls.py @@ -378,6 +378,8 @@ def _PrintBucketInfo(self, bucket_blr, listing_style): if bucket.iamConfiguration and bucket.iamConfiguration.bucketPolicyOnly: enabled = buc...
1
1
0
[{"id": "G0", "claim": "The new test should use a more descriptive name than test_object_and_prefix_same_name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gsutil__1214
GoogleCloudPlatform/gsutil
1,214
defect
7d103c135db57b6c05bc7b3549ae0c27c7149e77
11572bdb50f4316c887e961ce92a7c69f0bf366c
Removed kms check when determining if cp should do a parallel upload.
gsutil will now be able to use compose to parallel upload large objects.
diff --git a/gslib/utils/copy_helper.py b/gslib/utils/copy_helper.py index 5f8dc3da46..b5d9ae0330 100644 --- a/gslib/utils/copy_helper.py +++ b/gslib/utils/copy_helper.py @@ -185,12 +185,6 @@ # would be unnecessary. open_files_lock = parallelism_framework_util.CreateLock() -# Declarations for tracking state of one-...
1
1
0
[{"id": "G0", "claim": "A test covering a composite upload with KMS should be added (modelled on the existing composite-upload and KMS-config tests in test_cp.py).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gsutil__1251
GoogleCloudPlatform/gsutil
1,251
defect
f67a637fd7f2bd807afdfcd6bbaa57734102d579
5c7ef6c31ec079c3f5672bfc868bfaf4ab64fc7f
Fix daisy chain for windows
The Daisy chain copy for GCS to S3 is broken on windows because of different read and write size which happens as Windows uses 64KB TRANSFER_BUFFER_SIZE as of https://github.com/GoogleCloudPlatform/gsutil/commit/ffa1eb7d4d9fe8dd877452f28f55fdf51c2a6c12 and the daisy chain logic expects same read and write size. However...
diff --git a/gslib/daisy_chain_wrapper.py b/gslib/daisy_chain_wrapper.py index 952729396d..02bb2a0f70 100644 --- a/gslib/daisy_chain_wrapper.py +++ b/gslib/daisy_chain_wrapper.py @@ -161,6 +161,7 @@ def __init__(self, self.StartDownloadThread(progress_callback=self.progress_callback) if not self.download_star...
8
8
0
[{"id": "G0", "claim": "The test's comment should say the arbitrary buffer write size is greater than TRANSFER_BUFFER_SIZE, not just arbitrary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment's \"For e.g\" is redundant since e.g. alread...
null
GoogleCloudPlatform__gsutil__1255
GoogleCloudPlatform/gsutil
1,255
defect
f8092ba953af7f3a942c818c1cd230da51b7ea1c
fb78c5e5e4b1e51afcb1a238601e7aca7613b3aa
Add gsutil support for Public Access Prevention
Adding support to create and update public access prevention on buckets. This API is currently unavailable, but will be available in a public preview soon.
diff --git a/gslib/commands/mb.py b/gslib/commands/mb.py index 8c1579733e..14557072ed 100644 --- a/gslib/commands/mb.py +++ b/gslib/commands/mb.py @@ -38,7 +38,7 @@ _SYNOPSIS = """ gsutil mb [-b (on|off)] [-c <class>] [-l <location>] [-p <proj_id>] - [--retention <time>] gs://<bucket_name>... + ...
17
15
4
[{"id": "G0", "claim": "The mb --pap help text should spell the valid values out as \"enforced\" or \"unspecified\" (and consider quoting or code-formatting such options).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pap command help text sh...
null
GoogleCloudPlatform__gsutil__1273
GoogleCloudPlatform/gsutil
1,273
defect
d78d59eb51d5b4fb061b57a491ae1e2ba622ae61
c5892a8ba332816c94f044afb26fb25d37759adf
Raise error for invalid destination.
Fixes https://github.com/GoogleCloudPlatform/gsutil/issues/800 Raising an error now if destination ends with a delimiter.
diff --git a/gslib/tests/test_cp.py b/gslib/tests/test_cp.py index c870634100..0a4723965e 100644 --- a/gslib/tests/test_cp.py +++ b/gslib/tests/test_cp.py @@ -46,6 +46,7 @@ from gslib.cs_api_map import ApiSelector from gslib.daisy_chain_wrapper import _DEFAULT_DOWNLOAD_CHUNK_SIZE from gslib.discard_messages_queue im...
2
1
0
[{"id": "G0", "claim": "The warning immediately before the raise looks redundant now that an error is raised; consider merging the warning text into the raised InvalidUrlError.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a code comment explaining ...
null
GoogleCloudPlatform__gsutil__1277
GoogleCloudPlatform/gsutil
1,277
defect
513b480059583c6cb41a47031cd8dca28227b6c5
fd6cc0ce63c212da6d89c54bdb78ad3a82c92b01
Make ** to represent zero or more folders for cloud urls
Fixes https://github.com/GoogleCloudPlatform/gsutil/issues/1276 See b/188835024 for more info.
diff --git a/gslib/tests/test_wildcard_iterator.py b/gslib/tests/test_wildcard_iterator.py index a4d6057cc7..11f3bd8998 100644 --- a/gslib/tests/test_wildcard_iterator.py +++ b/gslib/tests/test_wildcard_iterator.py @@ -73,6 +73,27 @@ def setUp(self): contents='') self.test_buck...
5
4
0
[{"id": "G0", "claim": "The variable name \"blr\" in the new tests should be replaced with a clearer name.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test method testDoubleWildcardAfterBucketAndPrefix should be renamed to \"BeforeAndAfterP...
null
GoogleCloudPlatform__gsutil__1312
GoogleCloudPlatform/gsutil
1,312
defect
ac96f92701d6482d067d695f95a6ea727a3ec411
efe253c9f06449c4b345d0eefcac2f918c262262
Make certain utils generic for future projects
Make temporary file naming utils generic. Make binary running logic generic. Fix an issue where unit tests fail if `cert_provider_command` is present in `.boto`.
diff --git a/gslib/context_config.py b/gslib/context_config.py index ecb3036cc7..852567ee04 100644 --- a/gslib/context_config.py +++ b/gslib/context_config.py @@ -22,11 +22,11 @@ import atexit import json import os -import subprocess from boto import config import gslib +from gslib.utils import execution_util ...
2
2
0
[{"id": "G0", "claim": "Test names in the new test_temporary_file_util.py should use lower camel case (e.g. testGetsTemporaryFileName) to match the repo's other test files, rather than snake case (test_gets_temporary_file_name).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
GoogleCloudPlatform__gsutil__1316
GoogleCloudPlatform/gsutil
1,316
defect
ab844c32e9a381b6a6fee448cd5861d0c4c84ba8
3d5a3599e6cf31b09c2500a3dd00b0ca6eeed2e5
STET Util
STET util for running binary. Earlier commits include STET .boto config setting and temporary file type. "[GSUtil]" isn't the best fit for the STET config setting, but everything else is less related, and it's probably not worth making a new section in the file. Briefly chatted with @thomasmaclean about this.
diff --git a/gslib/commands/config.py b/gslib/commands/config.py index e5a3d7e2fb..72d9365845 100644 --- a/gslib/commands/config.py +++ b/gslib/commands/config.py @@ -528,6 +528,12 @@ # If this option is not supplied, those tests will be skipped. #test_notification_url = https://yourdomain.url/notification-endpoint ...
7
5
0
[{"id": "G0", "claim": "The word 'Which' in the _StetTransform docstring's subcommand arg description is redundant and should be dropped.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The temporary 'subcommand' variable in EncryptUpload/DecryptDo...
null
GoogleCloudPlatform__gsutil__1317
GoogleCloudPlatform/gsutil
1,317
defect
ab844c32e9a381b6a6fee448cd5861d0c4c84ba8
9df8716694a4bed2ea60670202e97deea0a8f9fe
Remove mTLS in-file naming inconsistencies (snake case vs camel case)
Inconsistencies have arisen! There's debate about whether we should be using snake case or camel case, but, regardless, we should be uniform in a single file.
diff --git a/gslib/context_config.py b/gslib/context_config.py index ca9b1f659e..8c13305e93 100644 --- a/gslib/context_config.py +++ b/gslib/context_config.py @@ -48,7 +48,7 @@ class ContextConfigSingletonAlreadyExistsError(Exception): pass -def _IsPemSectionMarker(line): +def _is_pem_section_marker(line): ""...
1
1
0
[{"id": "G0", "claim": "The camelCase test method names in gslib/tests/test_context_config.py should also be converted to snake case, as the PR did for the mTLS helpers in context_config.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
GoogleCloudPlatform__gsutil__1318
GoogleCloudPlatform/gsutil
1,318
defect
ef665b590aa8e6cecfe251295bce8bf99ea69467
09a66f837b8919dc0d288ead8128223a65a154b2
STET flag and cp integration
Integration of STET binary with gsutil's cp command.
diff --git a/gslib/commands/cp.py b/gslib/commands/cp.py index ef0fe4344d..79205aaac6 100644 --- a/gslib/commands/cp.py +++ b/gslib/commands/cp.py @@ -316,7 +316,7 @@ the ``cp`` command skips that object and moves on. If any failures were not successfully retried by the end of the copy run, the ``cp`` command rep...
13
9
2
[{"id": "G0", "claim": "The --stet help text should read \"If the STET binary can be found in boto or PATH\" (adding the article).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Per go/copyright, the new test file's header should say 'Google LLC' ...
null
GoogleCloudPlatform__gsutil__1322
GoogleCloudPlatform/gsutil
1,322
defect
30303750258bbe26d2a5999fa20da9a6d3b4d8a7
fd69b73246735788283a6406ac0a2c23ac478e90
Adds a message encouraging py3 upgrade
This PR does the following: - Alerts users running the `upgrade` or `version` command that they should install Py3 to stay up to date with the latest code. This way if you can't use the `upgrade` command, there will still be messaging. - Python 2 gets a different upgrade tarball, leaving the door open for releasing b...
diff --git a/gslib/command_runner.py b/gslib/command_runner.py index f490bb3213..92d4874f0a 100644 --- a/gslib/command_runner.py +++ b/gslib/command_runner.py @@ -341,6 +341,10 @@ def RunNamedCommand(self, if system_util.IsRunningInteractively() and collect_analytics: metrics.CheckAndMaybePromptForAnaly...
5
4
0
[{"id": "G0", "claim": "The message text should read \"Gsutil 5 drops Python 2 support\" instead of \"will drop\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The message text should use a lowercase \"g\" in \"gsutil\".", "category": "documenta...
null
GoogleCloudPlatform__gsutil__1465
GoogleCloudPlatform/gsutil
1,465
defect
2ab736e39b2ca1aba23ba7f942fe06fe6a4fbe6d
a20b23e629899fd5c8a4fe9a83f49130091dc268
Fix copying duplicate file name conflicts.
Applies to mv logic as well. Basically treats destination as an existing directory if multiple top-level sources are detected.
diff --git a/gslib/command.py b/gslib/command.py index 1e25171851..1bd8b91293 100644 --- a/gslib/command.py +++ b/gslib/command.py @@ -737,7 +737,7 @@ def ParseSubOpts(self, check_args: True to have CheckArguments() called after parsing. args: List of args. If None, self.args will be used. should_u...
7
5
2
[{"id": "G0", "claim": "The pre-existing 'Case 1' comment block may no longer be valid after the new naming rules.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The mv-specific Case 1 rename behaviour should not be kept now that the new naming ...
null
GoogleCloudPlatform__gsutil__1528
GoogleCloudPlatform/gsutil
1,528
defect
ded7036068e6dffec90ee88afa34836999eeee85
68885083b9b21e47ab34bd1aae3ad2c5f2a6f4cb
Added flush to cat_helper.py
The gsutil cat -h flag when used on multiple objects which are small, first prints the headers of all the objects the user entered and then prints the contents of all the objects the user entered. The reason the gsutil cat -h command with multiple small files does not work properly is because the headers are written t...
diff --git a/gslib/utils/cat_helper.py b/gslib/utils/cat_helper.py index 86cbbe7189..7373332b3b 100644 --- a/gslib/utils/cat_helper.py +++ b/gslib/utils/cat_helper.py @@ -150,6 +150,8 @@ def CatUrlStrings(self, generation=storage_url.generation, decryption_tuple=decryption_keywrapp...
2
1
1
[{"id": "G0", "claim": "Add a unit test covering the new flush call, e.g. one that mocks out cat_out_fd and ensures flush is called after data is written.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add more information about the issue being solved t...
null
GoogleCloudPlatform__gsutil__1541
GoogleCloudPlatform/gsutil
1,541
defect
26af20f63ed084b6f99543f63727e7e65e74fa19
45210559c7c30d86860563b9187641c48449be2b
Add retries with exponential backoff to the flow that authorizes the service agent to use CMEKs
This PR took a long journey to basically get back to where we started. Recently we've been having an uptick in 409 errors in tests due to concurrent changes to permissions on KMS keys. These were occuring because gsutil's testing framework attempts to create keys and grant the service agent permission to use them in...
diff --git a/gslib/commands/test.py b/gslib/commands/test.py index 77d841bcab..075e994dd4 100644 --- a/gslib/commands/test.py +++ b/gslib/commands/test.py @@ -554,6 +554,16 @@ def RunCommand(self): elif o == '-u': tests.util.RUN_INTEGRATION_TESTS = False + if tests.util.RUN_INTEGRATION_TESTS: +...
7
7
0
[{"id": "G0", "claim": "Add a message for each failed test (or otherwise repeat the KMS authorization warning closer to the failures), since the warning printed once at startup is far above where test failures appear.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
GoogleCloudPlatform__gsutil__1553
GoogleCloudPlatform/gsutil
1,553
defect
9ebe438df08b686c56e216d0ccd7743340b23f07
d29be02b28c1bbb124c733a7bbdf61b86624fbdd
Allow custom storage class flag for PCU
Before, chunks were being uploaded as the default storage class. After, chunks are being uploaded as the custom storage class.
diff --git a/gslib/tests/test_copy_helper_funcs.py b/gslib/tests/test_copy_helper_funcs.py index 1ae1eb6122..ce05a721f9 100644 --- a/gslib/tests/test_copy_helper_funcs.py +++ b/gslib/tests/test_copy_helper_funcs.py @@ -111,14 +111,15 @@ def testGetPartitionInfo(self): self.assertEqual(50, component_size) def ...
7
7
1
[{"id": "G0", "claim": "The existing parallel-composite-upload tests cram too many scenarios together to isolate the desired behavior, so a separate test for just the bug being fixed is requested.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "It is u...
null
GoogleCloudPlatform__gsutil__1600
GoogleCloudPlatform/gsutil
1,600
defect
c388ff0f99320ebab877d14afe458e10b8bcddd8
56c086b9411b73ef1780ed2dd536d0b45bfcd9fd
Ensure arbitrary headers are included in every rsync request.
Tested with S3 SSE-C headers, which required updating the boto submodule to include relevant fixes.
diff --git a/gslib/boto_translation.py b/gslib/boto_translation.py index fecfabe4bf..8cd2d27af1 100644 --- a/gslib/boto_translation.py +++ b/gslib/boto_translation.py @@ -979,7 +979,9 @@ def _HandleSuccessfulUpload(self, dst_uri, object_metadata, fields=None): # Therefore, if the object gets overwritten before t...
3
3
0
[{"id": "G0", "claim": "self.non_metadata_headers is left unset when self.headers is None, so it should be explicitly defaulted to None in an else branch.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded S3 SSE-C encryption key and MD5 ...
null
GoogleCloudPlatform__gsutil__1610
GoogleCloudPlatform/gsutil
1,610
defect
578f56cb51879d7f5e40dbb14dcf7eb64bc651c7
6388752259830bcd58357ba95419e16ccd4f4061
Shim lifecycle command.
Shimmed "get" subcommand output should be similar to gsutil, except for the case where the lifecycle doesn't exist. In that case, the shim will print "null" or a mostly empty JSON object instead of "%s has no lifecycle configuration.\n". Do not submit until corresponding gcloud CLs are in to support the lifecycle fi...
diff --git a/gslib/commands/lifecycle.py b/gslib/commands/lifecycle.py index f57e0b294a..bcc06fa103 100644 --- a/gslib/commands/lifecycle.py +++ b/gslib/commands/lifecycle.py @@ -31,6 +31,7 @@ from gslib.storage_url import UrlsAreForSingleProvider from gslib.third_party.storage_apitools import storage_v1_messages as ...
2
2
1
[{"id": "G0", "claim": "The get command's gcloud_storage_map should be added directly inside get_gcloud_storage_args (inline, like the set branch above) instead of as a separate class attribute.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shim's l...
null
GoogleCloudPlatform__gsutil__1649
GoogleCloudPlatform/gsutil
1,649
defect
6fee45bb59c6124524d3930a5daca88a701ccd9c
e09af160e21c1b3c91cb6e0fc7925efeb01db2dd
Add shim translator for rpo flag in mb command
- Add rpo flag shim translation for mb command - Add unit test to test shim translation - Add rpo get shim translation for rpo get command - Fixed e2e tests
diff --git a/gslib/commands/mb.py b/gslib/commands/mb.py index c025b3ca27..4d922d785a 100644 --- a/gslib/commands/mb.py +++ b/gslib/commands/mb.py @@ -257,6 +257,8 @@ class MbCommand(Command): }), _RETENTION_FLAG: GcloudStorageFlag('--retention-period'), + '--rpo': + ...
1
1
0
[{"id": "G0", "claim": "The unused supports_output_translation argument should be removed from the GET_COMMAND definition in gslib/commands/rpo.py (and possibly a bug filed to remove the value itself).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gsutil__1653
GoogleCloudPlatform/gsutil
1,653
defect
c80f329bc3c4011236c78ce8910988773b2606cb
2a80e50f7ae4ba1aa8676161d813566fa872b225
ACL command shim fixes for test parity.
Running tests via gcloud storage revealed a few issues. These are all the fixes I could make without stripping the extra ACL object fields gcloud storage displays. Mostly just translating XML to JSON predefined ACLs. Lots of lines edited by the yapf formatter.
diff --git a/gslib/commands/acl.py b/gslib/commands/acl.py index db7b1ae7fa..9f791a184e 100644 --- a/gslib/commands/acl.py +++ b/gslib/commands/acl.py @@ -23,6 +23,7 @@ from apitools.base.py import encoding from gslib import metrics +from gslib import gcs_json_api from gslib.cloud_api import AccessDeniedException ...
3
1
0
[{"id": "G0", "claim": "The gcloud storage error message shown when the ACL file cannot be parsed should probably be enhanced to something like 'Invalid acl file....', which the reviewer noted is fine to do as a separate bug later.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}...
null
GoogleCloudPlatform__gsutil__1655
GoogleCloudPlatform/gsutil
1,655
defect
c80f329bc3c4011236c78ce8910988773b2606cb
c273a64a71b8000b78b71ac6a8d5cec788652443
Handle reauth challenges gracefully in transfer commands.
Should address #1639 by performing at least one API call in the main process. Some uploads do not interact with the destination API until the transfer call itself, which must happen in child processes if parallelism is enabled. For users with reauth enabled, this results in a poor experience, since reauth challenge...
diff --git a/gslib/commands/cp.py b/gslib/commands/cp.py index 87bfc080c5..645ca4ded6 100644 --- a/gslib/commands/cp.py +++ b/gslib/commands/cp.py @@ -1107,6 +1107,9 @@ def RunCommand(self): copy_helper_opts.daisy_chain, ) + copy_helper.TriggerReauthForDestinationProviderIfNecessary( + dst_url...
3
2
2
[{"id": "G0", "claim": "The pull request adds no tests for the new TriggerReauthForDestinationProviderIfNecessary behavior it wires into cp and rsync.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added reauth GetBucket call breaks systems whose cr...
null
GoogleCloudPlatform__gsutil__1659
GoogleCloudPlatform/gsutil
1,659
defect
a3450f152bfdc23153b176f44e134416bd96e74e
6303a99c39f83ddd5c3a9b452e0d10b5bdc06a84
Fix rpo get shimming command
There is a failing test for rpo command: [test](https://github.com/GoogleCloudPlatform/gsutil/blob/a238e7e3500461dcd8ab15fcb6e7523a2b0f1e51/gslib/tests/test_rpo.py#L238) The problem is that the [shimming_command_for_rpo_get](https://github.com/GoogleCloudPlatform/gsutil/blob/a238e7e3500461dcd8ab15fcb6e7523a2b0f1e51...
diff --git a/gslib/commands/rpo.py b/gslib/commands/rpo.py index 7438491787..cac313ec32 100644 --- a/gslib/commands/rpo.py +++ b/gslib/commands/rpo.py @@ -83,7 +83,7 @@ GET_COMMAND = GcloudStorageMap(gcloud_command=[ 'storage', 'buckets', 'list', - '--format=value[separator=": "](name.sub("^", "gs://"),' + ...
1
1
0
[{"id": "G0", "claim": "Remove the TODO comment added in test_s3_fails_for_get because it is slightly incorrect: gcloud storage does not fail to raise an error for a list call and returning None for a field missing via the format flag is correct behavior; instead track the missing-value case (e.g. populating it as \"No...
null
GoogleCloudPlatform__gsutil__1664
GoogleCloudPlatform/gsutil
1,664
defect
f23feec501566615c1296de5953e867f04b6574b
e8e2fba99d0b1096cfa74e544e19dbc77c5dd57a
Make reauth check opt-in and silence non-auth-related exceptions.
Followup on #1655 to address #1663 and related issues.
diff --git a/gslib/commands/config.py b/gslib/commands/config.py index df0df0f5ad..058418deb2 100644 --- a/gslib/commands/config.py +++ b/gslib/commands/config.py @@ -537,6 +537,9 @@ # settings. #stet_config_path = ~/.config/my_config.yaml +# Adds an API call before parallel operations that triggers a reauth challe...
2
1
0
[{"id": "G0", "claim": "Why pass process_count * thread_count when process_count alone would preserve correct reauth surfacing for single-process, multi-thread runs?", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Report on the original bug that reauth no...
null
GoogleCloudPlatform__gsutil__1672
GoogleCloudPlatform/gsutil
1,672
defect
62d1f5cd95ecd01283a3f34edd43aee41e837f5b
ed4d51132017e04079c967f176eccccf404c6f03
Handles OAuthException from google-auth
gsutil does not handle OAuthException's from google-auth, which results in the entire stack trace being printed when an error occurs when using external account credentials. We should prompt the user to sign-in again in this case.
diff --git a/gslib/__main__.py b/gslib/__main__.py index 8e7013ff64..261a6a10d8 100644 --- a/gslib/__main__.py +++ b/gslib/__main__.py @@ -36,6 +36,7 @@ from six.moves import configparser from six.moves import range +from google.auth import exceptions import gslib.exception from gslib.exception import CommandExce...
3
3
1
[{"id": "G0", "claim": "The new `except exceptions.OAuthError` block should be combined with the existing OAuth-related except clause at line 706 (e.g. `except (oauth2client.client.HttpAccessTokenRefreshError, exceptions.OAuthError) as e:`) instead of duplicating the handler.", "category": "maintainability", "verdict":...
null
GoogleCloudPlatform__gsutil__1674
GoogleCloudPlatform/gsutil
1,674
defect
c7374d3cb9f2af515ab5fac94cbfe7ba98ef8bab
170306685c3fc81684af532beeb17430944a1afe
Fix external_account_authorized_user implementation in wrapped_credentials.py + update google-auth dependency
Changing wrapped_credentials to store the client_secret and refresh_token from external account authorized user credentials. External account credentials did not have these fields so they were never added to wrapped credentials in the previous implementation. This led to a caching bug where the library did not recogniz...
diff --git a/gslib/tests/test_wrapped_credentials.py b/gslib/tests/test_wrapped_credentials.py index 0d6e3f652a..931a78bfd1 100644 --- a/gslib/tests/test_wrapped_credentials.py +++ b/gslib/tests/test_wrapped_credentials.py @@ -197,6 +197,7 @@ def testWrappedCredentialSerializationExternalAccountAuthorizedUser(self): ...
2
2
0
[{"id": "G0", "claim": "Remove the leftover `self.maxDiff = None` debug line added to testWrappedCredentialSerializationExternalAccountAuthorizedUser.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Nit: refactor __init__ so the if/elif branches set clie...
null
GoogleCloudPlatform__gsutil__1700
GoogleCloudPlatform/gsutil
1,700
defect
803ece46d2691b1cf72ea413244d9a2187dc6ed5
d78401e611afebec783862e7206ddc040c34f812
mTLS: Add support for certificates without passphrase.
This is the default format used by gcloud (and the one which is passed through the wrapper script). Helps address #1515
diff --git a/gslib/context_config.py b/gslib/context_config.py index 55a5ef5a9b..b7b5ee306f 100644 --- a/gslib/context_config.py +++ b/gslib/context_config.py @@ -27,6 +27,7 @@ import gslib from gslib import exception +from gslib.utils import boto_util from gslib.utils import execution_util # Maintain a single ...
1
1
0
[{"id": "G0", "claim": "The test should mention that it exercises the gcloud case, in the test name or the docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gsutil__1708
GoogleCloudPlatform/gsutil
1,708
defect
5ab1d510f2f5f7360c08e656e170036eb5b3879e
a0962ad8e3b031ce2a144729091eb411d1091802
Adding support for HMAC auth to the shim.
This will apply HMAC credentials to gcloud storage when appropriate. When supplied to gcloud storage, the HMAC credentials take precedence, so the shim needs to include gsutil's prioritization logic when applying those credentials. This PR encapsulates that prioritization logic in `boto_util.UsingGsHmac()` and applies ...
diff --git a/gslib/cloud_api_delegator.py b/gslib/cloud_api_delegator.py index 24e06150c6..40a5c092c4 100644 --- a/gslib/cloud_api_delegator.py +++ b/gslib/cloud_api_delegator.py @@ -27,6 +27,7 @@ from gslib.cs_api_map import ApiMapConstants from gslib.cs_api_map import ApiSelector from gslib.exception import Comman...
3
2
0
[{"id": "G0", "claim": "Break up the UsingGsHmac boolean expression into named intermediate variables so it is easier to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add autospec=True to the mock.patch.object(boto_util, 'UsingGsHmac') de...
null
GoogleCloudPlatform__gsutil__1766
GoogleCloudPlatform/gsutil
1,766
defect
83002c877c84a3ce88963cb566dbf51e56e8000c
741308de0f1805e25451861e8312d6aa7629f3ca
Fixes Parity Tests for rm and requesterpays commands.
* requesterpays - Changing Format key according to `gcloud storage buckets describe` output. * rm: Changing validation for shimmed rm command as shimmed rm command prints more logs line including `Removing buckets:` and `Removing objects`,etc.
diff --git a/gslib/commands/requesterpays.py b/gslib/commands/requesterpays.py index fb7c0279c2..e44f7664d4 100644 --- a/gslib/commands/requesterpays.py +++ b/gslib/commands/requesterpays.py @@ -71,7 +71,7 @@ _GCLOUD_FORMAT_STRING = ('--format=value[separator=": "](' + 'name.sub("' + shim_u...
2
1
0
[{"id": "G0", "claim": "The requesterpays.py format-string change made in this pull request is also present in PR #1768, and the reviewer asks that the duplicated change be removed now rather than after the comments on that other PR are resolved.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
GoogleCloudPlatform__gsutil__1768
GoogleCloudPlatform/gsutil
1,768
defect
83002c877c84a3ce88963cb566dbf51e56e8000c
c583397578159f13eb9c9c5b5892e4010dbff199
Fixes broken shim and tests for lifeycycle,cors,web,logging and acl commands
* Fixes broken shim for lifecycle, logging, web, requesterpays and cors commands. * Removes --raw flag from acl command shim translation.
diff --git a/gslib/commands/acl.py b/gslib/commands/acl.py index b60ea50aec..91e2343a11 100644 --- a/gslib/commands/acl.py +++ b/gslib/commands/acl.py @@ -357,7 +357,7 @@ def get_gcloud_storage_args(self): command_group = 'buckets' gcloud_storage_map = GcloudStorageMap(gcloud_command=[ 'stora...
7
1
1
[{"id": "G0", "claim": "The reviewer asks for confirmation that logging was previously printing details for multiple buckets and that moving `logging get` from `storage buckets list` to `storage buckets describe` is intended to print the configuration for only one bucket.", "category": "design", "verdict": "uncertain",...
null
GoogleCloudPlatform__gsutil__1835
GoogleCloudPlatform/gsutil
1,835
defect
d9d7b0f3f8936e285bc6ff60de04062b808ee3f8
2dbd2d9d8c900b88ce69dacb6bfd200673b7b541
Add shim support for mb --autoclass
Added flag translation for `--autoclass` flag of `mb` command. (b/289106309)
diff --git a/gslib/commands/mb.py b/gslib/commands/mb.py index 3a39b8fe70..5d0e31cfd0 100644 --- a/gslib/commands/mb.py +++ b/gslib/commands/mb.py @@ -238,6 +238,8 @@ class MbCommand(Command): gcloud_storage_map = GcloudStorageMap( gcloud_command=['storage', 'buckets', 'create'], flag_map={ + ...
2
2
2
[{"id": "G0", "claim": "Add tests for the new --autoclass shim support (the flag translation added to mb.py).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add e2e tests for the --autoclass functionality so they can be used for parity testing.", "categ...
null
GoogleCloudPlatform__gsutil__1899
GoogleCloudPlatform/gsutil
1,899
defect
13606f7847d1fd8966c77cbb01b57b7b4f094fd3
127f956874dc6bda17f99d9d329a99be68f1ed8c
Add banner suggesting migration to gcloud storage
We are adding a banner (for interactive use-cases) asking users to start using gcloud storage instead of gsutil as the recommended tool. We are providing resources required to start using gcloud storage. <img width="1728" height="121" alt="Screenshot 2026-02-24 at 5 21 30 PM" src="https://github.com/user-attachments...
diff --git a/gslib/__main__.py b/gslib/__main__.py index 80892d9f0..420c04686 100644 --- a/gslib/__main__.py +++ b/gslib/__main__.py @@ -433,6 +433,29 @@ def main(): if os.environ.get('_ARGCOMPLETE', '0') in ('1', '2'): return _PerformTabCompletion(command_runner) + # Check for suppression (interactive...
3
1
0
[{"id": "G0", "claim": "The GSUTIL_NO_BANNER and GSUTIL_TEST_FORCE_BANNER environment variables this change introduces should be documented in a central place (and there may currently be no such place).", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
GoogleCloudPlatform__gsutil__623
GoogleCloudPlatform/gsutil
623
defect
ae85fac64bb1d718de8874de2efcd47455d6872e
e81f693441989778ceb4e0aa370d3c484bc5e0d7
Refactoring, encoding fixes, and concat fixes
- 4faf087 Refactored; make get_random_ascii_chars method > Made a new method get_random_ascii_chars as part of a small > refactor. There was some minor redundant behavior. This method > was made to follow DRY practices, and to increase readability. - a194cc1 Unicode fix for Python 2 > One of the Unicode tests g...
diff --git a/gslib/commands/test.py b/gslib/commands/test.py index 63455d5977..14cbf7c2b9 100644 --- a/gslib/commands/test.py +++ b/gslib/commands/test.py @@ -433,7 +433,7 @@ def RunParallelTests(self, parallel_integration_tests, new_stderr = result.stderr.split(b'\n') print('Results for failed te...
2
2
1
[{"id": "G0", "claim": "The get_random_ascii_chars docstring should distinguish between Python 3 unicode strings and bytes/byte-sequences (e.g. using six.text_type and bytes/six.binary_type) instead of saying it returns a 'String'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "intro...
null
GoogleCloudPlatform__gsutil__634
GoogleCloudPlatform/gsutil
634
defect
1744be8c1986a8c49da547c4c4c3bc26ef1a444f
aedf7a765f50ed1e9378416962d0dfae3be079fe
Getting Py-Six-Current up to date - PR04
* syntax changes from py2 to py3 * ascii/unicode conversions * string formatting changes for clarity & readability
diff --git a/gslib/tests/test_cp.py b/gslib/tests/test_cp.py index 4e1dee6afa..c386f6a01e 100644 --- a/gslib/tests/test_cp.py +++ b/gslib/tests/test_cp.py @@ -3342,7 +3342,7 @@ def test_cp_sliced_download_resume_content_differs(self): self.assertTrue(os.path.isfile(tracker_filename)) with open(fpath +...
4
4
0
[{"id": "G0", "claim": "CreateTempFile should use six.ensure_string('file')/six.ensure_string('contents') (or drop the wrapper) instead of str('file')/str('contents'), since str can return either bytes or unicode depending on the Python version.", "category": "design", "verdict": "supported", "priority": "P3", "scope":...
null
GoogleCloudPlatform__gsutil__673
GoogleCloudPlatform/gsutil
673
defect
d97e226701e9d483153778de09b9b72740460c1e
cf06f7cbc1168a8c66096b970a9c06af7627151a
du windows fixes - text encoding
* Previous write to `sys.stdout.write` produced an error in windows, using ttyprint corrected the error. * Previous method for gathering Pattern Exclusion only accepted UTF8, new method allows alternate encodings to be provided. * Substituted map-lambda method and added try/except block for encoding
diff --git a/gslib/commands/du.py b/gslib/commands/du.py index 053d06a5c1..544a635d3c 100644 --- a/gslib/commands/du.py +++ b/gslib/commands/du.py @@ -19,6 +19,7 @@ from __future__ import division from __future__ import unicode_literals +import locale import sys import six @@ -33,6 +34,7 @@ from gslib.utils.co...
3
3
2
[{"id": "G0", "claim": "Python 2's built-in `open` does not accept an `encoding` keyword argument, so `open(a, 'r', encoding=UTF8)` should not work on Py2.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new `_GetPatternExclusion` helper yields u...
null
GoogleCloudPlatform__gsutil__682
GoogleCloudPlatform/gsutil
682
defect
8fbf95f0804023f015408d5917074f4f1e634d67
ef41168db5f00495bf16b83dea42ac8c597d6c9f
Add support for conditions in IAM policy bindings.
This change allows `gsutil iam get` to successfully parse and print out IAM policies for buckets/objects that contain conditions in their policy bindings. It also allows setting such policies via `gsutil iam set`. Finally, it prohibits `gsutil iam ch` from interacting with any such resources (even if the desired bi...
diff --git a/gslib/commands/config.py b/gslib/commands/config.py index e7de83a033..b1e9ea36d8 100644 --- a/gslib/commands/config.py +++ b/gslib/commands/config.py @@ -250,6 +250,8 @@ tab_completion_time_logs tab_completion_timeout task_estimation_threshold + test_cmd_regional_bucket_location +...
2
1
0
[{"id": "G0", "claim": "The iam ch documentation should also clearly state that iam ch cannot be used to add a condition to a policy that has no condition, not only that it cannot change the policy of a resource that already has conditions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope...
null
GoogleCloudPlatform__gsutil__683
GoogleCloudPlatform/gsutil
683
defect
0a8521f3edcaf616c9de042ed5ec9cdce06bf0a8
ae7b39169dad012209600eea967277b83fec46f8
Metrics Test Fixes for Windows / py3
## gsutil metrics test changes for Python3 in Windows * Changes around submodule Popen to work with Windows / Py3 * Style Guide Indentation Change * Standardize env_vars * Add Raw String option NOTE: All Metrics tests remain passing in macOS & Linux with the above changes
diff --git a/gslib/metrics.py b/gslib/metrics.py index 7aedddfecf..edfd27d542 100644 --- a/gslib/metrics.py +++ b/gslib/metrics.py @@ -728,19 +728,25 @@ def ReportMetrics( if log_file_path is not None: # If the path is not None, we'll need to surround the path with quotes # so that the path is passed...
3
3
1
[{"id": "G0", "claim": "The six.ensure_str call wraps the whole formatted reporting_code instead of converting each argument to str first, which can embed a bytes repr like b'abc' into the generated code when one of the plugged-in values is bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
GoogleCloudPlatform__gsutil__728
GoogleCloudPlatform/gsutil
728
defect
d7281accc526df971d0c4c66327776b5dd1299f9
671694b82e865dfa2207bad1240b5eb7e879ab12
Add host header support for JSON
Add host header support for JSON, see issue: #727 ``` python gsutil.py -DD -o "Credentials:gs_json_host_header=www.googleapis.com" -o "Credentials:gs_json_host=restricted.googleapis.com" ls gs:// ```
diff --git a/gslib/gcs_json_api.py b/gslib/gcs_json_api.py index f4156b0b7f..0ae3dabc28 100644 --- a/gslib/gcs_json_api.py +++ b/gslib/gcs_json_api.py @@ -223,7 +223,13 @@ def __init__(self, bucket_storage_uri_class, logger, status_queue, self.global_params = apitools_messages.StandardQueryParameters( t...
1
1
1
[{"id": "G0", "claim": "The new gs_json_host_header (and provider host header) options should also be added to the list of options generated in user boto config files, at both the gs_host option list and the host_header template text in gslib/commands/config.py.", "category": "maintainability", "verdict": "supported", ...
null
GoogleCloudPlatform__gsutil__836
GoogleCloudPlatform/gsutil
836
defect
276e8b12cb6157db10e03d097e7f386914e47ab8
5e4f86f6a97ab18cfd8ab547db7a6b46c86e090d
Add mode attribute to {up,down}load wrapper classes
This was causing a test to fail under Python 3. The underlying stream was being treated as opened in text mode, rather than in binary mode, because write_to_fd() could not determine its mode (and assumed text). This caused sliced downloads to fail in cp.TestCp.test_cp_resumable_download_gzip. Internal devs can see ...
diff --git a/gslib/gcs_json_api.py b/gslib/gcs_json_api.py index cd77f034b9..7cd6789530 100644 --- a/gslib/gcs_json_api.py +++ b/gslib/gcs_json_api.py @@ -1190,12 +1190,6 @@ def _PerformResumableDownload(self, end_byte=end_byte, serialization_d...
1
1
0
[{"id": "G0", "claim": "The `mode` property's `or None` fallback should be justified and tested: clarify when the underlying file descriptor could have no `mode` attribute (e.g. only if a `SlicedDownloadFileWrapper` is built without a valid `fp`), whether this happens in the wild, whether that circumstance should be te...
null
GoogleCloudPlatform__gsutil__968
GoogleCloudPlatform/gsutil
968
defect
0e0faf89474d591a4bd228775d4c9ac0f1ce5cbe
4aaade59e8202b98ea9ece71ddbc36cb7eebd01c
Support service account impersonation for signurl in gsutil
The `gsutil signurl` command uses the private key for a service account (the '<key-file>' argument) to generate the cryptographic signature for the generated URL. However, impersonated credential flow does not involve local credentials/certificates. The aim is to run `signurl` command without using a key-file. To...
diff --git a/gslib/cloud_api.py b/gslib/cloud_api.py index 5b8bcbe0d3..aa8c7bb851 100644 --- a/gslib/cloud_api.py +++ b/gslib/cloud_api.py @@ -15,8 +15,8 @@ """Gsutil API for interacting with cloud storage providers.""" from __future__ import absolute_import -from __future__ import print_function from __future__ i...
14
14
0
[{"id": "G0", "claim": "Remove the seemingly debugging-related 'from __future__ import print_function' import from gslib/cloud_api.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SignUrl docstring should say the path is to the 'bucket or ...
null
GoogleCloudPlatform__gsutil__979
GoogleCloudPlatform/gsutil
979
defect
0e0faf89474d591a4bd228775d4c9ac0f1ce5cbe
0a184afde6d02e725c4d818adb12caa3a19ec2b9
Remove binary output assumption of stdout in tests
I changed the unit test base class to open stdout in `w+` mode instead of `wb+` mode. In doing so, we bring the fake stdout in line with that provided by `sys.stdout`, and cleans up our test cases since we don't need to explicitly convert all strings to bytes for comparison. This is compatible for both python 2 and...
diff --git a/gslib/tests/test_hash.py b/gslib/tests/test_hash.py index ad2728a26e..0567c81883 100644 --- a/gslib/tests/test_hash.py +++ b/gslib/tests/test_hash.py @@ -42,11 +42,9 @@ class TestHashUnit(testcase.GsUtilUnitTestCase): def testHashContents(self): tmp_file = self.CreateTempFile(contents=_TEST_FILE_CO...
1
1
0
[{"id": "G0", "claim": "The reviewer asks what the specific reason is for changing the dummy KMS keyname location from 'global' to 'us-central1' in gslib/tests/test_kms.py.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__14
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
14
defect
6d9d70790350f6b8c75fbbf39a4ffc09510717a8
a1c1c651c3cfe2da2db84e3448de4316781bc9d9
2nd cfind
2nd part of adapter improvements: - cfind - cfind service test - attributes util test (used within cfind) Waiting for 1st part to be merged. Since it contains all commits of 1st part, pull request will show too many changes before 1st one is merged. Most actual changes are in this commit: https://github.com/Googl...
diff --git a/import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CFindService.java b/import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CFindService.java new file mode 100644 index 00000000..85b2f14c --- /dev/null +++ b/import/src/main/java/com/google/cloud/healthcare/imaging/dicoma...
15
11
5
[{"id": "G0", "claim": "Delete the unused getTagValue method from AttributesUtil (or remove it for now and add it back with its next-PR context).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the PATIENT case from attributesToQidoPath be...
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__20
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
20
defect
0f326284c1a70608bcc88534aa6e79fcffe4554f
266ca3d9625c72644c5dff54296b18d1b09e86e0
5th storage commitment
Storage Commitment Service ( https://github.com/GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter/issues/3 http://dicom.nema.org/medical/dicom/current/output/chtml/part04/chapter_J.html )
diff --git a/import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CStoreService.java b/import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CStoreService.java index bc48eaf9..463b1061 100644 --- a/import/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/CStoreService.java ...
10
7
5
[{"id": "G0", "claim": "The deleted onClose exception-logging in CStoreService was somewhat useful and the deletion should be reconsidered.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The service should check the requested SOP class and SOP instance UID...
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__43
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
43
defect
cb0855eee8f99be7202ca74164f1b1f336ad2b5e
1ab880d154fe8ff4598142eb795e77418e1b98bf
Support DeID'ing files as they go through the adaptor #22
Currently integration test uses deid-redactor from my fork. I also created pull request for deid project: https://github.com/GoogleCloudPlatform/healthcare-deid/pull/12
diff --git a/cloudbuild.yaml b/cloudbuild.yaml index c2aa1793..4dfd6bfd 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,5 +1,35 @@ steps: -- name: 'gradle:5.6-jdk11' +- name: 'gcr.io/cloud-builders/git' + id: clone-deid + args: + - clone + - https://github.com/red1408/healthcare-deid.git + - healthcare-d...
12
12
5
[{"id": "G0", "claim": "Building the adapter should not force users to clone the deid redactor repo, and while the maven package is pending the dependency should be packaged via jitpack.io.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new C-STORE l...
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__44
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
44
defect
fdbb126b784fae2149c87770ad6887477fdab58d
bb2f2f18c67073cd062e750e4e4d50f8475a6441
Set maximum limits for qido-rs requests #42
As discussed with Dusan, just increased request limits to maximum (50000/5000 instead of default 1000/100)
diff --git a/import/src/test/java/com/google/cloud/healthcare/imaging/dicomadapter/AttributesUtilTest.java b/import/src/test/java/com/google/cloud/healthcare/imaging/dicomadapter/AttributesUtilTest.java index f5fd9390..ddf80cd3 100644 --- a/import/src/test/java/com/google/cloud/healthcare/imaging/dicomadapter/Attribute...
1
1
1
[{"id": "G0", "claim": "Add an integration test step for studies and series C-FIND requests, since they take a different code path, in this PR.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__76
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
76
defect
4ae5b30bfd22bde2f561477a727267a212cd7b8e
be4dafa2649ee5b05138f664836982ce7c70a06c
Add support for HTTP 1.1 in StowRS requests
Brings back old version of StowRS that was removed when we upgraded to HTTP 2.0 to improve error handling and sets it as the default. This fixes flakiness issues with HTTP 2.0 in the Healthcare API. Tested by running with the flag on/off and confirmed that the default has no errors whereas turning this flag on ha...
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..593cf518 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.gradle/ + +.DS_STORE diff --git a/dicom_util/src/main/java/com/google/cloud/healthcare/DicomWebClient.java b/dicom_util/src/main/java/com/google/cloud/healthcare/DicomWebClient.java index ...
1
1
1
[{"id": "G0", "claim": "Using flags.dicomwebAddress for the default C-STORE DICOMWeb client is not backwards compatible with the old way of concatenating flags.dicomwebAddr + flags.dicomwebStowPath; to make it backwards compatible the address should be created as StringUtil.joinPath(cstoreDicomwebAddr, cstoreDicomwebSt...
null
GoogleCloudPlatform__healthcare-dicom-dicomweb-adapter__98
GoogleCloudPlatform/healthcare-dicom-dicomweb-adapter
98
defect
ada4a40376ed67962b2a2b06ac41e37f0078974a
9f437420ec8ac7f7a7d0461d970d9119f26cf393
BackupUploadService with LocalBackupUploader added.
The BackupUploadService added to CStoreService. Logic added to 'processorList' chain of the 'store' method. File is saving to backup (local in this PR) before sending. If upload fails - then we start resend it with timeout repeatedly until the first successful result. It repeats fixed amount of times (by flag). New ...
diff --git a/README.md b/README.md index 2ebbbd21..8b05409d 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Table of Contents * [Deployment using Data Protection Toolkit](#deployment-using-data-protection-toolkit) * [Building from source](#building-from-source) * [Building and publishin...
20
18
6
[{"id": "G0", "claim": "The README phrase \"reliability of file loading in Healthcare\" should be reworded to \"to improve the reliability of file uploading.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README phrase \"Before uploading a f...
null
GoogleCloudPlatform__java-docs-samples__10035
GoogleCloudPlatform/java-docs-samples
10,035
defect
76bbd41ee7eeacfeaed889fc00a5e4c5e8dc3230
57a516ce0e294696f4d56c3e10c10278c6b9bbac
feat(bigquery): add dataset samples to cloud-client (2/3)
## Description Part of internal b/394478489 #### Second part of bigquery cloud-client (2/3). (https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10034, **https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10035**, https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10036) This ...
diff --git a/bigquery/cloud-client/snippets/pom.xml b/bigquery/cloud-client/snippets/pom.xml new file mode 100644 index 00000000000..4acbac77b79 --- /dev/null +++ b/bigquery/cloud-client/snippets/pom.xml @@ -0,0 +1,70 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- +Copyright 2025 Google LLC + +Licensed under the Apac...
4
1
0
[{"id": "G0", "claim": "The copyright year in the license headers is set to 2025; please confirm that this is the correct year, or update it to the current year if appropriate.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A README.md file is mis...
null
GoogleCloudPlatform__java-docs-samples__10036
GoogleCloudPlatform/java-docs-samples
10,036
defect
76bbd41ee7eeacfeaed889fc00a5e4c5e8dc3230
b01056cac354bf3f5281af64fa52d99de6a26877
feat(bigquery): add table/view samples to cloud-client (3/3)
## Description Part of internal b/394478489 #### Third part of bigquery cloud-client (3/3). (https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10034, https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10035, **https://github.com/GoogleCloudPlatform/java-docs-samples/pull/10036**) This p...
diff --git a/bigquery/cloud-client/snippets/pom.xml b/bigquery/cloud-client/snippets/pom.xml new file mode 100644 index 00000000000..4acbac77b79 --- /dev/null +++ b/bigquery/cloud-client/snippets/pom.xml @@ -0,0 +1,70 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- +Copyright 2025 Google LLC + +Licensed under the Apac...
4
2
0
[{"id": "G0", "claim": "The new samples hardcode projectId, datasetName, resourceName, role and identity instead of reading them from environment variables, which the bot says would make the samples more configurable and secure.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {...
null
GoogleCloudPlatform__java-docs-samples__10038
GoogleCloudPlatform/java-docs-samples
10,038
defect
5171dd577aad0d6f4ea33f38a336c174ade8c76b
5d948b7ccf5bea4599b5c9d0bc180047cb8d82b9
chore(tpu): Updating TPUv2 to TPUv5
## Description Fixes b/400926465 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md) - [ ] `pom.xml` parent set...
diff --git a/tpu/src/main/java/tpu/CreateQueuedResource.java b/tpu/src/main/java/tpu/CreateQueuedResource.java index 421acff2d04..2a2b972303e 100644 --- a/tpu/src/main/java/tpu/CreateQueuedResource.java +++ b/tpu/src/main/java/tpu/CreateQueuedResource.java @@ -35,16 +35,16 @@ public static void main(String[] args) ...
4
4
2
[{"id": "G0", "claim": "Unintended text (\"v5litepod-4\";\"v5litepod-4\"; or us-central1-a) was inserted before the opening comment on line 1 of many files and must be removed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The zone change from us-c...
null
GoogleCloudPlatform__java-docs-samples__10060
GoogleCloudPlatform/java-docs-samples
10,060
defect
73728d6d522aa26e0d9fd319fdad746e5a9eae70
4ac3939db1fa8693dda7fb03793217468d55a8a1
feat(parametermanager): Added samples for delete, enable and disable parameter & parameter version
## Description Added samples for deleting parameter, enabling, disabling and deleting parameter version using Parameter manager SDK #### Sample List (global): 1. [delete-parameter](https://cloud.google.com/secret-manager/parameter-manager/docs/delete-parameters#list-all-parameters) 2. [disable-parameters-vers...
diff --git a/parametermanager/src/main/java/parametermanager/DeleteParam.java b/parametermanager/src/main/java/parametermanager/DeleteParam.java new file mode 100644 index 00000000000..509b470e2f3 --- /dev/null +++ b/parametermanager/src/main/java/parametermanager/DeleteParam.java @@ -0,0 +1,53 @@ +/* + * Copyright 202...
3
3
0
[{"id": "G0", "claim": "The samples lack explicit error handling: consider adding a try-catch block around each API call (deleteParameter, deleteParameterVersion, updateParameterVersion) that logs the error before rethrowing, to make debugging and monitoring easier.", "category": "maintainability", "verdict": "supporte...
null
GoogleCloudPlatform__java-docs-samples__10066
GoogleCloudPlatform/java-docs-samples
10,066
defect
2771ec87f5089b5ea6e7688535593ff8dd020303
6629006d924be166f3f3a0255346e5ed96daf874
feat(modelarmor): Added floor settings snippets
## Description Added snippets to interact with Model Armor floor settings. ## Checklist - [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md) - [x] `pom.xml` parent set to latest `shared-configuration` - [ ] Appropriate changes to REA...
diff --git a/modelarmor/README.md b/modelarmor/README.md new file mode 100644 index 00000000000..0c8113a9377 --- /dev/null +++ b/modelarmor/README.md @@ -0,0 +1,29 @@ +# Google Model Armor + +<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page...
7
5
2
[{"id": "G0", "claim": "Add input validation so the samples' id variables (folderId, organizationId, projectId) are checked for null/empty before use, to prevent potential NullPointerExceptions or unexpected behaviour.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "...
null
GoogleCloudPlatform__java-docs-samples__10093
GoogleCloudPlatform/java-docs-samples
10,093
defect
add7429c50b29e7ad5ceeaf9f0eff1fe516c1040
ac72f71a311e9efe766fda49984e382be0bc6d22
feat(parametermanager): Added samples for kms_key field in global parameter
## Description Added samples for kms_key field in global parameter using Parameter manager SDK #### Sample List (global): 1. create_param_with_kms_key 2. update_param_kms_key 3. remove_param_kms_key Added required tests for the same. ## Checklist - [X] I have followed [Sample Format Guide](https://g...
diff --git a/parametermanager/pom.xml b/parametermanager/pom.xml index 17deb982a30..33cd5ffdc52 100644 --- a/parametermanager/pom.xml +++ b/parametermanager/pom.xml @@ -43,7 +43,7 @@ <dependency> <groupId>com.google.cloud</groupId> <artifactId>libraries-bom</artifactId> - ...
6
6
1
[{"id": "G0", "claim": "The copyright year in the three new sample files (CreateParamWithKmsKey.java, UpdateParamKmsKey.java, RemoveParamKmsKey.java) is set to 2025 and should be updated to the current year of creation (the review suggests 2024).", "category": "documentation", "verdict": "supported", "priority": "P3", ...
null
GoogleCloudPlatform__java-docs-samples__10098
GoogleCloudPlatform/java-docs-samples
10,098
defect
51f6042007244c2e6893c641c51b653b878a33db
fb0777c28083088dc6da94c2eb7f4cec1e03c494
feat: Update model name to gemini-embedding-001
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md) - [ ] `pom.xm...
diff --git a/aiplatform/src/main/java/aiplatform/PredictTextEmbeddingsSample.java b/aiplatform/src/main/java/aiplatform/PredictTextEmbeddingsSample.java index b563e5b72d0..4e2f1971e45 100644 --- a/aiplatform/src/main/java/aiplatform/PredictTextEmbeddingsSample.java +++ b/aiplatform/src/main/java/aiplatform/PredictTextE...
2
2
2
[{"id": "G0", "claim": "The comment on line 41 links to documentation that primarily covers older models (text-embedding-004/005) and different output dimensions, so the documentation link or surrounding comments should be updated to accurately reflect the gemini-embedding-001 model and its expected output dimensionali...
null
GoogleCloudPlatform__java-docs-samples__10136
GoogleCloudPlatform/java-docs-samples
10,136
defect
ec764bea40c9e62341eab0af4190df4021fdac59
96da4a536259d6fa0edf52de46862361eceded0f
chore(secretmanager): Added samples for delayed destroy
## Description Added samples for kms_key field in regional parameter using Parameter manager SDK #### Sample List (global & regional): 1. Create Secret With Delayed Destroy 2. Disable Secret Delayed Destroy 3. Update Secret With Delayed Destroy Added required Tests for the same. ## Checklist - [X] ...
diff --git a/secretmanager/src/main/java/secretmanager/CreateSecretWithDelayedDestroy.java b/secretmanager/src/main/java/secretmanager/CreateSecretWithDelayedDestroy.java new file mode 100644 index 00000000000..de3bb9f2845 --- /dev/null +++ b/secretmanager/src/main/java/secretmanager/CreateSecretWithDelayedDestroy.java...
3
2
2
[{"id": "G0", "claim": "The `secretId` and `locationId` arguments are swapped in the call to `createRegionalSecretWithDelayedDestroy`, which will cause the sample to fail at runtime.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The `versionDestroy...
null
GoogleCloudPlatform__java-docs-samples__10137
GoogleCloudPlatform/java-docs-samples
10,137
defect
5d5f26f5e10b63868815e2bbee8a2572fde14643
86c737d71e25002df3585fab653ec2c2c0e5970b
Add SaveFindingsToGcs output proto conversion sample for DLP
## Description Fixes: N/A Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md) - [ ] `pom.xml` parent set...
diff --git a/dlp/snippets/pom.xml b/dlp/snippets/pom.xml index 651f4165dcc..0c2c4483faf 100644 --- a/dlp/snippets/pom.xml +++ b/dlp/snippets/pom.xml @@ -32,7 +32,7 @@ <groupId>com.google.cloud</groupId> <scope>import</scope> <type>pom</type> - <version>26.32.0</version> + <versi...
4
4
1
[{"id": "G0", "claim": "The FileInputStream opened to read the findings file is never closed, leaking a resource; use try-with-resources and parse the file directly as a Reader instead of loading the whole file into memory.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
GoogleCloudPlatform__java-docs-samples__10150
GoogleCloudPlatform/java-docs-samples
10,150
defect
274a52781962069a47f0f0903619960f94c5c182
c0dcf74a952b193e7d0f61f04dcbe4ff657cab78
feat(genai): add Vertex AI Search tool sample
## Description Add new GenAI Vertex AI Search tool sample The Vertex AI Search tool with text sample **works locally**, but a datastore had to be created and the Discovery Engine Editor role was required to pass the test. This means that, for this sample to pass the test, the reviewer needs to create a datastore,...
diff --git a/genai/snippets/src/main/java/genai/tools/ToolsVaisWithText.java b/genai/snippets/src/main/java/genai/tools/ToolsVaisWithText.java new file mode 100644 index 00000000000..b3eb0c4e285 --- /dev/null +++ b/genai/snippets/src/main/java/genai/tools/ToolsVaisWithText.java @@ -0,0 +1,77 @@ +/* + * Copyright 2025 G...
2
1
0
[{"id": "G0", "claim": "response.text() should be called once and its result stored in a local variable instead of being called twice, to avoid a redundant method call and make the intent clearer.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The d...
null
GoogleCloudPlatform__java-docs-samples__10156
GoogleCloudPlatform/java-docs-samples
10,156
defect
274a52781962069a47f0f0903619960f94c5c182
2ee3a227544ab4cbe7f29465e083cd0a4b216cde
feat(genai): add text generation samples - part 3
## Description Add new text generation samples (3): - Text generation with a new chat session - Text generation with a new chat stream session - Text generation transcript with audio input Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ##...
diff --git a/genai/snippets/src/main/java/genai/textgeneration/TextGenerationChatStreamWithText.java b/genai/snippets/src/main/java/genai/textgeneration/TextGenerationChatStreamWithText.java new file mode 100644 index 00000000000..853a1d87915 --- /dev/null +++ b/genai/snippets/src/main/java/genai/textgeneration/TextGen...
5
4
1
[{"id": "G0", "claim": "Calling systemInstruction twice on the GenerateContentConfig builder will likely cause the second call to overwrite the first, discarding the initial \"Hello\" instruction; the instructions should instead be passed as a List<Content> (adding the java.util.List import).", "category": "correctness...
null
GoogleCloudPlatform__java-docs-samples__10174
GoogleCloudPlatform/java-docs-samples
10,174
defect
b83001b2c2b842884f0f2903246ec1c20134f2ce
872ecbeb8ad61b3fb7eb3177e6698744978c56f2
feat(genai): add batch prediction samples (1) and update GenAI SDK
## Description Add new batch prediction samples and update SDK: - Create a batch prediction job with Google Cloud Storage - Create a batch prediction job with embedding model and Google Cloud Storage - Update SDK to v1.23.0 ## Checklist - [x] I have followed [Sample Format Guide](https://github.com/Google...
diff --git a/genai/snippets/pom.xml b/genai/snippets/pom.xml index 32015ec0bf4..44374a359a3 100644 --- a/genai/snippets/pom.xml +++ b/genai/snippets/pom.xml @@ -51,7 +51,7 @@ <dependency> <groupId>com.google.genai</groupId> <artifactId>google-genai</artifactId> - <version>1...
3
3
1
[{"id": "G0", "claim": "Use EnumSet.of() instead of populating a HashSet with enum constants one by one, adding the java.util.EnumSet import, in the batch prediction samples.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid the magic number ...
null
GoogleCloudPlatform__java-docs-samples__10194
GoogleCloudPlatform/java-docs-samples
10,194
defect
39962cba1a87a9e3549d9b0dddda88dabd8d0ae1
d2cc19219df1be0ce579f627b0789b12d1b0b6e3
feat(genai): add live samples (1)
## Description Update SDK version and add multimodal live samples: - Generate content with a text input. - Generate content with Code Execution tool. - Generate content with Google Search tool. - Transcribe Audio ## Checklist - [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatfor...
diff --git a/genai/snippets/pom.xml b/genai/snippets/pom.xml index 3c59e1fde38..2adf3e16ea9 100644 --- a/genai/snippets/pom.xml +++ b/genai/snippets/pom.xml @@ -51,17 +51,13 @@ <dependency> <groupId>com.google.genai</groupId> <artifactId>google-genai</artifactId> - <version...
4
1
0
[{"id": "G0", "claim": "In LiveCodeExecWithTxt.java, handleLiveServerMessage invokes message.serverContent() twice, and the reviewer suggests calling it once and operating on the resulting Optional with Optional.ifPresent for efficiency, readability and idiom.", "category": "maintainability", "verdict": "uncertain", "p...
null