Skip to content

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

Merged
avinash-palleti merged 8 commits into
intel-retail:mainfrom
rishika-y-gaur:fix/tag-jira
Nov 20, 2026
Merged

avinash-palleti merged 8 commits into
intel-retail:mainfrom
rishika-y-gaur:fix/tag-jira

Conversation

@rishika-y-gaur

@rishika-y-gaur rishika-y-gaur commented Nov 18, 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. Use TAG for release images with latest as the Compose fallback. (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.

Screenshot: both orders were uploaded via curl (POST /upload-video) and show Completed with their validation results in the Detected Orders tab.

image
  • 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.
image 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 and export TAG from the shared VERSION file in both Makefiles.
Remove duplicate tag settings from environment files and Compose.
Use TAG for release images with latest as the Compose fallback.

Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
@rishika-y-gaur
rishika-y-gaur requested review from a team and a balanced review from Copilot November 18, 2026 09:17
sainijit
sainijit previously approved these changes Nov 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The image-tag migration produces invalid scan references, ignores explicit image overrides, and ties separately published dependencies to application tags that may not exist.

5 open issues
What changed in this PR

This PR centralizes Docker image tags for the dine-in and take-away applications in a root VERSION file.

Changes:

  • Read and export TAG from VERSION in both Makefiles.
  • Update Compose image references to use TAG with a latest fallback, and remove duplicate environment settings.
  • Add python3-cryptography to the packages removed before installing dine-in Python dependencies.
File Description
VERSION Defines the shared default tag as latest.
take-away/​Makefile Reads the shared tag and applies it to the benchmark image.
take-away/​docker-compose.yaml Uses shared-tag image references with latest fallbacks.
take-away/​.env.example Removes duplicate application and benchmark tag settings.
dine-in/​Makefile Reads the shared tag and updates application image selection.
dine-in/​Dockerfile Removes system cryptography alongside PyJWT before dependency installation.
dine-in/​docker-compose.yaml Updates application and semantic-service image tag selection.
dine-in/​.env.example Removes the duplicate tag setting.

Review effort: Balanced

Comment thread dine-in/Makefile Resolved
Comment thread dine-in/Makefile Resolved
Comment thread dine-in/docker-compose.yaml Resolved
Comment thread take-away/Makefile Resolved
Comment thread take-away/docker-compose.yaml Resolved
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
…6828)

While verifying the fix for stale "Processing" on API uploads, the video
status still lagged the validation result by about 2-4 s.

- add_result() now signals an Event that the API upload monitor waits on,
  so the video is marked Completed as soon as the result arrives instead of
  on the next poll (only while an API monitor is active; UI flow unchanged)
- mark API uploads Failed and release the single-upload slot if the
  monitor errors
- add unit test for the monitor failure path

Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
@rishika-y-gaur
rishika-y-gaur requested a balanced review from Copilot November 19, 2026 08:11
@rishika-y-gaur rishika-y-gaur changed the title fix(docker): centralize image tags in root VERSION file fix(take-away): centralize image tags and fix API upload status/item count (ITEP-96828, ITEP-98443) Nov 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow still checks out main, where the new VERSION file is absent, causing PR runs to fail before any images are built or scanned.

1 open issue
5 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/trivyimagescan.yaml Resolved
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
…P-98443)

- frame_pipeline: a short empty-table gap now marks the order pending close;
  the same order id re-read within ORDER_RESUME_WINDOW_SEC (6 s) resumes it
  instead of splitting the order.
- frame-selector: rank top-K frames by expected-item coverage, then
  person-free, then box count, so busy hand-placement frames aren't sent to
  the VLM.

Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved issues can route new-order frames into the previous order’s bucket and select only empty frames when expected-item coverage is unavailable, compromising order validation.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread take-away/src/frame_pipeline.py Resolved
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Missing global declarations cause frame processing and same-order resume to crash, while pending-close pauses can prematurely finalize incomplete orders and leave resumed frames unprocessed.

3 open issues
2 resolved since last review

Review effort: Balanced

Comment thread take-away/src/frame_pipeline.py Resolved
Comment thread take-away/src/frame_pipeline.py Resolved
Comment thread take-away/src/frame_pipeline.py Resolved
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
@avinash-palleti
avinash-palleti merged commit 7b3f774 into intel-retail:main Nov 20, 2026
4 checks 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.

5 participants