@@ -21,14 +21,13 @@ usage() {
2121 echo " --loki-password PASS Password for Loki authentication"
2222 echo " --repository REPO Repository name in 'owner/repo' format (required)"
2323 echo " --time-range RANGE Time range for query (default: ${DEFAULT_TIME_RANGE} )"
24- echo " --repository-directory DIR Repository directory (default: current directory)"
2524 echo " --github-token TOKEN GitHub token for API access"
2625 echo " --skip-posting-issues BOOL Skip creating GitHub issues (default: ${DEFAULT_SKIP_POSTING_ISSUES} )"
2726 echo " --top-k NUM Number of top flaky tests to analyze (default: ${DEFAULT_TOP_K} )"
2827 echo " "
2928 echo " Environment variables:"
3029 echo " LOKI_URL, LOKI_USERNAME, LOKI_PASSWORD, REPOSITORY, TIME_RANGE,"
31- echo " REPOSITORY_DIRECTORY, GITHUB_TOKEN, SKIP_POSTING_ISSUES, TOP_K"
30+ echo " GITHUB_TOKEN, SKIP_POSTING_ISSUES, TOP_K"
3231 echo " "
3332 echo " Example:"
3433 echo " $0 --loki-url http://localhost:3100 --repository myorg/myrepo --time-range 7d"
@@ -61,10 +60,6 @@ while [[ $# -gt 0 ]]; do
6160 TIME_RANGE=" $2 "
6261 shift 2
6362 ;;
64- --repository-directory)
65- REPOSITORY_DIRECTORY=" $2 "
66- shift 2
67- ;;
6863 --github-token)
6964 GITHUB_TOKEN=" $2 "
7065 shift 2
8883TIME_RANGE=" ${TIME_RANGE:- $DEFAULT_TIME_RANGE } "
8984TOP_K=" ${TOP_K:- $DEFAULT_TOP_K } "
9085SKIP_POSTING_ISSUES=" ${SKIP_POSTING_ISSUES:- $DEFAULT_SKIP_POSTING_ISSUES } "
91- REPOSITORY_DIRECTORY=" ${REPOSITORY_DIRECTORY:- $(pwd)} "
9286
9387# Validate required parameters
9488if [[ -z " $LOKI_URL " ]]; then
@@ -107,15 +101,13 @@ export LOKI_USERNAME
107101export LOKI_PASSWORD
108102export REPOSITORY
109103export TIME_RANGE
110- export REPOSITORY_DIRECTORY
111104export GITHUB_TOKEN
112105export SKIP_POSTING_ISSUES
113106export TOP_K
114107
115108echo " 🔧 Running go-flaky-tests locally..."
116109echo " 📊 Repository: $REPOSITORY "
117110echo " ⏰ Time range: $TIME_RANGE "
118- echo " 📁 Repository directory: $REPOSITORY_DIRECTORY "
119111echo " 🔝 Top K tests: $TOP_K "
120112echo " 🏃 Dry run mode: $SKIP_POSTING_ISSUES "
121113echo " "
0 commit comments