Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions macos-selenium-mochajs/GEMINI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Gemini CLI Prompt for ChromeDriver Bug Triage

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should move this to repo's top level, with the prompt modified to pick appropriate template for repro based on technology/language/repro steps stated in the issue. It should probably be modified to also modify the github action to spin up the right environment, if one is not available.


Your task is to triage a ChromeDriver bug report using this pre-configured bug reproduction template. The goal is to confirm the bug's presence by writing a test that is expected to fail.

**Bug to Triage:** `b/<BUG_ID>` (Please provide the actual bug ID in your prompt)

**Workflow:**

1. Read the bug description for the provided bug ID to understand the reproduction steps.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This might not work for external users?

2. Modify the `test.js` file in the current directory to add a new test case that attempts to reproduce this bug.
3. **Crucially, the test must be written to fail if the bug exists.** The assertion in the test should check for the correct behavior, which will fail if the bug is present.
4. The new test code must be thoroughly commented, explaining the reproduction steps, what the test is doing, and why it is expected to fail in the presence of the bug. **Specifically, justify the `expected` value in the assertion using details from the bug description and, if relevant, the WebDriver specification.**
5. After adding the test, run the test suite to confirm that the new test fails as expected, which successfully reproduces the bug.
15 changes: 15 additions & 0 deletions macos-selenium-mochajs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,18 @@ it('ISSUE REPRODUCTION', async function () {
The included GitHub Actions workflow in
`.github/workflows/macos-selenium-mochajs.yml` will automatically run the tests on
every push and pull request.

## Automating Triage with Gemini CLI

The Gemini CLI can be used to automate the bug triaging process using the template defined in GEMINI.md.

### Prerequisits

Consult internal documentation for exact MCP servers required to access Buganizer.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Qualify this as for Google internal users?


### Execution

Run gemini cli and prompt
```
Triage chromedriver bug <BUG_ID>
```