Sitemap GHA improvement

Aperta
#6,487 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
1.2k
Fork
207
Merge medio
3g 16h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GSA/data.gov

Tutte le issue di GSA/data.gov

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.