From 8fb923d7d810d273296aa16d0bd3085cda1f125b Mon Sep 17 00:00:00 2001 From: Rui Chen <44330697+coryhh@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:35:34 +0800 Subject: [PATCH] fix: re-running locally, the new configuration does not take effect. (#351) --- arex-schedule-web-api/pom.xml | 4 ++-- .../com/arextest/schedule/service/LocalReplayService.java | 3 +++ pom.xml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arex-schedule-web-api/pom.xml b/arex-schedule-web-api/pom.xml index c8bb5bb1..6b22de85 100644 --- a/arex-schedule-web-api/pom.xml +++ b/arex-schedule-web-api/pom.xml @@ -136,7 +136,7 @@ arex-schedule-parent com.arextest - 1.2.15 + 1.2.17 @@ -338,5 +338,5 @@ - 1.2.15 + 1.2.17 \ No newline at end of file diff --git a/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/LocalReplayService.java b/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/LocalReplayService.java index a6ef8276..1e297bf2 100644 --- a/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/LocalReplayService.java +++ b/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/LocalReplayService.java @@ -198,6 +198,7 @@ public CommonResponse queryReRunCaseId(ReRunReplayPlanRequest request) { progressEvent.onReplayPlanReRun(replayPlan); progressEvent.onUpdateFailedCases(replayPlan, failedCaseList); planConsumePrepareService.updateFailedActionAndCase(replayPlan, failedCaseList); + compareConfigService.preload(replayPlan); cacheReplayPlan(replayPlan); if (CollectionUtils.isEmpty(replayPlan.getReplayActionItemList())) { throw new RuntimeException("no replayActionItem!"); @@ -262,6 +263,7 @@ private void cacheReplayPlan(ReplayPlan replayPlan) { JsonUtils.objectToJsonString(replayPlanForCache).getBytes(StandardCharsets.UTF_8)); } + @SuppressWarnings("java:S1181") private ReplayPlanForCache loadReplayPlanCache(String planId) { try { byte[] json = doWithRetry( @@ -285,6 +287,7 @@ private byte[] doWithRetry(Supplier action) { } } + @SuppressWarnings("java:S1181") private ReplayActionItemForCache loadReplayActionItemCache(String planItemId) { try { byte[] json = doWithRetry( diff --git a/pom.xml b/pom.xml index c6106995..f3ad02a7 100644 --- a/pom.xml +++ b/pom.xml @@ -320,5 +320,5 @@ https://github.com/arextest/arex-replay-schedule https://github.com/arextest/arex-replay-schedule - 1.2.16 + 1.2.17 \ No newline at end of file