Skip to content

Commit 8e095f9

Browse files
committed
Update README with instructions for exporting test results from Splunk
1 parent d1f79af commit 8e095f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/flakeguard/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,21 @@ Both `find` and `run` commands support JSON output `--json`, making it easy to i
3535
### Creating JIRA Tickets
3636
The `create-tickets` command allows you to automate the creation of JIRA tickets for flaky tests. It reads test results from a CSV file (typically exported from a Splunk view) and creates tickets in JIRA.
3737

38+
#### Get data from Splunk
39+
40+
1. Go to "Flakeguard - Test results for automated ticket creation" Report
41+
2. Select last 7 days
42+
3. Export it as CSV and download the file
43+
44+
##### Run
45+
3846
```
3947
go run main.go create-tickets --jira-project=<JIRA_PROJECT_KEY> --flaky-test-json-db-path=<PATH_TO_FLAKY_TEST_DB_JSON> --assignee-mapping=<PATH_TO_JIRA_ASSIGNEE_MAPPING_JSON> --csv-path=<PATH_TO_CSV_FILE> [--skip-existing] [--dry-run]
4048
```
4149

4250
Example:
4351
```
44-
go run main.go create-tickets --jira-project=DX --flaky-test-json-db-path=.flaky_test_db.json --assignee-mapping=.jira_assignee_mapping.json --skip-existing --csv-path '1742825894_77903.csv'
52+
go run main.go create-tickets --jira-project=DX --flaky-test-json-db-path=.flaky_test_db.json --assignee-mapping=.jira_assignee_mapping.json --skip-existing --csv-path '~/Downloads/1742825894_77903.csv'
4553
```
4654

4755
**Options:**

0 commit comments

Comments
 (0)