Skip to content

Commit db18714

Browse files
authored
Merge pull request #218 from Open-Finance-Lab/fingpt_backend_dev
deploy: various fixes
2 parents 904573a + e03f144 commit db18714

3 files changed

Lines changed: 31 additions & 17 deletions

File tree

.github/workflows/backend-deploy.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,27 @@ jobs:
170170
set -euo pipefail
171171
export XDG_RUNTIME_DIR=/run/user/$(id -u)
172172
173-
echo "Waiting for service to start..."
174-
sleep 5
175-
176173
echo "Checking service status..."
177174
systemctl --user is-active "$SYSTEMD_UNIT" || {
178175
echo "ERROR: Service is not active"
179176
systemctl --user status "$SYSTEMD_UNIT" || true
180177
exit 1
181178
}
182179
183-
echo "Checking health endpoint..."
184-
curl -f -m 10 http://localhost:8000/health/ || {
185-
echo "ERROR: Health check failed"
186-
exit 1
187-
}
180+
echo "Waiting 30s for service to start..."
181+
sleep 30
188182
189-
echo "Deployment verification successful!"
183+
echo "Checking health endpoint..."
184+
for i in 1 2 3; do
185+
if curl -sf -m 10 http://localhost:8000/health/; then
186+
echo ""
187+
echo "Deployment verification successful!"
188+
exit 0
189+
fi
190+
echo "Attempt $i/3 failed, retrying in 5s..."
191+
sleep 5
192+
done
193+
194+
echo "ERROR: Health check failed"
195+
systemctl --user status "$SYSTEMD_UNIT" || true
196+
exit 1

Main/backend/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ docs = [
5959

6060
[tool.uv]
6161
package = false
62+
override-dependencies = [
63+
"protobuf>=6.33.5", # CVE-2026-0994: JSON recursion depth bypass (overrides mem0ai's <6 pin)
64+
]
6265

6366
[build-system]
6467
requires = ["hatchling"]

Main/backend/uv.lock

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)