Repository navigation
fix(take-away): centralize image tags and fix API upload status/item count (ITEP-96828, ITEP-98443) - #233
Conversation
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>
There was a problem hiding this comment.
🟡 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
Image scan extracts literal Makefile expression instead of VERSION · New Unconditional assignment overrides explicit DINEIN_IMAGE · New Compose ignores custom DINEIN_IMAGE override · New Benchmark image tag incorrectly follows application TAG · New Application TAG incorrectly controls semantic-search image version · New
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
TAGfromVERSIONin both Makefiles. - Update Compose image references to use
TAGwith alatestfallback, and remove duplicate environment settings. - Add
python3-cryptographyto 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
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
…into fix/tag-jira
…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>
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>
There was a problem hiding this comment.
🟡 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
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>
There was a problem hiding this comment.
🟡 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
Signed-off-by: rishika-y-gaur <rishika.gaur@intel.com>


What are you changing?
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 byadd_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.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 includesperson,dining table,clockand duplicate low-confidencebananaboxes, 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 showsperson_freefor 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.Issue this PR closes
close: ITEP-96828, ITEP-98443
PR Checklist
<type>(<scope>): <summary>) and reads like a changelog entry — not "Update ".git commit -s, Developer Certificate of Origin).Does this change results or break compatibility?
Security
Test instructions
Follow documentation and run unit test cases
VERSION/TAG
cat VERSION, then runmake buildindine-in/andtake-away/and confirm the images are tagged with that version.ITEP-96828 (take-away)
cd take-away && make build REGISTRY=false && make upcurl -X POST http://localhost:8000/upload-video -F "file=@storage/videos/test.mp4" -F "video_id=test_001"curl -s http://localhost:8000/videos/test_001: status should change fromprocessingtocompletedat the same time as the validation result appears.ITEP-98443 (take-away)
cd take-away && make build REGISTRY=false && make upstorage/videos/test.mp48–12 times (curl and UI), waiting ≥30 s between runs.docker compose logs frame-selector, the[TOP-K]lines should showperson_free=True.curl http://localhost:8000/results/<video_id>should return"status": "validated"withbanana x2every run.Related PRs in other repositories