Skip to content

docs: add integration test command builder guide to tools directory#4627

Open
raj-prince wants to merge 2 commits intomasterfrom
add_e2e_command_doc
Open

docs: add integration test command builder guide to tools directory#4627
raj-prince wants to merge 2 commits intomasterfrom
add_e2e_command_doc

Conversation

@raj-prince
Copy link
Copy Markdown
Collaborator

Description

  • Adding a doc which helps in remembering the command to run an e2e test and will be handy to use while running any e2e test.

Link to the issue in case of a bug fix.

Testing details

  1. Manual - NA
  2. Unit tests - NA
  3. Integration tests - NA

Any backward incompatible change? If so, please explain.

@raj-prince raj-prince requested review from a team and meet2mky as code owners April 16, 2026 12:42
@github-actions github-actions bot added the remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR. label Apr 16, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new documentation file designed to streamline the process of running end-to-end integration tests. By providing a structured template and a list of available test packages and options, it simplifies command construction for developers, reducing the cognitive load required to execute these tests correctly.

Highlights

  • Documentation Addition: Added a new guide, TEST_BUILDER.md, to the tools directory to assist developers in constructing commands for running GCSFuse integration tests.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new documentation file, TEST_BUILDER.md, which provides a guide for constructing and running GCSFuse integration tests. The feedback recommends updating the go test command template and examples to use a 90-minute timeout for consistency with project standards and to target specific package directories instead of using recursive patterns to avoid including unintended subpackages.

export TEST_PACKAGE_NAME=<selected_package>
export TEST_BUCKET_NAME=<your_gcs_bucket_name>

GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME/... -p 1 --integrationTest --testbucket=$TEST_BUCKET_NAME --timeout=20m <additional_options>
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.

medium

The use of the ellipsis (/...) in the package path might lead to unexpected behavior by recursively including subpackages or helper utilities that are not intended to be run as standalone tests. The project's standard test scripts target the package directory directly. Additionally, the timeout should be updated to match the project default of 90m for consistency. Refer to the Go test documentation for details on package patterns.

Suggested change
GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME/... -p 1 --integrationTest --testbucket=$TEST_BUCKET_NAME --timeout=20m <additional_options>
GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME -p 1 --integrationTest --testbucket=$TEST_BUCKET_NAME -timeout=90m <additional_options>
References
  1. Link to documentation for any mentioned features, flags, or settings.

export TEST_PACKAGE_NAME=operations
export TEST_BUCKET_NAME=my-test-bucket

GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME/... -p 1 -short --integrationTest -v --testbucket=$TEST_BUCKET_NAME --timeout=20m
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.

medium

Updating the example to remove the ellipsis and align the timeout with the project default of 90m. See the Go test documentation for more information on package path patterns.

Suggested change
GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME/... -p 1 -short --integrationTest -v --testbucket=$TEST_BUCKET_NAME --timeout=20m
GODEBUG=asyncpreemptoff=1 CGO_ENABLED=0 go test ./tools/integration_tests/$TEST_PACKAGE_NAME -p 1 -short --integrationTest -v --testbucket=$TEST_BUCKET_NAME -timeout=90m
References
  1. Link to documentation for any mentioned features, flags, or settings.

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

Labels

remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant