Skip to content

feat: out-of-order protection#35

Merged
babs merged 2 commits intomasterfrom
feat/ooo-protection
Dec 12, 2025
Merged

feat: out-of-order protection#35
babs merged 2 commits intomasterfrom
feat/ooo-protection

Conversation

@babs
Copy link
Member

@babs babs commented Dec 12, 2025

feat: add out-of-order webhook event protection (DB MIGRATION REQUIRED)

GitLab webhook call order worsens over time, making OOO handling critical.

  • Add last_processed_updated_at column to track event timestamps
  • Skip stale events where updated_at < last_processed_updated_at
  • New DB methods: get_or_create_merge_request_ref_id(),
    update_merge_request_ref_payload()
  • Add PartialMessageUpdateError for partial update failures
  • Switch from black/flake8 to ruff for linting
  • Make OTEL instrumentation conditional in run.sh

babs added 2 commits December 12, 2025 00:18
GitLab webhook call order worsens over time, making OOO handling critical.

- Add last_processed_updated_at column to track event timestamps
- Skip stale events where updated_at < last_processed_updated_at
- New DB methods: get_or_create_merge_request_ref_id(),
update_merge_request_ref_payload()
- Add PartialMessageUpdateError for partial update failures
- Switch from black/flake8 to ruff for linting
- Make OTEL instrumentation conditional in run.sh
@babs babs merged commit 7fc8420 into master Dec 12, 2025
1 check passed
@babs babs deleted the feat/ooo-protection branch December 12, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant