From 207c3491e0e9d5598d45afa91a182662a91aa579 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 12 Aug 2026 06:56:37 +0000
Subject: [PATCH] [#861] Fail fast when the CI Test replication step hangs (#862)

---
 .github/workflows/build.yml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f92f3b7..b96b624 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -237,6 +237,9 @@
         rm -rf opendj-server-legacy/target/package/opendj/{config,db,changelogDb,logs,tmp}
     - name: Test replication
       if: runner.os == 'Linux'
+      # dsreplication enable can hang indefinitely; without a timeout a hang
+      # holds the runner until the 6-hour job limit. Normal duration is ~4 min.
+      timeout-minutes: 30
       run: |
         cp -r ./opendj-server-legacy/target/package/opendj ./opendj-server-legacy/target/package/opendj1
         cp -r ./opendj-server-legacy/target/package/opendj ./opendj-server-legacy/target/package/opendj2

--
Gitblit v1.10.0