Repository navigation
chore(infra): add demo Makefile with cross-ref from runbook (D114) - #88
Merged
Merged
Conversation
Add a root Makefile exposing four lightweight targets for the soutenance demo gestures: trigger (Scheduler), last-run, logs, fresh. Commands are kept deliberately light (--limit=1, table format) for live readability, distinct from the richer diagnostic variants in docs/runbook.md. The runbook gains a cross-reference note pointing to make for quick checks while keeping all its diagnostic commands (jq triggerName, raw/marts asymmetry, Knative v1 paths) — no double source of truth, different intents. Refs: D114
ESNAULTQ
self-requested a review
June 2, 2026 07:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
La démo technique de soutenance (brief l.95, 70 %) impose quatre gestes en conditions réelles, dont déclencher un run. Les commandes
gcloud/bqcorrespondantes (cf.demo-script.md§1:40-3:00) sont longues : verbeuses à taper en live, fragiles sous stress, et peu lisibles à l'écran pour le jury.Cette PR introduit un
Makefileracine facilitateur de démo : des raccourcis légers pour les gestes de la démo. Tracé en D114.Décisions techniques
make trigger)sa-ingestion→ Job →main.py→ dbt).gcloud run jobs executecourt-circuiterait le Scheduler.jq triggerName, boucle raw/marts, Knative v1). Les remplacer parmakeles appauvrirait → on garde les deux, natures différentes, pas de double source.build/deploy/test— ce serait un Makefile-projet exhaustif, hors périmètre assumé (Simplicity First).Changements
Makefile(nouveau, racine) : ciblestrigger,last-run,logs,fresh+helpauto-documenté. VariablesPROJECT/REGION/JOB/SCHEDULERen tête.docs/runbook.md: encadré de renvoi « coup d'œil rapide vs diagnostic » après les prérequis CLI. Aucune commande diagnostic retirée.Validation
```
$ make help
trigger Déclenche le pipeline via le Scheduler (chaîne exacte du cron, fire-and-forget)
last-run Affiche la dernière exécution ingestion (statut SUCCEEDED attendu)
logs Prouve l'enchaînement ingestion -> dbt (events structlog)
fresh Prouve la fraîcheur des marts (fct_offres reconstruit au dernier run)
```
```
$ make -n trigger
gcloud scheduler jobs run datatalent-ingestion-scheduler
--location=europe-west1 --project=datatalent-glaq-2
```
Parsing OK, les 4 cibles génèrent les commandes attendues avec les bonnes valeurs (
europe-west1,datatalent-glaq-2). Pas de modification d'infra →terraform planinchangé. Pre-commit + Conventional Commit verts.Décisions liées
Refs : D114 (nouvelle), D108/D72 (chaîne d'orchestration déclenchée), D109 (runbook préservé), D24 (branche dédiée).