FROM sha256:4648079cdd0330f1da5e492b172718e29ad722fb403444bb7ac0241d330fbd9a AS verify
WORKDIR /opt/contextra
COPY hotfix/app/ /opt/contextra/app/
COPY tests/ /opt/contextra/tests/
RUN PYTHONDONTWRITEBYTECODE=1 OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 timeout 120 python3 -m pytest -q -p no:cacheprovider tests/test_event_time_fallback.py tests/test_frame_time.py tests/test_event_artifact.py tests/test_result_queue_b.py tests/test_capture_trial.py tests/test_event_cooldown.py tests/test_crowd_events.py tests/test_provider_process_group.py -k "not test_roi_event_wire_paths_and_sidecar and not test_real_start_projection_skip_recovery_and_no_crowd_process"
FROM sha256:4648079cdd0330f1da5e492b172718e29ad722fb403444bb7ac0241d330fbd9a
COPY --from=verify /opt/contextra/app/contracts/frames.py /opt/contextra/app/contracts/frames.py
COPY --from=verify /opt/contextra/app/frame_time.py /opt/contextra/app/frame_time.py
COPY --from=verify /opt/contextra/app/event_capture.py /opt/contextra/app/event_capture.py
COPY --from=verify /opt/contextra/app/event_artifact_contract.py /opt/contextra/app/event_artifact_contract.py
COPY --from=verify /opt/contextra/app/event_time_fallback.py /opt/contextra/app/event_time_fallback.py
