Skip to content

Commit b1d0322

Browse files
committed
chore: reduce output
1 parent 308a980 commit b1d0322

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

‎.github/workflows/deploy-abap-mcp-server.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ jobs:
185185
cd /opt/mcp-sap/abap-mcp-server
186186
# Ensure origin uses the generic URL (the config above will intercept it and add auth)
187187
git remote set-url origin https://github.com/marianfoo/abap-mcp-server.git
188-
git fetch --prune
189-
git reset --hard origin/main
188+
git fetch --prune --quiet
189+
git reset --hard origin/main --quiet
190190
else
191191
cd /opt/mcp-sap
192-
git clone https://github.com/marianfoo/abap-mcp-server.git
192+
git clone --quiet https://github.com/marianfoo/abap-mcp-server.git
193193
cd abap-mcp-server
194194
fi
195195
@@ -216,7 +216,7 @@ jobs:
216216
echo "✅ Memory OK: ${AVAILABLE_MB_MEM}MB available"
217217
218218
echo "==> Stop MCP services gracefully before build"
219-
pm2 stop abap-mcp-http abap-mcp-streamable || true
219+
pm2 stop abap-mcp-http abap-mcp-streamable > /dev/null 2>&1 || true
220220
sleep 3
221221
222222
echo "==> Run setup (shallow, single-branch submodules + build)"
@@ -235,9 +235,9 @@ jobs:
235235
236236
echo "==> (Re)start MCP services with BM25 search support"
237237
# HTTP status on 127.0.0.1:3002; Streamable HTTP on 127.0.0.1:3124
238-
pm2 start /opt/mcp-sap/abap-mcp-server/ecosystem.config.cjs --only abap-mcp-http || pm2 restart abap-mcp-http
239-
pm2 start /opt/mcp-sap/abap-mcp-server/ecosystem.config.cjs --only abap-mcp-streamable || pm2 restart abap-mcp-streamable
240-
pm2 save
238+
(pm2 start /opt/mcp-sap/abap-mcp-server/ecosystem.config.cjs --only abap-mcp-http || pm2 restart abap-mcp-http) > /dev/null 2>&1
239+
(pm2 start /opt/mcp-sap/abap-mcp-server/ecosystem.config.cjs --only abap-mcp-streamable || pm2 restart abap-mcp-streamable) > /dev/null 2>&1
240+
pm2 save > /dev/null 2>&1
241241
242242
echo "==> Enhanced health checks with database verification"
243243
sleep 5

‎setup.sh‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ echo "🚀 Setting up SAP Documentation MCP Server..."
55

66
# Install dependencies
77
echo "📦 Installing dependencies..."
8-
npm install
8+
npm install --loglevel=warn
99

1010
# Initialize and update git submodules
1111
echo "📚 Initializing documentation submodules..."
1212

1313
# Initialize/update submodules (including new ones) to latest
1414
echo " → Syncing submodule configuration..."
15-
git submodule sync --recursive
15+
git submodule sync --recursive --quiet
1616

1717
# Collect submodules from .gitmodules
1818
echo " → Ensuring all top-level submodules are present (shallow, single branch)..."
@@ -30,9 +30,9 @@ while IFS= read -r line; do
3030

3131
if [ ! -d "$path/.git" ]; then
3232
echo " - cloning shallow..."
33-
GIT_LFS_SKIP_SMUDGE=1 git clone --filter=blob:none --no-tags --single-branch --depth 1 --branch "$branch" "$url" "$path" || {
33+
GIT_LFS_SKIP_SMUDGE=1 git clone --filter=blob:none --no-tags --single-branch --depth 1 --branch "$branch" --quiet "$url" "$path" || {
3434
echo " ! clone failed for $path, retrying with master"
35-
GIT_LFS_SKIP_SMUDGE=1 git clone --filter=blob:none --no-tags --single-branch --depth 1 --branch master "$url" "$path" || true
35+
GIT_LFS_SKIP_SMUDGE=1 git clone --filter=blob:none --no-tags --single-branch --depth 1 --branch master --quiet "$url" "$path" || true
3636
}
3737
else
3838
echo " - updating shallow to latest $branch..."
@@ -44,16 +44,16 @@ while IFS= read -r line; do
4444
git -C "$path" config remote.origin.tagOpt --no-tags || true
4545
git -C "$path" config remote.origin.promisor true || true
4646
git -C "$path" config remote.origin.partialclonefilter blob:none || true
47-
if ! GIT_LFS_SKIP_SMUDGE=1 git -C "$path" fetch --filter=blob:none --no-tags --depth 1 --prune origin "$branch"; then
47+
if ! GIT_LFS_SKIP_SMUDGE=1 git -C "$path" fetch --filter=blob:none --no-tags --depth 1 --prune --quiet origin "$branch"; then
4848
echo " ! fetch failed for $branch, trying master"
4949
git -C "$path" config remote.origin.fetch "+refs/heads/master:refs/remotes/origin/master"
5050
git -C "$path" remote set-branches origin master || true
51-
GIT_LFS_SKIP_SMUDGE=1 git -C "$path" fetch --filter=blob:none --no-tags --depth 1 --prune origin master || true
51+
GIT_LFS_SKIP_SMUDGE=1 git -C "$path" fetch --filter=blob:none --no-tags --depth 1 --prune --quiet origin master || true
5252
branch=master
5353
fi
5454
# Checkout/reset to the fetched tip
55-
git -C "$path" checkout -B "$branch" "origin/$branch" 2>/dev/null || git -C "$path" checkout "$branch" || true
56-
git -C "$path" reset --hard "origin/$branch" 2>/dev/null || true
55+
git -C "$path" checkout -B "$branch" "origin/$branch" --quiet 2>/dev/null || git -C "$path" checkout "$branch" --quiet || true
56+
git -C "$path" reset --hard "origin/$branch" --quiet 2>/dev/null || true
5757
# Compact local repository storage (keeps only the shallow pack)
5858
git -C "$path" reflog expire --expire=now --all >/dev/null 2>&1 || true
5959
git -C "$path" gc --prune=now --aggressive >/dev/null 2>&1 || true
@@ -64,11 +64,10 @@ if [ -n "$SKIP_NESTED_SUBMODULES" ]; then
6464
echo " → Skipping nested submodule initialization (SKIP_NESTED_SUBMODULES=1)"
6565
else
6666
echo " → Initializing nested submodules to pinned commits (shallow)..."
67-
git submodule update --init --recursive --depth 1 || true
67+
git submodule update --init --recursive --depth 1 --quiet || true
6868
fi
6969

70-
echo " → Current submodule status:"
71-
git submodule status --recursive || true
70+
echo " → Submodule setup complete"
7271

7372
# Build the search index
7473
echo "🔍 Building search index..."

0 commit comments

Comments
 (0)