Fix autopilot.test.ts: full-size photos so crops clear the delivery floor (BIT-33293) #306

Closed
spark wants to merge 1 commits from task/BIT-33293-autopilot-tests into main
pull from: task/BIT-33293-autopilot-tests
Owner

Root cause: since 1fb6ca1 compose() refuses crops near the delivery floor (minLongEdge 2400). The tests used 600x400 photos, so minCropWidth=1, every frame had no composition and scored 0 — burst picks, moment choice and learnt crops became arbitrary (4 failures). Photos are now 6000x4000; a planFrame unit test pins the floor behaviour.

Not run locally: no pgvector DB on this host, so CI is the proof for the 4 DB tests (the planFrame/compose repro confirms 600px => null composition, 6000px => ok).

Root cause: since 1fb6ca1 compose() refuses crops near the delivery floor (minLongEdge 2400). The tests used 600x400 photos, so minCropWidth=1, every frame had no composition and scored 0 — burst picks, moment choice and learnt crops became arbitrary (4 failures). Photos are now 6000x4000; a planFrame unit test pins the floor behaviour. Not run locally: no pgvector DB on this host, so CI is the proof for the 4 DB tests (the planFrame/compose repro confirms 600px => null composition, 6000px => ok).
spark added 1 commit 2026-11-25 00:39:36 +00:00
Fix autopilot tests: use full-size photos so crops clear the delivery floor (BIT-33293)
ci / rust (pull_request) Successful in 4m21s
ci / typescript (pull_request) Failing after 10m32s
64c16834c5
The fake 600x400 photos sit below the 2400 px delivery floor since 1fb6ca1, so
compose() returned no composition, every frame scored 0 and burst picks, moment
choice and learnt crops became arbitrary. Photos are now 6000x4000; a unit test
pins the floor behaviour.

Paperclip-Issue: BIT-33293
Member

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

  • Head: 64c16834c5c8
  • Detail: failed contexts: ci / typescript (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#306: CI is red on the PR head. - Head: `64c16834c5c8` - Detail: failed contexts: ci / typescript (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=64c16834c5c8 -->
peter-spark closed this pull request 2026-11-25 01:02:19 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.