DEVX-115: Fix wiki sync reliability #174

Merged
emil merged 2 commits from DEVX-115-fix-wiki-sync-reliability into master 2026-07-06 04:55:12 +00:00
2 Commits
Author SHA1 Message Date
emilandDevin <158243242+devin-ai-integration[bot]@users.noreply.github.com> a34561357d fix: add missing translations for new sync_wiki strings
CI / pr-review (pull_request) Successful in 16s
CI / detect-changes (pull_request) Successful in 20s
CI / quality (pull_request) Successful in 50s
CI / release-dry-run (pull_request) Successful in 23s
CI / auto-merge (pull_request) Successful in 32s
Add translations for the "Page already exists (stale list)" and
"Failed to list after retries" messages introduced in the wiki
sync reliability fix.

DEVX-115

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-06 06:52:58 +02:00
emilandDevin <158243242+devin-ai-integration[bot]@users.noreply.github.com> 450f85038b fix: make wiki sync resilient to API timeouts and stale page lists
CI / pr-review (pull_request) Successful in 13s
CI / detect-changes (pull_request) Successful in 16s
CI / quality (pull_request) Failing after 29s
CI / release-dry-run (pull_request) Has been skipped
CI / auto-merge (pull_request) Has been skipped
Two failure modes caused post-merge sync-wiki to fail:

1. list_wiki_pages timed out (30s) after 3 retries → aborted sync.
   The Gitea wiki API renders pages on each request and can be slow
   under load. Increased retries from 3 to 5 with longer backoff
   (max 16s). The initial list now uses _list_wiki_pages_with_retry
   instead of the raw list_wiki_pages call.

2. After a timeout-retry, list_wiki_pages returned incomplete data.
   sync_page tried to CREATE a page that already existed → HTTP 400.
   Added a create→update fallback: on HTTP 400 "already exists",
   re-list the wiki and PATCH the page instead of failing.

Also added concurrency group to post-merge.yml sync-wiki job to
prevent overlapping runs from conflicting.

DEVX-34

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-06 06:45:34 +02:00