Commit Graph

22 Commits

Author SHA1 Message Date
Antigravity
19d446f78e fix(deploy): rm -f .env.docker avant write + tr -d '"' nuclear
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m44s
CI / Deploy production (on server) (push) Successful in 23s
Le fichier accumulait des entrees quotees des anciens deploys.
Le sed regex ne matchait pas (CRLF ou format inattendu).

Fix root cause:
- ci.yaml + deploy.yaml: rm -f avant touch (fichier clean a chaque deploy)
- deploy-prod.sh: tr -d '"' supprime TOUT guillemet du fichier (nuclear, infaillible)
2026-06-28 12:57:06 +00:00
Antigravity
ac66d672d6 fix(deploy): ci.yaml upsert sans quotes + sed strip CRLF
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m18s
CI / Deploy production (on server) (push) Failing after 4s
ci.yaml ligne 185 avait le meme bug que deploy.yaml (VAR="value")
sed ajoute s/\r$// pour gerer les CRLF qui empechaient le match
2026-06-28 12:42:26 +00:00
Antigravity
1d4f935683 fix(deploy): .env.docker sans quotes — source + sed corrigé
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m13s
CI / Deploy production (on server) (push) Failing after 4s
Root cause: workflow deploy.yaml ligne 74 écrivait VAR="value"
Docker Compose v2 (2.22+) rejette ce format.

Fix source: echo "${key}=${val}" (sans quotes autour de la valeur)
Fix sed: deux passes séparées pour double et simple quotes, sans \x27
2026-06-28 12:06:30 +00:00
Antigravity
7a9da7f97b fix(deploy): strip quotes de .env.docker pour Docker Compose v2
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m16s
CI / Deploy production (on server) (push) Failing after 4s
Docker Compose v2 (2.22+) rejette les valeurs quotées (VAR="value")
avec l'erreur 'unexpected character " in variable name'.
Ajout d'un sed avant load_env_docker qui strip les guillemets entourants.
2026-06-28 11:34:43 +00:00
Antigravity
a1399a3d7b fix(deploy): parser .env.docker robuste (source crashait sur quote non fermée)
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
Remplace `source .env.docker` par un parse ligne par ligne qui ne crashe pas
quand une valeur contient un guillemet mal fermé (erreur: unexpected EOF
while looking for matching "). Les variables valides sont quand même exportées.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 09:41:11 +00:00
Antigravity
1fc6728259 fix(deploy): charger .env.docker avant le healthcheck Postgres
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
Le script utilisait POSTGRES_USER=memento par défaut sans sourcer .env.docker,
ce qui faisait échouer pg_isready en prod. Ajoute wait --wait, credentials
container-side et logs diagnostiques en cas d'échec.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 09:25:54 +00:00
Antigravity
e9e829e579 fix: TOUTES les clés i18n manquantes ajoutées — 0 erreur
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m15s
CI / Deploy production (on server) (push) Successful in 37s
- general.continue/send
- structuredViews.tagApplied/filterDone/filterTodo/propertyStatus
- wizard.taskA/taskB
- richTextEditor.preview*Tip (7 clés SlashPreview)
- wizard.* au niveau racine (48 clés FR + 48 EN)
- Total: 0 clé manquante pour FR et EN
- 0 erreur TypeScript
2026-06-20 17:01:04 +00:00
Antigravity
a8785ed4f1 fix(monitoring): fix Grafana datasource UID to 'Prometheus' and handle metrics-token directory mount issue in deploy script
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m28s
CI / Deploy production (on server) (push) Successful in 1m22s
2026-05-30 11:54:30 +00:00
Antigravity
76a8135567 debug(monitoring): add Grafana provisioning diagnostics during deployment
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
2026-05-30 11:51:33 +00:00
Antigravity
8d8e8a20f4 fix(monitoring): upgrade legacy templating queries for Grafana 11 and force Grafana recreation on deploy to load the Memento dashboard
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
2026-05-30 11:49:08 +00:00
Antigravity
ff0fae9ae7 fix(monitoring): fix production monitoring startup, alertmanager configuration, prometheus alert syntax, and mcp healthcheck
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m5s
CI / Deploy production (on server) (push) Has been cancelled
2026-05-30 11:42:32 +00:00
Antigravity
2de66a863d feat(ci): add rollback mechanism and Telegram notifications
CI/CD Pipeline Improvement - Add automated rollback on deployment
failure and Telegram notifications for CI/deploy status.

Changes:
- scripts/deploy-prod.sh: Add rollback_save_image(), rollback_restore_image(),
  and telegram_notify() functions
- scripts/deploy-prod.sh: Save current Docker image before building new one
- scripts/deploy-prod.sh: Rollback to previous image on health check failure
- .gitea/workflows/ci.yaml: Add Telegram notifications for CI failures
- memento-note/eslint.config.mjs: Disable experimental React Compiler rules

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 19:36:57 +00:00
Antigravity
0f6b9509da fix(deploy): restart monitoring exporters on every deploy to apply config
All checks were successful
CI / Lint, Test & Build (push) Successful in 2m40s
CI / Deploy production (on server) (push) Successful in 19s
2026-05-21 20:54:48 +00:00
Antigravity
b02f19b1a0 fix(deploy): preserve Prometheus TSDB history — only recreate if config changed
All checks were successful
CI / Lint, Test & Build (push) Successful in 1m50s
CI / Deploy production (on server) (push) Successful in 20s
2026-05-21 20:40:56 +00:00
Antigravity
87ec01fdd5 fix(ci): add needs clause to deploy job and force recreate prometheus on deploy
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
2026-05-21 20:11:04 +00:00
Antigravity
7cf921a802 feat(monitoring): auto-provision Prometheus datasource and dashboards in Grafana
All checks were successful
CI / Lint, Test & Build (push) Successful in 12m6s
CI / Deploy production (on server) (push) Successful in 1m58s
2026-05-21 19:46:04 +00:00
Antigravity
a801d18b12 fix(deploy): robust health check via node inside container
Some checks failed
CI / Deploy production (on server) (push) Successful in 1m55s
CI / Lint, Test & Build (push) Has been cancelled
2026-05-21 19:39:17 +00:00
Antigravity
2ae08538f0 fix(deploy): use correct container name memento-web in docker inspect
Some checks failed
CI / Lint, Test & Build (push) Successful in 12m2s
CI / Deploy production (on server) (push) Failing after 5m11s
2026-05-21 19:11:43 +00:00
Antigravity
55fb081e94 fix(deploy): use container IP dynamically for build-info health check in CI runner
Some checks failed
CI / Lint, Test & Build (push) Successful in 12m4s
CI / Deploy production (on server) (push) Failing after 3m58s
2026-05-21 18:54:09 +00:00
Antigravity
fdb148144e fix: restore brainstorming feature with missing socket server and real-time events
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m48s
CI / Deploy production (on server) (push) Has been cancelled
2026-05-19 20:07:56 +00:00
Antigravity
60296242aa fix(deploy): migrations via node prisma/build/index.js (pas npx)
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m50s
CI / Deploy production (on server) (push) Has been cancelled
L'image prebuilt n'expose pas la commande prisma dans le PATH.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 13:59:49 +00:00
Antigravity
759487cb36 fix(deploy): exécuter sur le serveur + build CI réutilisé (~2 min)
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m52s
CI / Deploy production (on server) (push) Has been cancelled
Le deploy SSH depuis ubuntu-24.04 ne rebuildait pas sur 190 (image d'hier).
Déploiement sur runner docker-host, artifact Next.js de la CI, Dockerfile.prebuilt,
script deploy-prod.sh. workflow_run supprimé au profit de needs:[ci] même fichier.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 10:19:16 +00:00