Sitemap GHA improvement

Abierto
#6,487 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the sitemap-related function in app/commands.py around line 397, then review the linked failed GitHub Actions run, especially its HINT and follow-up SQL statement. Check how the sitemap job interacts with harvesting activity and why retries reach recovery conflicts at later offsets. Done means sitemap creation avoids or reliably handles these conflicts; the issue leaves the specific approach open.

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

Descripción

O&M

The sitemap hit this failure: https://github.com/GSA/datagov-catalog/actions/runs/41006432959/attempts/1 which I re-ran and failed.

I see in the logs that this occurrence is rare, it has happened 3 times in the past year. (Although all 3 within the past month...) https://one.newrelic.com/logger?account=1601367&begin=1761661800000&end=1793199600000&state=30c62e46-aed0-0a06-3047-2e8f1b69b2ce

This ticket is looking to improve the sitemap since the re-run failed.

There's a HINT and followup SQL statement here: https://github.com/GSA/datagov-catalog/actions/runs/41006432959/job/124128735512#step:6:294
Note also that the OFFSET on the 2nd run advanced from offset 555000 (the original failure) to 580000 before the next recovery conflict.

The idea is to create the sitemap when there is no harvesting activity, or make the sitemap creation more robust. A function of interest to start this off is located here: https://github.com/GSA/datagov-catalog/blob/0e9f5abf26c6abd27a4fd1b391dbe3bd54980d91/app/commands.py#L397

Lenguaje dominante
Python
Estrellas
1.2k
Forks
207
Merge medio
3 d 16 h
PR fusionados (30 d)
5

Preparar el entorno

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 GSA/data.gov

Todos los issues de GSA/data.gov

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.