Skip to content

Commit 7ff7ffb

Browse files
committed
Science Commit 5.
1 parent 59fc723 commit 7ff7ffb

4 files changed

Lines changed: 24 additions & 7 deletions

File tree

modules/AE6E66/start-backend.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ -d "$LIB" ]; then CP="$CP:$LIB/*"; fi
3030
if [ -d "$JARS" ]; then CP="$CP:$JARS/*"; fi
3131

3232
# ── Module definition ─────────────────────────────────────────────────────────
33-
MODULE_CLASS="AE6E66Main"
33+
MODULE_CLASS="source.AE6E66Main"
3434
PID_FILE="$PID_DIR/backend.pid"
3535

3636
# Check if already running
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
37695
1+
38295

scripts/compile-all-modules.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,23 @@ javac -d "$OUT" -cp "$CP" -sourcepath "$ROOT/source" \
6161
"$ROOT/source/strernary/StrernaryDirectoryServer.java" 2>&1 | grep -i error || echo " OK"
6262

6363
# 6. AE6E66
64-
echo "[6/7] AE6E66 (UK Parliament)..."
64+
echo "[6/8] AE6E66 (UK Parliament)..."
6565
find "$ROOT/modules/AE6E66/source" -name "*.java" > /tmp/ae6e66.txt 2>/dev/null
6666
if [ -s /tmp/ae6e66.txt ]; then
6767
javac -d "$OUT" -cp "$CP" -sourcepath "$ROOT/source:$ROOT/modules/AE6E66/source" @/tmp/ae6e66.txt 2>&1 | grep -i error || echo " OK"
6868
fi
6969
rm -f /tmp/ae6e66.txt
7070

71-
# 7. Verify key classes exist
72-
echo "[7/7] Verifying..."
71+
# 7. Green.Durham.Grass.and.Herb (GDGH)
72+
echo "[7/8] Green.Durham.Grass.and.Herb (GDGH)..."
73+
find "$ROOT/modules/Green.Durham.Grass.and.Herb/source" -name "*.java" > /tmp/gdgh.txt 2>/dev/null
74+
if [ -s /tmp/gdgh.txt ]; then
75+
javac -d "$OUT" -cp "$CP" -sourcepath "$ROOT/source:$ROOT/modules/Green.Durham.Grass.and.Herb/source" @/tmp/gdgh.txt 2>&1 | grep -i error || echo " OK"
76+
fi
77+
rm -f /tmp/gdgh.txt
78+
79+
# 8. Verify key classes exist
80+
echo "[8/8] Verifying..."
7381
MISSING=0
7482
for cls in Main.class source/CaliforniaFBIServer.class source/CaliforniaCIAServer.class \
7583
source/CaliforniaNSAServer.class source/DukeUniversityServer.class \

scripts/frontend-diagnosis.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MODULES=(
2525
"library|modules/library/servlets/deploy-local.sh|source.StanfordLibraryServer|49214|nwe_library"
2626
"ae6e66|modules/AE6E66/servlets/deploy-local.sh|source.AE6E66Main|0|nwe_ae6e66"
2727
"futures|modules/red/Futures/servlets/deploy-local.sh|red.Futures.source.ai.server.DemocraticAIServer|5000|nwe_futures"
28-
"gdgh|modules/Green.Durham.Grass.and.Herb/servlets/deploy-local.sh|listeners.BaseListener|20000|nwe_gdgh"
28+
"gdgh|modules/Green.Durham.Grass.and.Herb/servlets/deploy-local.sh|presidential.Green.Durham.Grass.and.Herb.source.listeners.BaseListener|20000|nwe_gdgh"
2929
"gray-registry|modules/gray/servlets/deploy-local.sh|modules.gray.source.GrayPortRegistryServer|9999|nwe_gray_registry"
3030
"gray85-registry|modules/gray.a85/servlets/deploy-local.sh|modules.gray.a85.source.Gray85PortRegistryServer|10085|nwe_gray85_registry"
3131
"blackbelt|modules/black-belt/servlets/deploy-local.sh||0|"
@@ -227,9 +227,18 @@ if [ "$HTTP_FAIL" -gt 0 ]; then
227227

228228
FULL="$PROJECT_ROOT/$SCRIPT"
229229
if [ -f "$FULL" ]; then
230+
# Skip BMA in auto-fix (165MB, too slow for diagnosis) — just check dir
231+
if [[ "$CTX" == "brarner.m.alete" ]]; then
232+
if [ -d "$WEBAPPS_DIR/$CTX" ] && [ -f "$WEBAPPS_DIR/$CTX/WEB-INF/web.xml" ]; then
233+
echo " [*] /$CTX — webapp exists, skipping large redeploy (restart Tomcat instead)"
234+
else
235+
echo " [*] /$CTX — needs full deploy (165MB): bash $FULL"
236+
fi
237+
continue
238+
fi
230239
echo -n " [*] Redeploying /$CTX... "
231240
set +e
232-
timeout 90 bash "$FULL" "$TOMCAT_HOME" >/dev/null 2>&1
241+
timeout 60 bash "$FULL" "$TOMCAT_HOME" 2>&1 | tail -1
233242
RC=$?
234243
set -e
235244
[ $RC -eq 0 ] && echo "" || echo "✗ (exit $RC)"

0 commit comments

Comments
 (0)