feat: deploy the GTFS validation worker as s/m/l Cloud Run services

Abierto
#1,916 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, gcp, terraform

Línea de trabajo

Start from the existing parquet_builder_sizes deployment and parquet_builder_task_queue definitions to see how per-size Cloud Run services, queues and env vars are wired; the CI image build and the functions-python buildpack setup answer the open question about custom containers. Read #1915 for the final size numbers before setting memory and concurrency. Done means the three validator services and queues exist in var.gcp_region, are invokable only by the tasks service account, and the snapshot service is available for releases.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the problem

The worker from #<2> needs one deployment per size, in the same region as the datasets bucket, so validation has no cross-region transfer.

Proposed solution
  • Build the worker image in CI and push it to Artifact Registry, tagged with the worker version and the validator version.
  • gtfs-validator-{s,m,l}-<env> Cloud Run services in var.gcp_region: concurrency 1, internal ingress, invoker limited to the tasks service account, in-memory volume per size. Start from the parquet_builder_sizes layout; set final numbers from the measurements in #1915.
  • One Cloud Tasks queue per size, like parquet_builder_task_queue.
  • Queue names exposed as env vars to callers and to the worker (for re-queueing on escalation).
  • A gtfs-validator-snapshot-<env> service built with the snapshot CLI jar, for validator releases (dev/qa, and prod only during a release).
Alternatives you've considered
Additional context

Open question: how custom container images are deployed today (functions-python uses buildpacks with no JRE).

Lenguaje dominante
Python
Estrellas
34
Forks
7
Merge medio
2 d 22 h
PR fusionados (30 d)
21

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MobilityData/mobility-feed-api

Todos los issues de MobilityData/mobility-feed-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.