Skip to content

Commit d60ee97

Browse files
authored
Remove OS from template and refactor (#9)
* Remove OS from template and refactor * Update GEMINI.md
1 parent a2a573e commit d60ee97

19 files changed

Lines changed: 41 additions & 44 deletions

.github/workflows/macos-selenium-mochajs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ name: MacOS Selenium Mocha.js
1717
on:
1818
push:
1919
paths:
20-
- 'macos-selenium-mochajs/**'
20+
- 'selenium-mochajs/**'
2121
- '.github/workflows/macos-selenium-mochajs.yml'
2222
pull_request:
2323
paths:
24-
- 'macos-selenium-mochajs/**'
24+
- 'selenium-mochajs/**'
2525
- '.github/workflows/macos-selenium-mochajs.yml'
2626

2727
defaults:
2828
run:
29-
working-directory: macos-selenium-mochajs
29+
working-directory: selenium-mochajs
3030

3131
jobs:
3232
test:
@@ -41,11 +41,11 @@ jobs:
4141
node-version: 'latest'
4242

4343
- name: Install dependencies
44-
working-directory: macos-selenium-mochajs
44+
working-directory: selenium-mochajs
4545
run: npm install
4646

4747
- name: Run tests
48-
working-directory: macos-selenium-mochajs
48+
working-directory: selenium-mochajs
4949
run: npm test
5050

5151
- name: Dump log

.github/workflows/ubuntu-selenium-java.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ name: Ubuntu Selenium Java
1717
on:
1818
push:
1919
paths:
20-
- 'ubuntu-selenium-java/**'
20+
- 'selenium-java/**'
2121
- '.github/workflows/ubuntu-selenium-java.yml'
2222
pull_request:
2323
paths:
24-
- 'ubuntu-selenium-java/**'
24+
- 'selenium-java/**'
2525
- '.github/workflows/ubuntu-selenium-java.yml'
2626

2727
defaults:
2828
run:
29-
working-directory: ubuntu-selenium-java
29+
working-directory: selenium-java
3030

3131
jobs:
3232
test:

.github/workflows/ubuntu-selenium-ruby.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ name: Ubuntu Selenium Ruby
1717
on:
1818
push:
1919
paths:
20-
- 'ubuntu-selenium-ruby/**'
20+
- 'selenium-ruby/**'
2121
- '.github/workflows/ubuntu-selenium-ruby.yml'
2222
pull_request:
2323
paths:
24-
- 'ubuntu-selenium-ruby/**'
24+
- 'selenium-ruby/**'
2525
- '.github/workflows/ubuntu-selenium-ruby.yml'
2626

2727
defaults:
2828
run:
29-
working-directory: ubuntu-selenium-ruby
29+
working-directory: selenium-ruby
3030

3131
jobs:
3232
test:

.github/workflows/windows-selenium-csharp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ name: Windows Selenium C#.NET
1717
on:
1818
push:
1919
paths:
20-
- 'windows-selenium-csharp/**'
20+
- 'selenium-csharp/**'
2121
- '.github/workflows/windows-selenium-csharp.yml'
2222
pull_request:
2323
paths:
24-
- 'windows-selenium-csharp/**'
24+
- 'selenium-csharp/**'
2525
- '.github/workflows/windows-selenium-csharp.yml'
2626

2727
defaults:
2828
run:
29-
working-directory: windows-selenium-csharp
29+
working-directory: selenium-csharp
3030

3131

3232
jobs:

GEMINI.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ Your task is to triage a ChromeDriver bug report using this pre-configured bug r
88

99
1. **Analyze the Bug Report:**
1010
* Thoroughly read the bug description, summary, and all comments on `crbug.com/<BUG_ID>` to understand the issue.
11-
* Identify the operating system, programming language, and any other technologies required to reproduce the bug.
11+
* Identify the operating system (identified usually by `OS:`), programming language, and any other technologies required to reproduce the bug.
12+
* Print operating system, programming language and technologies identified to the user.
1213

1314
2. **Select and Configure the Environment:**
14-
* Choose the most relevant template from this repository that matches the bug's environment (e.g., `macos-selenium-mochajs`, `ubuntu-selenium-java`, etc.).
15+
* Each template folder (`selenium-mochajs`, `selenium-java` has one or more operating systems enabled via their GitHub actions file `.github/workflows/`. Go through each action file and identify which operating systems are supported for each template to ensure a correct operating system selection. Choose the most relevant template from this repository that matches the bug's technology (e.g., `selenium-mochajs`, `selenium-java`, etc.) based on it.
1516
* Navigate into the chosen template directory.
1617
* If necessary, modify the corresponding GitHub Actions workflow file in `.github/workflows/` to set up the precise environment. This may include:
1718
* Installing specific browser versions.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# Template for Windows, Selenium, C#
1+
# Template for Selenium and C#
22

33
This repository provides a template for reproducing any ChromeDriver bug.
44

5+
The included GitHub Actions will automatically run the tests on every push and
6+
pull request, on the following platforms:
7+
* [Windows](.github/workflows/windows-selenium-csharp.yml)
8+
59
## Steps to Reproduce
610

711
The test in `RegressionTest.cs` follows these steps:
@@ -17,8 +21,4 @@ This sequence of actions fails with ChromeDriver 126, but works with 125.
1721
1. Install dependencies and run the tests:
1822
```bash
1923
dotnet test
20-
```
21-
22-
## GitHub Actions
23-
24-
The included GitHub Actions workflow in `.github/workflows/windows-selenium-csharp.yml` will automatically run the tests on every push and pull request.
24+
```
File renamed without changes.
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# Template for Ubuntu, Selenium, Java
1+
# Template for Selenium and Java
22

33
This repository provides a template for reproducing any ChromeDriver bug.
44

5+
The included GitHub Actions will automatically run the tests on every push and
6+
pull request, on the following platforms:
7+
* [Ubuntu](.github/workflows/ubuntu-selenium-java.yml)
8+
59
## Your Goal
610

711
To use this template, extend the test case `ISSUE_REPRODUCTION` in
@@ -22,12 +26,12 @@ The test `src/test/java/RegressionTest.java` performs the following actions:
2226
## For local testing
2327

2428
- Have the appropriate version of Maven installed.
25-
1. Install dependencies and run the tests:
29+
- Install dependencies and run the tests:
2630
```bash
2731
mvn test
2832
```
2933

30-
## Running the Tests
34+
### Running the Tests
3135

3236
1. Install dependencies and run the tests:
3337
```bash
@@ -49,12 +53,6 @@ public void ISSUE_REPRODUCTION() {
4953
}
5054
```
5155

52-
## GitHub Actions
53-
54-
The included GitHub Actions workflow in
55-
`.github/workflows/ubuntu-selenium-java.yml` will automatically run the tests on
56-
every push and pull request.
57-
5856
## Automating Triage with Gemini CLI
5957

6058
The Gemini CLI can be used to automate the bug triaging process using the template

0 commit comments

Comments
 (0)