From 3d7b358710f35565c0b5fbe1d46b2dece12c8f05 Mon Sep 17 00:00:00 2001 From: logresearch Date: Wed, 31 Jul 2024 06:04:00 +0800 Subject: [PATCH] Fix misleading in logging statement in parallelPipeline Method (#2566) * Fix misleading in logging statement * Update GitRepositoryRule.java The original logging statement incorrectly logged the range of branch numbers as [1-(number + 1)], which implies that one more branch than specified is created. The update corrects this by logging the range as [1-number], matching the actual number of branches created in the loop. --- .../src/main/java/io/blueocean/ath/GitRepositoryRule.java | 2 +- .../src/main/java/io/blueocean/ath/pages/blue/EditorPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptance-tests/src/main/java/io/blueocean/ath/GitRepositoryRule.java b/acceptance-tests/src/main/java/io/blueocean/ath/GitRepositoryRule.java index 83be8568357..03966c4f282 100644 --- a/acceptance-tests/src/main/java/io/blueocean/ath/GitRepositoryRule.java +++ b/acceptance-tests/src/main/java/io/blueocean/ath/GitRepositoryRule.java @@ -51,7 +51,7 @@ public List createBranches(@NotNull String prefix, int number) throws GitAP Ref ref = client.branchCreate().setName(prefix + i).call(); refs.add(ref); } - logger.info("Created " + number + " branches " + prefix + "[1-" + (number + 1) + "]"); + logger.info("Created " + number + " branches " + prefix + "[1-" + number + "]"); return refs; } diff --git a/acceptance-tests/src/main/java/io/blueocean/ath/pages/blue/EditorPage.java b/acceptance-tests/src/main/java/io/blueocean/ath/pages/blue/EditorPage.java index 4cbd417b3cc..71f782e742e 100644 --- a/acceptance-tests/src/main/java/io/blueocean/ath/pages/blue/EditorPage.java +++ b/acceptance-tests/src/main/java/io/blueocean/ath/pages/blue/EditorPage.java @@ -166,7 +166,7 @@ public void simplePipeline(String newBranch) { * @param numberOfParallels number of parallel branches we want to create. */ public void parallelPipeline(int numberOfParallels) { - logger.info("Editing a parallel pipeline"); + logger.info("Creating a parallel pipeline from scratch"); for (int i = 1; i < numberOfParallels; i++) { logger.info("Create stage Parallel-" + i); // The "add" Button will always have the id pipeline-node-hittarget-2-add