You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/09/04 12:04:05 UTC

[GitHub] [skywalking-java] daimingzhi opened a new pull request #19: Add support for extClassLoader,move from skywaling

daimingzhi opened a new pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19


   - [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes <https://github.com/apache/skywalking/issues/3661>.
   
   move from https://github.com/apache/skywalking/pull/7477
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on a change in pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#discussion_r703653108



##########
File path: test/plugin/scenarios/extclassloader-scenario/pom.xml
##########
@@ -0,0 +1,155 @@
+<?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.
+  ~
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <groupId>org.apache.skywalking.apm.testcase</groupId>
+    <artifactId>extclassloader-scenario</artifactId>
+    <version>1.0.0</version>
+    <packaging>jar</packaging>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <compiler.version>1.8</compiler.version>
+        <spring-boot-version>2.1.6.RELEASE</spring-boot-version>
+        <test.framework.version>4.3</test.framework.version>
+        <commons.logging.version>1.1.3</commons.logging.version>
+    </properties>
+
+    <name>skywalking-extclassloader-scenario</name>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-dependencies</artifactId>
+                <version>${spring-boot-version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-log4j2</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>${test.framework.version}</version>

Review comment:
       You don't need this actually. This variable is for mutiple version testing.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-914013290


   @daimingzhi your new case fails.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-922886635


   > I will finish it during the Mid-Autumn Festival. I have been working overtime recently
   
   @daimingzhi How is this going? Need any help?
   An update, https://twitter.com/ASFSkyWalking/status/1439929069622071297, SkyWalking server would be released near Oct. 10th, and Java agent is planned to release a little after that. I hope this could get ready as soon as possible and before that.
   
   This would be a very important feature for 8.8.0 Java agent.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] daimingzhi commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
daimingzhi commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-913742120


   > One important thing, you should not run tests based on jars in the `extlibs` folder. All jar files must be imported by maven in the package phase. Try to adjust the assembly.xml.
   
   In order to copy httpclient releated dependences to `./extlibs`, I added `maven-dependency-plugin` to pom.xml


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-914725232


   @daimingzhi The expected data is still not matched. It is better to run the tests locally to verify.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] daimingzhi commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
daimingzhi commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-913141539


   I have finished the test case for  the `extClassLoader` scenario.
   
   What I did is:
   
   1. configure the `httpclient-4.x` plugin to excClassLoaded with `-Dskywalking.plugin.plugins_in_ext_class_loader=httpclient-4.x`
   2. load class httpclient releated by extClassLoader. 
      - put these class in `/extlibs` direttory,and update  `assembly.xml` so that this directory will be package into `.zip` file.
      - add command line argument:`-Djava.ext.dirs=${home}/../extlibs/`
   
   Does this meet expectations?
   
   In addition,since I am using Windows os,I run this case in my IDEA instead of using run.sh scirpt.I'm going to try it on someone else's computer tomorrow


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-955652856


   @daimingzhi Thank you so much to make this feature ready to test. I have finished the last piece of this feature and submit through pull request https://github.com/apache/skywalking-java/pull/62.
   
   Our merge policy may miscount you as a contributor, but I will make sure your mail address existing in the commit log as co-author.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-913145477


   > Does this meet expectations?
   
   Yes, it is.
   
   > In addition,since I am using Windows os,I run this case in my IDEA instead of using run.sh scirpt.I'm going to try it on someone else's computer tomorrow
   
   You should modify `plugins-test.x.yaml` in https://github.com/apache/skywalking-java/tree/main/.github/workflows to make your test scenario running. 
   
   ___
   
   One important thing, you should not run tests based on jars in the `extlibs` folder. All jar files must be imported by maven in the package phase. Try to adjust the assembly.xml.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-913753544


   Please fix CI.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on a change in pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#discussion_r703656431



##########
File path: test/plugin/scenarios/extclassloader-scenario/support-version.list
##########
@@ -0,0 +1,17 @@
+# 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.
+
+4.3

Review comment:
       We could keep this as all, if yoh follow my previous comments.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng closed pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng closed pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-913960070


   @daimingzhi You should add the style issue for test scenario. We will dynamically inject the check style into your pom. From the logs, your test codes are not following.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] daimingzhi commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
daimingzhi commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-917856734


   I will finish it during the Mid-Autumn Festival. I have been working overtime recently


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-925434243


   @daimingzhi Are you still working on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-917294875


   @daimingzhi Do you have any progress?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #19: Add support for extClassLoader,move from skywaling

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #19:
URL: https://github.com/apache/skywalking-java/pull/19#issuecomment-912964423


   Thanks for moving the PR here. Wait for your plugin test to cover this case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org