Feature/run jetson e2e tests (#4)
ci/woodpecker/push/02-build-push Pipeline was successful

* Run tests

* Run tests

* Run tests

* Run tests

* Added rebuild

* Added files for e2e tests

* Added rebuild

* Added rebuild

* Added biuld TensorRT flag

* Changed to use NumPy 1.x for Jetson

* Make universal invocation

* Make Cython constans

* Changed to prepare onnx

* Changed smoke-test to wait AI conversion

* Added step for model conversion

* Changed to not run step in parallel

* Push model to docker registry

* Push model to docker registry

* Push model to docker registry
This commit is contained in:
Roman Meshko
2026-05-05 21:44:51 +03:00
committed by GitHub
parent a659631151
commit 6ad4b700dd
23 changed files with 501 additions and 112 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
FROM python:3.11-slim
WORKDIR /app
RUN pip install --no-cache-dir flask gunicorn
COPY app.py .
COPY mocks/loader/app.py .
COPY fixtures /models
EXPOSE 8080
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
+13 -1
View File
@@ -31,6 +31,16 @@ def _resolve_disk_path(filename: str, folder: str | None) -> Path | None:
return None
def _write_disk_path(filename: str, folder: str | None, data: bytes) -> Path:
root = _models_root()
safe_filename = Path(filename).name
target_dir = root / folder if folder else root
target_dir.mkdir(parents=True, exist_ok=True)
target = target_dir / safe_filename
target.write_bytes(data)
return target
def _should_fail_load() -> bool:
global _first_fail_remaining
if _mode == "error":
@@ -73,7 +83,9 @@ def upload(filename):
f = request.files.get("data")
if not f:
return "", 400
_uploads[(folder, filename)] = f.read()
data = f.read()
_uploads[(folder, filename)] = data
_write_disk_path(filename, folder, data)
_upload_count += 1
return "", 200