From 36f90732a985a7ee1e332be2b781b6ad1e12366e Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Sat, 25 Apr 2026 06:53:43 +0300 Subject: [PATCH] Remove obsolete Woodpecker CI configuration for ARM builds --- .woodpecker/01-test.yml | 39 +++++++++++++++++++ .../{build-arm.yml => 02-build-push.yml} | 24 ++++++++++-- 2 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 .woodpecker/01-test.yml rename .woodpecker/{build-arm.yml => 02-build-push.yml} (51%) diff --git a/.woodpecker/01-test.yml b/.woodpecker/01-test.yml new file mode 100644 index 0000000..338dc3d --- /dev/null +++ b/.woodpecker/01-test.yml @@ -0,0 +1,39 @@ +# Manual-trigger only. Validation fixtures (sample videos + expected-detections +# baseline) are not yet authored; running the e2e on push would produce red +# builds until that data lands. Flip `event: [manual]` back to +# `event: [push, pull_request, manual]` once validation fixtures are in place, +# and add `depends_on: [01-test]` to 02-build-push.yml. +# +# Tracking: see plan "CI Auto Tests Epic", story S3b — blocked by e2e validation data. + +when: + event: [manual] + branch: [dev, stage, main] + +labels: + platform: arm64 + +steps: + - name: e2e + image: docker:24 + environment: + COMPOSE_PROJECT_NAME: detections-e2e + commands: + - cd e2e + - mkdir -p results logs + - docker compose -f docker-compose.test.yml --profile cpu up --build --abort-on-container-exit --exit-code-from e2e-runner + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + - name: e2e-report + image: docker:24 + when: + status: [success, failure] + environment: + COMPOSE_PROJECT_NAME: detections-e2e + commands: + - cd e2e + - docker compose -f docker-compose.test.yml --profile cpu down -v || true + - test -f results/report.csv && cat results/report.csv || echo "no report" + volumes: + - /var/run/docker.sock:/var/run/docker.sock diff --git a/.woodpecker/build-arm.yml b/.woodpecker/02-build-push.yml similarity index 51% rename from .woodpecker/build-arm.yml rename to .woodpecker/02-build-push.yml index 8025757..0c20c67 100644 --- a/.woodpecker/build-arm.yml +++ b/.woodpecker/02-build-push.yml @@ -1,9 +1,27 @@ +# No `depends_on: [01-test]` clause yet — the test workflow is manual-only +# while validation fixtures are being authored (see 01-test.yml header comment). +# When 01-test flips to push/pull_request triggers, add `depends_on: [01-test]` +# here so builds are gated on a green test run. + when: event: [push, manual] branch: [dev, stage, main] +# Multi-arch matrix. detections is the only repo today with split per-arch +# Dockerfiles (Jetson uses Dockerfile.jetson with TensorRT/CUDA on L4T; +# amd64 uses the plain Dockerfile). Adding amd64 = uncommenting the second +# entry once an amd64 agent and base image are in place. +matrix: + include: + - PLATFORM: arm64 + TAG_SUFFIX: arm + DOCKERFILE: Dockerfile.jetson + # - PLATFORM: amd64 + # TAG_SUFFIX: amd + # DOCKERFILE: Dockerfile + labels: - platform: arm64 + platform: ${PLATFORM} steps: - name: build-push @@ -17,10 +35,10 @@ steps: from_secret: registry_token commands: - echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin - - export TAG=${CI_COMMIT_BRANCH}-arm + - export TAG=${CI_COMMIT_BRANCH}-${TAG_SUFFIX} - export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) - | - docker build -f Dockerfile.jetson \ + docker build -f ${DOCKERFILE} \ --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \ --label org.opencontainers.image.revision=$CI_COMMIT_SHA \ --label org.opencontainers.image.created=$BUILD_DATE \