fix(delivery): sweep rejected photos left on destinations #137

Merged
spark merged 2 commits from task/BIT-retract-orphan-reconcile into main 2026-11-03 00:32:55 +00:00
Owner

Fixes #136

Summary

  • Worker reclaim: DONE/WAITING deliveries whose photo is REJECT get queued for retract even if the library PATCH was skipped
  • Never upload a photo that is already REJECT
  • Tests for reject + un-pick retract

Prod note

Chegada SNAM cloud is already back to 105 files matching 105 picks; the 45 orphans were removed live.

Test plan

  • CI green
  • Reject a delivered photo → file disappears from Nextcloud
  • Un-pick (PICK→NONE) a delivered photo → file disappears
Fixes #136 ## Summary - Worker reclaim: DONE/WAITING deliveries whose photo is REJECT get queued for retract even if the library PATCH was skipped - Never upload a photo that is already REJECT - Tests for reject + un-pick retract ## Prod note Chegada SNAM cloud is already back to 105 files matching 105 picks; the 45 orphans were removed live. ## Test plan - [ ] CI green - [ ] Reject a delivered photo → file disappears from Nextcloud - [ ] Un-pick (PICK→NONE) a delivered photo → file disappears
spark added 1 commit 2026-11-02 21:57:07 +00:00
fix(delivery): sweep rejected photos left on destinations
ci / rust (pull_request) Failing after 1m44s
ci / typescript (pull_request) Successful in 9m7s
3751589db0
A REJECT that bypasses the library PATCH (or races the upload) could leave
the file on Nextcloud; reclaim those on the worker tick and cover reject/un-pick in tests.
Member

@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#137: CI is red on the PR head.

  • Head: 3751589db0b3
  • Detail: failed contexts: ci / rust (pull_request)
  • The bot did not approve or schedule a merge for this head.
  • Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#137: CI is red on the PR head. - Head: `3751589db0b3` - Detail: failed contexts: ci / rust (pull_request) - The bot did **not** approve or schedule a merge for this head. - Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run. <!-- gitea-autopilot-escalation kind=ci_failure sha=3751589db0b3 -->
spark added 1 commit 2026-11-03 00:16:35 +00:00
Merge branch 'main' into task/BIT-retract-orphan-reconcile
ci / rust (pull_request) Successful in 3m55s
ci / typescript (pull_request) Successful in 7m38s
0afa84c211
paperclip-review-bot left a comment
Member

auto-approve: CI success on 0afa84c211 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 0afa84c21171 (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success on 0afa84c211 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 0afa84c21171 (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success on 0afa84c211 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 0afa84c21171 (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-11-03 00:32:54 +00:00
spark merged commit d9ca281706 into main 2026-11-03 00:32:55 +00:00
Sign in to join this conversation.