-
Notifications
You must be signed in to change notification settings - Fork 262
chore: remove extra space in comment #3319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ import ( | |
| // BenchmarkKmsSignerSign test kms round trip | ||
| // export EVNODE_E2E_AWS_KMS_KEY_ID="arn:aws:kms:...." | ||
| // export EVNODE_E2E_AWS_KMS_REGION=eu-west-1 | ||
| // go test -v -bench=BenchmarkKmsSignerSign -benchtime=3s -count=10 -run='^$' ./pkg/signer/aws | ||
| // go test -v -bench=BenchmarkKmsSignerSign -benchtime=3s -count=10 -run='^$' ./pkg/signer/aws | ||
|
Comment on lines
16
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrong environment variables and test path in benchmark documentation. The comment documentation has critical errors:
Developers following these comments will set the wrong environment variables and target the wrong package. 📝 Proposed fix for the documentation-// BenchmarkKmsSignerSign test kms round trip
-// export EVNODE_E2E_AWS_KMS_KEY_ID="arn:aws:kms:...."
-// export EVNODE_E2E_AWS_KMS_REGION=eu-west-1
-// go test -v -bench=BenchmarkKmsSignerSign -benchtime=3s -count=10 -run='^$' ./pkg/signer/aws
+// BenchmarkKmsSignerSign test kms round trip
+// export EVNODE_E2E_GCP_KMS_KEY_NAME=projects/<project-id>/locations/<region>/keyRings/<keyring-name>/cryptoKeys/<key-name>/cryptoKeyVersions/1
+// export EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE=...
+// go test -v -bench=BenchmarkKmsSignerSign -benchtime=3s -count=10 -run='^$' ./pkg/signer/gcp🤖 Prompt for AI Agents |
||
| func BenchmarkKmsSignerSign(b *testing.B) { | ||
| keyName := os.Getenv("EVNODE_E2E_GCP_KMS_KEY_NAME") | ||
| if keyName == "" { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong environment variables and test path in benchmark documentation.
The comment documentation has critical errors:
Lines 16-17 reference GCP KMS environment variables (
EVNODE_E2E_GCP_KMS_KEY_NAME,EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE), but this is an AWS KMS benchmark test that actually usesEVNODE_E2E_AWS_KMS_KEY_ID(line 20) and AWS region variables (lines 25-29).Line 18 references the wrong test path
./pkg/signer/gcp, but this file ispkg/signer/aws/signer_benchmark_test.go, so the path should be./pkg/signer/aws.Developers following these comments will set the wrong environment variables and target the wrong package.
📝 Proposed fix for the documentation
🤖 Prompt for AI Agents