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__functions-framework-python__95
GoogleCloudPlatform/functions-framework-python
95
defect
46d2149e665622ae7d95ad028b339722ff941136
ca1875b7b995707683bcc918f2287d5731b2494a
Add conformance tests
Fixes #57.
diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml new file mode 100644 index 00000000..d9fb2f48 --- /dev/null +++ b/.github/workflows/conformance.yml @@ -0,0 +1,48 @@ +name: Python Conformance CI +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + ...
1
1
1
[{"id": "G0", "claim": "The workflow pins the conformance action at v0.3.1, which has a framework bug that should be fixed by upgrading to v0.3.2.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__gcsfuse__2575
GoogleCloudPlatform/gcsfuse
2,575
defect
f2d240d9664096059415c0b149ed37feef65f171
848ddfabd98a429790d8281701529f6226d3932c
Adding config for retry read-stalled-req
### Description Adding hidden flags for read-stall-req. ### Link to the issue in case of a bug fix. NA ### Testing details 1. Manual - NA 2. Unit tests - NA 3. Integration tests - NA
diff --git a/cfg/config.go b/cfg/config.go index de91d26d880..9dff7c4c0c8 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -153,6 +153,8 @@ type GcsRetriesConfig struct { MaxRetrySleep time.Duration `yaml:"max-retry-sleep"` Multiplier float64 `yaml:"multiplier"` + + ReadStall ReadStallGcsRetriesConfig `yaml:"rea...
4
4
0
[{"id": "G0", "claim": "The usage string of gcs-retries.read-stall.enable should drop the unneeded YAML folded '>'/'-' markers and be reworded since the string is short.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The flag-name entries for read...
null
GoogleCloudPlatform__gcsfuse__4176
GoogleCloudPlatform/gcsfuse
4,176
defect
18cfd3116df8b8d20f2e78890b702f44ffcba271
0790db78fa53433a08da691ad5f0380e3b7a6388
feat(dir-metadata-prefetch): add config for metadata prefetch feature
### Description This PR introduces an experimental feature flag to optimize file lookup performance. The feature will implement proactive background prefetching of directory object metadata during initial access, thereby warming the metadata cache and reducing latency for downstream operations flag name: `experimen...
diff --git a/cfg/config.go b/cfg/config.go index 77d84ad01cd..e6df9625100 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -565,6 +565,8 @@ type MetadataCacheConfig struct { EnableNonexistentTypeCache bool `yaml:"enable-nonexistent-type-cache"` + ExperimentalDirMetadataPrefetch bool `yaml:"experimental-dir-metad...
3
2
0
[{"id": "G0", "claim": "The new flag `experimental-dir-metadata-prefetch` should be marked hidden (`hide-flag: true`) to stay consistent with other experimental flags in cfg/params.yaml and to avoid exposing an experimental feature in help output.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
GoogleCloudPlatform__gcsfuse__4260
GoogleCloudPlatform/gcsfuse
4,260
defect
2cbaedda7fe26e8ed30880b3cd30d3796d16798c
3d9f3d90af6df8e099842f2a1c7870a0b8b290d2
feat(dir-metadata-prefetch): implementation for async metadata prefetch
### Description This PR implements the core logic for asynchronous directory metadata prefetching in GCSfuse. The feature is designed to reduce latency for sequential lookups by proactively fetching and caching metadata for sibling objects when a lookup for a specific child results in a cache miss. **Key Changes** ...
diff --git a/internal/fs/inode/dir.go b/internal/fs/inode/dir.go index 92afb830f36..57814e07329 100644 --- a/internal/fs/inode/dir.go +++ b/internal/fs/inode/dir.go @@ -15,10 +15,14 @@ package inode import ( + "context" "errors" "fmt" + "math" "path" + "slices" "strings" + "sync/atomic" "time" "github...
5
4
0
[{"id": "G0", "claim": "The slices.Sort of the prefetched keys is unnecessary because GCS list responses are already paginated with some sorting.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the temporary 'keys = %v' debug logging is only for d...
null
GoogleCloudPlatform__gcsfuse__4429
GoogleCloudPlatform/gcsfuse
4,429
defect
b93e4e053fa99733a82ce0a97c436f7395a98e46
6baf1d264ab79550a3cfd34bcab135673a0e74fd
feat(consistent handling): Integration tests for creating symlinks with updated representation
### Description This PR introduces a new suite of integration tests to validate the consistent handling of symbolic links in GCSFuse . It verifies that GCSFuse correctly creates and recognizes symlinks using both the updated (Standard) representation and the backward-compatible (Legacy) representation . Context: [g...
diff --git a/tools/integration_tests/improved_run_e2e_tests.sh b/tools/integration_tests/improved_run_e2e_tests.sh index ce422933b29..189d473856f 100755 --- a/tools/integration_tests/improved_run_e2e_tests.sh +++ b/tools/integration_tests/improved_run_e2e_tests.sh @@ -246,6 +246,7 @@ TEST_PACKAGES_COMMON=( "dentry_c...
5
5
3
[{"id": "G0", "claim": "The `run` value `TestStandardSymlinks` in test_config.yaml does not match the test suite name `TestStandardSymlinksTestSuite` in create_symlink_test.go, which will cause this test to be skipped when running with the configuration file; update the `run` value to match the test suite name.", "cate...
null
GoogleCloudPlatform__gcsfuse__4431
GoogleCloudPlatform/gcsfuse
4,431
defect
6f03de0a2a761c4099328e6f45693a04a53ba508
fa634a502463a5fae8539476d0b4cfd8bb861ebe
feat(consistent symlink): update symlink inode struct to include metadata for direct references
### Description This PR updates the SymlinkInode struct to store the complete metadata of the backing GCS object and ensures that the Source() method returns the full metadata instead of a manually constructed map Context: [go/sts-consistent-symlink-handling-in-gcsfuse](http://goto.google.com/sts-consistent-symli...
diff --git a/internal/fs/inode/symlink.go b/internal/fs/inode/symlink.go index a559e7e60d9..388284c46d3 100644 --- a/internal/fs/inode/symlink.go +++ b/internal/fs/inode/symlink.go @@ -58,6 +58,7 @@ type SymlinkInode struct { sourceGeneration Generation attrs fuseops.InodeAttributes target st...
2
2
0
[{"id": "G0", "claim": "For standard symlinks the target is the object's content, so initializing target from m.Metadata[SymlinkMetadataKey] leaves s.target empty and s.Target() likely returns an empty string for readlink; the author should clarify how standard symlink targets are handled or add a TODO if it is a pre-e...
null
GoogleCloudPlatform__gcsfuse__4432
GoogleCloudPlatform/gcsfuse
4,432
defect
1484b060e13c6f06a9240be377d72fc0178a9382
5c8cc5fe46b98ae2efab289b114d525ad15004f6
feat(consistent symlink): create openReader helper method on symlink inode to read the object contents to decipher target
### Description The PR adds a helper method, `openReader`, to the SymlinkInode struct to allow reading the content of the backing GCS object . This is necessary because, in the new consistent symlink design, the symlink target is stored as the object's content rather than in custom metadata . For more context, refe...
diff --git a/internal/fs/inode/symlink.go b/internal/fs/inode/symlink.go index 388284c46d3..c2c9c223149 100644 --- a/internal/fs/inode/symlink.go +++ b/internal/fs/inode/symlink.go @@ -15,8 +15,12 @@ package inode import ( + "errors" + "fmt" + "io" "sync" + "github.com/googlecloudplatform/gcsfuse/v3/internal/fs...
1
1
0
[{"id": "G0", "claim": "The error handling in openReader wraps the error redundantly — a NotFoundError is wrapped in a FileClobberedError that already carries a \"NewReader:\" prefix and then wrapped again with the same prefix — producing verbose and confusing messages, and the logic should be simplified to avoid the d...
null
GoogleCloudPlatform__gcsfuse__4454
GoogleCloudPlatform/gcsfuse
4,454
defect
61d0378128fe587350035f167b2c5e1b436eaf5d
df864c3c313f6dd75b9058b6d92a7c6c7bc90b94
feat(logging): Move logs before mount completion to info severity for better debugging
### Description Move logs before mount completion to info severity for better debugging. This would be two part change where changes would be done to the jacobsa fuse as well. Perf results for the same: | Branch | File Size | Read BW | Write BW | RandRead BW | RandWrite BW | | :--- | :--- | :--- | :--- | :--...
diff --git a/internal/logger/logger.go b/internal/logger/logger.go index c70cb4037e4..12f5d14d644 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -222,6 +222,20 @@ func Error(error string) { } } +type logFunc func(string, ...any) + +var logFHandlers = map[slog.Level]logFunc{ + LevelTrace:...
3
3
2
[{"id": "G0", "claim": "GetLogFHandler can return a nil function when the level is not in logFHandlers, causing a nil-pointer panic at the call site, so the not-found case should be handled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment...
null
GoogleCloudPlatform__gcsfuse__4500
GoogleCloudPlatform/gcsfuse
4,500
defect
f156c3ee2765fec4fcc534aaab60b25b43d2bee4
0aec7270f0baac13fb47f5ca32f6ac1d5c2d2c19
feat(force-dp-check): adding test to validate the force-dp using proxy server
### Description 1. Update emulator.sh to start gRPC emulator server. 2. Implemented gRPC proxy server to accept gRPC traffic from GCSFuse and pass it on emulator service (although right now not needed but useful in future for gRPC related emulator based test). Added header validation check in proxy server. 3. Added ...
diff --git a/tools/integration_tests/emulator_tests/configs/grpc_header_validation.yaml b/tools/integration_tests/emulator_tests/configs/grpc_header_validation.yaml new file mode 100644 index 00000000000..1f5743010b6 --- /dev/null +++ b/tools/integration_tests/emulator_tests/configs/grpc_header_validation.yaml @@ -0,0 ...
3
2
1
[{"id": "G0", "claim": "The gRPC server's shutdown logic closes the listener directly, so Serve returns net.ErrClosed while the code only checks grpc.ErrServerStopped, causing a fatal error log during a normal shutdown; the check should be errors.Is(err, net.ErrClosed).", "category": "correctness", "verdict": "supporte...
null
GoogleCloudPlatform__gcsfuse__4503
GoogleCloudPlatform/gcsfuse
4,503
defect
f04ca31fcff98988dbfd57bdee1debeff5098442
1116add2607e9a51ec652465e78f7d9be8512cd0
feat(shared-chunk-cache): adding basic e2e test for shared-chunk-cache
### Description Adding cache-hit/miss test for shared-chunk-cache using two mounts scenario. To keep the test-execution robust we used modification time to test the cache-hit/cache-miss logic, not via log-parsing. ### Link to the issue in case of a bug fix. b/495298967 ### Testing details 1. Manual - Yes. 2. ...
diff --git a/tools/integration_tests/shared_chunk_cache/setup_test.go b/tools/integration_tests/shared_chunk_cache/setup_test.go new file mode 100644 index 00000000000..9f4a0ca7453 --- /dev/null +++ b/tools/integration_tests/shared_chunk_cache/setup_test.go @@ -0,0 +1,373 @@ +// Copyright 2026 Google LLC +// +// Licens...
7
3
1
[{"id": "G0", "claim": "The cacheHitTime could be zero, which would lead to a division-by-zero panic when computing speedup, so it should be checked before the division.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The WalkDir callbacks in getCached...
null
GoogleCloudPlatform__gcsfuse__4515
GoogleCloudPlatform/gcsfuse
4,515
defect
efc116cea615add182ab204e51db916866ec540a
0c0eb7140c6f417f0019ebd8e49b2173d764be03
fix: Fix data-race in lru-cache and 200x improvement in EraseEntriesWithGivenPrefix performance for deleting 10K entries out of 20K
### Description - Fix a data race bug (fatal error: concurrent map iteration and map write) in lru where `c.index` was previously iterated without holding a lock while other operations might insert concurrently. While it doesn't cause issues in the applications since the operations to this module are already serialize...
diff --git a/internal/cache/lru/lru.go b/internal/cache/lru/lru.go index b2ad29a013f..10b0e5eb80c 100644 --- a/internal/cache/lru/lru.go +++ b/internal/cache/lru/lru.go @@ -183,11 +183,10 @@ func (c *Cache) Insert( return evictedValues, nil } -// Erase any entry for the supplied key, also returns the value of eras...
3
1
1
[{"id": "G0", "claim": "Collecting keys under a read lock and then erasing them all under one exclusive lock blocks all other cache operations until the whole batch is deleted, which will slow down flows like rename that clear a directory with many entries; the earlier per-key locking was intentional to avoid this.", "...
null
GoogleCloudPlatform__gcsfuse__4516
GoogleCloudPlatform/gcsfuse
4,516
defect
1e1bea9ae1e834a0657a9e08e37698845f8eab38
462dd796fe18edcb05bc72f2dcee6b450c7eea48
test(monitoring package): align log file paths with test suite names for monitoring integration tests
### Description When running the monitoring integration tests (such as `TestPromGrpcMetricsSuite`, `TestPromOTELSuite`, etc.) using the flags from `test_config.yaml`, the tests fail with log file missing errors: `{"timestamp":{"seconds":1773961819,"nanos":1102831},"severity":"INFO","message":"Error reading log file: ...
diff --git a/tools/integration_tests/monitoring/setup_test.go b/tools/integration_tests/monitoring/setup_test.go index ef60c17e77b..c5cfd802a63 100644 --- a/tools/integration_tests/monitoring/setup_test.go +++ b/tools/integration_tests/monitoring/setup_test.go @@ -177,28 +177,28 @@ func TestMain(m *testing.M) { test...
2
1
0
[{"id": "G0", "claim": "SetUpLogFilePath could be updated to respect the log file provided in the config flags instead of overriding it with the suite name, handling any mismatch automatically.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The log file ...
null
GoogleCloudPlatform__gcsfuse__4520
GoogleCloudPlatform/gcsfuse
4,520
defect
1e1bea9ae1e834a0657a9e08e37698845f8eab38
1f04553c06de6822272501555124ee2fa91fbc16
feat(tracing): Add write flow traces
### Description Adding traces in write flows to help quicker debugging. Traces added are as below. | Trace Name | Identifier | Description | | :--- | :--- | :--- | | **Write File Staged** | `write.staged` | Traces a write operation using the legacy staged writes. | | **Write File Streaming** | `write.streaming`...
diff --git a/internal/bufferedwrites/buffered_write_handler.go b/internal/bufferedwrites/buffered_write_handler.go index a484698c6c9..b9490cb08d5 100644 --- a/internal/bufferedwrites/buffered_write_handler.go +++ b/internal/bufferedwrites/buffered_write_handler.go @@ -23,6 +23,7 @@ import ( "github.com/googlecloudpla...
13
12
5
[{"id": "G0", "claim": "The traceHandle initialization in newUploadHandler is inverted: it replaces any non-nil handle with a NoopTracer (disabling tracing) and leaves a nil handle nil, when it should default to a NoopTracer only when the handle is nil.", "category": "correctness", "verdict": "supported", "priority": "...
null
GoogleCloudPlatform__gcsfuse__4539
GoogleCloudPlatform/gcsfuse
4,539
defect
29c57be8b671a7f009b0cd1f194b76df3e5fe8b3
363dc656a7bf78fa819896fa7a040948564f8873
refactor(tracing): Trace flags updates (move from experimental to non experimental, renames, document updates), unhide sampling ratio flag
### Description Update the trace flag names and descriptions from experimental to non-experimental, expose/unhide the trace-sampling-ratio flag. The project-id & the exporter flags are still kept hidden and hidden flag details are removed from the documentation. ### Link to the issue in case of a bug fix. b/496791...
diff --git a/cfg/config.go b/cfg/config.go index 0fa549ac339..710169d5f76 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -671,11 +671,11 @@ type MetricsConfig struct { } type MonitoringConfig struct { - ExperimentalTracingMode []string `yaml:"experimental-tracing-mode"` + ProjectId string `yaml:"project-id"` -...
16
14
1
[{"id": "G0", "claim": "For naming consistency the project-id flag should use trace-project-id for both the config-path (monitoring.trace-project-id) and the YAML tag in cfg/config.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trace-sam...
null
GoogleCloudPlatform__gcsfuse__4542
GoogleCloudPlatform/gcsfuse
4,542
defect
29c57be8b671a7f009b0cd1f194b76df3e5fe8b3
5a39e073f41771762b10231f2bace525cefb37d3
test(fix creds): Use temporary file for creds ensuring no corruption during package runs.
### Description Earlier creds file was generated at a hardcoded file path. So two test packages running together would use the same filepath resulting in corruption if one test is reading and other is writing. This change fixes it by removing that constraint and also cleaning up the file after test runs. ### Error ...
diff --git a/tools/integration_tests/managed_folders/admin_permissions_test.go b/tools/integration_tests/managed_folders/admin_permissions_test.go index a8da0d84461..b23238d6806 100644 --- a/tools/integration_tests/managed_folders/admin_permissions_test.go +++ b/tools/integration_tests/managed_folders/admin_permissions...
3
2
0
[{"id": "G0", "claim": "The `io.Writer.Write` call in CreateCredentials is incorrect and should be replaced by calling `Write` directly on the `file` object, as the current syntax will result in a compilation error.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": ...
null
GoogleCloudPlatform__gcsfuse__4544
GoogleCloudPlatform/gcsfuse
4,544
defect
ce54e44c89204c86c0d3bc0f9de617f3fa602a46
37e5e6a37886acc946898896d9d6a7c1650cde97
test(log-rotation): add retry mechanism to prevent flaky test failures
### Description On some machines, log rotation file operations take longer to complete. This delay can cause integration tests to fail because the expected number of log files isn't immediately present. This PR adds a retry mechanism to the log-rotation tests to account for these delays and prevent flaky test fail...
diff --git a/tools/integration_tests/log_rotation/log_rotation_test.go b/tools/integration_tests/log_rotation/log_rotation_test.go index dfe18142ebd..0f64e491792 100644 --- a/tools/integration_tests/log_rotation/log_rotation_test.go +++ b/tools/integration_tests/log_rotation/log_rotation_test.go @@ -23,6 +23,7 @@ impor...
5
5
1
[{"id": "G0", "claim": "The RetryUntil doc comment incorrectly states that the operation signals success by returning true as the second return value, and should be corrected to say success is a nil error.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
GoogleCloudPlatform__gcsfuse__4547
GoogleCloudPlatform/gcsfuse
4,547
defect
582a22017c9120d69e039ab4e885b3d5ba7bff3f
7ea492ba559c810592a3bbbf82d91ebd6a664a03
perf:⚡ Bolt: Optimize integer to string conversion
💡 **What:** Replaced `fmt.Sprintf("%d", ...)` with `strconv.FormatInt(...)` and `strconv.Itoa(...)`. 🎯 **Why:** The `fmt.Sprintf` function uses reflection and parses the format string at runtime, making it significantly slower and more memory-intensive than direct type conversion using the `strconv` package. These in...
diff --git a/internal/cache/data/file_info.go b/internal/cache/data/file_info.go index 910a9bb69a4..3ff6800d5d1 100644 --- a/internal/cache/data/file_info.go +++ b/internal/cache/data/file_info.go @@ -16,8 +16,8 @@ package data import ( "errors" - "fmt" "os" + "strconv" "time" "github.com/googlecloudplatfo...
1
1
0
[{"id": "G0", "claim": "GetFileInfoKeyName could avoid the string-concatenation allocations on the next line by building the cache key with a pre-allocated byte slice and strconv.AppendInt.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gcsfuse__4567
GoogleCloudPlatform/gcsfuse
4,567
defect
4b7892bca5cb2fea0034056f253ab5b911c9e2e9
d636df745893185802e59a072cae21430733f8b2
refactor(read_cache): Deflake read_cache integration tests using unique directories and retry logic
### Description This PR deflakes the read_cache integration test suite by addressing test run isolation and adding robust retry logic for asynchronous operations. Key Changes 1. Test Isolation with Unique Directories to get rid of 429 errors causing test slowness. Migrated all test files in tools/integration_test...
diff --git a/tools/integration_tests/read_cache/cache_file_for_exclude_regex_test.go b/tools/integration_tests/read_cache/cache_file_for_exclude_regex_test.go index fc4d1bfc67c..98a2e7be957 100644 --- a/tools/integration_tests/read_cache/cache_file_for_exclude_regex_test.go +++ b/tools/integration_tests/read_cache/cach...
1
1
1
[{"id": "G0", "claim": "Check whether the file-cache-include-regex change made in setup_test.go also needs to be applied in the common test_config.yaml used with GKE.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__gcsfuse__4568
GoogleCloudPlatform/gcsfuse
4,568
defect
4b7892bca5cb2fea0034056f253ab5b911c9e2e9
52872b35cd3a47c412f2542aa9e9c17a860cef76
perf: ⚡ Bolt: [performance improvement] Optimize BytesToHigherMiBs using integer arithmetic
💡 **What**: Replaced the `math.Ceil(float64(bytes) / float64(bytesInOneMiB))` calculation in `util.BytesToHigherMiBs` with equivalent integer addition and bitwise shifting `(bytes + bytesInOneMiB - 1) >> 20`. I've also added a corresponding benchmark test (`util_benchmark_test.go`) utilizing the modern Go `b.Loop()` s...
diff --git a/internal/util/util.go b/internal/util/util.go index 77dedd9509a..74164b836e5 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -93,5 +93,6 @@ func BytesToHigherMiBs(bytes uint64) uint64 { return MaxMiBsInUint64 + 1 } const bytesInOneMiB uint64 = 1 << 20 - return uint64(math.Ceil(floa...
3
2
0
[{"id": "G0", "claim": "The benchmark uses b.Loop(), which was introduced in Go 1.24, and may cause compilation errors on older Go versions still common in CI/CD setups, so a traditional for i := 0; i < b.N; i++ loop is safer unless the project already requires Go 1.24.", "category": "compatibility", "verdict": "uncert...
null
GoogleCloudPlatform__gcsfuse__4581
GoogleCloudPlatform/gcsfuse
4,581
defect
93868ff84b4edad869744e38253618e035629acf
5eff74592464106e77e075b77a952d76b9482045
test(integration): migrate 4 non-gke packages to common test configuration
### Description This PR migrates 4 integration test packages (`readonly_creds`, `mount_timeout`, `release_version`, and `mounting`) to use the common YAML-based test configuration framework. Key changes include: - Updated the `TestMain` functions across the 4 packages to load configurations via `test_suite.ReadCon...
diff --git a/tools/integration_tests/mount_timeout/mount_access_test.go b/tools/integration_tests/mount_timeout/mount_access_test.go index 1b33c0d26dc..77c9b5a44da 100644 --- a/tools/integration_tests/mount_timeout/mount_access_test.go +++ b/tools/integration_tests/mount_timeout/mount_access_test.go @@ -87,10 +87,10 @@...
1
1
1
[{"id": "G0", "claim": "For consistency with the other test packages migrated in this PR, release_version's TestMain should exit with 0 instead of 1 when skipping tests due to the mountedDirectory flag, since exiting 1 may be read as a failure by CI systems.", "category": "correctness", "verdict": "supported", "priorit...
null
GoogleCloudPlatform__gcsfuse__4582
GoogleCloudPlatform/gcsfuse
4,582
defect
3c6a9f4d63b8da1ae33abc46ac4863ea3036cbef
19546c29cfb6d5505f40d51e1500042aad2f6531
test(integration): migrate negative stat cache tests to common test configuration
### Description This PR migrates the `negative_stat_cache` integration tests to use the new YAML-based test configuration framework. ### Link to the issue in case of a bug fix. https://buganizer.corp.google.com/issues/499871015 https://paste.googleplex.com/4532379218739200 Test Details ### Testing details 1...
diff --git a/tools/integration_tests/negative_stat_cache/disabled_negative_stat_cache_test.go b/tools/integration_tests/negative_stat_cache/disabled_negative_stat_cache_test.go index c197fbb206b..5c0c9d013c6 100644 --- a/tools/integration_tests/negative_stat_cache/disabled_negative_stat_cache_test.go +++ b/tools/integr...
1
1
0
[{"id": "G0", "claim": "Keep the moved package-level variables (mountFunc, mountDir, rootDir) grouped within the env struct instead of declaring them at package level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__gcsfuse__4583
GoogleCloudPlatform/gcsfuse
4,583
defect
3c6a9f4d63b8da1ae33abc46ac4863ea3036cbef
3e3efa56b61b78a9226ec4b94ae55ccc42979d1f
test(integration): migrate buffered read test pacakge
### Description This PR migrates the `buffered_read` integration tests to use the new YAML-based test configuration framework. ### Link to the issue in case of a bug fix. https://buganizer.corp.google.com/issues/499884767 ### Testing details 1. Manual - NA 2. Unit tests - NA 3. Integration tests - Passing fo...
diff --git a/tools/integration_tests/buffered_read/fallback_test.go b/tools/integration_tests/buffered_read/fallback_test.go index 91e1b5b685b..0f76eac2782 100644 --- a/tools/integration_tests/buffered_read/fallback_test.go +++ b/tools/integration_tests/buffered_read/fallback_test.go @@ -15,6 +15,7 @@ package buffered...
3
2
0
[{"id": "G0", "claim": "The variables mountDir and rootDir are assigned in TestMain but never read anywhere in the package and appear redundant, so they should be removed unless planned for a follow-up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
GoogleCloudPlatform__gcsfuse__4595
GoogleCloudPlatform/gcsfuse
4,595
defect
60573a294d6e6452bbbee529f439e287e4970a4f
c12972e82a1208edae8205a0ad58fab60160f07b
refactor(test): Refactor read_large_files tests and optimize file operations
### Description #### Summary This PR improves the read_large_files integration tests by refactoring file creation to be concurrent, optimizing random read chunk sizes, and removing the dependency on an external shell script for generating test files by moving the logic to Go. #### Key Changes 1. Concurrent File C...
diff --git a/tools/integration_tests/read_large_files/concurrent_read_files_test.go b/tools/integration_tests/read_large_files/concurrent_read_files_test.go index 568882fe56c..536a1b52a3f 100644 --- a/tools/integration_tests/read_large_files/concurrent_read_files_test.go +++ b/tools/integration_tests/read_large_files/c...
5
5
0
[{"id": "G0", "claim": "The names `filesInLocalDisk` (array of file names) and `filesPathInLocalDisk` (slice of file paths) are confusingly similar and error-prone and should be renamed for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
GoogleCloudPlatform__gcsfuse__4603
GoogleCloudPlatform/gcsfuse
4,603
defect
6e64a7ba3d44e70fab2789fa5b8fd5c054fd43e3
8d28147a6ebc60dec233267023873576ff5aeda2
Fix trace context propagation in write flows
Propagate trace contexts appropriately in buffered writes so that spans correctly tie up together. --- *PR created automatically by Jules for task [9983624060577591153](https://jules.google.com/task/9983624060577591153) started by @thrivikram-karur-g*
diff --git a/internal/bufferedwrites/buffered_write_handler.go b/internal/bufferedwrites/buffered_write_handler.go index 156958bed2f..26c201d34ca 100644 --- a/internal/bufferedwrites/buffered_write_handler.go +++ b/internal/bufferedwrites/buffered_write_handler.go @@ -15,6 +15,7 @@ package bufferedwrites import ( +...
4
4
2
[{"id": "G0", "claim": "appendBuffer, which now receives a context.Context, should check ctx.Err() at the beginning of each loop iteration so long-running write operations can be aborted promptly on cancellation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
GoogleCloudPlatform__gcsfuse__4611
GoogleCloudPlatform/gcsfuse
4,611
defect
9651ba5e583eb04a2d74d69eccf8a4d673538073
fd71118b66a706e4b2e0252e03971ace5f59a6c0
fix(requester pays): Fix requester pays for gRPC and also setup integration tests with gRPC with explicit SA.
### Description This PR fixes a bug in gRPC protocol requester pays feature. Where the billing project is not populated correctly causing errors of the following types. ``` InvalidArgument desc = Bucket is a requester pays bucket but no user project provided.\nerror details: name = BadRequest field = desc = Buc...
diff --git a/internal/storage/bucket_handle.go b/internal/storage/bucket_handle.go index 98bae912748..e80420ed72f 100644 --- a/internal/storage/bucket_handle.go +++ b/internal/storage/bucket_handle.go @@ -31,6 +31,7 @@ import ( "github.com/googlecloudplatform/gcsfuse/v3/internal/storage/gcs" "github.com/googlecloud...
2
2
1
[{"id": "G0", "claim": "Configuring the shared gRPC client with option.WithQuotaProject(billingProject) can lead to incorrect billing or quota attribution when the reused client serves buckets with different billing requirements, so the option should be removed from client initialization and the shared client kept neut...
null
GoogleCloudPlatform__gcsfuse__4620
GoogleCloudPlatform/gcsfuse
4,620
defect
a4bbd53d16d220480b82118bf1982b63025320d8
217dfbe36f41cef60090ed0b026a447ffcc1a2cc
test(logs): enforce log-file strictness and centralize log filename parsing
## Description This PR centralizes and strengthens log file handling within the integration test suite. It ensures that log files are consistently parsed with the correct `.log` suffix and that failures to open log files result in immediate test failure rather than silent errors during mounted directory tests. ## ##...
diff --git a/tools/integration_tests/inactive_stream_timeout/setup_test.go b/tools/integration_tests/inactive_stream_timeout/setup_test.go index 02cead84b7b..bc4b5790e7f 100644 --- a/tools/integration_tests/inactive_stream_timeout/setup_test.go +++ b/tools/integration_tests/inactive_stream_timeout/setup_test.go @@ -33,...
5
5
3
[{"id": "G0", "claim": "The require package used in setup_test.go is not imported, which will cause a compilation error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If parsedLogFileName remains empty after the inference attempt, logFilePath point...
null
GoogleCloudPlatform__gcsfuse__4621
GoogleCloudPlatform/gcsfuse
4,621
defect
b2c874d26493ba761944fb319bd1d28a5dd488c6
5afe52fa3a0fe62b76f7021fd85a8856efa89b56
feat(metrics): track streaming write fallback with reasons
Adds metric collection for `FsStreamingWriteFallbackCount` to capture the instances where GCSFuse falls back from streaming writes to legacy staged writes, categorized by the reason (e.g. out of order write, concurrent limit breached, existing file, not enabled). - Added `metricHandle` to `FileInode`. - Created `recor...
diff --git a/internal/fs/fs.go b/internal/fs/fs.go index e7bb296c2c6..126d9d3f838 100644 --- a/internal/fs/fs.go +++ b/internal/fs/fs.go @@ -1025,7 +1025,8 @@ func (fs *fileSystem) mintInode(ic inode.Core, parInodeCtx context.Context) (in fs.newConfig, fs.globalMaxWriteBlocksSem, fs.mrdCache, - fs.traceHa...
2
1
0
[{"id": "G0", "claim": "In tests, no-op metric implementations should be used for interface arguments instead of nil to prevent potential nil pointer panics and maintain consistency across the test suite.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "R...
null
GoogleCloudPlatform__gcsfuse__4633
GoogleCloudPlatform/gcsfuse
4,633
defect
f17101a9e89ceaef751c742fc652c9619b8381f2
0efd0246e7129fb62652d5dc70774f06e6b5f3de
feat: Add Read Path Support for Pirlo Buckets
### Description This change implements the read path support for Pirlo buckets by categorizing them as "rapid" buckets, consistent with the treatment of zonal buckets. This classification enables high-performance read features and specialized handling required for these bucket types. ### Link to the issue in case o...
diff --git a/cfg/config.go b/cfg/config.go index e5ef9b02565..ec4f98eb6eb 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -38,6 +38,10 @@ var AllFlagOptimizationRules = map[string]shared.OptimizationRules{"file-system. BucketType: "zonal", Value: bool(true), }, + { + BucketType: "pirlo", + Value:...
5
4
0
[{"id": "G0", "claim": "Rename the getClient parameter `isbucketRapid` to `isBucketRapid` to follow Go's camelCase naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add the missing space before the parenthesis in the test case na...
null
GoogleCloudPlatform__gcsfuse__4637
GoogleCloudPlatform/gcsfuse
4,637
defect
a524bfdf198e26cddeda1888053285cbc4f26083
2bf2cad2326ab807e8fe9c5784fdb420102ebf7b
fix: prevent symlink attack in log file creation
This PR fixes a reported symlink attack vulnerability in the `cmd/` package. Specifically: - In `cmd/mount.go`, the `--wire-log` file is now opened using `os.OpenFile` with the `syscall.O_NOFOLLOW` flag instead of `os.Create`. - In `cmd/legacy_main.go`, the daemon `.stderr` log file is opened with the `syscall.O_NOFOL...
diff --git a/cmd/legacy_main.go b/cmd/legacy_main.go index adf95f2f013..f210ef20af4 100644 --- a/cmd/legacy_main.go +++ b/cmd/legacy_main.go @@ -51,6 +51,7 @@ import ( "github.com/kardianos/osext" "github.com/spf13/viper" "golang.org/x/net/context" + "syscall" ) const ( @@ -441,7 +442,7 @@ func Mount(mountInf...
3
2
0
[{"id": "G0", "claim": "The main log file initialization in internal/logger/logger.go (InitLogFile) opens the log file without the O_NOFOLLOW flag, leaving it vulnerable to symlink attacks; apply the hardening consistently to all log file creations since gcsfuse may run with elevated privileges.", "category": "security...
null
GoogleCloudPlatform__gcsfuse__4640
GoogleCloudPlatform/gcsfuse
4,640
defect
24c54ca88debd70647a7c6e58ddd694b6737c5bd
074296205aa7ca33e603426d47e61176a733c91b
feat(metrics): Read block size metric gen code and tpl changes
### Description Adding the metric gen code for read/block_sizes metric. This is a histogram metric and the details for the metric are available in metrics.yaml . ### Link to the issue in case of a bug fix. b/504892196 ### Testing details 1. Manual - NA 2. Unit tests - Auto generated unittests have been added...
diff --git a/metrics/metric_handle.go b/metrics/metric_handle.go index 52c8698dd79..aec05461295 100644 --- a/metrics/metric_handle.go +++ b/metrics/metric_handle.go @@ -190,6 +190,9 @@ type MetricHandle interface { // GcsRetryCount - The cumulative number of retry requests made to GCS. GcsRetryCount(inc int64, retr...
8
8
2
[{"id": "G0", "claim": "For metrics with unit \"s\", unitMethod returns \".Seconds()\" producing a float64, which will cause a compilation error in the generated code because histogramRecord.value is an int64; add an explicit int64 cast in the generator.", "category": "correctness", "verdict": "supported", "priority": ...
null
GoogleCloudPlatform__golang-samples__2219
GoogleCloudPlatform/golang-samples
2,219
defect
415cf2345edaa824e437e155987bf9e0e3e1bbd1
64c41eba41b6d0a64b7915db97440941554781fd
feat(cloudsql): add support for SSL certificates
This commit adds support for configuring SSL certificates for Postgres and MySQL.
diff --git a/cloudsql/mysql/database-sql/Dockerfile b/cloudsql/mysql/database-sql/Dockerfile index 3e953ce78d..9581ffad40 100644 --- a/cloudsql/mysql/database-sql/Dockerfile +++ b/cloudsql/mysql/database-sql/Dockerfile @@ -43,6 +43,7 @@ RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install - #...
1
1
0
[{"id": "G0", "claim": "The dbURI variable appended to inside the new region tag is not declared within that region tag, and its declaration and initialization should be brought together with `:=` (though not necessarily in this sample).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
GoogleCloudPlatform__golang-samples__2658
GoogleCloudPlatform/golang-samples
2,658
defect
b80fc6684347bbf794b97b56be708c220c788f02
f233e8cf28a9ffb7ee4f5869f363eab70f3f172f
docs(secretmanager): Added sample for creating Secret with UserManaged replication
Added sample for creating Secret with UserManaged replication Fixes b/222386112
diff --git a/secretmanager/create_secret_with_user_managed_replication.go b/secretmanager/create_secret_with_user_managed_replication.go new file mode 100644 index 0000000000..b40d73ca9e --- /dev/null +++ b/secretmanager/create_secret_with_user_managed_replication.go @@ -0,0 +1,69 @@ +// Copyright 2022 Google LLC +// +...
2
2
0
[{"id": "G0", "claim": "The function createUmmrSecret reads just as well as createUserManagedReplicaSecret; Ummr is questioned as a common abbreviation, so the function should be renamed to a clearer name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
GoogleCloudPlatform__golang-samples__2674
GoogleCloudPlatform/golang-samples
2,674
defect
48c2d0337729a0251a45f214004b7c68a5dc048c
b35bf1b75637c8ed661654048b001fbd8bee2c65
fix(pubsub): fix flaky admin tests
This PR retries the creation of the topic/subscription resources, which sometimes can time out. Fixes #2370
diff --git a/pubsub/subscriptions/add_users.go b/pubsub/subscriptions/add_users.go index 278e059799..d2739247f8 100644 --- a/pubsub/subscriptions/add_users.go +++ b/pubsub/subscriptions/add_users.go @@ -37,7 +37,7 @@ func addUsers(projectID, subID string) error { sub := client.Subscription(subID) policy, err := sub...
1
1
1
[{"id": "G0", "claim": "The rewritten TestCreate no longer includes the actual test of the sample — the create() sample function is never invoked, so the sample itself is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__2705
GoogleCloudPlatform/golang-samples
2,705
defect
2670c36674dfd862c08c88c47b0ddd81cd6127a6
d5a35908df78acbe799b0d8209a4385c661e2858
refactor(storage): additional metadata output in CDR sample
Fixes #2667
diff --git a/storage/buckets/buckets_test.go b/storage/buckets/buckets_test.go index e4609eb142..1ec4354c49 100644 --- a/storage/buckets/buckets_test.go +++ b/storage/buckets/buckets_test.go @@ -100,19 +100,18 @@ func TestCreateBucketDualRegion(t *testing.T) { if err := createBucketDualRegion(buf, tc.ProjectID, bucke...
1
1
0
[{"id": "G0", "claim": "The output label \"customPlacementConfig\" would be a bit more accurate as \"customPlacementConfig.dataLocations\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__2713
GoogleCloudPlatform/golang-samples
2,713
defect
86f68d2bde5ec42d2cc9e29ede58ac65ba2628da
da3a760c5e10648edd043644a5f995dd9b8099b6
feat: Add snippets for Spanner DML with returning clause
Samples are provided for INSERT, DELETE, and UPDATE in both GoogleSQL and PostgreSQL dialects. To provide a more compelling example for the INSERT case, a generated column has been added in the "create_database" example so that the generated value can be returned in the INSERT examples. This changed the number of mutat...
diff --git a/spanner/spanner_snippets/spanner/integration_test.go b/spanner/spanner_snippets/spanner/integration_test.go index 4e4518341bb..35febc8781a 100644 --- a/spanner/spanner_snippets/spanner/integration_test.go +++ b/spanner/spanner_snippets/spanner/integration_test.go @@ -251,6 +251,9 @@ func TestSample(t *test...
2
2
0
[{"id": "G0", "claim": "In pg_spanner_dml_delete_returning.go the two scan variables should be declared as a grouped var block (`var (singerID int64; fullName string)`) instead of two separate var statements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
GoogleCloudPlatform__golang-samples__2737
GoogleCloudPlatform/golang-samples
2,737
defect
acee1d7b87ebc77ad74f07c856948eb24c893a17
5a9ee10235d87699314e23d9fe3f2165b63ab261
feat(storage): add autoclass samples
Fixes #2707 Requires https://github.com/googleapis/google-cloud-go/pull/6828 Tests pass locally with library feature support
diff --git a/storage/buckets/buckets_test.go b/storage/buckets/buckets_test.go index 1ec4354c49..1b7bfd31f5 100644 --- a/storage/buckets/buckets_test.go +++ b/storage/buckets/buckets_test.go @@ -756,3 +756,42 @@ func TestRPO(t *testing.T) { t.Fatalf("deleteBucket: %v", err) } } + +// TestAutoclass tests the follo...
5
3
0
[{"id": "G0", "claim": "The PR should follow the samples style guide's minimal arguments rule and the convention of separate enable/disable samples, by hard-coding the toggle argument rather than taking it as a parameter.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
GoogleCloudPlatform__golang-samples__2851
GoogleCloudPlatform/golang-samples
2,851
defect
e888c56cb843f475db4f79b391be999518e63db4
7203e7e575954975d332ca0d8a8d55ac3abee1c1
feat(spanner): add samples for UpdateDatabase
This PR adds samples and integration tests for `UpdateDatabase` request.
diff --git a/spanner/go.mod b/spanner/go.mod index 47117fffad..2d2fa7bfd3 100644 --- a/spanner/go.mod +++ b/spanner/go.mod @@ -13,15 +13,15 @@ require ( github.com/google/uuid v1.3.0 github.com/googleapis/gax-go/v2 v2.7.0 go.opencensus.io v0.24.0 - google.golang.org/api v0.104.0 - google.golang.org/genproto v0.0....
9
8
1
[{"id": "G0", "claim": "The opening region tag should read [START spanner_update_database] instead of [START spanner_drop_database_protection].", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The closing region tag should read [END spanner_update_d...
null
GoogleCloudPlatform__golang-samples__2942
GoogleCloudPlatform/golang-samples
2,942
defect
4efe0c14f0b4fc166b9f6aa6fb840ddfce5b0316
36200085bd4f8d70370a4ea2c56a275bade29969
feat(dlp): added a sample for inspect data for phone numbers
- Added a sample for [inspect data for phone numbers](https://cloud.google.com/dlp/docs/samples/dlp-inspect-phone-number) with unit test-case.
diff --git a/dlp/snippets/inspect/inspect_phone_number.go b/dlp/snippets/inspect/inspect_phone_number.go new file mode 100644 index 00000000000..8314edeb188 --- /dev/null +++ b/dlp/snippets/inspect/inspect_phone_number.go @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version ...
2
2
0
[{"id": "G0", "claim": "Use an obviously fake phone number (e.g. (123) 555-6789) instead of the real-looking number in the sample's commented textToInspect example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the comment about closing the ...
null
GoogleCloudPlatform__golang-samples__2952
GoogleCloudPlatform/golang-samples
2,952
defect
362ab20f5c1a865cf0748e09dfda0d543ef40bdb
4d5cfa1bb444d3a6424caf13434fa92636eddcc4
feat(dlp): added a sample for inspect custom regex
- Added a sample for [inspect custom regex](https://cloud.google.com/dlp/docs/samples/dlp-inspect-custom-regex) with unit test-case.
diff --git a/dlp/snippets/inspect/inspect_test.go b/dlp/snippets/inspect/inspect_test.go index 5d79cd30564..5a3708e3299 100644 --- a/dlp/snippets/inspect/inspect_test.go +++ b/dlp/snippets/inspect/inspect_test.go @@ -276,3 +276,21 @@ func TestInspectBigquery(t *testing.T) { }) } } + +func TestInspectWithCustomReg...
4
4
1
[{"id": "G0", "claim": "In TestInspectWithCustomRegex the buffer should be declared with `var buf bytes.Buffer` instead of `new(bytes.Buffer)`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should call t.Fatal(err) instead of t.Errorf ...
null
GoogleCloudPlatform__golang-samples__2984
GoogleCloudPlatform/golang-samples
2,984
defect
47342ff5b0c558b3739c5b40dbd15ced3ed20012
47ec9d4875a8da503907c51ec38e5715f6af9db0
feat(dlp): added a sample for deidentify table bucketing
## Description - Added a sample for [deidentify table bucketing](https://cloud.google.com/dlp/docs/samples/dlp-deidentify-table-bucketing) with a unit test case. Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklis...
diff --git a/dlp/snippets/deid/deid_table_bucketing.go b/dlp/snippets/deid/deid_table_bucketing.go new file mode 100644 index 0000000000..178e795af9 --- /dev/null +++ b/dlp/snippets/deid/deid_table_bucketing.go @@ -0,0 +1,156 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "...
3
3
1
[{"id": "G0", "claim": "Remove the nil-table check and the table parameter from deIdentifyTableBucketing; the sample should construct its own table.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the inline table construction from the test; the ta...
null
GoogleCloudPlatform__golang-samples__3093
GoogleCloudPlatform/golang-samples
3,093
defect
5b807c48c3cae0d41efee18297194fc9e1c5127d
007fa91dd84a2d7f608a706b5bf38f3c97f29107
feat(logging): add a sample for list logs
## Description Fixes b/281691466 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [X] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md)...
diff --git a/logging/list_logs.go b/logging/list_logs.go new file mode 100644 index 0000000000..a82d73ab25 --- /dev/null +++ b/logging/list_logs.go @@ -0,0 +1,53 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance wi...
2
2
0
[{"id": "G0", "claim": "Drop the log cleanup in TestMain; the log volume is small and removing it simplifies the test by eliminating adminClient.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two-value got/want conditional is awkward to read; inline...
null
GoogleCloudPlatform__golang-samples__3094
GoogleCloudPlatform/golang-samples
3,094
defect
39c54e436d6173f670675e6290a3ff0368dc1645
263cd2eb49fcf322e0d4d7997c8f2d7889d59ccb
feat(securitycenter): add scc samples for mute config
## Description Add new SCC samples for mute config. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [ ] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCloudPlatform/g...
diff --git a/securitycenter/go.mod b/securitycenter/go.mod index edb8304d01..68fb856b04 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -1,6 +1,6 @@ module github.com/GoogleCloudPlatform/golang-samples/securitycenter -go 1.19 +go 1.16 require ( cloud.google.com/go/pubsub v1.30.0 @@ -10,6 +10,7...
11
11
9
[{"id": "G0", "claim": "Revert the Go language level decrease: do not lower securitycenter/go.mod from go 1.19 to go 1.16.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In bulkMute, close the client before the method exits by inserting defer cl...
null
GoogleCloudPlatform__golang-samples__3148
GoogleCloudPlatform/golang-samples
3,148
defect
367d50b6e72b2d3f15ab0e9040e093451da14d23
337c23a2d07c458f23d97c61e7a5676a7cb07a22
feat(dlp): added a sample for dlp deidentify deterministic
## Description - Added a sample for [dlp deidentify deterministic](https://cloud.google.com/dlp/docs/samples/dlp-deidentify-deterministic) with a unit test case. ## Checklist - [X] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTR...
diff --git a/dlp/go.mod b/dlp/go.mod index f8010ad9e0..2f47ae906b 100644 --- a/dlp/go.mod +++ b/dlp/go.mod @@ -6,6 +6,7 @@ require ( cloud.google.com/go/bigquery v1.51.2 cloud.google.com/go/datastore v1.11.0 cloud.google.com/go/dlp v1.9.1 + cloud.google.com/go/kms v1.10.1 cloud.google.com/go/pubsub v1.30.1 cl...
4
4
0
[{"id": "G0", "claim": "The example input string in deid_deterministic.go should use an obviously fake SSN like 111111111 instead of a possibly real-looking one (372819127).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test input in TestDeId...
null
GoogleCloudPlatform__golang-samples__3168
GoogleCloudPlatform/golang-samples
3,168
defect
21b2912924087f9e9055badce467d5b6ce801d0f
9e568e1b1f84e43572e15dc7d56f32cab007f669
feat(dlp): added a sample for dlp inspect bigquery with sampling
## Description - Added a sample for [dlp inspect bigquery with sampling](https://cloud.google.com/dlp/docs/samples/dlp-inspect-bigquery-with-sampling) with a unit test case. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [X] I ...
diff --git a/dlp/snippets/inspect/inspect_bigquery_with_sampling.go b/dlp/snippets/inspect/inspect_bigquery_with_sampling.go new file mode 100644 index 0000000000..ffe1786b21 --- /dev/null +++ b/dlp/snippets/inspect/inspect_bigquery_with_sampling.go @@ -0,0 +1,185 @@ +// Copyright 2023 Google LLC +// +// Licensed under...
8
6
1
[{"id": "G0", "claim": "The commented example lines are confusing and refer to topicID where the subscription is meant; the 'or provide a name to create one' note should be moved to its own line and the subscription example should say subscriptionID.", "category": "documentation", "verdict": "supported", "priority": "P...
null
GoogleCloudPlatform__golang-samples__3182
GoogleCloudPlatform/golang-samples
3,182
defect
b7c30f1fb31353e1a8ed93a16b831d64cb5ccc13
d1e2aa26e63466086be99541aad848883ae6df32
feat(dlp): added a sample for dlp reidentify free text with fpe using surrogate
## Description - Added a sample for [dlp reidentify free text with fpe using surrogate](https://cloud.google.com/dlp/docs/samples/dlp-reidentify-free-text-with-fpe-using-surrogate) with a unit test case. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Goo...
diff --git a/dlp/snippets/deid/deid_test.go b/dlp/snippets/deid/deid_test.go index ad0afb946f..793f399de5 100644 --- a/dlp/snippets/deid/deid_test.go +++ b/dlp/snippets/deid/deid_test.go @@ -347,6 +347,37 @@ func TestDeIdentifyDeterministic(t *testing.T) { } +func TestReidentifyFreeTextWithFPEUsingSurrogate(t *tes...
1
1
0
[{"id": "G0", "claim": "TestReidentifyFreeTextWithFPEUsingSurrogate should not exercise more than one sample: the deidentify sample call should be removed so the reidentify test is hermetically independent (by calling the service directly, decoupling the tests, or hard-coding the de-identified input).", "category": "te...
null
GoogleCloudPlatform__golang-samples__3247
GoogleCloudPlatform/golang-samples
3,247
defect
767c23ef947856dadbfd05ce6c0c783f963b8436
321bac0eca2c7bf4d0981a5c99dd6a18ab6fd9bc
feat(dlp): added a sample for dlp inspect send data to hybrid job trigger
## Description - Added a sample for [dlp inspect send data to hybrid job trigger](https://cloud.google.com/dlp/docs/how-to-hybrid-jobs#sending-data) with a unit test case. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [X] I ha...
diff --git a/dlp/snippets/inspect/inspect_send_data_to_hybrid_job_trigger.go b/dlp/snippets/inspect/inspect_send_data_to_hybrid_job_trigger.go new file mode 100644 index 0000000000..f1ddbffd6c --- /dev/null +++ b/dlp/snippets/inspect/inspect_send_data_to_hybrid_job_trigger.go @@ -0,0 +1,140 @@ +// Copyright 2023 Google...
7
7
3
[{"id": "G0", "claim": "The commented-out lines left inside deleteActiveJob (the jobTrigger construction and the DlpJobType line) are unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "deleteActiveJob's Filter \"state=A...
null
GoogleCloudPlatform__golang-samples__3288
GoogleCloudPlatform/golang-samples
3,288
defect
993a6162d95844e06564b429034b39f6da7dff72
f2da8a9004df0810391287dc8563bd783ec1e7a3
fix(dlp): remove the function call of setupPubSub and added a inline code in samples
## Description Fixes #3281 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [X] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [...
diff --git a/dlp/snippets/deid/deid_test.go b/dlp/snippets/deid/deid_test.go index 0b6e6346a4..21a2467ba4 100644 --- a/dlp/snippets/deid/deid_test.go +++ b/dlp/snippets/deid/deid_test.go @@ -40,17 +40,21 @@ import ( ) const ( - bucketForDeidCloudStorageForInput = "dlp-test-deid-input" - bucketForDeidCloudStorageFo...
1
1
0
[{"id": "G0", "claim": "In the risk snippets (categorical, k_anonymity, k_map, l_diversity, numerical), replace the `else if !exists` branches on the topic/subscription existence checks with guard-clause `if` statements as suggested for categorical.go.", "category": "maintainability", "verdict": "supported", "priority"...
null
GoogleCloudPlatform__golang-samples__3446
GoogleCloudPlatform/golang-samples
3,446
defect
c772370d70284f716f60bbf4e5d49c97134fcd24
8452173529c4eec0984f383e766f2387d13a943b
feat(storage): support autoclass v2.1 samples
Fixes #3314 Requires https://github.com/googleapis/google-cloud-go/pull/8721
diff --git a/storage/buckets/buckets_test.go b/storage/buckets/buckets_test.go index 815b1c0d57..71f6dff02c 100644 --- a/storage/buckets/buckets_test.go +++ b/storage/buckets/buckets_test.go @@ -786,12 +786,13 @@ func TestAutoclass(t *testing.T) { t.Errorf("got %q, want %q", got, want) } - // Test set Autoclass ...
1
1
0
[{"id": "G0", "claim": "terminalStorageClass should be a local variable rather than a function argument, per the samples style guide on minimal arguments, and value can likewise be made a local var.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__3616
GoogleCloudPlatform/golang-samples
3,616
defect
8171f3e28119752599e06a56fde7a199c853e7ec
22d6c8d975530542748c1f47a9458f017e30449b
chore(vertexai): clean up chat example
## Description Change the chat example to use more idiomatic Go. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCl...
diff --git a/vertexai/chat/chat.go b/vertexai/chat/chat.go index 7071ffa6a4..d3f184eee7 100644 --- a/vertexai/chat/chat.go +++ b/vertexai/chat/chat.go @@ -23,12 +23,8 @@ import ( "cloud.google.com/go/vertexai/genai" ) -var projectId = "PROJECT_ID" -var region = "us-central1" -var modelName = "gemini-pro-vision" - ...
2
1
0
[{"id": "G0", "claim": "Remove the redundant GOLANG_SAMPLES_PROJECT_ID env check in Test_makeChatRequests because testutil.SystemTest already performs that check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CodeQL/Analyze CI step fails wi...
null
GoogleCloudPlatform__golang-samples__3618
GoogleCloudPlatform/golang-samples
3,618
defect
c61668e2907ca495a2dc4f78102f86d9d2c66602
cad33fe58dc67f50c651576e212ba9968b1cccb3
feat: add live session methods and tests
## Description Fixes b:277359252 - [X] Please **merge** this PR for me once it is approved
diff --git a/media/videostitcher/create_live_session.go b/media/videostitcher/create_live_session.go new file mode 100644 index 0000000000..0a79f7565d --- /dev/null +++ b/media/videostitcher/create_live_session.go @@ -0,0 +1,57 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the...
4
4
1
[{"id": "G0", "claim": "Move the t.Cleanup calls (here and in the other tests) up next to the resource-creation lines, right after the test resources are created, since t.Cleanup works like a defer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
GoogleCloudPlatform__golang-samples__3742
GoogleCloudPlatform/golang-samples
3,742
defect
e733b600f9fb424fae0dc49a6d32225242ab997f
9998b622971505f616cbc8a2124888d4442b4dfb
feat(datastore): Datastore query profiling samples
## Description This PR adds samples for query profiling. This PR will be merged after https://github.com/googleapis/google-cloud-go/pull/9200 Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guid...
diff --git a/datastore/snippets/snippet_test.go b/datastore/snippets/snippet_test.go index 48730cbdd6..22d521fb3b 100644 --- a/datastore/snippets/snippet_test.go +++ b/datastore/snippets/snippet_test.go @@ -771,3 +771,63 @@ func Snippet_metadataPropertiesForKind() { _ = err // Check error. _ = keys // Use keys to ...
1
1
0
[{"id": "G0", "claim": "The pull request should also add runAggregationQuery explain examples, matching the runQuery explain examples it adds.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__3809
GoogleCloudPlatform/golang-samples
3,809
defect
b36900ff347c88a9cfaa4e236039811f4999bbc3
6b2eebdc4ef9ccd0f43b0fce351c4681bcf93bda
docs(samples): add Spanner statement timeout sample
Adds a sample for setting a timeout for a single statement for Spanner.
diff --git a/spanner/spanner_snippets/spanner/integration_test.go b/spanner/spanner_snippets/spanner/integration_test.go index 481db98402..0faf80efbe 100644 --- a/spanner/spanner_snippets/spanner/integration_test.go +++ b/spanner/spanner_snippets/spanner/integration_test.go @@ -273,6 +273,9 @@ func TestSample(t *testin...
3
2
0
[{"id": "G0", "claim": "Asks what is being thrown away by the assignment to the blank identifier on the client.ReadWriteTransaction call (the value it returns).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Break the func literal of the ReadWriteTransac...
null
GoogleCloudPlatform__golang-samples__3851
GoogleCloudPlatform/golang-samples
3,851
defect
275d117bc6b616808c2a2c0b6dec663d5ec43693
6c393b5443c990bb9dc4a41faa03745feff58712
feat(vertexai): Align Function calling chat sample with the Python sample.
`functionCallsChat` prints: ``` Question: Do you have the Pixel 8 Pro in stock? function call generated by the model: { "Name": "getProductSku", "Args": { "productName": "Pixel 8 Pro" } } function call response sent to the model: { "Name": "getProductSku", "Response": { "in_...
diff --git a/vertexai/function-calling/functioncalling.go b/vertexai/function-calling/functioncalling.go index 17af985940..105dc875d0 100644 --- a/vertexai/function-calling/functioncalling.go +++ b/vertexai/function-calling/functioncalling.go @@ -15,13 +15,13 @@ // Function calling lets developers create a description...
1
1
1
[{"id": "G0", "claim": "Because the region tag aiplatform_gemini_function_calling is in place in docs, the docs must be revised first or both region tags left in place for a transitional period before this PR can merge.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__3961
GoogleCloudPlatform/golang-samples
3,961
defect
eb61de73248f9652648c8558c807f21db9988df3
a6aaf1cb3eda897a0491e0d42b465e0ec080725e
feat(pubsub): add otel tracing samples
Adds samples for enabling tracing of Pub/Sub client with OpenTelemetry and Cloud Trace.
diff --git a/pubsub/go.mod b/pubsub/go.mod index 28b5510788..421189e8d5 100644 --- a/pubsub/go.mod +++ b/pubsub/go.mod @@ -4,24 +4,29 @@ go 1.21 require ( cloud.google.com/go/bigquery v1.62.0 - cloud.google.com/go/iam v1.1.11 - cloud.google.com/go/pubsub v1.40.0 + cloud.google.com/go/iam v1.2.0 + cloud.google.com/...
1
1
1
[{"id": "G0", "claim": "The new otel tracing publish and subscribe samples added by the pull request need tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__3989
GoogleCloudPlatform/golang-samples
3,989
defect
3b4b38e58ec9153e70a4ac26bc8976d5ab88ccc5
dd6e1c1be5036350fd16108e1e16bf97e0022a74
feat: Elastic Text-Embedding Model demo.
## Elastic Text-Embedding Model demo Fixes: b/329655744, this demo is a part of this public doc * https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-text-embeddings Rationale for bifurcating * Get Text Embeddings [1] doc is going to host two sections; one for the latest model and features, and...
diff --git a/aiplatform/snippets/embeddings.go b/aiplatform/snippets/embeddings.go new file mode 100644 index 0000000000..4eafe4597d --- /dev/null +++ b/aiplatform/snippets/embeddings.go @@ -0,0 +1,78 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may no...
5
2
0
[{"id": "G0", "claim": "Add handling of a per-input title to the embeddings requests, as other samples were requested to do here.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The top-level generic If() helper is unnecessary; use an inline if-statement or...
null
GoogleCloudPlatform__golang-samples__4001
GoogleCloudPlatform/golang-samples
4,001
defect
73828d88606af1bae3ccc82d0c3594dc2c76c364
621ba4f70ea2cbf954b7a52c41b530e998e1c23c
test(testutil): add new function for creating a test bucket
Part 1 to bucket creation cleanup. Part 2 will be a PR replacing all references to CleanBucket with TestBucket or CreateTestBucket. Part 3 will remove the CleanBucket function. Deprecates CleanBucket; a followup PR will remove all references to this function. CleanBucket can run into problems of availability due t...
diff --git a/internal/testutil/storage_cleaner.go b/internal/testutil/storage_cleaner.go index b350ac69a4..55a9bbc3be 100644 --- a/internal/testutil/storage_cleaner.go +++ b/internal/testutil/storage_cleaner.go @@ -28,15 +28,43 @@ import ( "google.golang.org/api/iterator" ) -// CreateTestBucket creates a new bucke...
3
1
0
[{"id": "G0", "claim": "The CleanBucket deprecation leaves a number of uses of CleanBucket outside GCS samples that will have to be replaced as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper functions should be renamed to make t...
null
GoogleCloudPlatform__golang-samples__4110
GoogleCloudPlatform/golang-samples
4,110
defect
8153999de6cb42c7b91964f61f7a88bebb52dca1
0623293fac01346f78a8556f66384ace8e92c2ad
feat(vertexai): multimodal with all modalities
Go version of the Python sample at https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/generative_ai/gemini_all_modalities.py Region tag `generativeaionvertexai_gemini_all_modalities`
diff --git a/vertexai/multimodal-all/go.mod b/vertexai/multimodal-all/go.mod new file mode 100644 index 0000000000..a7eebe8c7f --- /dev/null +++ b/vertexai/multimodal-all/go.mod @@ -0,0 +1,47 @@ +module github.com/GoogleCloudPlatform/golang-samples/vertexai/multimodal-all-modalities + +go 1.21 + +require ( + cloud.goog...
5
3
1
[{"id": "G0", "claim": "generateMultimodalContent takes so many string parameters that callers can easily confuse them; define and pass a struct instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider having the function take a model and moving ...
null
GoogleCloudPlatform__golang-samples__4112
GoogleCloudPlatform/golang-samples
4,112
defect
8153999de6cb42c7b91964f61f7a88bebb52dca1
44309a185f5c00c0335954e9d107df121415d6c1
feat(vertexai): pdf input
Go version of the Python sample at https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/generative_ai/gemini_pdf_example.py Region tag `generativeaionvertexai_gemini_pdf`
diff --git a/vertexai/multimodal-pdf/go.mod b/vertexai/multimodal-pdf/go.mod new file mode 100644 index 0000000000..009adcdfbb --- /dev/null +++ b/vertexai/multimodal-pdf/go.mod @@ -0,0 +1,47 @@ +module github.com/GoogleCloudPlatform/golang-samples/vertexai/multimodal-pdf + +go 1.21 + +require ( + cloud.google.com/go/v...
4
4
0
[{"id": "G0", "claim": "The fmt.Errorf calls in pdf.go should wrap errors with %w instead of %v.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PDF generation function should follow the design decision made in PR #4110 (which led to the pdfPromp...
null
GoogleCloudPlatform__golang-samples__4113
GoogleCloudPlatform/golang-samples
4,113
defect
8153999de6cb42c7b91964f61f7a88bebb52dca1
6bbc20eff44afdbc6fdcfb279e3b9061fed0fed0
feat(vertextai): video with audio
Go version of the Python sample at https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/generative_ai/gemini_video_audio.py Region tag `generativeaionvertexai_gemini_video_with_audio`.
diff --git a/vertexai/multimodal-video-with-audio/go.mod b/vertexai/multimodal-video-with-audio/go.mod new file mode 100644 index 0000000000..adfe0b8d89 --- /dev/null +++ b/vertexai/multimodal-video-with-audio/go.mod @@ -0,0 +1,47 @@ +module github.com/GoogleCloudPlatform/golang-samples/vertexai/multimodal-video-with-a...
2
2
1
[{"id": "G0", "claim": "The generateMultimodalContent doc comment should say more than what the code does, explaining the goal of the sample and what \"w\" is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Error wrapping should use %w instead of ...
null
GoogleCloudPlatform__golang-samples__4121
GoogleCloudPlatform/golang-samples
4,121
defect
2e3e6982e61de690bce8fb475c92e7bd1b97d8a3
e55a129880d2b40dc634eddf7802121c05932468
feat(vertexai): system instruction
Go version of the Python sample at https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/generative_ai/gemini_system_instruction.py Region tag `generativeaionvertexai_gemini_system_instruction` Note: using `cloud.google.com/go/vertexai v0.7.2-0.20240430000329-84e3236355de` as there is no tag yet ...
diff --git a/vertexai/system-instruction/go.mod b/vertexai/system-instruction/go.mod new file mode 100644 index 0000000000..ac7ea61b12 --- /dev/null +++ b/vertexai/system-instruction/go.mod @@ -0,0 +1,47 @@ +module github.com/GoogleCloudPlatform/golang-samples/vertexai/system-instruction + +go 1.21 + +require ( + cloud...
4
4
0
[{"id": "G0", "claim": "The package doc comment should use the words \"system prompt\" (e.g. \"... can be specified in system instructions (also known as system prompts) ...\") so that searches can find this example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
GoogleCloudPlatform__golang-samples__4130
GoogleCloudPlatform/golang-samples
4,130
defect
78aa082fa261b1cdada9dc8b1247446b5cd07798
137857705b98ce203611326506b52f020949abf0
feat(vertexai): add gemini code sample and test for text-only input
## Description Fixes b:336785030 Please merge on approval
diff --git a/vertexai/snippets/text_input.go b/vertexai/snippets/text_input.go new file mode 100644 index 0000000000..d6912b19cd --- /dev/null +++ b/vertexai/snippets/text_input.go @@ -0,0 +1,61 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use ...
6
6
2
[{"id": "G0", "claim": "The function should be renamed to something that better describes what it does, such as generateContentFromText.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "location and modelName are static in the test, so they can be...
null
GoogleCloudPlatform__golang-samples__4150
GoogleCloudPlatform/golang-samples
4,150
defect
3c1be06d5fe47f9f100ea6695afca5635b792083
0785b2b923ca5e60fc44aab65980cd04d9be2035
feat(compute): Added samples for routes manipulation
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/route/create_route.go b/compute/route/create_route.go new file mode 100644 index 0000000000..6c208906e0 --- /dev/null +++ b/compute/route/create_route.go @@ -0,0 +1,70 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this f...
5
5
2
[{"id": "G0", "claim": "The buf.Reset() call at the end of TestCreateRoute is redundant because the deferred cleanup already resets the buffer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable name should be renamed to routeName (nit)...
null
GoogleCloudPlatform__golang-samples__4166
GoogleCloudPlatform/golang-samples
4,166
defect
dce598183b352dbeaec232e80013c2fac17b4641
4774396827f73dbd32993e37999d68724aef7357
feat(compute): compute_ip_address_assign_static_existing_vm sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/address/address_test.go b/compute/address/address_test.go index 6e33292c179..12c797595d4 100644 --- a/compute/address/address_test.go +++ b/compute/address/address_test.go @@ -23,6 +23,8 @@ import ( "testing" "time" + "google.golang.org/protobuf/proto" + compute "cloud.google.com/go/compute...
2
2
2
[{"id": "G0", "claim": "The test instance should use the debian-12 image family instead of debian-10, which is due for deprecation that month.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TestAssignStaticAddressToExistingVM should call t.Fatalf (n...
null
GoogleCloudPlatform__golang-samples__4171
GoogleCloudPlatform/golang-samples
4,171
defect
8b1a2f6502137590ef0edff7afd6cbb6e3cce2da
2b0a5ad1405c9ede83973b35c8caecab7109ba34
feat(compute): samples/compute_disk_list sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/disks/disks_test.go b/compute/disks/disks_test.go index e9c45c75c90..bc706003654 100644 --- a/compute/disks/disks_test.go +++ b/compute/disks/disks_test.go @@ -465,4 +465,40 @@ func TestComputeDisksSnippets(t *testing.T) { // Cannot clean up the disk just yet because it must be done after the VM...
4
3
1
[{"id": "G0", "claim": "The filter-formatting doc comment in compute/disks/list.go should link to the Go API documentation instead of a python (or php) link.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The subtest name \"Create a test disk and li...
null
GoogleCloudPlatform__golang-samples__4178
GoogleCloudPlatform/golang-samples
4,178
defect
0cbf1f0a4b10ce420686ae8c90c886262ee7403c
49951d33093cc0a48985df0c371fa7017625a5df
samples(storage): add folder samples
Adds samples to create, get, list, rename, and delete folders. Closes googleapis/google-cloud-go#10294 ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (s...
diff --git a/storage/control/create_folder.go b/storage/control/create_folder.go new file mode 100644 index 0000000000..4258cec2c0 --- /dev/null +++ b/storage/control/create_folder.go @@ -0,0 +1,55 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not u...
1
1
0
[{"id": "G0", "claim": "The folder samples should `defer client.Close()` after creating the storage control client, here and in the other samples.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4179
GoogleCloudPlatform/golang-samples
4,179
defect
0bf7a2f49f91fb55794844c17f8e51b8b2b490e4
40157b9d243d266f54bf99e396f2b36744dc8ceb
feat(compute): samples/compute_instances_bulk_insert
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/go.mod b/compute/go.mod index c6327b14f9..764bfb1a8d 100644 --- a/compute/go.mod +++ b/compute/go.mod @@ -6,6 +6,7 @@ require ( cloud.google.com/go/compute v1.24.0 cloud.google.com/go/storage v1.36.0 github.com/GoogleCloudPlatform/golang-samples v0.0.0-20240111005027-4c7a1933dce2 + github.com...
7
7
0
[{"id": "G0", "claim": "The unused minCount and labels parameters of bulkInsertInstance should be removed to keep the sample as concise as possible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The large embedded namePattern comment block shou...
null
GoogleCloudPlatform__golang-samples__4180
GoogleCloudPlatform/golang-samples
4,180
defect
8947784936bbc63ed498cdf0f600a2c473afbfb3
3541e149908ea71569e54e25adf65bd72f63e540
feat: Compute images create from image
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/disk-images/create_disk_from_image.go b/compute/disk-images/create_disk_from_image.go new file mode 100644 index 0000000000..e4877d1dbd --- /dev/null +++ b/compute/disk-images/create_disk_from_image.go @@ -0,0 +1,82 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version...
3
3
3
[{"id": "G0", "claim": "In the test, createImageFromImage should report failure with t.Errorf instead of t.Fatalf, so that a failure does not abort the test before the cleanup delete runs and leaves resources orphaned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
GoogleCloudPlatform__golang-samples__4186
GoogleCloudPlatform/golang-samples
4,186
defect
0bf7a2f49f91fb55794844c17f8e51b8b2b490e4
fbc69a109c7c423d4f5eee37eff8ba1de6a95ad6
feat: Added create image from snapshot sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/disk-images/create_disk_image_from_snapshot.go b/compute/disk-images/create_disk_image_from_snapshot.go new file mode 100644 index 0000000000..e9ce54d976 --- /dev/null +++ b/compute/disk-images/create_disk_image_from_snapshot.go @@ -0,0 +1,87 @@ +// Copyright 2024 Google LLC +// +// Licensed under ...
2
1
0
[{"id": "G0", "claim": "The `t.Fatalf` after `createImageFromSnapshot` in the image-creation subtest needs to be a `t.Errorf`, so a failure there does not abort the test and orphan the snapshot resource.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`s...
null
GoogleCloudPlatform__golang-samples__4187
GoogleCloudPlatform/golang-samples
4,187
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
5d1933a448933a4d782e0fa7e232b13165dbaeb5
feat(compute): compute_spot_create/check 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 [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/instances/spot/create_spot.go b/compute/instances/spot/create_spot.go new file mode 100644 index 0000000000..2f24f0d231 --- /dev/null +++ b/compute/instances/spot/create_spot.go @@ -0,0 +1,140 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License");...
2
2
0
[{"id": "G0", "claim": "The helper functions (getImageFromFamily, diskFromImage, createInstance) obscure the flow of the sample; refactor them to be inlined so the code is more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two tes...
null
GoogleCloudPlatform__golang-samples__4191
GoogleCloudPlatform/golang-samples
4,191
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
226f51295d91090bf75390156b870847dc0ad73a
feat(compute): hyperdisk_create/hyperdisk_pool_create/hyperdisk_create_from_pool samples
…e_from_pool 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 [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-sample...
diff --git a/compute/disks/create_hyperdisk.go b/compute/disks/create_hyperdisk.go new file mode 100644 index 0000000000..e70a504ba4 --- /dev/null +++ b/compute/disks/create_hyperdisk.go @@ -0,0 +1,79 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may no...
10
10
0
[{"id": "G0", "claim": "The createHyperdisk sample needlessly takes the disk size as a parameter; it is an unnecessary parameter to show usage.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented optional-field examples in create_hyperdisk.go li...
null
GoogleCloudPlatform__golang-samples__4193
GoogleCloudPlatform/golang-samples
4,193
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
1ad29f95478899117dc4d4c41ca223b878d2217c
feat(compute): compute_ip_address_get_vm_address sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/address/address_test.go b/compute/address/address_test.go index c198598f72..6d851ea7bf 100644 --- a/compute/address/address_test.go +++ b/compute/address/address_test.go @@ -628,3 +628,78 @@ func TestAssignStaticAddressToExistingVM(t *testing.T) { } t.Error("IP address did not assigned properly...
1
1
0
[{"id": "G0", "claim": "Remove the commented-out example `instance` block (and the commented addressType/isIPV6 lines) from compute/address/get_vm_address.go instead of shipping it inside the code sample.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4194
GoogleCloudPlatform/golang-samples
4,194
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
4cdd80d8eb043768da5706c443f58fdd6d2d39d0
feat(compute): compute_ip_address_assign_static_external_new_vm sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/address/address_test.go b/compute/address/address_test.go index c198598f72..4446481961 100644 --- a/compute/address/address_test.go +++ b/compute/address/address_test.go @@ -628,3 +628,74 @@ func TestAssignStaticAddressToExistingVM(t *testing.T) { } t.Error("IP address did not assigned properly...
3
3
0
[{"id": "G0", "claim": "The commented-out network Name line looks like leftover code and should be removed from the sample.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'HERE IS ACTUAL IP ADDRESS ASSIGN' call-out comment is unnecessary bec...
null
GoogleCloudPlatform__golang-samples__4195
GoogleCloudPlatform/golang-samples
4,195
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
c8020aba7681c43337264c74151aad9c6fdbf335
feat(compute): compute_ip_address_promote_ephemeral sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/address/address_test.go b/compute/address/address_test.go index c198598f72..8ab5bf083f 100644 --- a/compute/address/address_test.go +++ b/compute/address/address_test.go @@ -628,3 +628,98 @@ func TestAssignStaticAddressToExistingVM(t *testing.T) { } t.Error("IP address did not assigned properly...
1
1
1
[{"id": "G0", "claim": "The test should release the static IP address it promotes (ideally via defer), since the sample's reserve leaves an unreleased static IP in the test project that keeps generating cost.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4196
GoogleCloudPlatform/golang-samples
4,196
defect
f80fd3c472f52b8fc01ce25242e99aa882c08d6f
a1a366859647454a6b324a1232f1369ee1038887
feat(compute): compute_ip_address_unassign_static_address sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/compute/address/address_test.go b/compute/address/address_test.go index c198598f72..343677b249 100644 --- a/compute/address/address_test.go +++ b/compute/address/address_test.go @@ -628,3 +628,114 @@ func TestAssignStaticAddressToExistingVM(t *testing.T) { } t.Error("IP address did not assigned properl...
1
1
0
[{"id": "G0", "claim": "The new Unassign test duplicates the setup of TestAssignStaticAddressToExistingVM and could be skipped by testing unassign at the end of that test, which already sets up a static address.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4220
GoogleCloudPlatform/golang-samples
4,220
defect
a22abb0cd23055a926bc631c501eeaa3e21efa70
6c2c4e4d825c1abe126e4e3e2fb69b497d634b1f
feat(storage): add object retention samples
## Description Fixes #3803 ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/...
diff --git a/internal/testutil/storage_cleaner.go b/internal/testutil/storage_cleaner.go index 2d9b9467d1..983c2c2b49 100644 --- a/internal/testutil/storage_cleaner.go +++ b/internal/testutil/storage_cleaner.go @@ -83,17 +83,27 @@ func DeleteBucketIfExists(ctx context.Context, client *storage.Client, bucket st if er...
2
2
0
[{"id": "G0", "claim": "Print the retention struct unconditionally with %+v (including field names) instead of the conditional per-field printing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the retention test's mismatch message the got an...
null
GoogleCloudPlatform__golang-samples__4226
GoogleCloudPlatform/golang-samples
4,226
defect
3576313cea8c78f7adaa866f2c296930206d0437
20d621b3a9a8fb671a9e8b3290876fa0fe93defe
feat: add v2 API findings samples for create, update
## Description Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API for Create finding, Update finding state and Update finding with source properties. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] ...
diff --git a/securitycenter/findingsv2/create_finding.go b/securitycenter/findingsv2/create_finding.go new file mode 100644 index 0000000000..13e74a47a5 --- /dev/null +++ b/securitycenter/findingsv2/create_finding.go @@ -0,0 +1,70 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (...
4
4
3
[{"id": "G0", "claim": "The samples should support Go 1.20+ to stay in sync with client library support, but the module declares go 1.21, so these samples will not run on the still-supported Go 1.20.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
GoogleCloudPlatform__golang-samples__4266
GoogleCloudPlatform/golang-samples
4,266
defect
5a72d1216374139e9173964fa90d7e0f677bc8b2
c20b08e994ec65acb50b903772a5e8176634e1b7
feat: create job with notification sample
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/batch/create_with_notification.go b/batch/create_with_notification.go new file mode 100644 index 0000000000..9d8eda98de --- /dev/null +++ b/batch/create_with_notification.go @@ -0,0 +1,128 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may n...
1
1
0
[{"id": "G0", "claim": "The test job name format string uses \"2006-12-25\", which is not a valid Go date layout and should be \"2006-01-02\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4268
GoogleCloudPlatform/golang-samples
4,268
defect
5d8f04438e9eef324f8b06f7892cefd8450cff32
19bcd22aa2661743a562b43204d608e8a272a78d
feat: add v2 API for muteconfig Go client libraries or samples
## Description Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API to create, list, get, update, delete, mute, unmute, bulk-mute the samples. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have f...
diff --git a/go.mod b/go.mod index dbed0930bc..6df2418abd 100644 --- a/go.mod +++ b/go.mod @@ -3,54 +3,55 @@ module github.com/GoogleCloudPlatform/golang-samples go 1.19 require ( - cloud.google.com/go/batch v1.8.0 - cloud.google.com/go/bigquery v1.59.1 - cloud.google.com/go/compute v1.24.0 - cloud.google.com/go/er...
2
1
0
[{"id": "G0", "claim": "The test file should wrap errors with the verb %w instead of %v in its fmt.Errorf calls (4 occurrences).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Are these 2 env vars (SCC_PROJECT_ORG_ID and SCC_PROJECT_ID) set in t...
null
GoogleCloudPlatform__golang-samples__4273
GoogleCloudPlatform/golang-samples
4,273
defect
5d8f04438e9eef324f8b06f7892cefd8450cff32
0a284a4c2de0641f984b2a61f2caf9216f1a77ae
feat(securitymarksv2): Add Security Marks v2 Go Client Libraries/ Samples
## Description Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API Go client samples for the Adding & Deleting Security Marks, Add Security Marks to Findings, Delete Security Marks. Note: Before submitting a pull request, please open an issue for discussion if you are not associated with ...
diff --git a/securitycenter/go.mod b/securitycenter/go.mod index 89f571625b..9acf43f0d8 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -1,47 +1,47 @@ module github.com/GoogleCloudPlatform/golang-samples/securitycenter -go 1.19 +go 1.21 require ( - cloud.google.com/go/pubsub v1.36.1 - cloud.goog...
2
2
1
[{"id": "G0", "claim": "When strconv.ParseInt fails, attemptLease should fail (return an error) instead of proceeding with the zero-valued parsed lease time that lets the lease continue.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use %q as the s...
null
GoogleCloudPlatform__golang-samples__4300
GoogleCloudPlatform/golang-samples
4,300
defect
be94f416503b83ca3b5abbd4f8cc7a6c751d23b6
dc3db9420dba301340cd5d6dd326ce208670b351
fix: Adding more complex context for weather and corresponding test
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/vertexai/function-calling/functioncalling_basic.go b/vertexai/function-calling/functioncalling_basic.go index b87d50d408..df6ff18698 100644 --- a/vertexai/function-calling/functioncalling_basic.go +++ b/vertexai/function-calling/functioncalling_basic.go @@ -34,7 +34,8 @@ import ( // functionCallsBasic o...
2
2
0
[{"id": "G0", "claim": "The doc comment has a typo (\"outout\") and would read better as \"Writes output of second call to w\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should declare the buffer idiomatically as `var buf bytes.Buffe...
null
GoogleCloudPlatform__golang-samples__4305
GoogleCloudPlatform/golang-samples
4,305
defect
05d5bd3e71d592fd6356b3554d06f024552baf1c
f9ad1bc894fec35dd8f0cdc50c18dc8f78c08ba7
fix: moving prompt inside sample
## Description - Moved func parameter from tests to sample as local variable - Added additional call to model, to be consistent with Python samples ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) ...
diff --git a/vertexai/token-count/tokencount.go b/vertexai/token-count/tokencount.go index 2badc279e7..12eea31c87 100644 --- a/vertexai/token-count/tokencount.go +++ b/vertexai/token-count/tokencount.go @@ -27,12 +27,12 @@ import ( ) // countTokens returns the number of tokens for this prompt. -func countTokens(w i...
3
3
1
[{"id": "G0", "claim": "The prompt string in countTokens should start with a capital letter (\"Why\" instead of \"why\").", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for the second print added to the sample (\"Total number of tok...
null
GoogleCloudPlatform__golang-samples__4309
GoogleCloudPlatform/golang-samples
4,309
defect
c737c238a8c91ad73fe9c41d67650557d9dd2b92
24de123ec686ae7b9d785c40573f21d69e12a6ae
docs: Create set_mute_undefined_finding sample
Create set_mute_undefined_finding sample for use case: resetting an individual finding's mute state to UNDEFINED. ## 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 [Contr...
diff --git a/securitycenter/muteconfig/set_mute_undefined_finding.go b/securitycenter/muteconfig/set_mute_undefined_finding.go new file mode 100644 index 0000000000..9e2e67acfb --- /dev/null +++ b/securitycenter/muteconfig/set_mute_undefined_finding.go @@ -0,0 +1,57 @@ +// Copyright 2024 Google LLC +// +// Licensed und...
3
3
2
[{"id": "G0", "claim": "go vet fails because the sample uses the nonexistent constant securitycenterpb.Finding_MUTE_UNDEFINED, which should be securitycenterpb.Finding_UNDEFINED.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new sample, like th...
null
GoogleCloudPlatform__golang-samples__4313
GoogleCloudPlatform/golang-samples
4,313
defect
6c51e608b297011d58a13cace2370d6ea1fcccfe
6e4a89b3de1bbdc76be4cf2bdf86816fc39d6d21
feat: Create a few code snippets as examples for using Spanner Graph in golang
Add a few code snippets to illustrate how to use Spanner Graph functionality in Golang. These examples resemble other snippets for how various other Spanner features can be used. Fixes #4312 ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/g...
diff --git a/spanner/spanner_snippets/graph_snippet.go b/spanner/spanner_snippets/graph_snippet.go new file mode 100644 index 00000000000..076f62d5d4a --- /dev/null +++ b/spanner/spanner_snippets/graph_snippet.go @@ -0,0 +1,486 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the...
14
10
1
[{"id": "G0", "claim": "The graph samples may duplicate samples that already exist, so the author should verify these samples are needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Break the samples out of the single graph_snippet.go into separate file...
null
GoogleCloudPlatform__golang-samples__4343
GoogleCloudPlatform/golang-samples
4,343
defect
4021deccbd47038e403b736103e59abbbd4cc627
a451f67c837dc3c4f4ba41393762d9ba5d5d2d73
feat(bigqueryv2): Add Big Query v2 client libraries/ samples
## Description Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API Big Query Go 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 - [ ] I have followed [...
diff --git a/securitycenter/bigqueryv2/bigquery_test.go b/securitycenter/bigqueryv2/bigquery_test.go new file mode 100644 index 0000000000..347c3111ff --- /dev/null +++ b/securitycenter/bigqueryv2/bigquery_test.go @@ -0,0 +1,287 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (th...
6
5
0
[{"id": "G0", "claim": "Remove the env-var check in the orgID() helper and instead set the organization ID as a constant in the test file, populated once during test setup so the value is not fetched on every call.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
GoogleCloudPlatform__golang-samples__4352
GoogleCloudPlatform/golang-samples
4,352
defect
86a93166723803996f796f4873d31a9b6c4dc12a
1a191345b2345c2c4d63a7bbc7ee55d7c4e5c993
feat(firestore): Query explain and explain analyze
## Description Adding Firestore query explain and explain analyze samples. The build will pass once 1.17.0 has been released. I will merge this PR once https://github.com/googleapis/google-cloud-go/pull/10597 has been merged. This has been tested locally by pointing cloud.google.com/go/firestore to local directory ...
diff --git a/firestore/aggregate_query_explain.go b/firestore/aggregate_query_explain.go new file mode 100644 index 0000000000..eec410f197 --- /dev/null +++ b/firestore/aggregate_query_explain.go @@ -0,0 +1,59 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// y...
3
1
0
[{"id": "G0", "claim": "The pull request should address the errors reported by go vet.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Cut the redundant first-line \"Build the query\" comments from the new sample files (aggregate_query_explain.go and ag...
null
GoogleCloudPlatform__golang-samples__4358
GoogleCloudPlatform/golang-samples
4,358
defect
2207e28f04a2c89af377575deab89b282386aacb
3490d8d4dfa2b83a10a5fcf2e747642feab12128
feat(firestore): Vector search
## Description Adding vector search samples This is similar to Python and Node in https://firebase.google.com/docs/firestore/vector-search ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **T...
diff --git a/firestore/go.mod b/firestore/go.mod index 1cbe3cacc5..9d2a1ef4ff 100644 --- a/firestore/go.mod +++ b/firestore/go.mod @@ -3,44 +3,43 @@ module github.com/GoogleCloudPlatform/golang-samples/firestore go 1.21 require ( - cloud.google.com/go/firestore v1.15.0 + cloud.google.com/go/firestore v1.16.0 gith...
3
3
0
[{"id": "G0", "claim": "The index-creation setup repeated in the test is common to any test needing an index and should be extracted into a shared helper function that takes only the index value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
GoogleCloudPlatform__golang-samples__4362
GoogleCloudPlatform/golang-samples
4,362
defect
9181eae32b8d0f367e1bea74a3801cc787d904bd
f9ffed2346cf72a40f6a01d435a8e0af60ee6d71
feat(firestore): Distance result field and distance threshold in vector search
## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pass: `go test -v ./..` (see [Testing](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md#testing)) - [x]...
diff --git a/firestore/vector_search_distance_threshold.go b/firestore/vector_search_distance_threshold.go new file mode 100644 index 0000000000..91a9e95efc --- /dev/null +++ b/firestore/vector_search_distance_threshold.go @@ -0,0 +1,58 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version...
1
1
0
[{"id": "G0", "claim": "Add some more context around what a \"vector index\" is in the three vector search samples — e.g. a link to the documentation on cloud.google.com — here and in the following samples.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4369
GoogleCloudPlatform/golang-samples
4,369
defect
2b0856095aaa5f6324dce8ab5e069cc1a12f0344
2251edc38f6eb12baf9ebbb172eb9cc431af78fd
feat: reservations create/get/list/delete samples
## Description Created 4 new samples with basic operations: - create - delete - get - list ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [ ] **Tests** pass: `go test -v ./..` (see [Testin...
diff --git a/compute/reservations/create_reservation.go b/compute/reservations/create_reservation.go new file mode 100644 index 0000000000..604ee7d139 --- /dev/null +++ b/compute/reservations/create_reservation.go @@ -0,0 +1,73 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the...
1
1
0
[{"id": "G0", "claim": "The test helpers in reservations_test.go pass around a context that has had no timeout applied; remove the context object from their signatures and create a new context object inside each function instead.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4381
GoogleCloudPlatform/golang-samples
4,381
defect
fcc49d3621adb0f47cd8696fa504873f84fe110d
e511a1bba88efdc2c717ee447b96918d5d32f371
chore(samples): add sample for spanner editions
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [x] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/spanner/go.mod b/spanner/go.mod index 441d698252..0c235ea795 100644 --- a/spanner/go.mod +++ b/spanner/go.mod @@ -4,30 +4,30 @@ go 1.21 require ( cloud.google.com/go v0.115.0 - cloud.google.com/go/iam v1.1.11 - cloud.google.com/go/kms v1.18.3 - cloud.google.com/go/longrunning v0.5.10 - cloud.google.co...
3
3
0
[{"id": "G0", "claim": "Declare and initialize the UpdateInstanceRequest object outside of the method invocation so readers can see what data the request needs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining what the Edi...
null
GoogleCloudPlatform__golang-samples__4395
GoogleCloudPlatform/golang-samples
4,395
defect
a00ca430a14b64707e8aa275993a894ead0543f2
216227f4095c8239b6475350d7a6d4f80d883cb1
feat: gemma2 samples with accelerated TPU and GPU
## Description Base sample on python https://github.com/GoogleCloudPlatform/python-docs-samples/pull/12598 ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [ ] **Tests** pass: `go test -v ./..` ...
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b785af1d0f..c2c636c6aa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -60,6 +60,7 @@ /auth/ @GoogleCloudPlatform/go-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers @GoogleCloudPlatform/dee-infra @Goog...
4
4
2
[{"id": "G0", "claim": "The GPU and TPU samples should include comments showing the structure of the request, with an example of how it is packed together.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function TestPredictGPU should be r...
null
GoogleCloudPlatform__golang-samples__4402
GoogleCloudPlatform/golang-samples
4,402
defect
906c3e618d858475597028d3d17d82194bce9b51
38ea56bc7d7ccfff3c2dba70c7b5511dc8c03700
feat: created reservation samples for update and create
## Description - Sample for creating reservation manually, without template - Sample for updating number of VMs in reservation - Updated getReservation sample - Moved previous set of tests into a separate case ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com...
diff --git a/compute/reservations/create_base_reservation.go b/compute/reservations/create_base_reservation.go new file mode 100644 index 0000000000..bbc29f478b --- /dev/null +++ b/compute/reservations/create_base_reservation.go @@ -0,0 +1,83 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, V...
1
1
0
[{"id": "G0", "claim": "Provide a comment describing what is being created in compute/reservations/create_base_reservation.go.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleCloudPlatform__golang-samples__4407
GoogleCloudPlatform/golang-samples
4,407
defect
e522327be92154d31fdfbca0f15e32b28865ce23
9dbd03e7e14c82d8f5ae042be2080b5661d7dbed
feat: consume reservation samples
## Description Samples, which demonstrates how to create reservation, which can be consumed by: - any instance - instance, which should specify exact reservation doc link: https://cloud.google.com/compute/docs/instances/reservations-consume Note: Before submitting a pull request, please open an issue for dis...
diff --git a/compute/reservations/consume_any_reservation.go b/compute/reservations/consume_any_reservation.go new file mode 100644 index 0000000000..a6c6eeb1a2 --- /dev/null +++ b/compute/reservations/consume_any_reservation.go @@ -0,0 +1,127 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, ...
1
1
0
[{"id": "G0", "claim": "The consume sample files carry duplicated reservation-creation helper functions (createConsumableReservation in consume_any_reservation.go and createSpecificConsumableReservation in consume_specific_reservation.go), so each region tag covers more than one function and the creation code duplicate...
null
GoogleCloudPlatform__golang-samples__4416
GoogleCloudPlatform/golang-samples
4,416
defect
66760d064c5e766cbef7c336a4f31730e6199d85
b8265c9aca495062adbcc9dd77209d6427cb6431
feat: Batch Text Embeddings Sample
## Description Sample for docs page https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/batch-prediction-genai-embeddings#generative-ai-batch-embedding-python_vertex_ai_sdk As a reference was taken Python PR https://github.com/GoogleCloudPlatform/python-docs-samples/pull/12031 ## Checklist - [ ] ...
diff --git a/aiplatform/snippets/embedding_batch_predict.go b/aiplatform/snippets/embedding_batch_predict.go new file mode 100644 index 0000000000..4b6dc2030f --- /dev/null +++ b/aiplatform/snippets/embedding_batch_predict.go @@ -0,0 +1,80 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Vers...
2
2
1
[{"id": "G0", "claim": "Initialize InputConfig and OutputConfig outside the CreateBatchPredictionJobRequest literal instead of inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The aiplatform job client created in embedBatchPredict is never...
null
GoogleCloudPlatform__golang-samples__4431
GoogleCloudPlatform/golang-samples
4,431
defect
20bc0178f635399f0156368961a504383e89489d
edcf87fbec2da2fa985c8f96c11c422b40650a9b
feat: add samples for labels, regional SM
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/secretmanager/regional_samples/create_regional_secret_with_labels.go b/secretmanager/regional_samples/create_regional_secret_with_labels.go new file mode 100644 index 0000000000..f59c614fc5 --- /dev/null +++ b/secretmanager/regional_samples/create_regional_secret_with_labels.go @@ -0,0 +1,68 @@ +// Copyrig...
6
6
0
[{"id": "G0", "claim": "Replace the commented-out placeholder `name` variable with an actual `name :=` assignment at the top of the sample function and remove the placeholder comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Provide a comm...
null
GoogleCloudPlatform__golang-samples__4432
GoogleCloudPlatform/golang-samples
4,432
defect
2756e38df8d526b51f0c582da6b4e485e425a602
74dcad54cb0fce545c7cd60facda6f3896491994
feat: added annotations samples for SM
## Description Fixes #<ISSUE-NUMBER> Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING...
diff --git a/secretmanager/create_secret_with_annotations.go b/secretmanager/create_secret_with_annotations.go new file mode 100644 index 0000000000..91f1d63a75 --- /dev/null +++ b/secretmanager/create_secret_with_annotations.go @@ -0,0 +1,68 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, V...
7
7
0
[{"id": "G0", "claim": "Rename the `id` parameter of the annotation sample functions so it says what kind of ID it is (e.g. `secretID`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `name` parameter of the annotation sample function...
null
GoogleCloudPlatform__golang-samples__4437
GoogleCloudPlatform/golang-samples
4,437
defect
1cd7a6f1769bd9c7727edb61c631be1376d0c372
bfaf9471897392f2ac881485b925dff87ac230ee
feat(securitycenter): Add Resource SCC Management API Org SHA Custom Module samples (Create, Get, List, Update)
## Description Fixes #b/347347419, b/347346767, b/347347451, b/347347162 Reference to b/347347419, b/347346767, b/347347451, b/347347162 This PR adds SCC Managament API Org SHA Custom Module Samples to Create, List, Get & Update. Note: Before submitting a pull request, please open an issue for discussion if you...
diff --git a/securitycenter/go.mod b/securitycenter/go.mod index 2a3dc56aa0..32a7082127 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -3,45 +3,46 @@ module github.com/GoogleCloudPlatform/golang-samples/securitycenter go 1.21 require ( - cloud.google.com/go/iam v1.1.11 - cloud.google.com/go/pubsu...
1
1
0
[{"id": "G0", "claim": "The doc comments should spell the function name as it is actually declared in camelCase rather than PascalCase, matching the function (in the list/update files the comments were copied from create and even say 'creates').", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
GoogleCloudPlatform__golang-samples__4457
GoogleCloudPlatform/golang-samples
4,457
defect
9f09af37eaa51032b35bdb5f51e6fa19c26204aa
fe8e8f8cc1e5f21a518d5741e3f26ad17dfe61d2
feat(gen ai): add samples for aiplatform batch predict api with gemini
## Description Adds new samples for the Vertex AI "Batch Prediction" [page](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini) sections: * "Batch Prediction for Cloud Storage" [section](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini#...
diff --git a/vertexai/batch-predict/batch_predict_bq.go b/vertexai/batch-predict/batch_predict_bq.go new file mode 100644 index 0000000000..46e1d431cd --- /dev/null +++ b/vertexai/batch-predict/batch_predict_bq.go @@ -0,0 +1,110 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (th...
5
4
0
[{"id": "G0", "claim": "Please rename the sample files to use a `gemini` prefix (as in the Python batch_predict samples).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example URIs in the sample comments should not use fictitious names like...
null
GoogleCloudPlatform__golang-samples__4514
GoogleCloudPlatform/golang-samples
4,514
defect
22a9877b4bacc9c6d33d407323dea8429a6ca853
7d1ebf48a19a2e6e32b5c86a424b4e87851dbed3
feat(gen ai): add samples for aiplatform evaluation api
## Description Adds code samples for the Vertex AI `model-reference/evaluation` [page](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/evaluation) sections: - "Evaluate an output" [section](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/evaluation#evaluate_an_output) ...
diff --git a/go.work b/go.work index aa9e205ebd..944decf069 100644 --- a/go.work +++ b/go.work @@ -147,6 +147,7 @@ use ( ./vertexai/chat ./vertexai/context-caching ./vertexai/controlled-generation + ./vertexai/evaluation ./vertexai/function-calling ./vertexai/gemma2 ./vertexai/multimodal diff --git a/vertex...
7
5
1
[{"id": "G0", "claim": "The region tag for the evaluate_output sample should be renamed to `generativeaionvertexai_create_evaluation_task` to stay consistent with the tag used in other languages, since matching region tags are required when the samples are imported into the docs.", "category": "documentation", "verdict...
null
GoogleCloudPlatform__golang-samples__4594
GoogleCloudPlatform/golang-samples
4,594
defect
c5f1b76c464b21a7cd4dc29e6a16b0272b6d16f0
73586351c80ace7c7dbfa60b4f6f21d3bd7e0d86
feat(vertex/aiplatform): add code samples for embeddings
## Description Adds code samples for Multimodal Embeddings API (both [Guides](https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-multimodal-embeddings) & [API Reference](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/multimodal-embeddings-api) doc trees). ## Checklist - [...
diff --git a/go.work b/go.work index 944decf069..56be73ff67 100644 --- a/go.work +++ b/go.work @@ -147,6 +147,7 @@ use ( ./vertexai/chat ./vertexai/context-caching ./vertexai/controlled-generation + ./vertexai/embeddings ./vertexai/evaluation ./vertexai/function-calling ./vertexai/gemma2 diff --git a/vertex...
5
5
0
[{"id": "G0", "claim": "The sample comments should link to the official documentation pages on cloud.google.com instead of the deployed model's raw YAML schema files on storage.googleapis.com.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fmt...
null
GoogleCloudPlatform__golang-samples__4845
GoogleCloudPlatform/golang-samples
4,845
defect
17d63f05322bdfec489057181a323db84515b950
ebcbf3a9450cad637ed3e564d6cd69ef0cac228b
feat(spanner): add spanner sample snippet for creating asymmetric autoscaling instance
## 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 [Contributing Guidelines from CONTRIBUTING.MD](https://github.com/GoogleCloudPlatform/golang-samples/blob/main/CONTRIBUTING.md) - [x] **Tests** pas...
diff --git a/go.mod b/go.mod index 6e8f563460a..72a63003f3d 100644 --- a/go.mod +++ b/go.mod @@ -28,13 +28,20 @@ require ( cloud.google.com/go/iam v1.2.1 // indirect cloud.google.com/go/longrunning v0.6.1 // indirect cloud.google.com/go/vision/v2 v2.9.1 // indirect + github.com/bitfield/gotestdox v0.2.2 // indire...
6
3
0
[{"id": "G0", "claim": "The closing region tag at the end of the sample should read `spanner_create_instance_with_asymmetric_autoscaling` instead of `spanner_create_instance_with_autoscaling_config`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A ...
null