Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Plugin test based on skywalking-infra-e2e #122

Merged
merged 5 commits into from
Jul 20, 2021
Merged

Plugin test based on skywalking-infra-e2e #122

merged 5 commits into from
Jul 20, 2021

Conversation

arugal
Copy link
Member

@arugal arugal commented Jul 7, 2021

No description provided.

@arugal arugal added the test Test requirements about performance, feature or before release. label Jul 7, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2021

Codecov Report

Merging #122 (51ad7e1) into master (8c3683b) will increase coverage by 1.85%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   67.48%   69.33%   +1.85%     
==========================================
  Files          17       17              
  Lines         735      887     +152     
==========================================
+ Hits          496      615     +119     
- Misses        195      224      +29     
- Partials       44       48       +4     
Impacted Files Coverage Δ
plugins/http/server.go 46.15% <0.00%> (-3.85%) ⬇️
plugins/http/client.go 45.83% <0.00%> (-2.95%) ⬇️
span.go 100.00% <0.00%> (ø)
span_opts.go 100.00% <0.00%> (ø)
trace_data.go 100.00% <0.00%> (ø)
trace_opts.go 75.00% <0.00%> (ø)
log/context.go 100.00% <0.00%> (ø)
reporter/log.go 0.00% <0.00%> (ø)
internal/idgen/idgen.go 0.00% <0.00%> (ø)
correlation.go 88.57% <0.00%> (+1.07%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c3683b...51ad7e1. Read the comment docs.

@arugal
Copy link
Member Author

arugal commented Jul 8, 2021

image
The plugin test based on skywalking-infra-e2e was successfully run, and I will complete the verify part later.

@dmsolr @wu-sheng I need to build a skywalking-agent-test-tool image :)

@arugal arugal linked an issue Jul 8, 2021 that may be closed by this pull request
@arugal arugal mentioned this pull request Jul 8, 2021
1 task
@arugal arugal changed the title [WIP] Plugin test based on skywalking-infra-e2e Plugin test based on skywalking-infra-e2e Jul 9, 2021
@arugal arugal marked this pull request as ready for review July 9, 2021 07:34
@arugal
Copy link
Member Author

arugal commented Jul 9, 2021

@mrproliu @wu-sheng @kezhenxu94 Please review :)

CC @kagaya85 we tested the plugin via skywalking-infra-e2e


services:
mockoap:
image: arugaldocker/skywalking-mock-collector:1.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should built the image on the fly (I prefer) or release this docker officially in Apache, otherwise other repo will copy and paste to use this image, which is bad

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, this is what I used for testing. I forgot to change it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dmsolr do you have time to finish this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need an official release for this. otherwise, arugaldocker/skywalking-mock-collector is a potential trademark issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arugal Do you want to initiate a release for this? Mostly, we need to resolve the license and notice files.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arugal Do you want to initiate a release for this? Mostly, we need to resolve the license and notice files.

OK, I will finish this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

via ghcr.io/apache/skywalking-agent-test-tool/mock-collector:b01d4137fed862338d78a73b23435ccf425f9962

kezhenxu94
kezhenxu94 previously approved these changes Jul 9, 2021
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Thanks for adopting skywalking-infra-e2e so quickly!!


segmentItems:
{{- range .segmentItems }}
{{- if or (eq .serviceName "http-client") (eq .serviceName "http-server")}}
Copy link
Member

@wu-sheng wu-sheng Jul 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a feeling, there is abuse about if or. Such as we use multiple services' segments together, and mixing component names, operation names, with or without reference.
We should make sure the expected data is as strict as possible. Check how we check in the plugin test tool, all things should be separated and checked one by one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@arugal
Copy link
Member Author

arugal commented Jul 20, 2021

@wu-sheng @mrproliu please review

Copy link
Contributor

@mrproliu mrproliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Glad to see infra-e2e used in the project:)

@arugal arugal merged commit 9de9f1c into master Jul 20, 2021
@arugal arugal deleted the plugin_test branch July 20, 2021 07:41
@wu-sheng
Copy link
Member

@arugal @kezhenxu94 @mrproliu Once we have several more e2e tests by using this tool, it is time to discuss its version number and run a release. Then we should write 1-2 blogs about how it works, and how other projects could adopt it.

@arugal arugal added this to the 1.2.0 milestone Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
test Test requirements about performance, feature or before release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add go2sky plugin test framework
5 participants