Skip to content
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

Remove JMeter based performance tests #1981

Merged
merged 4 commits into from
May 17, 2021
Merged

Remove JMeter based performance tests #1981

merged 4 commits into from
May 17, 2021

Conversation

steven-sheehy
Copy link
Member

@steven-sheehy steven-sheehy commented May 16, 2021

Detailed description:

  • Fix acceptance test config overwriting default config
  • Fix monitor config documentation not showing hedera.mirror.monitor prefix and confusing users
  • Fix test image sometimes failing to run due to not downloading all dependencies during build
  • Improve test image creation time and image size (1.5GB to 566MB)
  • Remove all JMeter related code

Which issue(s) this PR fixes:

Special notes for your reviewer:
Follow up to #1940

Checklist

  • Documentation added
  • Tests updated

@steven-sheehy steven-sheehy added enhancement Type: New feature P3 performance test Test infrastructure, automated tests required, etc labels May 16, 2021
@steven-sheehy steven-sheehy added this to the Mirror 0.34.0 milestone May 16, 2021
@steven-sheehy steven-sheehy requested a review from a team May 16, 2021 00:33
@steven-sheehy steven-sheehy self-assigned this May 16, 2021
@codecov
Copy link

codecov bot commented May 16, 2021

Codecov Report

Merging #1981 (7ffe95b) into master (126751e) will decrease coverage by 7.09%.
The diff coverage is 74.51%.

❗ Current head 7ffe95b differs from pull request most recent head aec542b. Consider uploading reports for the commit aec542b to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1981      +/-   ##
============================================
- Coverage     87.05%   79.95%   -7.10%     
+ Complexity     1744      433    -1311     
============================================
  Files           315       97     -218     
  Lines          7731     2215    -5516     
  Branches        740       98     -642     
============================================
- Hits           6730     1771    -4959     
+ Misses          772      383     -389     
+ Partials        229       61     -168     
Impacted Files Coverage Δ Complexity Δ
...ra/mirror/monitor/config/MonitorConfiguration.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../hedera/mirror/monitor/publish/PublishMetrics.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...a/mirror/monitor/publish/TransactionPublisher.java 1.06% <0.00%> (-0.08%) 1.00 <0.00> (ø)
...a/mirror/monitor/subscribe/AbstractSubscriber.java 77.14% <ø> (-20.00%) 3.00 <0.00> (-1.00)
.../mirror/monitor/subscribe/rest/RestSubscriber.java 100.00% <ø> (ø) 22.00 <0.00> (?)
...nitor/subscribe/rest/RestSubscriberProperties.java 83.33% <ø> (ø) 4.00 <0.00> (?)
hedera-mirror-rosetta/cmd/db.go 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ra/mirror/monitor/subscribe/SubscribeResponse.java 66.66% <60.00%> (ø) 4.00 <3.00> (?)
hedera-mirror-rosetta/cmd/config.go 66.66% <67.74%> (+66.66%) 0.00 <0.00> (ø)
...irror/monitor/subscribe/grpc/GrpcSubscription.java 70.00% <70.00%> (ø) 15.00 <15.00> (?)
... and 240 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 9d5d467...aec542b. Read the comment docs.

Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
Copy link
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

Looks good.
Will circle back and signoff

@Nana-EC Nana-EC self-requested a review May 17, 2021 18:27
Copy link
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

Looks good, some suggestions on the README

hedera-mirror-test/README.md Show resolved Hide resolved

- Start the tests:
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Acceptance"`
Copy link
Contributor

Choose a reason for hiding this comment

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

we'll remove the upper case tags soon

Suggested change
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Acceptance"`
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@acceptance"`

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed all tags in README to lowercase


`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@FullSuite"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@FullSuite"`
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@fullsuite"`


## Test Configuration
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Negative"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Negative"`
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@negative"`


For Subscribe Only tests no db operations are performed.
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Edge"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@Edge"`
`./mvnw clean integration-test --projects hedera-mirror-test/ -P=acceptance-tests -Dcucumber.filter.tags="@edge"`

Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
Nana-EC
Nana-EC previously approved these changes May 17, 2021
Copy link
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LGTM

ijungmann
ijungmann previously approved these changes May 17, 2021
Copy link
Contributor

@ijungmann ijungmann left a comment

Choose a reason for hiding this comment

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

A couple of nits in the README, just grammar stuff, but LGTM

hedera-mirror-test/README.md Outdated Show resolved Hide resolved
hedera-mirror-test/README.md Outdated Show resolved Hide resolved
hedera-mirror-test/README.md Outdated Show resolved Hide resolved
hedera-mirror-test/README.md Outdated Show resolved Hide resolved
Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
@steven-sheehy steven-sheehy dismissed stale reviews from ijungmann and Nana-EC via aec542b May 17, 2021 20:34
@sonarcloud
Copy link

sonarcloud bot commented May 17, 2021

Copy link
Contributor

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LGTM

@steven-sheehy steven-sheehy merged commit 65bae72 into master May 17, 2021
@steven-sheehy steven-sheehy deleted the remove-jmeter branch May 17, 2021 23:07
ijungmann pushed a commit that referenced this pull request May 18, 2021
* Fix acceptance test config overwriting default config
* Fix monitor config documentation not showing hedera.mirror.monitor prefix and confusing users
* Fix test image sometimes failing to run due to not downloading all dependencies during build
* Improve test image creation time and image size (1.5GB to 566MB)
* Remove all JMeter related code

Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
ijungmann pushed a commit that referenced this pull request May 24, 2021
* Fix acceptance test config overwriting default config
* Fix monitor config documentation not showing hedera.mirror.monitor prefix and confusing users
* Fix test image sometimes failing to run due to not downloading all dependencies during build
* Improve test image creation time and image size (1.5GB to 566MB)
* Remove all JMeter related code

Signed-off-by: Steven Sheehy <steven.sheehy@hedera.com>
Signed-off-by: Ian Jungmann <ian.jungmann@hedera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature P3 performance test Test infrastructure, automated tests required, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants