Skip to content

chore: remove extra space in comment#3319

Open
box4wangjing wants to merge 1 commit intoevstack:mainfrom
box4wangjing:main
Open

chore: remove extra space in comment#3319
box4wangjing wants to merge 1 commit intoevstack:mainfrom
box4wangjing:main

Conversation

@box4wangjing
Copy link
Copy Markdown

@box4wangjing box4wangjing commented May 10, 2026

Overview

remove extra space in comment

Summary by CodeRabbit

  • Tests
    • Enhanced test coverage for data availability inclusion handling in restart scenarios
    • Fixed documentation formatting in benchmark test files

Review Change Stack

Signed-off-by: box4wangjing <box4wangjing@outlook.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 10, 2026

📝 Walkthrough

Walkthrough

Three comment and documentation updates across test files. A scenario description in the DA-inclusion restart test is refined, and benchmark test command comments in the AWS and GCP signer test files are corrected for spacing and consistency.

Changes

Test Documentation Updates

Layer / File(s) Summary
Comment and Documentation Fixes
block/internal/submitting/submitter_test.go, pkg/signer/aws/signer_benchmark_test.go, pkg/signer/gcp/signer_benchmark_test.go
Scenario description updated for DA-inclusion restart test clarity; benchmark test command comments corrected for spacing consistency in AWS and GCP signer tests.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • julienrbrt

Poem

A rabbit hops through comment lines, 🐰
Fixing spaces, making them align,
No code to change, just clarity gained,
Small tweaks so test docs stay maintained. ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is minimal but present; it directly states the purpose of the changes without elaborating on context or motivation. Consider adding more detail about which files were affected and why this cleanup was necessary, or link to any related issue if applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: removing extra whitespace in comments across multiple test files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/signer/aws/signer_benchmark_test.go`:
- Around line 16-18: Update the benchmark comment in signer_benchmark_test.go to
use the correct AWS environment variables and test path: replace
EVNODE_E2E_GCP_KMS_KEY_NAME and EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE with the AWS
equivalents (e.g., EVNODE_E2E_AWS_KMS_KEY_ID and an AWS credentials/secret var)
and include EVNODE_E2E_AWS_KMS_REGION (or the region vars used elsewhere in this
file), and change the go test path from ./pkg/signer/gcp to ./pkg/signer/aws so
the documented commands match the AWS KMS benchmark in this file.

In `@pkg/signer/gcp/signer_benchmark_test.go`:
- Around line 16-18: Update the benchmark comment in
pkg/signer/gcp/signer_benchmark_test.go to reference the correct GCP env vars
and package path: replace the AWS env vars (EVNODE_E2E_AWS_KMS_KEY_ID,
EVNODE_E2E_AWS_KMS_REGION) with the GCP ones used by this benchmark
(EVNODE_E2E_GCP_KMS_KEY_NAME and EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE) and change
the test path from ./pkg/signer/aws to ./pkg/signer/gcp (the comment pertains to
BenchmarkKmsSignerSign in this GCP signer test).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 959250e6-9f35-4818-9038-aeb38827e785

📥 Commits

Reviewing files that changed from the base of the PR and between 01791ca and a13ac9f.

📒 Files selected for processing (3)
  • block/internal/submitting/submitter_test.go
  • pkg/signer/aws/signer_benchmark_test.go
  • pkg/signer/gcp/signer_benchmark_test.go

Comment on lines 16 to +18
// 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
// go test -v -bench=BenchmarkKmsSignerSign -benchtime=3s -count=10 -run='^$' ./pkg/signer/gcp
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Wrong environment variables and test path in benchmark documentation.

The comment documentation has critical errors:

  1. 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 uses EVNODE_E2E_AWS_KMS_KEY_ID (line 20) and AWS region variables (lines 25-29).

  2. Line 18 references the wrong test path ./pkg/signer/gcp, but this file is pkg/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
-// 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
+// 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
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/signer/aws/signer_benchmark_test.go` around lines 16 - 18, Update the
benchmark comment in signer_benchmark_test.go to use the correct AWS environment
variables and test path: replace EVNODE_E2E_GCP_KMS_KEY_NAME and
EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE with the AWS equivalents (e.g.,
EVNODE_E2E_AWS_KMS_KEY_ID and an AWS credentials/secret var) and include
EVNODE_E2E_AWS_KMS_REGION (or the region vars used elsewhere in this file), and
change the go test path from ./pkg/signer/gcp to ./pkg/signer/aws so the
documented commands match the AWS KMS benchmark in this file.

Comment on lines 16 to +18
// 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Wrong environment variables and test path in benchmark documentation.

The comment documentation has critical errors:

  1. Lines 16-17 reference AWS KMS environment variables (EVNODE_E2E_AWS_KMS_KEY_ID, EVNODE_E2E_AWS_KMS_REGION), but this is a GCP KMS benchmark test that actually uses EVNODE_E2E_GCP_KMS_KEY_NAME (line 20) and EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE (line 25).

  2. Line 18 references the wrong test path ./pkg/signer/aws, but this file is pkg/signer/gcp/signer_benchmark_test.go, so the path should be ./pkg/signer/gcp.

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
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/signer/gcp/signer_benchmark_test.go` around lines 16 - 18, Update the
benchmark comment in pkg/signer/gcp/signer_benchmark_test.go to reference the
correct GCP env vars and package path: replace the AWS env vars
(EVNODE_E2E_AWS_KMS_KEY_ID, EVNODE_E2E_AWS_KMS_REGION) with the GCP ones used by
this benchmark (EVNODE_E2E_GCP_KMS_KEY_NAME and
EVNODE_E2E_GCP_KMS_CREDENTIALS_FILE) and change the test path from
./pkg/signer/aws to ./pkg/signer/gcp (the comment pertains to
BenchmarkKmsSignerSign in this GCP signer test).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant