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

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-graalvm-distro.git


The following commit(s) were added to refs/heads/main by this push:
     new 8363f78  Fix baseline e2e: build mock-sender jar; add alarm TRACE 
logging for diagnosis
8363f78 is described below

commit 8363f78a0dbb03bf751d12380db9823a9a7032a3
Author: Wu Sheng <[email protected]>
AuthorDate: Thu Mar 12 15:47:36 2026 +0800

    Fix baseline e2e: build mock-sender jar; add alarm TRACE logging for 
diagnosis
    
    - Add CI step to build e2e-mock-sender jar from upstream submodule before
      baseline e2e test (fixes "Invalid or corrupt jarfile" in sender container)
    - Add TRACE-level log4j2 config for alarm e2e test to diagnose why alarms
      never trigger in native image (volume-mounted over default log4j2.xml)
---
 .github/workflows/ci.yml                |  7 ++++++
 test/e2e/cases/alarm/docker-compose.yml |  1 +
 test/e2e/cases/alarm/log4j2-debug.xml   | 43 +++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d4de4cb..6767059 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -254,6 +254,13 @@ jobs:
       - name: Load Docker image
         run: docker load -i /tmp/skywalking-oap-native.tar
 
+      - name: Build mock sender jar (baseline only)
+        if: matrix.test.case == 'baseline'
+        run: |
+          cd skywalking && ./mvnw -B -q \
+            -f test/e2e-v2/java-test-service/e2e-mock-sender/pom.xml \
+            package -DskipTests -Dmaven.javadoc.skip
+
       - name: Run E2E test
         uses: 
apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
         with:
diff --git a/test/e2e/cases/alarm/docker-compose.yml 
b/test/e2e/cases/alarm/docker-compose.yml
index 396e3ba..2b625a8 100644
--- a/test/e2e/cases/alarm/docker-compose.yml
+++ b/test/e2e/cases/alarm/docker-compose.yml
@@ -40,6 +40,7 @@ services:
         condition: service_healthy
     volumes:
       - 
../../../../skywalking/test/e2e-v2/cases/alarm/alarm-settings.yml:/skywalking/config/alarm-settings.yml
+      - ./log4j2-debug.xml:/skywalking/config/log4j2.xml
     healthcheck:
       test: ["CMD-SHELL", "nc -nz 127.0.0.1 11800 || exit 1"]
       interval: 5s
diff --git a/test/e2e/cases/alarm/log4j2-debug.xml 
b/test/e2e/cases/alarm/log4j2-debug.xml
new file mode 100644
index 0000000..3be4709
--- /dev/null
+++ b/test/e2e/cases/alarm/log4j2-debug.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  ~
+  -->
+
+<!--
+  Log4j2 configuration for alarm E2E debugging.
+  Enables DEBUG for alarm-related packages to trace the alarm evaluation 
pipeline.
+-->
+<Configuration status="WARN">
+    <Appenders>
+        <Console name="Console" target="SYSTEM_OUT">
+            <PatternLayout>
+                <pattern>%d - %c - %L [%t] %-5p %x - %m%n</pattern>
+            </PatternLayout>
+        </Console>
+    </Appenders>
+    <Loggers>
+        <logger name="org.apache.zookeeper" level="INFO"/>
+        <logger name="io.grpc.netty" level="INFO"/>
+        <!-- Alarm pipeline TRACE logging: RunningRule, AlarmCore, 
NotifyHandler -->
+        <logger name="org.apache.skywalking.oap.server.core.alarm" 
level="TRACE"/>
+        <logger 
name="org.apache.skywalking.oap.server.core.analysis.worker.AlarmNotifyWorker" 
level="TRACE"/>
+        <logger 
name="org.apache.skywalking.oap.server.core.analysis.worker.MetricsPersistentWorker"
 level="TRACE"/>
+        <Root level="INFO">
+            <AppenderRef ref="Console"/>
+        </Root>
+    </Loggers>
+</Configuration>

Reply via email to