From 3ca6602ab8752a320685708d66c1c427c84003f4 Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Fri, 5 Jun 2026 10:33:47 +0200 Subject: [PATCH 1/2] fix(infra): show succeededCount in make last-run The help text promised 'statut SUCCEEDED attendu' but the output columns (name, completionTime, creationTimestamp) carried no status field, so a successful run was indistinguishable from a failed one at a glance. Add the status.succeededCount column (rendered as SUCCEEDED_COUNT by gcloud) and align the help wording on the actual API field, since Cloud Run v2 exposes no literal SUCCEEDED enum on executions. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f926ab3..e86ad46 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ trigger: ## Déclenche le pipeline via le Scheduler (chaîne exacte du cron, fir gcloud scheduler jobs run $(SCHEDULER) \ --location=$(REGION) --project=$(PROJECT) -last-run: ## Affiche la dernière exécution ingestion (statut SUCCEEDED attendu) +last-run: ## Affiche la dernière exécution ingestion (succeededCount=1 attendu) gcloud run jobs executions list \ --job=$(JOB) --region=$(REGION) --project=$(PROJECT) --limit=1 \ - --format='table(name, status.completionTime, metadata.creationTimestamp)' + --format='table(name, status.succeededCount, status.completionTime, metadata.creationTimestamp)' # --freshness=7d : gcloud logging read ne lit que les dernières 24h par défaut. # Le run est hebdomadaire (cron lundi), donc 24h laisse la fenêtre vide hors du From aa75d66e85ba39287c9f53a56a514fc00a406e5c Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Fri, 5 Jun 2026 10:34:00 +0200 Subject: [PATCH 2/2] fix(infra): bump make logs limit to 10 to cover all 7 ingestion sources A nominal run emits one ingestion_end per source (7 sources) plus one dbt_invoked. With --limit=5 shared across both events, only 4 of the 7 ingestion_end lines surfaced, so 'make logs' failed to prove the full ingestion -> dbt chain it documents. Raise --limit to 10 (7 sources + dbt_invoked + margin) so the complete handoff is visible in a single demo command. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e86ad46..03ce072 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ last-run: ## Affiche la dernière exécution ingestion (succeededCount=1 attendu logs: ## Prouve l'enchaînement ingestion -> dbt (events structlog) gcloud logging read \ 'resource.type=cloud_run_job AND jsonPayload.event=("ingestion_end" OR "dbt_invoked")' \ - --project=$(PROJECT) --limit=5 --freshness=7d \ + --project=$(PROJECT) --limit=10 --freshness=7d \ --format='value(timestamp, jsonPayload.event)' fresh: ## Prouve la fraîcheur des marts (fct_offres reconstruit au dernier run)