@@ -50,9 +50,7 @@ export RUSTC_BOOTSTRAP=1
5050COMMON_MANIFEST=" src/common/Cargo.toml"
5151AGENT_MANIFEST=" src/agent/Cargo.toml"
5252TOOLS_MANIFEST=" src/tools/Cargo.toml"
53- SERVER_MANIFEST=" src/server/Cargo.toml"
5453APISERVER_MANIFEST=" src/server/apiserver/Cargo.toml"
55- PLAYER_MANIFEST=" src/player/Cargo.toml"
5654FILTERGATEWAY_MANIFEST=" src/player/filtergateway/Cargo.toml"
5755ACTIONCONTROLLER_MANIFEST=" src/player/actioncontroller/Cargo.toml"
5856STATEMANAGER_MANIFEST=" src/player/statemanager/Cargo.toml"
@@ -65,6 +63,7 @@ if [[ -f "$COMMON_MANIFEST" ]]; then
6563 cd " $( dirname " $COMMON_MANIFEST " ) "
6664 cargo tarpaulin --out Html --out Lcov --out Xml \
6765 --output-dir " $PROJECT_ROOT /$COVERAGE_ROOT /common" \
66+ --ignore-panics --no-fail-fast \
6867 2>&1 | tee -a " $LOG_FILE " || true
6968 )
7069 mv " $PROJECT_ROOT /$COVERAGE_ROOT /common/tarpaulin-report.html" " $PROJECT_ROOT /$COVERAGE_ROOT /common/tarpaulin-report-common.html" 2> /dev/null || true
@@ -96,6 +95,7 @@ if [[ -f "$TOOLS_MANIFEST" ]]; then
9695 cd " $( dirname " $TOOLS_MANIFEST " ) "
9796 cargo tarpaulin --out Html --out Lcov --out Xml \
9897 --output-dir " $PROJECT_ROOT /$COVERAGE_ROOT /tools" \
98+ --ignore-panics --no-fail-fast \
9999 2>&1 | tee -a " $LOG_FILE " || true
100100 )
101101 mv " $PROJECT_ROOT /$COVERAGE_ROOT /tools/tarpaulin-report.html" " $PROJECT_ROOT /$COVERAGE_ROOT /tools/tarpaulin-report-tools.html" 2> /dev/null || true
@@ -104,23 +104,29 @@ else
104104fi
105105
106106# === Step 2: Start `filtergateway` and `nodeagent` before apiserver ===
107+ rm -rf /tmp/pullpiri_shared_rocksdb
108+ mkdir -p /tmp/pullpiri_shared_rocksdb
109+ # Make directory writable by all users (container needs write access)
110+ chmod 777 /tmp/pullpiri_shared_rocksdb
107111start_service " $FILTERGATEWAY_MANIFEST " " filtergateway"
108112start_service " $AGENT_MANIFEST " " nodeagent"
113+ start_service " $STATEMANAGER_MANIFEST " " statemanager"
109114sleep 3
110115
111116# === SERVER ===
112- if [[ -f " $SERVER_MANIFEST " ]]; then
113- echo " 📂 Running tarpaulin for server" | tee -a " $LOG_FILE "
117+ if [[ -f " $APISERVER_MANIFEST " ]]; then
118+ echo " 📂 Running tarpaulin for server (apiserver) " | tee -a " $LOG_FILE "
114119 mkdir -p " $COVERAGE_ROOT /server"
115120 (
116- cd " $( dirname " $SERVER_MANIFEST " ) "
121+ cd " $( dirname " $APISERVER_MANIFEST " ) "
117122 cargo tarpaulin --out Html --out Lcov --out Xml \
118123 --output-dir " $PROJECT_ROOT /$COVERAGE_ROOT /server" \
124+ --skip-clean --ignore-panics --no-fail-fast \
119125 2>&1 | tee -a " $LOG_FILE " || true
120126 )
121127 mv " $PROJECT_ROOT /$COVERAGE_ROOT /server/tarpaulin-report.html" " $PROJECT_ROOT /$COVERAGE_ROOT /server/tarpaulin-report-server.html" 2> /dev/null || true
122128else
123- echo " ::warning ::$SERVER_MANIFEST not found. Skipping..." | tee -a " $LOG_FILE "
129+ echo " ::warning ::$APISERVER_MANIFEST not found. Skipping..." | tee -a " $LOG_FILE "
124130fi
125131
126132# Stop background services before next round
@@ -143,18 +149,19 @@ start_service "$STATEMANAGER_MANIFEST" "statemanager"
143149# Note: RocksDB data cleanup handled by service or via gRPC API if needed
144150sleep 3
145151
146- if [[ -f " $PLAYER_MANIFEST " ]]; then
147- echo " 📂 Running tarpaulin for player" | tee -a " $LOG_FILE "
152+ if [[ -f " $FILTERGATEWAY_MANIFEST " ]]; then
153+ echo " 📂 Running tarpaulin for player (filtergateway) " | tee -a " $LOG_FILE "
148154 mkdir -p " $COVERAGE_ROOT /player"
149155 (
150- cd " $( dirname " $PLAYER_MANIFEST " ) "
156+ cd " $( dirname " $FILTERGATEWAY_MANIFEST " ) "
151157 cargo tarpaulin --out Html --out Lcov --out Xml \
152158 --output-dir " $PROJECT_ROOT /$COVERAGE_ROOT /player" \
159+ --ignore-panics --no-fail-fast \
153160 2>&1 | tee -a " $LOG_FILE " || true
154161 )
155162 mv " $PROJECT_ROOT /$COVERAGE_ROOT /player/tarpaulin-report.html" " $PROJECT_ROOT /$COVERAGE_ROOT /player/tarpaulin-report-player.html" 2> /dev/null || true
156163else
157- echo " ::warning ::$PLAYER_MANIFEST not found. Skipping..." | tee -a " $LOG_FILE "
164+ echo " ::warning ::$FILTERGATEWAY_MANIFEST not found. Skipping..." | tee -a " $LOG_FILE "
158165fi
159166
160167cleanup
0 commit comments