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__java-docs-samples__10203 | GoogleCloudPlatform/java-docs-samples | 10,203 | defect | db6bef7d8f2f9f0249988b61e1e833c19b6bf511 | a9b2c59b4efc042a121c79fed45d26b76bbf9873 | feat: Custom Credential Supplier Documentation | ## Description
Adding documentation for Custom Credential Suppliers.
Custom Credential Suppliers enable developers to securely integrate third-party authentication directly into the Google Cloud SDKs. Custom Credential Suppliers are primarily used to handle authentication in non-standard cloud environments.
Th... | diff --git a/auth/README.md b/auth/README.md
index 186970b53dd..fba4ca01abe 100644
--- a/auth/README.md
+++ b/auth/README.md
@@ -67,6 +67,51 @@ You can then run `DownscopingExample` via:
mvn exec:java -Dexec.mainClass=com.google.cloud.auth.samples.DownscopingExample
+## Custom Credential Suppliers
+
+If you want ... | 7 | 1 | 0 | [{"id": "G0", "claim": "The lazy initialization of the region field in CustomAwsSupplier.getRegion is not thread-safe, so concurrent calls when region is null could all resolve the region redundantly.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
GoogleCloudPlatform__java-docs-samples__10206 | GoogleCloudPlatform/java-docs-samples | 10,206 | defect | d8ac9a534274afa5d7040d8f442ecda8c9d6cbd8 | 20a89e4cfddab4b420d7bd4d0632c376557787bd | feat(genai): Add samples for controlled 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 [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md)
- [x] `pom.xm... | diff --git a/genai/snippets/src/main/java/genai/controlledgeneration/ControlledGenerationWithEnumClassSchema.java b/genai/snippets/src/main/java/genai/controlledgeneration/ControlledGenerationWithEnumClassSchema.java
new file mode 100644
index 00000000000..01463abdf89
--- /dev/null
+++ b/genai/snippets/src/main/java/ge... | 5 | 2 | 0 | [{"id": "G0", "claim": "The new integration tests only assert that the response contains a substring (\"forecast\" / \"recipe_name\") and should instead parse the response as JSON and validate its structure against the schema to verify controlled generation is actually followed.", "category": "testing", "verdict": "unc... | null |
GoogleCloudPlatform__java-docs-samples__10207 | GoogleCloudPlatform/java-docs-samples | 10,207 | defect | d8ac9a534274afa5d7040d8f442ecda8c9d6cbd8 | 66f86270ded9c6a091f9f10eb701396bbed920a6 | feat(genai): Add samples for controlled generation class and nested schema | ## 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 [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md)
- [ ] `pom.xm... | diff --git a/genai/snippets/src/main/java/genai/controlledgeneration/ControlledGenerationWithClassSchema.java b/genai/snippets/src/main/java/genai/controlledgeneration/ControlledGenerationWithClassSchema.java
new file mode 100644
index 00000000000..d8e66ca32dd
--- /dev/null
+++ b/genai/snippets/src/main/java/genai/cont... | 3 | 3 | 1 | [{"id": "G0", "claim": "The Grade enum will cause a JsonSyntaxException during Gson deserialization for values like \"a+\" because Gson maps JSON strings to enum constants by name(), so the enum constants should use @SerializedName and the redundant value field, constructor and toString() override should be removed.", ... | null |
GoogleCloudPlatform__java-docs-samples__10237 | GoogleCloudPlatform/java-docs-samples | 10,237 | defect | 1407c26145f24d051eb8efcfb74e77dd26c47e5b | 5e096f22db8f68b2fb4880681395ee7afacab074 | feat(cloudkms): add samples for CryptoKey/CryptoKeyVersion deletion and get/lists RetiredResources | ## 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 [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md)
- [x] `pom.xm... | diff --git a/kms/pom.xml b/kms/pom.xml
index 63f4e3f7012..516012f5864 100644
--- a/kms/pom.xml
+++ b/kms/pom.xml
@@ -31,7 +31,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
- <version>26.32.0</version>
+ <version>26.50.0</version>
... | 4 | 4 | 2 | [{"id": "G0", "claim": "In IamRemoveMember.java the setIamPolicy call passes the original policy object instead of the newly constructed newPolicy, so the member removal will not be persisted; newPolicy should be passed to setIamPolicy.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in... | null |
GoogleCloudPlatform__java-docs-samples__10255 | GoogleCloudPlatform/java-docs-samples | 10,255 | defect | 8fd1e272a37983b88120d2c1c22873a51ed9e70a | 33c9efe92ba4e4896f8ee2c57afcc831204ab6ca | feat(workflows): add execute with and without arguments | ## Description
Fixes internal b/507097366
## Checklist
- [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md)
- [ ] `pom.xml` parent set to latest `shared-configuration`
- [ ] Appropriate changes to README are included in PR
- [ ] The... | diff --git a/workflows/cloud-client/resources/myFirstWorkflow.workflows.yaml b/workflows/cloud-client/resources/myFirstWorkflow.workflows.yaml
new file mode 100644
index 00000000000..524e9befdce
--- /dev/null
+++ b/workflows/cloud-client/resources/myFirstWorkflow.workflows.yaml
@@ -0,0 +1,47 @@
+# Copyright 2026 Google... | 12 | 5 | 0 | [{"id": "G0", "claim": "The manual polling loop after createWorkflowAsync(...).get() is redundant because .get() already blocks until the create LRO completes, and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The workflowExi... | null |
GoogleCloudPlatform__java-docs-samples__9513 | GoogleCloudPlatform/java-docs-samples | 9,513 | defect | 7212265315272d8096e733456d07033bc957afab | 0f8d959cf88e5d00f4eb5c4e447a100f995706ba | feat(secretmanager): added samples for annotations | ## 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/secretmanager/src/main/java/secretmanager/CreateSecretWithAnnotations.java b/secretmanager/src/main/java/secretmanager/CreateSecretWithAnnotations.java
new file mode 100644
index 00000000000..dab85d27386
--- /dev/null
+++ b/secretmanager/src/main/java/secretmanager/CreateSecretWithAnnotations.java
@@ -0,0 ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The shared createSecret() helper applies the annotation to every secret it creates, so the annotation should be added only for TEST_SECRET instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The annotation setup could be ... | null |
GoogleCloudPlatform__java-docs-samples__9614 | GoogleCloudPlatform/java-docs-samples | 9,614 | defect | 772c39c27b000e9c6c905c8a3139242029d594ed | 5a7af7500dd27f528551dd6a98ececfeacf6a888 | feat(tpu): add tpu queued resources list sample | ## Description
Documentation - https://cloud.google.com/tpu/docs/queued-resources
Sample in Python - https://github.com/GoogleCloudPlatform/python-docs-samples/pull/12716/files
Fixes #<ISSUE-NUMBER>
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
... | diff --git a/tpu/src/main/java/tpu/DeleteForceQueuedResource.java b/tpu/src/main/java/tpu/DeleteForceQueuedResource.java
index f619889001c..f05e11fd57d 100644
--- a/tpu/src/main/java/tpu/DeleteForceQueuedResource.java
+++ b/tpu/src/main/java/tpu/DeleteForceQueuedResource.java
@@ -74,4 +74,4 @@ public static void delete... | 2 | 2 | 1 | [{"id": "G0", "claim": "Import TpuClient.ListQueuedResourcesPage and use the simple ListQueuedResourcesPage type instead of the qualified nested name, both for the sample's return type in ListQueuedResources.java and for the page/response declarations in QueuedResourceIT.java.", "category": "maintainability", "verdict"... | null |
GoogleCloudPlatform__java-docs-samples__9641 | GoogleCloudPlatform/java-docs-samples | 9,641 | defect | 0e52e74039a091926a46a1d6e6c0b58a358753c8 | 545b7ef2e6bdf8270395367f3b479cb4857765cc | feat(compute): add compute disk create secondary regional sample | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/async-pd/configure?authuser=0#gcloud
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 [Sample Format Guide](h... | diff --git a/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryRegional.java b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryRegional.java
new file mode 100644
index 00000000000..262176f2ce0
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryR... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the comment block above the replicaZones declaration and let the linked documentation describe the requirements instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the DiskAsyncReplication builder constructi... | null |
GoogleCloudPlatform__java-docs-samples__9643 | GoogleCloudPlatform/java-docs-samples | 9,643 | defect | 0b5e7fda780389279194a2d3e1cd83d408c23e28 | 1252384fa17e0c1708665fcd0d32ed92988d36e9 | feat(compute): add compute disk create secondary sample. | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/async-pd/configure?authuser=0#gcloud
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 [Sample Format Guide](htt... | diff --git a/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryZonal.java b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryZonal.java
new file mode 100644
index 00000000000..82c15498aad
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryZonal.j... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the primaryDiskSource/asyncReplication construction into the try-with-resources block in createDiskSecondaryZonal, and address the review comment before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__java-docs-samples__9644 | GoogleCloudPlatform/java-docs-samples | 9,644 | defect | 55d96d4d2bcd34ac52fe9d76a5a525ccc8a187f6 | 55ba40617f92f6dff3fdd99b26bdfb086707909d | feat(compute): add compute disk create secondary custom sample | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/async-pd/configure?authuser=0#gcloud_1
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 [Sample Format Guide](h... | diff --git a/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryCustom.java b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryCustom.java
new file mode 100644
index 00000000000..b47f9866048
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/disks/CreateDiskSecondaryCusto... | 3 | 3 | 1 | [{"id": "G0", "claim": "Consider refactoring the class name to `CreateSecondaryCustomDisk`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move all compute API related code within the try catch.", "category": "design", "verdict": "supported", "p... | null |
GoogleCloudPlatform__java-docs-samples__9645 | GoogleCloudPlatform/java-docs-samples | 9,645 | defect | 55d96d4d2bcd34ac52fe9d76a5a525ccc8a187f6 | 19fea7664fdeb68b4f40c4430ab0b000613cb39f | feat(dataflow): Dataflow to Apache Iceberg with dynamic destinations | ## Description
Add snippet for Iceberg dynamic destinations
- Add a snippet that shows the use of [https://github.com/apache/beam/issues/32365](dynamic destinations) when writing to Apache Iceberg from Dataflow, This is a new feature in [Beam 2.60](https://github.com/apache/beam/releases/tag/v2.60.0).
- Refact... | diff --git a/dataflow/snippets/pom.xml b/dataflow/snippets/pom.xml
index 76a6d12a149..f2403b449a1 100755
--- a/dataflow/snippets/pom.xml
+++ b/dataflow/snippets/pom.xml
@@ -37,7 +37,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sou... | 13 | 7 | 0 | [{"id": "G0", "claim": "Use List.of() instead of Arrays.asList when creating the immutable TABLE_ROWS list.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use diamond operators for type inference and declare Map and ImmutableMap variables using ... | null |
GoogleCloudPlatform__java-docs-samples__9730 | GoogleCloudPlatform/java-docs-samples | 9,730 | defect | 164ddd47d46c0ac891ca8a7b6979d165d80e5d50 | e4bc6b34b476994a8fec7517bac9443cd66db922 | feat(compute): add compute instance attach regional disk force sample | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/repd-failover?authuser=0#force-attach
Node.js sample - https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/3922
Fixes #<ISSUE-NUMBER>
Note: Before submitting a pull request, please open an issue for discussion if you are not as... | diff --git a/compute/cloud-client/src/main/java/compute/disks/AttachRegionalDiskForce.java b/compute/cloud-client/src/main/java/compute/disks/AttachRegionalDiskForce.java
new file mode 100644
index 00000000000..1799be4c96e
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/disks/AttachRegionalDiskForce.java... | 6 | 6 | 2 | [{"id": "G0", "claim": "The sample eats the attach error by printing it to stdout and returning; it should throw an informative exception instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sample should not print to stdout; it should return... | null |
GoogleCloudPlatform__java-docs-samples__9742 | GoogleCloudPlatform/java-docs-samples | 9,742 | defect | 80b46d6b5dec4094390562e456a0488d5452400c | 6e2f4f3bce4fb26baffc9de763cde55f75a677db | feat(compute): add compute snapshot schedule create/get/edit/list/delete samples | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/scheduled-snapshots?authuser=0#create_snapshot_schedule , https://cloud.google.com/compute/docs/disks/manage-snapshot-schedules?authuser=0#gcloud_3, https://cloud.google.com/compute/docs/disks/manage-snapshot-schedules?authuser=0#view_snapshot_... | diff --git a/compute/cloud-client/src/main/java/compute/snapshotschedule/CreateSnapshotSchedule.java b/compute/cloud-client/src/main/java/compute/snapshotschedule/CreateSnapshotSchedule.java
new file mode 100644
index 00000000000..d8ae82c319b
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/snapshotschedu... | 16 | 12 | 0 | [{"id": "G0", "claim": "CreateSnapshotSchedule should use an enum instead of the \"KEEP_AUTO_SNAPSHOTS\" string literal for onSourceDiskDelete.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out daily and weekly schedule example co... | null |
GoogleCloudPlatform__java-docs-samples__9791 | GoogleCloudPlatform/java-docs-samples | 9,791 | defect | d8d625397169bc889a87b5ff9ea736e1d3214cf6 | 8cf36fd688a705b9327adcfe6633acc1e88c71d6 | feat(compute): attach/ remove snapshot schedule to disk | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/scheduled-snapshots?authuser=0#attach_snapshot_schedule
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 [Sampl... | diff --git a/compute/cloud-client/src/main/java/compute/snapshotschedule/AttachSnapshotScheduleToDisk.java b/compute/cloud-client/src/main/java/compute/snapshotschedule/AttachSnapshotScheduleToDisk.java
new file mode 100644
index 00000000000..88e9815852f
--- /dev/null
+++ b/compute/cloud-client/src/main/java/compute/sn... | 6 | 6 | 2 | [{"id": "G0", "claim": "AttachSnapshotScheduleToDisk is missing the standard 'Initialize client...' explanatory comment above the DisksClient creation that the other samples have.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The addResourcePolic... | null |
GoogleCloudPlatform__java-docs-samples__9880 | GoogleCloudPlatform/java-docs-samples | 9,880 | defect | 9b219c01e7e6bf667c4e0d33348f95d156432c0f | a43fe6434ed2b97117b6383cf1fcca83a24d4cd8 | feat(vectorsearch): add create/list/delete index samples | ## Description
Part of b/378713849
## Checklist
- [x] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md)
- [ ] `pom.xml` parent set to latest `shared-configuration`
- [ ] Appropriate changes to README are included in PR
- [ ] These samp... | diff --git a/aiplatform/pom.xml b/aiplatform/pom.xml
index 14e314a1244..1c207164568 100644
--- a/aiplatform/pom.xml
+++ b/aiplatform/pom.xml
@@ -8,6 +8,18 @@
<packaging>jar</packaging>
<name>Google Cloud Vertex AI Snippets</name>
<url>https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/aiplatfor... | 21 | 10 | 1 | [{"id": "G0", "claim": "Pass contentsDeltaUri directly into the create-index sample methods and use it to set the contentsDeltaUri field in the metadata instead of only interpolating it into the metadataJson template.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "... | null |
GoogleCloudPlatform__java-docs-samples__9885 | GoogleCloudPlatform/java-docs-samples | 9,885 | defect | 7afa0d22b939a28a6bc9145afe3ddf67a6535d82 | 187c50baa230b6a9c105101091fb29158299cdce | feat(compute): add compute consistency group clone sample | ## Description
Documentation - https://cloud.google.com/compute/docs/disks/async-pd/manage-async-disks?authuser=0#clone_all_disks_in_a_consistency_group
Fixes #<ISSUE-NUMBER>
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] ... | diff --git a/compute/cloud-client/src/main/java/compute/disks/consistencygroup/CloneRegionalDisksFromConsistencyGroup.java b/compute/cloud-client/src/main/java/compute/disks/consistencygroup/CloneRegionalDisksFromConsistencyGroup.java
new file mode 100644
index 00000000000..b7b0585902d
--- /dev/null
+++ b/compute/cloud... | 2 | 1 | 0 | [{"id": "G0", "claim": "The regional and zonal samples should take the consistency group's project and region as separate extra inputs, since the source consistency group's location differs from the project and region where the disks are cloned into.", "category": "design", "verdict": "opposed", "priority": "P1", "scop... | null |
GoogleCloudPlatform__java-docs-samples__9913 | GoogleCloudPlatform/java-docs-samples | 9,913 | defect | 230665f549e20da6a5209d7fe50f2db2e720b675 | 2c060e8b049f1bab722846fa41243e7520b23705 | feat(securitycenter): Add Resource SCC Management API Org Security Center Service Custom Module samples (Get, List, Update) | ## Description
Fixes # b/347346449, b/347346682, b/347346802
This PR adds SCC Managament API Org Security Center Service Custom Module Samples for Get, List and Update.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [ ] I ha... | diff --git a/security-command-center/snippets/src/main/java/management/api/GetSecurityCenterService.java b/security-command-center/snippets/src/main/java/management/api/GetSecurityCenterService.java
new file mode 100644
index 00000000000..e8221230735
--- /dev/null
+++ b/security-command-center/snippets/src/main/java/ma... | 5 | 4 | 0 | [{"id": "G0", "claim": "The TODO comments and placeholder values in the three new samples should follow the Sample Format Guide: make the TODOs actionable and enclose the placeholder values in angle brackets.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
GoogleCloudPlatform__kubectl-ai__309 | GoogleCloudPlatform/kubectl-ai | 309 | defect | f9a2fa63dd04ccda7dbae1757d64723bfe4ab672 | 6ca9a0722273dea69b473b6fe7f8644e6437ed4f | fix/feat | Static Kubectl Command Filter Implementation | ## Summary
This PR implements a static filter system to determine if kubectl commands modify Kubernetes resources, replacing the previous LLM-based approach. This addresses the inconsistencies and potential hallucinations noted in issue #276.
## Implementation Details
### Pattern
The implementation uses a combi... | diff --git a/pkg/tools/bash_tool.go b/pkg/tools/bash_tool.go
index 73ecce6e..98c8c5c1 100644
--- a/pkg/tools/bash_tool.go
+++ b/pkg/tools/bash_tool.go
@@ -103,6 +103,16 @@ func (t *BashTool) Run(ctx context.Context, args map[string]any) (any, error) {
workDir := ctx.Value(WorkDirKey).(string)
command := args["comma... | 11 | 10 | 2 | [{"id": "G0", "claim": "Consider changing the system prompt (and the Action struct) so the flow relies strictly on the kubectl_filter, which could save some tokens.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The early `if foundWrite` check at the top o... | null |
GoogleCloudPlatform__kubectl-ai__375 | GoogleCloudPlatform/kubectl-ai | 375 | defect | 675914a036d5d16b5ddacb3b4ed4d8224db0632b | fa1b36ce17f5a8b2277191a8c5e902eba868ac0e | Enhancements to OpenAI Chat Session Handling, Schema Validation, and Model Selection | ### Summary:
This PR introduces various improvements in the handling of chat messages, schema validation, function call processing, and model selection for OpenAI integrations. It refines the way content types are processed into chat history, fixes schema normalization to ensure compatibility with OpenAI, and adds rob... | diff --git a/gollm/openai.go b/gollm/openai.go
index 5ec67723..60381c2e 100644
--- a/gollm/openai.go
+++ b/gollm/openai.go
@@ -61,11 +61,6 @@ func init() {
}
}
-// newOpenAIClientFactory is the factory function for creating OpenAI clients.
-func newOpenAIClientFactory(ctx context.Context, opts ClientOptions) (Clie... | 6 | 5 | 1 | [{"id": "G0", "claim": "validateSchemaForOpenAI should be renamed because it converts/transforms the schema for OpenAI compatibility rather than validating it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "processFunctionParameters should be re... | null |
GoogleCloudPlatform__kubectl-ai__394 | GoogleCloudPlatform/kubectl-ai | 394 | defect | b2bfee4de22b5e9599647d73e33309e7edad3721 | 9fd011e5f4fc772ec35ba1641e89786c1207bb79 | feat: Ensure accurate read/write classification for kubectl sub commands like `kubectl rollout history` | Fix: #393
Previously, all rollout commands were incorrectly categorized as write operations,
resulting in unnecessary approval prompts for read-only subcommands such as history and status.
This PR introduces dedicated mappings for subcommands like `rollout` :
It can also be applied to commands like:
- auth can... | diff --git a/pkg/tools/kubectl_filter.go b/pkg/tools/kubectl_filter.go
index aacddf8b..2de2b180 100644
--- a/pkg/tools/kubectl_filter.go
+++ b/pkg/tools/kubectl_filter.go
@@ -36,12 +36,28 @@ var (
writeOps = map[string]bool{
"create": true, "apply": true, "edit": true, "delete": true,
"patch": true, "replace": ... | 4 | 4 | 1 | [{"id": "G0", "claim": "Before merging, the PR should include more tests and, if the edge cases were not already tested manually, the author should test them by inducing the LLM to hit them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The check that ... | null |
GoogleCloudPlatform__kubectl-ai__400 | GoogleCloudPlatform/kubectl-ai | 400 | defect | 3c6d91435cf61d770b7c340b14ec67763c015f08 | 7384c0afa6917dbcc68cfa4420fbee3f0099c94c | Bugfix/399 first non-flag argument parsing | # Summary
This PR addresses issue #399 by improving the detection of the verb in kubectl commands. Previously, the logic would incorrectly classify commands where flags appeared before the verb (e.g., `kubectl --context=prod get pods`). Now, if any flags are present before the verb, the command is marked as "unknown... | diff --git a/pkg/agent/systemprompt_template_default.txt b/pkg/agent/systemprompt_template_default.txt
index ee63b361..899f27a1 100644
--- a/pkg/agent/systemprompt_template_default.txt
+++ b/pkg/agent/systemprompt_template_default.txt
@@ -39,6 +39,14 @@ If you have enough information to answer the query:
- Decide on t... | 3 | 1 | 1 | [{"id": "G0", "claim": "The kubectl-specific command structuring guidelines added to the default agent system prompt should instead go in the kubectl tool description, with only generic tool guidelines kept in the system prompt.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"i... | null |
GoogleCloudPlatform__kubectl-ai__424 | GoogleCloudPlatform/kubectl-ai | 424 | defect | daceabcb12685d50e4468cc5566702b156b247d4 | 70c1fa72ebce0868d1ca98af5ec39aeba36eedf5 | detect kubectl exec to be a write operation | executing "exec" command should be treated as write operation. | diff --git a/pkg/tools/kubectl_filter.go b/pkg/tools/kubectl_filter.go
index 9db7f690..626a40d5 100644
--- a/pkg/tools/kubectl_filter.go
+++ b/pkg/tools/kubectl_filter.go
@@ -36,7 +36,7 @@ var (
writeOps = map[string]bool{
"create": true, "apply": true, "edit": true, "delete": true,
"patch": true, "replace": tr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The existing \"Exec command\" test case for `kubectl exec nginx -- ls` should use a clearly destructive command such as `rm -rf /` instead of `ls` so the write-operation expectation is clearer.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
GoogleCloudPlatform__netd__263 | GoogleCloudPlatform/netd | 263 | defect | 39a7ec5110d8cd2cd5530328047018c28716677f | 8f53f2e35152a35a1beefb8675e22b85a67754f0 | Testing framework for install-cni template processing | Adds tests to verify cni_spec generation by install-cni.sh script | diff --git a/scripts/.gitignore b/scripts/.gitignore
index bdc899bb9..1f38d0085 100644
--- a/scripts/.gitignore
+++ b/scripts/.gitignore
@@ -5,3 +5,5 @@
/.dockerfile-*
/.licenses
/.buildx-initialized
+/test.log
+/test.out
diff --git a/scripts/Makefile b/scripts/Makefile
index 08daba48b..b50dddbd0 100644
--- a/script... | 12 | 12 | 1 | [{"id": "G0", "claim": "The new shell scripts added by this pull request should be added to the shellcheck lint target.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation refers to `install_cni.sh` with an underscore; it should say the scr... | null |
GoogleCloudPlatform__netd__308 | GoogleCloudPlatform/netd | 308 | defect | 9d5bec60fbfbceb89c5dc4ef1395a28a6b42c163 | 14752fe376c85a68bddf1e4fbbfe178eb6ebbb83 | Handle multiple default routes correctly | /assign @sypakine
/assign @lutierigb
/assign @yvetteli0314 | diff --git a/scripts/build-toybox.sh b/scripts/build-toybox.sh
index cb5154520..d011c6927 100755
--- a/scripts/build-toybox.sh
+++ b/scripts/build-toybox.sh
@@ -5,7 +5,7 @@ set -exu
# Toybox route is "pending" but the TODOs are in add/del;
# we're using it for display only so we should be good.
# Toybox sh has more ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The interface-name column extraction should use awk (`awk 'NF{ print $NF }'`) as the column getter instead of the chained grep.", "category": "style", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Given that SYS_CLASS_NET exists because tests cannot write... | null |
GoogleCloudPlatform__netd__455 | GoogleCloudPlatform/netd | 455 | defect | 84e61e199a1918229600561a8243bbdd04798df7 | a332dcacdca0f84755f1f3789f87f82defe43f41 | Prevent InitPolicyRouting from resetting configs | Previously, calling `InitPolicyRouting` would reset the global `PolicyRoutingConfigSet.Configs` slice. This could lead to the loss of configurations if the initialization order was not strictly controlled or if the function were ever called multiple times.
This commit corrects the behavior by refactoring out the glo... | diff --git a/cmd/netd/main.go b/cmd/netd/main.go
index 4b25d59c3..8364f76e8 100644
--- a/cmd/netd/main.go
+++ b/cmd/netd/main.go
@@ -30,6 +30,8 @@ import (
"github.com/GoogleCloudPlatform/netd/pkg/controllers/netconf"
"github.com/GoogleCloudPlatform/netd/pkg/metrics"
"github.com/GoogleCloudPlatform/netd/pkg/optio... | 4 | 3 | 0 | [{"id": "G0", "claim": "The Set literal should spell its field names out explicitly instead of relying on positional fields.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The empty Configs field should use a nil slice rather than []Config{}.", ... | null |
GoogleCloudPlatform__nodejs-docs-samples__2576 | GoogleCloudPlatform/nodejs-docs-samples | 2,576 | defect | a8de73bc920620429d837eabc8c0fd8e72e905af | 45b937db3f7fa7324feb7d05294d3e71c6a37845 | feat(cloudsql/mysql): update to V2 sample | - Move TCP, TCP_SSL and UNIX socket examples into separate files
- Add support for Cloud Functions
- Create index.js file use "/votes" as endpoint
- Update server.js and pug template
- Add new region tags while leaving old tags in place
- Update DB_HOST env. variable to be INSTANCE_HOST
- Update DB_SOCKET_PAT... | diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 776285d7178..8854dca8ddd 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -111,6 +111,7 @@ gcloud auth activate-service-account --key-file "$GOOGLE_APPLICATION_CREDENTIALS
gcloud config set project $GOOGLE_CLOUD_PROJECT
export DB_SOCKET_PATH=$KOKORO_GFIL... | 5 | 4 | 1 | [{"id": "G0", "claim": "If the samples are pinned in the public docs and the sample browser is updated after merging, the old region tags can be removed from the samples as part of this PR.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The connec... | null |
GoogleCloudPlatform__nodejs-docs-samples__3172 | GoogleCloudPlatform/nodejs-docs-samples | 3,172 | defect | 72cee887a5f98ced2ca6af93267ea3b97f652620 | bceec0d8a77b2d26854be219661ff899db74c208 | DLP: Added sample for inspect string without overlap | Added sample for inspect string without overlap
Added unit test cases for the same
Reference:- https://cloud.google.com/dlp/docs/creating-custom-infotypes-rules#omit_matches_on_domain_names_that_are_part_of_email_addresses_in_a_domain_name_detector_scan
## Description
Note: Before submitting a pull request, p... | diff --git a/dlp/inspectStringWithoutOverlap.js b/dlp/inspectStringWithoutOverlap.js
new file mode 100644
index 00000000000..f8d58f6bf19
--- /dev/null
+++ b/dlp/inspectStringWithoutOverlap.js
@@ -0,0 +1,115 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add asserts to confirm that example.com is included in the output but example.org is not.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3178 | GoogleCloudPlatform/nodejs-docs-samples | 3,178 | defect | 80ba2023790f1cb90739546cee8b2f9e504bf878 | 587aa4daf82932b118665e8ab19dadf7ec51ce5e | DLP: Added sample for deidentify table using conditional logic | Added sample for deidentify table using conditional logic
Added unit test cases for same
## Description
Reference:- https://cloud.google.com/dlp/docs/examples-deid-tables.md#transform_findings_only_when_specific_conditions_are_met_on_another_field
Note: Before submitting a pull request, please open an issue f... | diff --git a/dlp/deIdentifyTableConditionInfoTypes.js b/dlp/deIdentifyTableConditionInfoTypes.js
new file mode 100644
index 00000000000..e1f16707870
--- /dev/null
+++ b/dlp/deIdentifyTableConditionInfoTypes.js
@@ -0,0 +1,141 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "L... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comments in the sample should explain the intent, like the Java sample's comments do, instead of adding little value; please apply this here and in the other samples.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3196 | GoogleCloudPlatform/nodejs-docs-samples | 3,196 | defect | e50279d7171556355e7a01cf8169ebb18e8f6aba | 64864e3d5fb8b4f491154b9fd2f18d37d5338b14 | docs(assets): Add sample code for org policy analyzer | ## Description
Add sample code for org policy analyzer
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googlecloudplatform.github.io/samples-style-guide/)
- [x] **Tests** ... | diff --git a/asset/snippets/analyzeOrgPolicies.js b/asset/snippets/analyzeOrgPolicies.js
new file mode 100644
index 00000000000..7a7e46b6157
--- /dev/null
+++ b/asset/snippets/analyzeOrgPolicies.js
@@ -0,0 +1,49 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+//... | 3 | 3 | 1 | [{"id": "G0", "claim": "Start the region tag one line lower (drop the blank line right after it) so the generated docs snippet does not begin with a blank line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a point of contact for the test org... | null |
GoogleCloudPlatform__nodejs-docs-samples__3203 | GoogleCloudPlatform/nodejs-docs-samples | 3,203 | defect | 9003420109cc393ad37f61c835f8512ef19ae53b | 0bb24f946f6a1bcc8b9082f3c5505b1fa957f9d1 | DLP: Added sample for inspect string with substring exclusions | Added sample for inspect string with substring exclusions
Added unit test cases for same
## Description
Reference:- https://cloud.google.com/dlp/docs/creating-custom-infotypes-rules#dlp_inspect_string_with_exclusion_dict_substring-java
Note: Before submitting a pull request, please open an issue for discussio... | diff --git a/dlp/inspectStringWithExclusionDictSubstring.js b/dlp/inspectStringWithExclusionDictSubstring.js
new file mode 100644
index 00000000000..c45e88d1c80
--- /dev/null
+++ b/dlp/inspectStringWithExclusionDictSubstring.js
@@ -0,0 +1,115 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, V... | 1 | 1 | 0 | [{"id": "G0", "claim": "For consistency with other samples, the infoType list should be made EMAIL_ADDRESS, DOMAIN_NAME, PHONE_NUMBER and PERSON_NAME.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3234 | GoogleCloudPlatform/nodejs-docs-samples | 3,234 | defect | e4cae2f735418f9a46bb9337d76a05027372113c | fae5874d34472adf56765728a093609a5e21eef0 | DLP: Added sample for de-identify table with FPE | DLP: Added sample for de-identify table with FPE
Added unit test cases for same
PS:- I have marked the test cases to skip as the required resources are not available. I have verified locally and the test cases seem to be working fine if resources are provided.
## Description
Reference:- https://cloud.google.c... | diff --git a/dlp/deIdentifyTableWithFpe.js b/dlp/deIdentifyTableWithFpe.js
new file mode 100644
index 00000000000..862176e3579
--- /dev/null
+++ b/dlp/deIdentifyTableWithFpe.js
@@ -0,0 +1,129 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use thi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new FPE tests added to dlp/system-test/deid.test.js are marked it.skip and so never run; the reviewer questions why they are skipped and requests that they not be skipped.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ta... | null |
GoogleCloudPlatform__nodejs-docs-samples__3240 | GoogleCloudPlatform/nodejs-docs-samples | 3,240 | defect | ee52787010d8f0c5415cda0114fefe77bc7c65d8 | c43f12a97aa924039ff20dad3dcb36e06d96a6ff | DLP: Added sample for de-identify using time extract | DLP: Added sample for de-identify using time extract
Added unit test cases for the same
## Description
Reference:- https://cloud.google.com/dlp/docs/transformations-reference#time-extract
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## C... | diff --git a/dlp/deidentifyWithTimeExtraction.js b/dlp/deidentifyWithTimeExtraction.js
new file mode 100644
index 00000000000..4b31806b909
--- /dev/null
+++ b/dlp/deidentifyWithTimeExtraction.js
@@ -0,0 +1,78 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// yo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Node example should be aligned with the Java DeIdentifyWithTimeExtraction sample, which uses a table.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3246 | GoogleCloudPlatform/nodejs-docs-samples | 3,246 | defect | f3b0100668782fecd40cb3d2e7d2de1013b75e4d | e19c285bac419565ee8a0a2b5d35b5238fd738fb | feat: chat prompt sample for Vertex LLMs | ## Description
Fixes b281562687
Added a chat prompt sample for Vertex LLMs.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [ ] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-d... | diff --git a/ai-platform/snippets/predict-chat-prompt.js b/ai-platform/snippets/predict-chat-prompt.js
new file mode 100644
index 00000000000..71a045d34cf
--- /dev/null
+++ b/ai-platform/snippets/predict-chat-prompt.js
@@ -0,0 +1,105 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Versio... | 2 | 2 | 0 | [{"id": "G0", "claim": "The sample should avoid using copyrighted or trademarked strings (the Lord of the Rings / Tolkien prompt content) in its sample text.", "category": "legal", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sample should remove its CLI argument handling... | null |
GoogleCloudPlatform__nodejs-docs-samples__3288 | GoogleCloudPlatform/nodejs-docs-samples | 3,288 | defect | 24a8a8308ac5f4716501a206f279188065b237ed | c943c48036c5a19b74dcccf7d9e57b715975e064 | feat(run): add Cloud Run + Filestore sample | ## Description
This pull request will add a nodejs sample for deploying Cloud Run with a connected filestore.
- [Corresponding java sample](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/run/filesystem)
- [Corresponding python sample](https://github.com/GoogleCloudPlatform/python-docs-sampl... | diff --git a/run/filesystem/Dockerfile b/run/filesystem/Dockerfile
new file mode 100644
index 00000000000..3a6e619e1d9
--- /dev/null
+++ b/run/filesystem/Dockerfile
@@ -0,0 +1,50 @@
+# Copyright 2023 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in ... | 21 | 20 | 7 | [{"id": "G0", "claim": "CodeQL flags uncontrolled user-provided data (req.originalUrl) used in a path expression by the file-reading route's fs.readFile call.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Filenames and request values are interpolated ... | null |
GoogleCloudPlatform__nodejs-docs-samples__3325 | GoogleCloudPlatform/nodejs-docs-samples | 3,325 | defect | 1740047420b4c20b642d8dcb8270cde776f4a8de | 5ad70710f9c6fe3b85116799f2271ce32e4d6815 | chore(cleanup): retire media translate samples | ### Description
Adds README with the deprecation message.
Removes tests.
Fixes #3323
| diff --git a/mediatranslation/README.md b/mediatranslation/README.md
new file mode 100644
index 00000000000..90ec9021f7e
--- /dev/null
+++ b/mediatranslation/README.md
@@ -0,0 +1,6 @@
+# Media Translation API deprication
+
+Media Translation API is [deprecated] and will no longer be available on Google Cloud after July... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use `it.skip` instead of `xit` to mark the skipped tests in mediatranslation/test/quickstart.test.js and mediatranslation/test/translate_from_file.test.js.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the tests ar... | null |
GoogleCloudPlatform__nodejs-docs-samples__3361 | GoogleCloudPlatform/nodejs-docs-samples | 3,361 | defect | e2bbb0c299dc92b9a73c5c836e74991221b7fe72 | 93368d48d93f7978bf649be552939c4a0f51bd2b | DLP: Added sample for create and get job | ## Description
References:- https://cloud.google.com/dlp/docs/samples/dlp-create-job
https://cloud.google.com/dlp/docs/samples/dlp-get-job
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] I have followed guidelines from [CON... | diff --git a/dlp/createJob.js b/dlp/createJob.js
new file mode 100644
index 00000000000..c6144f80dee
--- /dev/null
+++ b/dlp/createJob.js
@@ -0,0 +1,77 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the Lic... | 1 | 1 | 1 | [{"id": "G0", "claim": "The createJob sample should use the same infoTypes as the existing samples (as in the Java JobsCreate sample) instead of PERSON_NAME and STREET_ADDRESS.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3365 | GoogleCloudPlatform/nodejs-docs-samples | 3,365 | defect | d068b4e3dc8217327db5c3a1dc6de59b4462bac0 | 0cb3a7b02d69f316ecbe9c89b3d0c11dd4c2fd24 | DLP: Added samples for inspect table and string using augmented infotype | Added unit test cases for same
## Description
References:- https://cloud.google.com/dlp/docs/inspecting-structured-text.md#dlp-inspect-table-java
https://cloud.google.com/dlp/docs/creating-custom-infotypes-dictionary#augment_a_built-in_infotype_detector
Note: Before submitting a pull request, please open an i... | diff --git a/dlp/inspectStringAugmentInfoType.js b/dlp/inspectStringAugmentInfoType.js
new file mode 100644
index 00000000000..c2cf17fe140
--- /dev/null
+++ b/dlp/inspectStringAugmentInfoType.js
@@ -0,0 +1,98 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// yo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Align the sample's comments with the corresponding Java snippet, since this code is the crux of the sample.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3423 | GoogleCloudPlatform/nodejs-docs-samples | 3,423 | defect | 8deb26fd2b52f7357e3649108a8241ceced19dfd | 2441b06a19099b1ae080f533d0b9efe37b164ac4 | feat: add sample code for create and delete document schema | ## Description
Note: due to workflow auth issues, this PR is non-forked unlike last PR for delete document schema.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googleclo... | diff --git a/document-warehouse/delete-document-schema.js b/document-warehouse/delete-document-schema.js
new file mode 100644
index 00000000000..1cbaaf7bf7d
--- /dev/null
+++ b/document-warehouse/delete-document-schema.js
@@ -0,0 +1,59 @@
+/** Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version... | 2 | 2 | 2 | [{"id": "G0", "claim": "If the tests use a real project, the test should leverage the client to infer the project id via getProjectId() instead of the hardcoded 'YOUR_PROJECT_ID' placeholder.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The delete... | null |
GoogleCloudPlatform__nodejs-docs-samples__3523 | GoogleCloudPlatform/nodejs-docs-samples | 3,523 | defect | c014cac7d378083fe289f6091c77526bf630e868 | 2983c219c857634e5f174ed3990aeb6087939743 | feat: get document code sample | ## Description
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](ht... | diff --git a/document-warehouse/get-document.js b/document-warehouse/get-document.js
new file mode 100644
index 00000000000..e0f415815ba
--- /dev/null
+++ b/document-warehouse/get-document.js
@@ -0,0 +1,69 @@
+/** Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The request fields should be loaded at object creation, and built-in client classes (e.g. serviceClient.projectLocationDocumentPath) should be used instead of hand-building the document path string.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3617 | GoogleCloudPlatform/nodejs-docs-samples | 3,617 | defect | 9f3c79ddac429da29afc687281500be3254db94b | e30bbe63915712519d0cffc698fbcb1b6f5fe042 | fix: Updating the node environment to Node.js 20 | ## Description
updates some region tags, updates node environment
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [X] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/b... | diff --git a/.github/workflows/appengine-twilio.yaml b/.github/workflows/appengine-twilio.yaml
deleted file mode 100644
index 9019416722c..00000000000
--- a/.github/workflows/appengine-twilio.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 2023 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "Lice... | 2 | 1 | 1 | [{"id": "G0", "claim": "Renaming the `app` region tag to `gae_app` in build/server.js affects a region tag that is still active, so the snippet-bot check flags the change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The copyright header year of t... | null |
GoogleCloudPlatform__nodejs-docs-samples__3717 | GoogleCloudPlatform/nodejs-docs-samples | 3,717 | defect | 8ded384cc6bb7b59ecfdf3bd6ca2f3c7b865efff | df46517aecd485729b1b8d87292ca6158fd6b56d | feat: Adding API v2 IAM+Notifications samples | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/.github/workflows/security-center-snippets-v2.yaml b/.github/workflows/security-center-snippets-v2.yaml
new file mode 100644
index 00000000000..fe716cb4160
--- /dev/null
+++ b/.github/workflows/security-center-snippets-v2.yaml
@@ -0,0 +1,62 @@
+# Copyright 2023 Google LLC
+#
+# Licensed under the Apache Li... | 2 | 2 | 2 | [{"id": "G0", "claim": "Replace the regexes built from environment variables/data in the v2 notifications test assertions with plain substring checks such as assert(output.includes(data.projectId)) to clear the security checks.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
GoogleCloudPlatform__nodejs-docs-samples__3734 | GoogleCloudPlatform/nodejs-docs-samples | 3,734 | defect | 92afe199b00ff6939f906bba63588ef2f33d5900 | 3c7bf2f88a0ce2dd17fa91ec7f89225965cf0478 | fix: Validate embedding output dimensionality. | ## Description
Fixes: b/349273965
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [X] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [S... | diff --git a/ai-platform/snippets/predict-text-embeddings-preview.js b/ai-platform/snippets/predict-text-embeddings-preview.js
index d4c37f390cc..61312f9a2bb 100644
--- a/ai-platform/snippets/predict-text-embeddings-preview.js
+++ b/ai-platform/snippets/predict-text-embeddings-preview.js
@@ -42,13 +42,13 @@ async funct... | 2 | 2 | 0 | [{"id": "G0", "claim": "The dense chained mapping of predictions to embedding values in predict-text-embeddings.js should be split into shorter statements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same dense chained mapping should be s... | null |
GoogleCloudPlatform__nodejs-docs-samples__3778 | GoogleCloudPlatform/nodejs-docs-samples | 3,778 | defect | d27e2bf8ae9a87a0f211a6ce40d631016c298cf6 | de4a54f3d4478d34c28b7cbb83dd321a5dcef21c | feat: batch_create_persistent_job | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/batch/create/create_persistent_disk_job.js b/batch/create/create_persistent_disk_job.js
new file mode 100644
index 00000000000..a9b4c4eda57
--- /dev/null
+++ b/batch/create/create_persistent_disk_job.js
@@ -0,0 +1,156 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the process.on('unhandledRejection') handler and instead attach .catch() to the main() call so rejections are handled explicitly, logging the full error and setting the exit code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3779 | GoogleCloudPlatform/nodejs-docs-samples | 3,779 | defect | d27e2bf8ae9a87a0f211a6ce40d631016c298cf6 | f3725a24109bd7f51636ac9f7b8f608e31cec5fe | feat: batch create custom service account | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/batch/create/create_batch_notifications.js b/batch/create/create_batch_notifications.js
index 477da039ddf..35f92027ade 100644
--- a/batch/create/create_batch_notifications.js
+++ b/batch/create/create_batch_notifications.js
@@ -16,28 +16,38 @@
'use strict';
-async function main() {
- // [START batch_... | 2 | 2 | 1 | [{"id": "G0", "claim": "In batch/create/create_batch_notifications.js, remove the global process.on('unhandledRejection') handler (it adds no value and an unhandled rejection already terminates the process with a stack trace) and stop discarding the promise from main() by replacing the bare main() call with main().catc... | null |
GoogleCloudPlatform__nodejs-docs-samples__3785 | GoogleCloudPlatform/nodejs-docs-samples | 3,785 | defect | 3cfcd041951dbbf651a6245f06f7819aba7c1561 | 5d0a040ce8f6db467a5765cd6fddbc4b5d52e973 | feat: batch_labels_allocation | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/batch/create/create_batch_labels_allocation.js b/batch/create/create_batch_labels_allocation.js
new file mode 100644
index 00000000000..ed1edfa29b9
--- /dev/null
+++ b/batch/create/create_batch_labels_allocation.js
@@ -0,0 +1,125 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache Licens... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new sample files carry copied older copyright headers; new samples should have a 2024 header year.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3792 | GoogleCloudPlatform/nodejs-docs-samples | 3,792 | defect | 7c4dc845916a24f6b83dbc762d2ec007ca8dd858 | 2af3748b1fe58d6ee757bc85143815430e1a46da | feat: batch_labels_runnable | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/batch/create/create_batch_custom_events.js b/batch/create/create_batch_custom_events.js
index 7b955979e4a..422c710e56a 100644
--- a/batch/create/create_batch_custom_events.js
+++ b/batch/create/create_batch_custom_events.js
@@ -28,6 +28,7 @@ async function main() {
/**
* TODO(developer): Update thes... | 2 | 2 | 1 | [{"id": "G0", "claim": "The invocation of callCreateBatchLabelsRunnable() is missing `await`, and the same missing-await pattern should be fixed in all the other files touched by the pull request as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
GoogleCloudPlatform__nodejs-docs-samples__3793 | GoogleCloudPlatform/nodejs-docs-samples | 3,793 | defect | 7c4dc845916a24f6b83dbc762d2ec007ca8dd858 | 7073c0c05f54a4f05e230a05571b68238bec90d2 | feat: create_batch_custom_network | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/batch/create/create_batch_custom_network.js b/batch/create/create_batch_custom_network.js
new file mode 100644
index 00000000000..6e3f2483bc2
--- /dev/null
+++ b/batch/create/create_batch_custom_network.js
@@ -0,0 +1,134 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Versio... | 5 | 5 | 2 | [{"id": "G0", "claim": "The sample calls `callCreateBatchCustomNetwork()` without `await`, so `main()` does not wait for the job creation and errors from it are not surfaced through `main().catch`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
GoogleCloudPlatform__nodejs-docs-samples__3794 | GoogleCloudPlatform/nodejs-docs-samples | 3,794 | defect | f76c2fbe1002b3c3ea5edd92f9965d9481705253 | e885f5970bf4743a363f9ec22c9867913bba7230 | chore(ai-platform): add preview 0815 | ## Description
Fixes: http://b/349444341
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md)... | diff --git a/ai-platform/snippets/predict-text-embeddings-preview.js b/ai-platform/snippets/predict-text-embeddings-preview.js
index e20413d955b..60c98447311 100644
--- a/ai-platform/snippets/predict-text-embeddings-preview.js
+++ b/ai-platform/snippets/predict-text-embeddings-preview.js
@@ -17,11 +17,14 @@
'use stric... | 3 | 3 | 0 | [{"id": "G0", "claim": "Don't parameterize the sample's main function and don't pass command-line arguments to it in the test; instead set local variables with values directly in the sample and mark them with a // TODO(developer) comment, as the referenced sample does.", "category": "design", "verdict": "supported", "p... | null |
GoogleCloudPlatform__nodejs-docs-samples__3847 | GoogleCloudPlatform/nodejs-docs-samples | 3,847 | defect | 2a47751e99ee9b9b835fe6820a24984dfcdfaf08 | c54bfe6da83e367125e4fa0c2c555867b50a1843 | feat(security-center): Adding SCC's BigQueryExport resource | ## Description
Fixes #349577531
Reference to https://b.corp.google.com/issues/349577531
This PR adds v2 API Big Query Node js client samples to Create, List, Get, Delete & Update.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
... | diff --git a/.github/workflows/security-center-snippets.yaml b/.github/workflows/security-center-snippets.yaml
index b07fb3e2a00..9f8fa4c7458 100644
--- a/.github/workflows/security-center-snippets.yaml
+++ b/.github/workflows/security-center-snippets.yaml
@@ -19,6 +19,7 @@ on:
- main
paths:
- 'security-... | 14 | 14 | 8 | [{"id": "G0", "claim": "The pull request combines changes for samples across products (title says bigquery, referenced bug and code say security center) and should be cleaned up or deleted and resent as a new PR before code review proceeds.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int... | null |
GoogleCloudPlatform__nodejs-docs-samples__3869 | GoogleCloudPlatform/nodejs-docs-samples | 3,869 | defect | 76c9ca79a4a3c9d17040fd3a8b1e2bd26ce0e9d8 | e5cc8c6c78006df24361fec43fa1568215a895fd | feat: gemma2 models samples | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/generative-ai/snippets/gemma2PredictGpu.js b/generative-ai/snippets/gemma2PredictGpu.js
new file mode 100644
index 00000000000..47fce36788e
--- /dev/null
+++ b/generative-ai/snippets/gemma2PredictGpu.js
@@ -0,0 +1,75 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (t... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add one more check to the tests to make sure the request format sent to the prediction service is correct for both GPUs and TPUs, following the example in python-docs-samples.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3913 | GoogleCloudPlatform/nodejs-docs-samples | 3,913 | defect | 04a1f0df4a1fd53a1b1a1acc829029d37cb99a92 | 111148afea4d65d203d539dfe96effe782bba941 | feat: generativeaionvertexai_embedding_batch | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/ai-platform/snippets/create-batch-embedding.js b/ai-platform/snippets/create-batch-embedding.js
new file mode 100644
index 00000000000..258e7f7f0f8
--- /dev/null
+++ b/ai-platform/snippets/create-batch-embedding.js
@@ -0,0 +1,105 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache Licens... | 6 | 2 | 0 | [{"id": "G0", "claim": "The TODO comment should give more specific instructions or examples of how the variables should be updated, including valid formats for inputUri and outputUri and whether jobName can contain special characters.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "intr... | null |
GoogleCloudPlatform__nodejs-docs-samples__3916 | GoogleCloudPlatform/nodejs-docs-samples | 3,916 | defect | f9b1fd4fbb97dd53ced22d6c80cefc88a4524532 | 02019975269fdbdc141da293bbd00ef664ebbe6e | feat(security-center): Add Resource v2 API Assets Security Marks Samples | ## Description
This PR adds v2 API Assets Security Marks Node js client samples to Add Security Marks, Delete Security Marks, Add Delete Security Marks.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [ ] I have followed guide... | diff --git a/security-center/snippets/system-test/v1/notifications.test.js b/security-center/snippets/system-test/v1/notifications.test.js
index d20e6d0371a..ce264f351fe 100644
--- a/security-center/snippets/system-test/v1/notifications.test.js
+++ b/security-center/snippets/system-test/v1/notifications.test.js
@@ -36,... | 10 | 7 | 1 | [{"id": "G0", "claim": "Picking a random asset in the test's before hook could make the test flaky.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's child-process calls should use execSync() rather than the custom exec() wrapper.", "category": ... | null |
GoogleCloudPlatform__nodejs-docs-samples__3968 | GoogleCloudPlatform/nodejs-docs-samples | 3,968 | defect | f44cde8d1a5462f71d044b35854ba0f2d2b87465 | c24f089a70b3f84eaf482fba59464a5ac9c2245a | ci: enable new CI for vision package | ## Description
Batch CI related config change. Adding ci-setup.json to support running these tests under the new CI runner. No changes to tests themselves.
| diff --git a/.github/config/nodejs-dev.jsonc b/.github/config/nodejs-dev.jsonc
index 18374f30e94..737d3521764 100644
--- a/.github/config/nodejs-dev.jsonc
+++ b/.github/config/nodejs-dev.jsonc
@@ -198,6 +198,7 @@
"storage-control",
"texttospeech",
"tpu",
+ "vision",
"workflows/invoke-private-endp... | 2 | 2 | 0 | [{"id": "G0", "claim": "The empty vision/ci-setup.json file needs clarification of its intended purpose, and documentation (e.g. a brief descriptive comment) should be added within it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Empty config fi... | null |
GoogleCloudPlatform__nodejs-docs-samples__3986 | GoogleCloudPlatform/nodejs-docs-samples | 3,986 | defect | 5569b68ad8a7b01c0536c368324e783d64daddbb | 422190a20430f3344c66426be3432c9b05fce317 | ci(appengine): add metadata/standard to testing isolation | Migrates appengine/metadata/standard to testing isolation
- [ ] Please **merge** this PR for me once it is approved
| diff --git a/.github/config/nodejs-prod.jsonc b/.github/config/nodejs-prod.jsonc
index 5f908446a0c..85d160e0524 100644
--- a/.github/config/nodejs-prod.jsonc
+++ b/.github/config/nodejs-prod.jsonc
@@ -42,7 +42,7 @@
".kokoro/",
".prettierignore",
".prettierrc.js",
- "cloud-samples-tools", // checked ou... | 1 | 1 | 0 | [{"id": "G0", "claim": "Node 20 is already the default, so this ci-setup.json file can be removed altogether.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__nodejs-docs-samples__3987 | GoogleCloudPlatform/nodejs-docs-samples | 3,987 | defect | e5427244ee5315221ffb4960bcca31cc8c974f75 | 757312b64a3f77d38e620bdca5055127ae90d8aa | ci(imagemagick): add test isolation for functions imagemagick | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/.github/config/nodejs-dev.jsonc b/.github/config/nodejs-dev.jsonc
index b876e289164..27fc40380ad 100644
--- a/.github/config/nodejs-dev.jsonc
+++ b/.github/config/nodejs-dev.jsonc
@@ -146,6 +146,7 @@
"functions/http/httpContent",
"functions/http/httpMethods",
"functions/http/parseXML",
+ ... | 3 | 2 | 2 | [{"id": "G0", "claim": "The pull request's CI is failing with `Error: Promise rejected with no or falsy reason`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Move the module-level `execSync` imagemagick install into an additional `before` hook and... | null |
GoogleCloudPlatform__nodejs-docs-samples__4002 | GoogleCloudPlatform/nodejs-docs-samples | 4,002 | defect | 9a866b818b16cba86fab2cfd77ce9de30fdd895b | 4007dbaadb0505b472591a719efd310a95150208 | ci(markdown): migrate renderer, editor to new CI | ## Description
Migrates the two Markdown Preview services to the new CI
Note: one unit test is marked Skipped and requires NodeJS/sinon expertise to correctly setup mocking etc (example.com does not respond to POST commands)
- [x] Please **merge** this PR for me once it is approved
| diff --git a/.github/config/nodejs-prod.jsonc b/.github/config/nodejs-prod.jsonc
index f391f9468ed..39b4542144b 100644
--- a/.github/config/nodejs-prod.jsonc
+++ b/.github/config/nodejs-prod.jsonc
@@ -99,7 +99,6 @@
"iam/deny", // PERMISSION_DENIED: Permission iam.googleapis.com/denypolicies.create denied on resour... | 4 | 2 | 0 | [{"id": "G0", "claim": "The removal of the --platform/_PLATFORM flags from the gcloud run commands in the e2e test configs should be verified not to affect deployment or functionality of the services, since the platform may have been implicitly defaulted.", "category": "correctness", "verdict": "uncertain", "priority":... | null |
GoogleCloudPlatform__nodejs-docs-samples__4004 | GoogleCloudPlatform/nodejs-docs-samples | 4,004 | defect | 9a866b818b16cba86fab2cfd77ce9de30fdd895b | aa201db5f9d782ce7018776545fcd8086cbdcf0f | ci(metadata, analytics): migrate to new CI | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/.github/config/nodejs-prod.jsonc b/.github/config/nodejs-prod.jsonc
index f391f9468ed..e6a252bef66 100644
--- a/.github/config/nodejs-prod.jsonc
+++ b/.github/config/nodejs-prod.jsonc
@@ -77,7 +77,6 @@
// TODO: fix these
"ai-platform/snippets", // PERMISSION_DENIED: Permission denied: Consumer 'p... | 1 | 1 | 0 | [{"id": "G0", "claim": "The exclusions for appengine/analytics and appengine/metadata/flexible should be added to the nodejs-dev config too, so the -prod and -dev config files stay in sync with tests running in only one of them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
GoogleCloudPlatform__nodejs-docs-samples__4023 | GoogleCloudPlatform/nodejs-docs-samples | 4,023 | defect | 4401f9047d46b1d90648279d551e472f3c22441e | f2b62df44d4cdd54c832964316df1ce92cd850b7 | feat(bigquery): add samples for control access 1/3 | ## Description
Add the following NodeJS samples:
- [https://cloud.google.com/bigquery/docs/control-access-to-resources-iam#grant_access_to_a_table_or_view](https://cloud.google.com/bigquery/docs/control-access-to-resources-iam#grant_access_to_a_table_or_view)
- [https://cloud.google.com/bigquery/docs/control-acc... | diff --git a/bigquery/cloud-client/grantAccessToDataset.js b/bigquery/cloud-client/grantAccessToDataset.js
new file mode 100644
index 00000000000..5b493ecf23e
--- /dev/null
+++ b/bigquery/cloud-client/grantAccessToDataset.js
@@ -0,0 +1,111 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Vers... | 24 | 14 | 1 | [{"id": "G0", "claim": "Consider adding a comment explaining why the TODO lines are commented out and what values should be used for testing purposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PRECONDITION_FAILED error message could sugge... | null |
GoogleCloudPlatform__nodejs-docs-samples__4025 | GoogleCloudPlatform/nodejs-docs-samples | 4,025 | defect | 4401f9047d46b1d90648279d551e472f3c22441e | 5013dfc6431f786dcdbf4c904ff05fa2260fea6d | feat(bigquery): Add samples for control access 3/3 | ## Description
Add the following NodeJS samples:
- [https://cloud.google.com/bigquery/docs/control-access-to-resources-iam#view_the_access_policy_of_a_dataset](https://cloud.google.com/bigquery/docs/control-access-to-resources-iam#view_the_access_policy_of_a_dataset)
- [https://cloud.google.com/bigquery/docs/con... | diff --git a/bigquery/cloud-client/test/viewDatasetAccessPolicy.test.js b/bigquery/cloud-client/test/viewDatasetAccessPolicy.test.js
new file mode 100644
index 00000000000..725e0763fd3
--- /dev/null
+++ b/bigquery/cloud-client/test/viewDatasetAccessPolicy.test.js
@@ -0,0 +1,35 @@
+// Copyright 2025 Google LLC
+//
+// L... | 3 | 3 | 2 | [{"id": "G0", "claim": "The samples' IDs are commented-out TODO placeholders, and the reviewer asks for a default value or a configuration mechanism such as environment variables, plus checks that the values are defined before the samples proceed.", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
GoogleCloudPlatform__nodejs-docs-samples__4037 | GoogleCloudPlatform/nodejs-docs-samples | 4,037 | defect | 9fea5d2ca59f64c8ce83569a1f1a106abc22fd4e | 36191fb0d070e6ced89fbd80055ea98864f6ab9d | fix: ensure all retry.sh failures fail exit 1 | ## Description
Identified in https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/3985/files#diff-86f605e760c2507e13cf901bc344431a78deb5dbd16c6e94726a76affe9a9bb1R62
Ensures all copies of `retry.sh` use the correct exit code to correctly fail when retries exceeded.
- [x] Please **merge** this PR fo... | diff --git a/run/markdown-preview/editor/test/retry.sh b/run/markdown-preview/editor/test/retry.sh
index 78385733f0c..0f36c2075a4 100755
--- a/run/markdown-preview/editor/test/retry.sh
+++ b/run/markdown-preview/editor/test/retry.sh
@@ -59,7 +59,7 @@ do
if ((attempt_num==max_attempts))
then
echo "Att... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a comment explaining why `exit 1` is used at the exhausted-retries exit in the editor and renderer retry.sh scripts, for clarity.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Linting is failing for files this pull req... | null |
GoogleCloudPlatform__nodejs-docs-samples__4051 | GoogleCloudPlatform/nodejs-docs-samples | 4,051 | defect | 1099bd7a946a788bea5db1df27bf9ab3f01048c5 | 17f2eaecd72122952fdbb8e59105b266daa7d9a0 | feat(modelarmor): Added snippets for sanitization | ## Description
Created samples for user prompt and model response sanitation using model armor APIs.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googlecloudplatform.git... | diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml
index 383983316fe..83cbed66dfb 100644
--- a/.github/blunderbuss.yml
+++ b/.github/blunderbuss.yml
@@ -44,6 +44,10 @@ assign_issues_by:
- "api: parametermanager"
to:
- GoogleCloudPlatform/cloud-parameters-team
+- labels:
+ - "api: modelarmor"
+ to... | 8 | 4 | 2 | [{"id": "G0", "claim": "The commented-out sample variables in the snippets should use env-var defaults (e.g. process.env.PROJECT_ID || 'your-project-id') instead of requiring users to uncomment hardcoded TODO lines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
GoogleCloudPlatform__nodejs-docs-samples__4052 | GoogleCloudPlatform/nodejs-docs-samples | 4,052 | defect | 1099bd7a946a788bea5db1df27bf9ab3f01048c5 | c78e8be1754db4d98472fc11683ef48c0a71d02c | feat(modelarmor): Added snippet for quickstart | ## Description
Added quickstart code snippet for creating and using a model armor template.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googlecloudplatform.github.io/sa... | diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml
index 383983316fe..83cbed66dfb 100644
--- a/.github/blunderbuss.yml
+++ b/.github/blunderbuss.yml
@@ -44,6 +44,10 @@ assign_issues_by:
- "api: parametermanager"
to:
- GoogleCloudPlatform/cloud-parameters-team
+- labels:
+ - "api: modelarmor"
+ to... | 5 | 3 | 1 | [{"id": "G0", "claim": "Add error handling (e.g. try/catch) around the template API calls in the sample entry points so the application does not crash if an API call fails.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Address the TODO(developer) com... | null |
GoogleCloudPlatform__nodejs-docs-samples__4085 | GoogleCloudPlatform/nodejs-docs-samples | 4,085 | defect | 1eed2ebc121dd03a2d0e75a98141cc864f7f87df | 24c71f912fdc6889f00511462e8bb88b3a75d85d | fix(functions): update and fix `functions_billing_stop` sample | ## Description
Fixes b/403855924
This sample for a Cloud Run Function used in [disable-billing-with-notifications#create-cloud-run-function](https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications#create-cloud-run-function) is updated and validated to current Node 20 requirements.
As th... | diff --git a/functions/billing/stop_billing/.gcloudignore b/functions/billing/stop_billing/.gcloudignore
new file mode 100644
index 00000000000..ccc4eb240e1
--- /dev/null
+++ b/functions/billing/stop_billing/.gcloudignore
@@ -0,0 +1,16 @@
+# This file specifies files that are *not* uploaded to Google Cloud Platform
+# ... | 9 | 7 | 5 | [{"id": "G0", "claim": "The billing disable function only simulates the action; the actual billing disable code should be enabled and the simulation removed, ideally behind a configuration option to avoid unintended consequences during testing.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
GoogleCloudPlatform__nodejs-docs-samples__4096 | GoogleCloudPlatform/nodejs-docs-samples | 4,096 | defect | 8a6e11163c3018306bed76474be7eec4975d182b | 2e8961316d9d9d1cf2e233613d5b7622e0cc31e4 | feat(genai): Add image generation and code execution examples | Add image generation and code execution examples.
For Quickstart. | diff --git a/genai/image-generation/imggen-mmflash-with-txt.js b/genai/image-generation/imggen-mmflash-with-txt.js
new file mode 100644
index 00000000000..1f742a01c53
--- /dev/null
+++ b/genai/image-generation/imggen-mmflash-with-txt.js
@@ -0,0 +1,63 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache Li... | 6 | 2 | 1 | [{"id": "G0", "claim": "The image-generation sample should collect the names of the successfully generated files and return that array instead of the static string 'generate_content_streaming_image', so callers know which files were created and where.", "category": "design", "verdict": "supported", "priority": "P2", "s... | null |
GoogleCloudPlatform__nodejs-docs-samples__4104 | GoogleCloudPlatform/nodejs-docs-samples | 4,104 | defect | f22e9ce190d6a2c4246a9fcadb7d0e398b8ce3e4 | 9882da511091b402bc6009ab691b56339592b269 | feat(genai): Add samples for Model Optimizer | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/test/textgen-with-txt-routing.test.js b/genai/test/textgen-with-txt-routing.test.js
new file mode 100644
index 00000000000..28460ce3730
--- /dev/null
+++ b/genai/test/textgen-with-txt-routing.test.js
@@ -0,0 +1,28 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0... | 4 | 1 | 0 | [{"id": "G0", "claim": "The variable `generate_content_config` should use camelCase (`generateContentConfig`) to follow JavaScript naming conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The call to `ai.models.generateContent` should ... | null |
GoogleCloudPlatform__nodejs-docs-samples__4114 | GoogleCloudPlatform/nodejs-docs-samples | 4,114 | defect | 0f88fb6fd7f5453db4cbfa88c6b53ee1c3c584f4 | a99a60d45eff6076c8fed801190da9c94afc2bf5 | fix: standardize getSecret sample | ## Description
Adds consistency; try/catch;
## Checklist
- [ ] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googlecloudplatform.github.io/samples-style-guide/)
- [ ] **Tests** pass: `n... | diff --git a/secret-manager/getSecret.js b/secret-manager/getSecret.js
index 55b1acd6a44..e5049eaae24 100644
--- a/secret-manager/getSecret.js
+++ b/secret-manager/getSecret.js
@@ -14,32 +14,54 @@
'use strict';
-async function main(name = 'projects/my-project/secrets/my-secret') {
- // [START secretmanager_get_se... | 5 | 2 | 2 | [{"id": "G0", "claim": "The change from one CLI argument (`name`) to two (`projectId`, `secretId`) in the new `main` breaks the existing test at secret-manager/test/secretmanager.test.js (line ~320), which still calls the sample with a single argument and must be updated to pass projectId and secretId separately.", "ca... | null |
GoogleCloudPlatform__nodejs-docs-samples__4123 | GoogleCloudPlatform/nodejs-docs-samples | 4,123 | defect | 3cd9396c461b37e58a807263a695af25777aef17 | 147ae838448613d427579304c99741534ebce336 | chore(modelarmor): enabled floor settings tests | ## Description
Enabling floor settings as issue b/424365799 is fixed
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and [Samples Style Guide](https://googlecloudplatform.github.io/samples-style-guide/)
- ... | diff --git a/model-armor/test/modelarmor.test.js b/model-armor/test/modelarmor.test.js
index 1a176dab4f4..d1c1ead6144 100644
--- a/model-armor/test/modelarmor.test.js
+++ b/model-armor/test/modelarmor.test.js
@@ -940,9 +940,7 @@ describe('Model Armor tests', () => {
// =================== Floor Settings Tests ====... | 6 | 3 | 3 | [{"id": "G0", "claim": "The three get floor settings tests only verify that the response's name matches an expected format constructed from the input ID and do not validate the actual content of the floor settings; they should assert other properties, e.g. via an update-to-known-state, get, assert pattern.", "category"... | null |
GoogleCloudPlatform__nodejs-docs-samples__4139 | GoogleCloudPlatform/nodejs-docs-samples | 4,139 | defect | 8b72f8f8be45113112ee2fc47b959cbe959fd567 | 5fdb290493f25933bc644c858f662be919f04d8b | chore(secretmanager): Added samples for delete secret annotation | ## Description
Created samples for Global and Regional Secret Manager API
#### Samples
1. Delete Secret Annotation
2. Delete Regional Secret Annotation
## Checklist
- [X] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md)... | diff --git a/secret-manager/deleteSecretAnnotation.js b/secret-manager/deleteSecretAnnotation.js
new file mode 100644
index 00000000000..3046ea465aa
--- /dev/null
+++ b/secret-manager/deleteSecretAnnotation.js
@@ -0,0 +1,60 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "Li... | 1 | 1 | 1 | [{"id": "G0", "claim": "Both new samples will crash with a TypeError when deleting an annotation from a secret that has no annotations, because oldSecret.annotations is undefined; add a check that oldSecret.annotations exists before deleting from it.", "category": "correctness", "verdict": "supported", "priority": "P0"... | null |
GoogleCloudPlatform__nodejs-docs-samples__4146 | GoogleCloudPlatform/nodejs-docs-samples | 4,146 | defect | 165b528c18b601dd396f7ff1152a1e687fb75e26 | d58b58897a6e110ea89ab01f05ce58422b01fec4 | feat(genai): bumping version and fixing tests | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/package.json b/genai/package.json
index 1786d292d9e..1f23438fc35 100644
--- a/genai/package.json
+++ b/genai/package.json
@@ -13,7 +13,7 @@
"test": "c8 mocha -p -j 2 --timeout 2400000 test/*.test.js test/**/*.test.js"
},
"dependencies": {
- "@google/genai": "^0.13.0",
+ "@google/gena... | 2 | 1 | 0 | [{"id": "G0", "claim": "Define the hardcoded model name in genai/text-generation/textgen-with-txt-img.js as a constant to improve maintainability and make future updates easier.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Define the hardcoded... | null |
GoogleCloudPlatform__nodejs-docs-samples__4147 | GoogleCloudPlatform/nodejs-docs-samples | 4,147 | defect | 165b528c18b601dd396f7ff1152a1e687fb75e26 | a2fccb5e08461ba5d1e1dc3b668567a8993caf88 | feat(genai): Adding content cache samples | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/content-cache/content-cache-create-with-txt-gcs-pdf.js b/genai/content-cache/content-cache-create-with-txt-gcs-pdf.js
new file mode 100644
index 00000000000..f6718ca6376
--- /dev/null
+++ b/genai/content-cache/content-cache-create-with-txt-gcs-pdf.js
@@ -0,0 +1,82 @@
+// Copyright 2025 Google LLC
+//... | 4 | 2 | 0 | [{"id": "G0", "claim": "The luxon dependency should be used consistently throughout the project wherever date/time manipulations are needed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable name \"ai\" is not descriptive and should be... | null |
GoogleCloudPlatform__nodejs-docs-samples__4148 | GoogleCloudPlatform/nodejs-docs-samples | 4,148 | defect | 165b528c18b601dd396f7ff1152a1e687fb75e26 | 5dd5c7764b58113446dce853641c91f206cf33db | feat(genai): controlled 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] **Tests** pass: `npm test` (see [Testing](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md#run-the-te... | diff --git a/genai/controlled-generation/ctrlgen-with-class-schema.js b/genai/controlled-generation/ctrlgen-with-class-schema.js
new file mode 100644
index 00000000000..a4a6609f9b4
--- /dev/null
+++ b/genai/controlled-generation/ctrlgen-with-class-schema.js
@@ -0,0 +1,60 @@
+// Copyright 2025 Google LLC
+//
+// License... | 11 | 8 | 0 | [{"id": "G0", "claim": "The 'Wind Speed' property is marked required in the nullable-schema response schema even though the prompt does not contain wind speed information for every day; remove it from the required array.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id... | null |
GoogleCloudPlatform__nodejs-docs-samples__4175 | GoogleCloudPlatform/nodejs-docs-samples | 4,175 | defect | 40758cc7011760a9448cd76b2f2aad3a57c0ab7b | 1b76cca94b8373c2547e7dcab21eb9cdaec27df9 | feat(genai): Samples/thinking | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/test/thinking-budget-with-txt.test.js b/genai/test/thinking-budget-with-txt.test.js
new file mode 100644
index 00000000000..05818e9d903
--- /dev/null
+++ b/genai/test/thinking-budget-with-txt.test.js
@@ -0,0 +1,29 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0... | 4 | 3 | 1 | [{"id": "G0", "claim": "Accessing response.candidates[0] directly is unsafe because the candidates array could be empty or undefined and cause a runtime error; the loop should use optional chaining with a fallback to an empty array.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introd... | null |
GoogleCloudPlatform__nodejs-docs-samples__4179 | GoogleCloudPlatform/nodejs-docs-samples | 4,179 | defect | 7b40ebe91e8ab6d1d52fb8455d6963d452212391 | b8809ccc1d586592522f6a8305821521df20d86b | feat(genai): Sample/tuning | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/package.json b/genai/package.json
index 1786d292d9e..5d39963af6e 100644
--- a/genai/package.json
+++ b/genai/package.json
@@ -22,6 +22,7 @@
"chai": "^4.5.0",
"mocha": "^10.0.0",
"sinon": "^18.0.0",
- "uuid": "^10.0.0"
+ "uuid": "^10.0.0",
+ "proxyquire": "^2.1.3"
}
}
diff ... | 7 | 2 | 1 | [{"id": "G0", "claim": "The tuning-job-create test does not exercise the polling loop: mockTuningJob lacks a state property so the while loop is skipped, MockTunings.get is empty and would resolve to undefined if entered, and this.timeout(1000000) is excessive; it should simulate state transitions with fake timers.", "... | null |
GoogleCloudPlatform__nodejs-docs-samples__4197 | GoogleCloudPlatform/nodejs-docs-samples | 4,197 | defect | 62dbb27fe4d80b6096b3e0813365a4641096b0d7 | db91b461c623e42cd1aba8f4018e7e0af20982c6 | feat(genai): Adding videogen samples | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/test/videogen-with-img.test.js b/genai/test/videogen-with-img.test.js
new file mode 100644
index 00000000000..9c8a65da3d1
--- /dev/null
+++ b/genai/test/videogen-with-img.test.js
@@ -0,0 +1,59 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+//... | 12 | 5 | 0 | [{"id": "G0", "claim": "client.operations.get() is called with the whole operation object ({operation: operation}) instead of the operation name ({name: operation.name}), so the polling loop likely fails to fetch the updated operation status.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope... | null |
GoogleCloudPlatform__nodejs-docs-samples__4200 | GoogleCloudPlatform/nodejs-docs-samples | 4,200 | defect | 62dbb27fe4d80b6096b3e0813365a4641096b0d7 | a169efc5c9a6c94994687ef506bbd2c3c7e7e4dd | feat(genai): Adding count token samples | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/genai/count-tokens/counttoken-localtokenizer-compute-with-txt.js b/genai/count-tokens/counttoken-localtokenizer-compute-with-txt.js
new file mode 100644
index 00000000000..88a27854865
--- /dev/null
+++ b/genai/count-tokens/counttoken-localtokenizer-compute-with-txt.js
@@ -0,0 +1,55 @@
+// Copyright 2025 Go... | 6 | 2 | 0 | [{"id": "G0", "claim": "The new sample functions and their exports and test call sites should be renamed to camelCase (countTokenLocalTokenizerCompute / countTokenLocalTokenizer) for naming consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
GoogleCloudPlatform__nodejs-docs-samples__4264 | GoogleCloudPlatform/nodejs-docs-samples | 4,264 | defect | 3b66abecc2ff76a16cc0737ba6dd5342f6bb95c7 | d79165fe61b1f9d415a6f2402e1ee3558c47229f | feat(storage): migrate quickstart sample and tests | ## Description
Fixes Internal: b/495528160
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.m... | diff --git a/storage/package.json b/storage/package.json
new file mode 100644
index 00000000000..71acc18ab54
--- /dev/null
+++ b/storage/package.json
@@ -0,0 +1,30 @@
+{
+ "name": "@google-cloud/storage-samples",
+ "description": "Samples for the Cloud Storage Client Library for Node.js.",
+ "license": "Apache-2.0",... | 3 | 2 | 0 | [{"id": "G0", "claim": "The cleanup script's bucket deletion is sequential, overly complex and calls deleteFiles twice in a row; it should be refactored to delete buckets in parallel with Promise.all and use bucket.delete({force:true}) instead of the explicit deleteFiles calls.", "category": "performance", "verdict": "... | null |
GoogleCloudPlatform__nodejs-docs-samples__4265 | GoogleCloudPlatform/nodejs-docs-samples | 4,265 | defect | 3b66abecc2ff76a16cc0737ba6dd5342f6bb95c7 | 13b9afe0e9d5961deb38f1797b8731674c60fa44 | feat(storage): migrate requester pays samples and tests | ## 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 guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.md) and... | diff --git a/storage/disableRequesterPays.js b/storage/disableRequesterPays.js
new file mode 100644
index 00000000000..7e10fe703da
--- /dev/null
+++ b/storage/disableRequesterPays.js
@@ -0,0 +1,64 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not us... | 2 | 2 | 2 | [{"id": "G0", "claim": "In storage/scripts/cleanup the promise chain uses console.error as the onRejected handler, which swallows errors so later steps for a bucket (such as deleting it) still run when an earlier step failed; the review asks to handle errors with a single .catch() so a failure stops that bucket's remai... | null |
GoogleCloudPlatform__nodejs-docs-samples__4267 | GoogleCloudPlatform/nodejs-docs-samples | 4,267 | defect | 3b66abecc2ff76a16cc0737ba6dd5342f6bb95c7 | ca3f772550e5ea38eeb25173127ac0e3432ca004 | feat(storage): migrate notifications samples and tests | ## Description
Fixes Internal: b/495528542
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
## Checklist
- [x] I have followed guidelines from [CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/CONTRIBUTING.m... | diff --git a/storage/createNotification.js b/storage/createNotification.js
new file mode 100644
index 00000000000..447e0037c5c
--- /dev/null
+++ b/storage/createNotification.js
@@ -0,0 +1,63 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this... | 3 | 2 | 2 | [{"id": "G0", "claim": "The cleanup script's promise chain continues as if the first deleteFiles() call had succeeded when it fails and contains a redundant second deleteFiles() call, so the bucket-deletion logic should be simplified to deleteFiles({force: true}) with proper error handling to make it more robust and re... | null |
GoogleCloudPlatform__ops-agent__1376 | GoogleCloudPlatform/ops-agent | 1,376 | defect | 62bbbdf634b1b92a0d482ea33411e990444ecbe3 | cfedc5fd2373b34f119792198f0ecabc32133cd4 | Fix: Network Manager race condition | ## Description
<!--- Describe your changes in detail. -->
Health check were failing incorrectly on VM restart for some distros, this was caused by the Ops Agent main service starting up before the network service.
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
b/... | diff --git a/integration_test/ops_agent_test.go b/integration_test/ops_agent_test.go
index 6bd6b81d0e..cf77596f8e 100644
--- a/integration_test/ops_agent_test.go
+++ b/integration_test/ops_agent_test.go
@@ -3915,8 +3915,9 @@ func checkExpectedHealthCheckResult(t *testing.T, output string, name string, ex
func getRecen... | 7 | 3 | 0 | [{"id": "G0", "claim": "The post-restart Network check should additionally verify that the expected error does not occur, since the PASS assertion might be picking up a PASS from the pre-restart health-check output.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
GoogleCloudPlatform__ops-agent__1610 | GoogleCloudPlatform/ops-agent | 1,610 | defect | f3a372ca8c5af0711c2bf6fb7f8cd02be8d3e7e7 | 78eebb927b9a3c57eff95f0a191ea1dafbff66a6 | Support postgres delay rename | ## Description
Update the postgres pipeline to maintain backwards compatibility as the replication delay metric is renamed & changed from integer to float.
## How has this been tested?
Untested, first pass is allowing this to run through kokoro without the featuregate enabled, then will enable the featuregate and ... | diff --git a/apps/postgresql.go b/apps/postgresql.go
index bb341338f0..30c141e044 100644
--- a/apps/postgresql.go
+++ b/apps/postgresql.go
@@ -62,6 +62,14 @@ func (r MetricsReceiverPostgresql) Pipelines(_ context.Context) ([]otel.Receiver
"username": r.Username,
"password": r.Password.Secret... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ConvertFloatToInt doc comment should say that a float-valued metric is converted to an int instead of describing it as a gauge metric converted into a sum.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__ops-agent__1663 | GoogleCloudPlatform/ops-agent | 1,663 | defect | 45de6d0d78efdd0ddd2d1f6f2e494ca802b37361 | f80933df51f7a17ef02f01bad373e7949ac291e8 | Internal: Set image projects via configs | ## Description
<!--- Describe your changes in detail. -->
This is a clean start from https://github.com/GoogleCloudPlatform/ops-agent/pull/1643
Right now we interpret image names passed in from configs to determine what project they come from, and where they are an "Image" or an "Image Family". This logic has gr... | diff --git a/integration_test/gce/gce_testing.go b/integration_test/gce/gce_testing.go
index 9d21f36ed6..cf65678047 100644
--- a/integration_test/gce/gce_testing.go
+++ b/integration_test/gce/gce_testing.go
@@ -307,39 +307,8 @@ type VM struct {
// imageProject returns the image project providing the given image fami... | 8 | 7 | 4 | [{"id": "G0", "claim": "The image-flag construction logic in attemptCreateInstance should be moved into its own function, with the reviewer asking to defer this until the other unknowns are sorted out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
GoogleCloudPlatform__ops-agent__1675 | GoogleCloudPlatform/ops-agent | 1,675 | defect | 5f457b4eabaeeae90644642405527e42ce0f9228 | bc1510e7ce8dc43648d0bcc5e6059ee4c83cda11 | Internal: Move tests into dirs | ## Description
<!--- Describe your changes in detail. -->
This is because `gotestsum` breaks in [odd ways](https://github.com/gotestyourself/gotestsum/issues/398) when we don't have test directories.
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
b/330174886
#... | diff --git a/integration_test/agent_metrics/features.yaml b/integration_test/ops_agent_test/agent_metrics/features.yaml
similarity index 100%
rename from integration_test/agent_metrics/features.yaml
rename to integration_test/ops_agent_test/agent_metrics/features.yaml
diff --git a/integration_test/agent_metrics/metadat... | 4 | 4 | 3 | [{"id": "G0", "claim": "The critical-file entry added for the relocated test should point at integration_test/third_party_apps_test/main_test.go instead of test.go.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Switching --packages to ./${TEST_SUIT... | null |
GoogleCloudPlatform__ops-agent__1684 | GoogleCloudPlatform/ops-agent | 1,684 | defect | 31ac6faccbe72d0895cead34372d1f1066a350ae | ca89e0e17a1e43e95e3c94a5c8d16c3f30759a9e | Internal: Test Machine Learning Image | ## Description
<!--- Describe your changes in detail. -->
This image is used for ML workloads.
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
[b/301084986](http://b/301084986)
## How has this been tested?
<!--- Please describe how you tested the changes besid... | diff --git a/integration_test/ops_agent_test/main_test.go b/integration_test/ops_agent_test/main_test.go
index 8df8cadee5..bf8dd67975 100644
--- a/integration_test/ops_agent_test/main_test.go
+++ b/integration_test/ops_agent_test/main_test.go
@@ -4087,10 +4087,33 @@ func unmarshalResource(in string) (*resourcedetector.... | 3 | 3 | 0 | [{"id": "G0", "claim": "The `|| true` guard on `sudo rm -rf /usr/local/go` is unnecessary because an rm run under sudo (with -f) should not fail for nonexistent files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `unset GOPATH` in the unin... | null |
GoogleCloudPlatform__ops-agent__1958 | GoogleCloudPlatform/ops-agent | 1,958 | defect | db2f3f0ee0c12cc95502e53ee35e75d496b24f24 | 74b50f309ece81e4051fb3544b168dd839b2d413 | Lint files during presubmit | ## Description
This PR adds a couple of changes to allow lint rules during presubmit:
- Adds `golangci-lint` as a dev tool dependency
- Adds `make lint` and `make lint-fix`
- Adds presubmit job to lint files
- Fix existing lint issues
## Related issue
N/A
## How has this been tested?
Tested presubmmit with... | diff --git a/.github/workflows/pr_presubmit.yaml b/.github/workflows/pr_presubmit.yaml
index 129cad2d52..c023a16377 100644
--- a/.github/workflows/pr_presubmit.yaml
+++ b/.github/workflows/pr_presubmit.yaml
@@ -23,20 +23,34 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
+
- uses... | 2 | 2 | 0 | [{"id": "G0", "claim": "In .github/workflows/pr_presubmit.yaml, the 'Get labels' step should be placed right above the run tests step that actually uses the labels it produces.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request edits the gen... | null |
GoogleCloudPlatform__ops-agent__1985 | GoogleCloudPlatform/ops-agent | 1,985 | defect | f483d7d5c5051d1d910d8b4ebbcb10e125a71483 | e9b1978cf2fcfb0444e10df984258d9a43a885bf | feat: Update Redis receiver to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
Refactor the Redis logging to use `LoggingReceiverMacro`
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
## How has this been tested?
<!--- Please describe how you tested the changes besides the automati... | diff --git a/apps/redis.go b/apps/redis.go
index 8c1baefeca..861c1124d3 100644
--- a/apps/redis.go
+++ b/apps/redis.go
@@ -19,7 +19,6 @@ import (
"strings"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/GoogleCloudPlatfor... | 2 | 1 | 0 | [{"id": "G0", "claim": "Keep the pre-existing comment 'Log levels documented: https://github.com/redis/redis/blob/6.2/src/server.c#L1124' in apps/redis.go, since it seems relevant to the Redis receiver implementation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
GoogleCloudPlatform__ops-agent__1999 | GoogleCloudPlatform/ops-agent | 1,999 | defect | d6f98509455e3fcf2f6d8781ac03d23275f51f40 | 7298e03e3b4631e3a24a7e49bc61fe4b1d933d96 | feat: Update Cassandra receiver to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
Refactored the Cassandra system, debug and gc logging receivers to use `LoggingReceiverMacro`
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
## How has this been tested?
<!--- Please describe how you te... | diff --git a/apps/cassandra.go b/apps/cassandra.go
index 39f454e8d6..1fb3e64bb9 100644
--- a/apps/cassandra.go
+++ b/apps/cassandra.go
@@ -18,7 +18,6 @@ import (
"context"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/Go... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new cassandra_gc transformation-test input.log doesn't follow the sample log format in apps/cassandra.go, so please update the log file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__ops-agent__2036 | GoogleCloudPlatform/ops-agent | 2,036 | defect | 1e147e4efe06fd5dc0d971a641c23a4a17becf2a | c206ca44d7d39558ca52fcdef719a795ccb36ae0 | Adding gce.project_id when using otlp exporter | ## Description
This adds the required gce.project_id label when exporting metrics to the otlphttp endpoint.
## Related issue
b/437100213
## How has this been tested?
<!--- Please describe how you tested the changes besides the automatically triggered unit tests when applicable. -->
<!--- Must include sample o... | diff --git a/confgenerator/otel/processors.go b/confgenerator/otel/processors.go
index cf41e64fa5..610885bdd2 100644
--- a/confgenerator/otel/processors.go
+++ b/confgenerator/otel/processors.go
@@ -596,3 +596,9 @@ func MetricStartTime() Component {
Config: map[string]string{"strategy": "subtract_initial_point"},
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Discussed offline: the project ID needs to be written to a resource attribute, which also means using a `transform` processor with some OTTL instead of the metrics-transform label approach.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleCloudPlatform__ops-agent__2038 | GoogleCloudPlatform/ops-agent | 2,038 | defect | d6f98509455e3fcf2f6d8781ac03d23275f51f40 | 767500b9726dddff3f8365149c390fa5a7ec7783 | feat: Update Rabbitmq parser to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
Refactored the `Rabbitmq` parser to use the `LoggingReceiverMacro`. This shares some similarities with #1987 where we specifically need to register the processor for the transformation test.
## Related issue
<!--- Add a link to the issue (follow the b/XXX ... | diff --git a/apps/rabbitmq.go b/apps/rabbitmq.go
index 9f5270ec6e..7ae60ee474 100644
--- a/apps/rabbitmq.go
+++ b/apps/rabbitmq.go
@@ -18,45 +18,41 @@ import (
"context"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/Goog... | 5 | 5 | 2 | [{"id": "G0", "claim": "Move `r.ReceiverMixin.MultilineRules` out of the receiver into a standalone `confgenerator.LoggingProcessorParseMultilineRegex` within the `Expand` method of the logging processor macro, following the elasticsearch.go template from PR #2025.", "category": "design", "verdict": "supported", "prior... | null |
GoogleCloudPlatform__ops-agent__2039 | GoogleCloudPlatform/ops-agent | 2,039 | defect | 85a6c6e20c8c0be953a05217f94ca15bec4622d4 | 97ff6c57666fa2ce73d07d65f145fcf9f9116f6e | feat: Update Couchdb to use `LoggingProcessorMacro` | ## Description
<!--- Describe your changes in detail. -->
Refactor the Couchdb receiver logging to be sub-agent agnostic.
Note: this is the first receiver converted with multiline rules
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
## How has this been tested... | diff --git a/apps/couchdb.go b/apps/couchdb.go
index defdba9eaa..bd7a71ff0d 100644
--- a/apps/couchdb.go
+++ b/apps/couchdb.go
@@ -19,7 +19,6 @@ import (
"fmt"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/GoogleCloudPla... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add two or more log sample lines to `input.log` so the multiline log can be verified as parsed correctly, working around a known fluent-bit bug where the last log line is not flushed/exported.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleCloudPlatform__ops-agent__2040 | GoogleCloudPlatform/ops-agent | 2,040 | defect | f5ef95df59deac6a554492613ed0e518cb9821a6 | 16899b5d0ffd129403f83ece3100396b8a3e3b3d | feat: Update Elasticsearch GC receiver to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
Refactored the Elasticsearch GC receiver to use `LoggingReceiverMacro`.
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
## How has this been tested?
<!--- Please describe how you tested the changes besid... | diff --git a/apps/elasticsearch.go b/apps/elasticsearch.go
index f6d9cb6ce0..4cb2366e82 100644
--- a/apps/elasticsearch.go
+++ b/apps/elasticsearch.go
@@ -19,7 +19,6 @@ import (
"fmt"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"g... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please add a new line (trailing newline) at the end of transformation_test/testdata/logging_processor-elasticsearch-gc/input.log.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleCloudPlatform__ops-agent__2043 | GoogleCloudPlatform/ops-agent | 2,043 | defect | fde62d25f6de16ffa5a06a83cf5afd17e88f1b9a | b5c2b0d6c790356b8a29707c26d76235fb5d128e | feat: Update Couchbase parsers to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
This updates the 3 different Couchbase receivers
- General
- GOXCDR
- HTTP Access
Had to do a little bit of additional renaming here but for the most part these were all straight forward.
## Related issue
<!--- Add a link to the issue (follow the b/XX... | diff --git a/apps/couchbase.go b/apps/couchbase.go
index 6e26c36a57..d060c78fc2 100644
--- a/apps/couchbase.go
+++ b/apps/couchbase.go
@@ -20,7 +20,6 @@ import (
"sort"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/Googl... | 2 | 2 | 2 | [{"id": "G0", "claim": "Multiline log entries should be added to the couchbase test data so the processors' multiline parsing functionality is tested, and as the PR author notes the existing multiline entries seem not to be parsed as multiline by the regex.", "category": "correctness", "verdict": "supported", "priority... | null |
GoogleCloudPlatform__ops-agent__2049 | GoogleCloudPlatform/ops-agent | 2,049 | defect | c6005d9cbd39e5c7a2897dd026b7311abad1cfe6 | ef6dcc11cc2cf17c1ea8c3ead822f045b7363d81 | Add unknown metric processor | ## Description
This adds the an unknown metric processor for prometheus pipelines with otlphttp endpoint.
## Related issue
b/435217196
## How has this been tested?
Tested this in the Prometheus integration tests.
## Checklist:
- Unit tests
- [ ] Unit tests do not apply.
- [X] Unit tests have been add... | diff --git a/confgenerator/otel/processors.go b/confgenerator/otel/processors.go
index fea009165b..381d75e643 100644
--- a/confgenerator/otel/processors.go
+++ b/confgenerator/otel/processors.go
@@ -602,3 +602,14 @@ func GCPProjectID(projectID string) Component {
map[string]string{"gcp.project_id": projectID}, false... | 2 | 1 | 0 | [{"id": "G0", "claim": "A comment with breadcrumbs, ideally pointing to a golink to the design doc, should be left above MetricUnknownCounter to explain why it was needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code should mention th... | null |
GoogleCloudPlatform__ops-agent__2052 | GoogleCloudPlatform/ops-agent | 2,052 | defect | c6005d9cbd39e5c7a2897dd026b7311abad1cfe6 | a57905944af8ae239d17dd44d799c9e7c8e81bf3 | feat: Update Vault Audit parser to use `LoggingReceiverMacro` | ## Description
<!--- Describe your changes in detail. -->
This updates the Vault Audit receiver to use `LoggingReceiverMacro`
This is one of the few cases that actually needs a separate definition of `LoggingReceiverMacro` because there are custom parameters.
This also has a similar issue as #2043 where the mu... | diff --git a/apps/vault.go b/apps/vault.go
index 38a055c471..16a8888a04 100644
--- a/apps/vault.go
+++ b/apps/vault.go
@@ -19,7 +19,6 @@ import (
"fmt"
"github.com/GoogleCloudPlatform/ops-agent/confgenerator"
- "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit"
"github.com/GoogleCloudPlatform/op... | 1 | 1 | 1 | [{"id": "G0", "claim": "Move the MultilineRules to the start (first processor) of LoggingProcessorMacroVaultJson, because the receiver-level MultilineRules were implemented before the MultilineRules-in-file-receiver issue was fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
GoogleCloudPlatform__ops-agent__2086 | GoogleCloudPlatform/ops-agent | 2,086 | defect | 6b838d9c40a71710ccbf09de25c0a48ffa6ce59d | f6feae8ee9c379040495855c5765ee0a8957ce73 | Improving OTLP receiver tests | ## Description
Improving the checks for OTLP receiver tests
Added a histogram and a up-down counter metric.
## Related issue
b/435218442
## How has this been tested?
<!--- Please describe how you tested the changes besides the automatically triggered unit tests when applicable. -->
<!--- Must include sample ... | diff --git a/integration_test/ops_agent_test/main_test.go b/integration_test/ops_agent_test/main_test.go
index 52dca6038a..84b7d3d4c3 100644
--- a/integration_test/ops_agent_test/main_test.go
+++ b/integration_test/ops_agent_test/main_test.go
@@ -230,8 +230,9 @@ func RunForEachImageAndFeatureFlag(t *testing.T, features... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new expectedMetricTest struct duplicates verification fields already provided by the existing ExpectedMetric/MetricSpec definitions, so the PR should reuse the ExpectedMetric definition (whose testing tooling already exists) instead.", "category": "design", "verdict": "supported", "priority"... | null |
GoogleCloudPlatform__ops-agent__2112 | GoogleCloudPlatform/ops-agent | 2,112 | defect | c419684e207bd90f9d54e270247862cd3a440de6 | 752d4c8da0a0489dd4c55f9c2a9833491985fa55 | Refactoring assertPrometheus metrics to use metadata ExpectedMetric | ## Description
Refactoring test to use the same infra.
## Related issue
b/452074867
## How has this been tested?
## Checklist:
- Unit tests
- [X] Unit tests do not apply.
- [ ] Unit tests have been added/modified and passed for this PR.
- Integration tests
- [ ] Integration tests do not apply.
... | diff --git a/integration_test/metadata/integration_metadata.go b/integration_test/metadata/integration_metadata.go
index 7e6b0fb196..e5dc3f07f7 100644
--- a/integration_test/metadata/integration_metadata.go
+++ b/integration_test/metadata/integration_metadata.go
@@ -19,11 +19,14 @@ import (
"fmt"
"reflect"
"regex... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error message should be reworded to something like \"Metric %s should have at least one data point in the time window\" instead of \"Metric %s has at least one data points in the time windows\"; the reviewer also asks whether an empty time series can really happen while calling the check... | null |
GoogleCloudPlatform__ops-agent__2151 | GoogleCloudPlatform/ops-agent | 2,151 | defect | 6b838d9c40a71710ccbf09de25c0a48ffa6ce59d | 8cde74526fc64d7f2c8d2cf9de09c542d8081f19 | Update Fluent Bit to v4.0.13 | ## Description
<!--- Describe your changes in detail. -->
This PR updates Fluent Bit to v4.0.13 to pick up some CVE fixes.
## Related issue
<!--- Add a link to the issue (follow the b/XXX format for internal issues) -->
b/465698843
## How has this been tested?
The presubmits will be the test.
## Checklis... | diff --git a/builds/otel.sh b/builds/otel.sh
index bcb48744f5..2a02997e5d 100755
--- a/builds/otel.sh
+++ b/builds/otel.sh
@@ -47,11 +47,16 @@ if [ "$SKIP_OTEL_JAVA" != "true" ]; then
cd ../..
fi
+if [ -z "${GO_BIN}" ]; then
+ GO_BIN=/usr/local/go/bin/go
+fi
+ARCH=$($GO_BIN env GOARCH)
+
cd submodules/opent... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment explaining the Grace setting should also mention the `Flush : 10s` setting that sits next to it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multilineTestPatterns list should be sorted (alphabetically) fo... | null |
GoogleCloudPlatform__ops-agent__2166 | GoogleCloudPlatform/ops-agent | 2,166 | defect | f3787a8ccc2a7205e80d67c8754fed9a4d273254 | 14d37007c50db6c46de74f5d3b483709ff02665d | [confgenerator] Add `file offset` storage to Otel Logging receivers. | ## Description
Configuring the `file_storage` extension to be used as `storage` in Otel Logging receivers.
Some details :
- Added to `systemd`, `files` and `windows_event_log` logging receiver.
- The following folders will be used to store the bookmarks :
- Linux : `/var/lib/google-cloud-ops-agent/openteleme... | diff --git a/cmd/ops_agent_uap_plugin/service_linux.go b/cmd/ops_agent_uap_plugin/service_linux.go
index bdf08935aa..b369fb22d4 100644
--- a/cmd/ops_agent_uap_plugin/service_linux.go
+++ b/cmd/ops_agent_uap_plugin/service_linux.go
@@ -43,6 +43,7 @@ const (
LogsDirectory = "log/google-cloud-ops-agent"
... | 4 | 2 | 1 | [{"id": "G0", "claim": "It is unclear whether `start_at: beginning` actually picks up from the stored file offset on collector restart rather than from the beginning of the file, and an integration test should be added to verify it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
GoogleCloudPlatform__ops-agent__2185 | GoogleCloudPlatform/ops-agent | 2,185 | defect | 7906abc22c04d4f030e9f3e27bcc4c9a6fa62510 | a8a58e8b6103ba5c23a3e3ec6ccca461453ccbf7 | [confgenerator] Create `otel.Logging` exporter for Otel Logging. | ## Description
Create `otel.OTelLogs` exporter to have a separate configuration for Otel Logging.
## Details
**Why do we need a separate exporter ?**
- The `sending_queue` configurations set in this PR and followup changes for "Log Buffering" (b/394636880) are incompatible with metrics exporting (for example, w... | diff --git a/apps/otlp.go b/apps/otlp.go
index 6ceb70e637..7897496fa7 100644
--- a/apps/otlp.go
+++ b/apps/otlp.go
@@ -141,7 +141,7 @@ func (r ReceiverOTLP) Pipelines(ctx context.Context) ([]otel.ReceiverPipeline, e
ExporterTypes: map[string]otel.ExporterType{
"metrics": receiverPipelineType,
"traces": otel... | 9 | 8 | 4 | [{"id": "G0", "claim": "The processor constructors should be named BatchLogsProcessor (and likewise for the other function) rather than BatchLogsExporter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exporters should carry their processors... | null |
GoogleCloudPlatform__ops-agent__2196 | GoogleCloudPlatform/ops-agent | 2,196 | defect | 3a3bd7bf135cece71832380c254239dc78a1c469 | 19934a4ebcaead44edb3956136200cc32c021626 | Adding api_request_count self-metric when running otlp exporter | ## Description
This adds api_request_count when using the otlp exporter instead of the GCM/GMP.
The metric used by the previous exporters is not present in the otlp exporter.
## Related issue
b/481750163
## How has this been tested?
<!--- Please describe how you tested the changes besides the automatically tr... | diff --git a/confgenerator/agentmetrics.go b/confgenerator/agentmetrics.go
index 0ae6f58eac..65f238e1ce 100644
--- a/confgenerator/agentmetrics.go
+++ b/confgenerator/agentmetrics.go
@@ -57,6 +57,26 @@ var grpcToHTTPStatus = map[string]string{
"DEADLINE_EXCEEDED": "504",
}
+// Following reference : https://githu... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new grpcToStringStatus map omits the UNAUTHENTICATED gRPC status code (16) that its cited googleapis code.proto reference defines.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "OtelPipelineProcessors should be simplified... | null |
GoogleCloudPlatform__ops-agent__2211 | GoogleCloudPlatform/ops-agent | 2,211 | defect | 0112852684e3e5b790986148b4fef0ac9f7980ad | 079fdfac4c4a92cedfc34ae67654af49c70090d1 | [integration test] Enable `TestSystemLogByDefault` test for Otel Logging. | ## Description
Enable the `TestSystemLogByDefault` integration test for Otel Logging.
Details :
- `TestSystemLogByDefault` fails in `Debian 11` sometimes (~50%) when `/var/log/message` and `/var/log/syslog` file `fingerprint` is the same, e.g. The first 10 log lines are the same in both files, possibly done by `r... | diff --git a/integration_test/ops_agent_test/main_test.go b/integration_test/ops_agent_test/main_test.go
index b96ea292c5..8f898b7209 100644
--- a/integration_test/ops_agent_test/main_test.go
+++ b/integration_test/ops_agent_test/main_test.go
@@ -2560,11 +2560,11 @@ func TestSystemdLog(t *testing.T) {
func TestSyste... | 1 | 1 | 0 | [{"id": "G0", "claim": "Hard-coding `fingerprint_size: 5kb` for the otel filelog receivers is just a guess that the first 5kb of any two log files will differ, and the underlying fingerprint-dedup limitation should also be reported upstream; the 5kb setting is acceptable as a workaround in the meantime.", "category": "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.