Sitemap GHA improvement

Open
#6,487 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

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

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

Dominant language
Python
Stars
1.2k
Forks
207
Avg merge
3d 16h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GSA/data.gov

All issues in GSA/data.gov

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.