This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch fix/k8s-ingress-healthcheck-flake
in repository https://gitbox.apache.org/repos/asf/shenyu.git

commit 624b06418c0f5234d0295906c853a9a569f11ccf
Author: liuhy <[email protected]>
AuthorDate: Mon Jun 8 12:18:11 2026 +0800

    Use stable websocket ingress health endpoint
    
    The websocket ingress preflight polled a historical HTTP path that is not 
implemented by the annotation websocket example. CI reached the service but 
received repeated 404 responses, so the cluster startup step failed before the 
real websocket test could run.
    
    Use the actuator health endpoint that the same example already exposes for 
Kubernetes liveness, and give the example a longer initial liveness delay to 
avoid startup probe restarts observed in CI diagnostics.
    
    Constraint: The preflight check must use an HTTP URL, while the actual 
integration coverage remains the ws://localhost:30095/myWs test.
    
    Rejected: Add a dummy HTTP handler for /new/feature/get/mapping/path | it 
would preserve a stale health endpoint unrelated to websocket coverage.
    
    Confidence: high
    
    Scope-risk: narrow
    
    Tested: git diff --check
    
    Tested: Ruby YAML parse for websocket Kubernetes manifest
    
    Tested: kind hostPort mapping consistency check for ingress service lists
    
    Tested: ./mvnw -f shenyu-integrated-test/pom.xml -pl 
shenyu-integrated-test-k8s-ingress-websocket -am -DskipTests -Pit 
-Dmaven.javadoc.skip=true test-compile
    
    Not-tested: full Kubernetes ingress websocket workflow locally; requires CI 
kind/docker environment
---
 .../k8s/shenyu-example-spring-annotation-websocket.yml                  | 2 +-
 .../shenyu-integrated-test-k8s-ingress-websocket/script/services.list   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/k8s/shenyu-example-spring-annotation-websocket.yml
 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/k8s/shenyu-example-spring-annotation-websocket.yml
index 0767297926..c1ee7d915a 100644
--- 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/k8s/shenyu-example-spring-annotation-websocket.yml
+++ 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/k8s/shenyu-example-spring-annotation-websocket.yml
@@ -38,7 +38,7 @@ spec:
         - image: shenyu-example-spring-annotation-websocket
           name: shenyu-example-spring-annotation-websocket
           livenessProbe:
-            initialDelaySeconds: 30
+            initialDelaySeconds: 60
             periodSeconds: 10
             timeoutSeconds: 5
             successThreshold: 1
diff --git 
a/shenyu-integrated-test/shenyu-integrated-test-k8s-ingress-websocket/script/services.list
 
b/shenyu-integrated-test/shenyu-integrated-test-k8s-ingress-websocket/script/services.list
index d6f04cdb1e..31df61e198 100644
--- 
a/shenyu-integrated-test/shenyu-integrated-test-k8s-ingress-websocket/script/services.list
+++ 
b/shenyu-integrated-test/shenyu-integrated-test-k8s-ingress-websocket/script/services.list
@@ -14,4 +14,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-http://localhost:31188/new/feature/get/mapping/path
+http://localhost:31188/actuator/health

Reply via email to