Skip to content

Commit aac45b6

Browse files
Automate bug traiging with Gemini CLI
1 parent 37ead3b commit aac45b6

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

macos-selenium-mochajs/GEMINI.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Gemini CLI Prompt for ChromeDriver Bug Triage
2+
3+
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.
4+
5+
**Bug to Triage:** `b/<BUG_ID>` (Please provide the actual bug ID in your prompt)
6+
7+
**Workflow:**
8+
9+
1. Read the bug description for the provided bug ID to understand the reproduction steps.
10+
2. Modify the `test.js` file in the current directory to add a new test case that attempts to reproduce this bug.
11+
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.
12+
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.**
13+
5. After adding the test, run the test suite to confirm that the new test fails as expected, which successfully reproduces the bug.

macos-selenium-mochajs/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,18 @@ it('ISSUE REPRODUCTION', async function () {
9797
The included GitHub Actions workflow in
9898
`.github/workflows/macos-selenium-mochajs.yml` will automatically run the tests on
9999
every push and pull request.
100+
101+
## Automating Triage with Gemini CLI
102+
103+
The Gemini CLI can be used to automate the bug triaging process using the template defined in GEMINI.md.
104+
105+
### Prerequisits
106+
107+
Consult internal documentation for exact MCP servers required to access Buganizer.
108+
109+
### Execution
110+
111+
Run gemini cli and prompt
112+
```
113+
Triage chromedriver bug <BUG_ID>
114+
```

0 commit comments

Comments
 (0)