Skip to content

fix(oa): centralize image tags and fix API upload status/item count (ITEP-96828, ITEP-98443) - #236

Merged
avinash-palleti merged 1 commit into
intel-retail:release-2026.3.0from
rishika-y-gaur:fix/release-tag-jira
Nov 20, 2026
Merged

avinash-palleti merged 1 commit into
intel-retail:release-2026.3.0from
rishika-y-gaur:fix/release-tag-jira

Conversation

@rishika-y-gaur

@rishika-y-gaur rishika-y-gaur commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What are you changing?

  • Read and export TAG from the shared VERSION file in both Makefiles. Remove duplicate tag settings from environment files and Compose. Direct Compose runs fall back to latest only when TAG is empty or unset. (updated ci workflow files)
image image
  • Videos uploaded via POST /upload-video (curl/API) stayed in "Processing" or lagged the validation result by 2–4 s. The API upload monitor now waits on an event signalled by add_result(), so the video is marked Completed as soon as the validation result arrives. If the monitor errors, the video is marked Failed and the single-upload slot is released. UI upload flow is unchanged.

  • uploaded video/Order sporadically returned mismatch (banana detected 3, expected 2) for both API and UI uploads. The frame-selector picked the 3 frames with the most YOLO boxes. That count includes person, dining table, clock and duplicate low-confidence banana boxes, so it favoured busy hand-placement frames over the stable view. Top-K selection now ranks by expected-item coverage, then person-free, then box count. The [TOP-K] log line now shows person_free for each selected frame. When the table looks empty, wait before writing the per-order EOS. If OCR confirms the same order id within a short window, keep collecting into that order. If it reads a different id, or the window runs out, write the EOS.

Screenshot: The first two orders were uploaded via UI, and the remaining orders were uploaded via the curl (POST /upload-video). All orders show Completed with the correct validation results.

image

Issue this PR closes

close: ITEP-96828, ITEP-98443

PR Checklist

  • Title follows Conventional Commits (<type>(<scope>): <summary>) and reads like a changelog entry — not "Update ".
  • Commits are signed off (git commit -s, Developer Certificate of Origin).
  • Each commit is single-purpose — one fix or one change per commit, features and fixes not mixed.
  • Tests added/updated for new or changed behaviour, and the suite passes locally.
  • Documentation updated (README, docs/, comments) where the change affects it.
  • No commented-out or dead code, and no debug prints left behind.
  • Added a label to the PR for discoverability.
  • New dependencies (if any) have a compatible license and are listed below with a reason.

Does this change results or break compatibility?

  • Changes benchmark/measurement results: No
  • Breaks compatibility with other modules or repos: No

Security

  • Security-relevant change: No

Test instructions

Follow documentation and run unit test cases

VERSION/TAG

  1. cat VERSION, then run make build in dine-in/ and take-away/ and confirm the images are tagged with that version.

ITEP-96828 (take-away)

  1. cd take-away && make build REGISTRY=false && make up
  2. curl -X POST http://localhost:8000/upload-video -F "file=@storage/videos/test.mp4" -F "video_id=test_001"
  3. Poll curl -s http://localhost:8000/videos/test_001: status should change from processing to completed at the same time as the validation result appears.
  4. Upload the same video via the UI (http://localhost:7860), then click Refresh Results in Detected Orders. Both entries should show Completed with the same validation.

ITEP-98443 (take-away)

  1. cd take-away && make build REGISTRY=false && make up
  2. Upload storage/videos/test.mp4 8–12 times (curl and UI), waiting ≥30 s between runs.
  3. In docker compose logs frame-selector, the [TOP-K] lines should show person_free=True.
  4. curl http://localhost:8000/results/<video_id> should return "status": "validated" with banana x2 every run.

Related PRs in other repositories

Read the release tag from the root VERSION file in both Makefiles and
the Trivy image scan. Remove duplicate tag settings and use latest in
Compose only when TAG is empty or unset.

Wake the API upload monitor when a validation result arrives. If the
monitor errors, mark the upload as failed and release the upload slot.
Leave the UI upload flow unchanged.

Rank frames by expected-item coverage, then prefer frames without
people before comparing box counts. Delay order closure briefly so OCR
can confirm that the same order has resumed.

Backport of intel-retail#233 to release-2026.3.0.
Refs: ITEP-96828, ITEP-98443

Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
@avinash-palleti
avinash-palleti merged commit 5c15bd9 into intel-retail:release-2026.3.0 Nov 20, 2026
1 check passed
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.

2 participants