New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rabbitmq plugin test migration #3788
Rabbitmq plugin test migration #3788
Conversation
Add your job to Jenkinsfile-Agent-Test file, workload 1 group. Otherwise, this would not be tested in CI. |
0206b79
to
02757ba
Compare
...rio/src/main/java/org/apache/skywalking/apm/testcase/rabbitmq/controller/CaseController.java
Outdated
Show resolved
Hide resolved
test/plugin/scenarios/rabbitmq-scenario/src/main/resources/log4j2.xml
Outdated
Show resolved
Hide resolved
4d8964c
to
7167d88
Compare
steps { | ||
sh 'bash test/plugin/run.sh rabbitmq-scenario' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Test Case Report
, please refer to the local-test-and-pull-request-to-the-upstream .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arugal I helped on fixing this part.
...rio/src/main/java/org/apache/skywalking/apm/testcase/rabbitmq/controller/CaseController.java
Show resolved
Hide resolved
<id>spring-milestones</id> | ||
<url>http://repo.spring.io/milestone</url> | ||
</pluginRepository> | ||
</pluginRepositories> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this pluginRepositories needs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please notice this, I don't think we need spring repo. Maven central should be enough, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@viswaramamoorthy could you remove this?
test/plugin/scenarios/rabbitmq-scenario/src/main/resources/application.properties
Outdated
Show resolved
Hide resolved
I am not familiar with this framework. one of you can take over this PR. |
@viswaramamoorthy The test is not hard, it is just demo codes with the real agent, and check the segments sent by the agent. You should understand it, it will help you to make sure the plugin is right. |
Hi @viswaramamoorthy |
I ran rabbitmq-scenario locally using run.sh. I saw few basic errors. is run.sh expected work locally for e.g. my laptop? I have docker installed. |
Hello, has
|
b701050
to
cd18477
Compare
Local error is not due to health check, it is complaining about missing or docker image permission. see below. Pulling rabbitmq-scenario-5.5.1-local (skywalking/agent-test-jvm:local)... Anyway, I have added healthcheck and made changes to log messages. check |
Run locally use
Good, let's wait for the test result. Todo list:
|
@arugal That is the issue. run,sh is an issue. build_id has to be defaulted to latest so the built docker image can be run. It is defaulted to "local" because of this, docker compose generated looks for " skywalking/agent-test-jvm:local" that never exists and hence container not starting I have shown the problem in bold below. check build_id="local" |
ha, use Line 148 in 6206074
|
Hi, @viswaramamoorthy |
33ce9ac
to
b67c1ef
Compare
Related to #3583 |
Please follow this, https://github.com/apache/skywalking/blob/master/docs/en/guides/Plugin-test.md#the-elapsed-time-list-of-plugins. And add your task into the fastest one when it is ready to be merged. |
/run agent-plugin-test-1 |
test/plugin/scenarios/rabbitmq-scenario/config/expectedData.yaml
Outdated
Show resolved
Hide resolved
test/plugin/scenarios/rabbitmq-scenario/config/expectedData.yaml
Outdated
Show resolved
Hide resolved
...rio/src/main/java/org/apache/skywalking/apm/testcase/rabbitmq/controller/CaseController.java
Outdated
Show resolved
Hide resolved
<id>spring-milestones</id> | ||
<url>http://repo.spring.io/milestone</url> | ||
</pluginRepository> | ||
</pluginRepositories> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing
...rio/src/main/java/org/apache/skywalking/apm/testcase/rabbitmq/controller/CaseController.java
Show resolved
Hide resolved
test/plugin/scenarios/rabbitmq-scenario/src/main/resources/log4j2.xml
Outdated
Show resolved
Hide resolved
...rio/src/main/java/org/apache/skywalking/apm/testcase/rabbitmq/controller/CaseController.java
Outdated
Show resolved
Hide resolved
@viswaramamoorthy Please follow the review. |
@viswaramamoorthy Code frozen is over. Please keep the update, after all checked, this could be merged. |
I am away from my computer for couple of days. If someone can take that
final comment and fix, they can. Or I will send update in two days.
…On Tue, Nov 12, 2019, 10:01 AM 吴晟 Wu Sheng ***@***.***> wrote:
@viswaramamoorthy <https://github.com/viswaramamoorthy> Code frozen is
over. Please keep the update, after all checked, this could be merged.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3788?email_source=notifications&email_token=AF5E7VPIOFXNUOZMDP6LC7DQTLAL3A5CNFSM4JJCXSVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED2QYVY#issuecomment-552930391>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5E7VNS2TIMZFKVCQPEK43QTLAL3ANCNFSM4JJCXSVA>
.
|
>I am away from my computer for couple of days. If someone can take that Got it, we will wait. |
@viswaramamoorthy Please solve the conflicts and update to the master branch. |
@viswaramamoorthy you need to solve the conflict. |
Remove the repo addresses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM |
/run agent-plugin-test-2 |
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
Bug fix
Bug description.
Migrated RabbitMQ plugin e2e test cases
How to fix?
New feature or improvement