Document sync_interval for deb/alpine and fix created_at gate on existing rows #176

Merged
benvin merged 1 commits from benvin/sync-interval-docs-tests into master 2026-10-25 20:26:34 +11:00
Member

sync_interval is documented only for github_rpm, and the claim gate holding back remotes created inside the current slot also blocks remotes that already have a sync state row: the gate filters the INSERT SELECT, so ON CONFLICT never runs and a failed cold-cache prime waits a full slot instead of its backoff.

  • document sync_interval for github_deb/github_alpine and in the caching field table
  • apply the created_at gate only when no sync state row exists
  • test 0→N and N→0 interval changes and the insert-only gate against Postgres
  • test that a negative sync_interval on update returns 400
`sync_interval` is documented only for github_rpm, and the claim gate holding back remotes created inside the current slot also blocks remotes that already have a sync state row: the gate filters the INSERT SELECT, so ON CONFLICT never runs and a failed cold-cache prime waits a full slot instead of its backoff. - document `sync_interval` for github_deb/github_alpine and in the caching field table - apply the created_at gate only when no sync state row exists - test 0→N and N→0 interval changes and the insert-only gate against Postgres - test that a negative `sync_interval` on update returns 400
unkin-agent added 1 commit 2026-10-25 19:30:36 +11:00
Document sync_interval for deb/alpine and test interval changes
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
905c529d61
- add sync_interval to the github_deb/github_alpine docs and the caching field table
- apply the created_at slot gate only when no sync state row exists
- test 0<->N interval changes, the insert-only gate and a negative sync_interval on update
Author
Member

No findings.

No findings.
benvin merged commit 7f65fc377c into master 2026-10-25 20:26:34 +11:00
benvin deleted branch benvin/sync-interval-docs-tests 2026-10-25 20:26:34 +11:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#176