Sitemap GHA improvement
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 207
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GSA/data.gov
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Harvester
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
blocked form submission shows home pagePossibly taken @FuhuXia claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
idle-in-transaction for harvest record selectionPossibly taken @theyottaboy claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day