From e1a2c89b913bd8c887c9d35413b34f1b1512c7c8 Mon Sep 17 00:00:00 2001 From: Clemens Zagler Date: Fri, 24 Jan 2025 16:07:19 +0100 Subject: [PATCH] traffic-provBZ: add logging to debug json mapping issue; bump cicd runner and localdev docker image --- .github/workflows/ci-traffic-bz.yml | 6 +++--- data-collectors/traffic-provBZ/docker-compose.yml | 2 +- .../src/main/java/it/bz/odh/trafficprovbz/FamasClient.java | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-traffic-bz.yml b/.github/workflows/ci-traffic-bz.yml index db7d4c58..b3913f6a 100644 --- a/.github/workflows/ci-traffic-bz.yml +++ b/.github/workflows/ci-traffic-bz.yml @@ -15,7 +15,7 @@ env: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout source code uses: noi-techpark/github-actions/checkout@v2 @@ -30,7 +30,7 @@ jobs: # Deploy Test deploy-test-traffic-bz: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 if: github.ref == 'refs/heads/main' needs: test concurrency: deploy-test-traffic-bz @@ -63,7 +63,7 @@ jobs: X_BASE_URI: https://mobility.share.opendatahub.testingmachine.eu/json # Logging - X_LOG_LEVEL: info + X_LOG_LEVEL: debug X_LOG_STYLE: json X_provenance_name: ${{ env.PROJECT_NAME }} X_provenance_version: ${{ github.sha }} diff --git a/data-collectors/traffic-provBZ/docker-compose.yml b/data-collectors/traffic-provBZ/docker-compose.yml index 90501cc6..446e5285 100644 --- a/data-collectors/traffic-provBZ/docker-compose.yml +++ b/data-collectors/traffic-provBZ/docker-compose.yml @@ -4,7 +4,7 @@ services: app: - image: maven:3-jdk-8-alpine + image: maven:3-eclipse-temurin-17-alpine network_mode: host env_file: - .env diff --git a/data-collectors/traffic-provBZ/src/main/java/it/bz/odh/trafficprovbz/FamasClient.java b/data-collectors/traffic-provBZ/src/main/java/it/bz/odh/trafficprovbz/FamasClient.java index 41e9aa22..5fc206d1 100644 --- a/data-collectors/traffic-provBZ/src/main/java/it/bz/odh/trafficprovbz/FamasClient.java +++ b/data-collectors/traffic-provBZ/src/main/java/it/bz/odh/trafficprovbz/FamasClient.java @@ -101,6 +101,7 @@ public MetadataDto[] getStationsData() throws IOException { HttpResponse response = client.execute(new HttpGet(stationsDataUrl)); HttpEntity entity = response.getEntity(); String responseString = EntityUtils.toString(entity, RESPONSE_CHARSET); + LOG.debug("Dumping stations json: " + responseString); return objectMapper.readValue(responseString, MetadataDto[].class); }