From 7594e09d662a8f7d710dcc71a86a37f1c7cdd324 Mon Sep 17 00:00:00 2001 From: Jan Kisel Date: Tue, 26 Nov 2024 21:29:23 +0100 Subject: [PATCH] Testing codecov integration This commit introduces non-covered code. Should clearly trigger codecov message. --- .github/workflows/codecov.yml | 2 +- .../uber/cadence/internal/common/WorkflowExecutionUtils.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 30bdef8e..e92d0326 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,7 +11,7 @@ jobs: - name: Install dependencies, run tests, and collect coverage run: docker compose -f docker/buildkite/docker-compose.yaml run unit-test-test-service - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} slug: cadence-workflow/cadence-java-client diff --git a/src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java b/src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java index 067c3e0b..f275b614 100644 --- a/src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java +++ b/src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java @@ -773,6 +773,7 @@ private static String prettyPrintJson(String jsonValue, String stackIndentation) Gson gson = new GsonBuilder().setPrettyPrinting().create(); return gson.toJson(json); } catch (Exception e) { + System.err.println("Error parsing JSON: " + jsonValue); return jsonValue; } }