Skip to content

Commit 085c861

Browse files
Remove repository-directory parameter from local script
The repository-directory parameter is not needed in the core action and was causing documentation inconsistency.
1 parent 7f53342 commit 085c861

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

actions/go-flaky-tests/run-local.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -88,7 +83,6 @@ done
8883
TIME_RANGE="${TIME_RANGE:-$DEFAULT_TIME_RANGE}"
8984
TOP_K="${TOP_K:-$DEFAULT_TOP_K}"
9085
SKIP_POSTING_ISSUES="${SKIP_POSTING_ISSUES:-$DEFAULT_SKIP_POSTING_ISSUES}"
91-
REPOSITORY_DIRECTORY="${REPOSITORY_DIRECTORY:-$(pwd)}"
9286

9387
# Validate required parameters
9488
if [[ -z "$LOKI_URL" ]]; then
@@ -107,15 +101,13 @@ export LOKI_USERNAME
107101
export LOKI_PASSWORD
108102
export REPOSITORY
109103
export TIME_RANGE
110-
export REPOSITORY_DIRECTORY
111104
export GITHUB_TOKEN
112105
export SKIP_POSTING_ISSUES
113106
export TOP_K
114107

115108
echo "🔧 Running go-flaky-tests locally..."
116109
echo "📊 Repository: $REPOSITORY"
117110
echo "⏰ Time range: $TIME_RANGE"
118-
echo "📁 Repository directory: $REPOSITORY_DIRECTORY"
119111
echo "🔝 Top K tests: $TOP_K"
120112
echo "🏃 Dry run mode: $SKIP_POSTING_ISSUES"
121113
echo ""

0 commit comments

Comments
 (0)