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

Updated scheduled tests #1846

Merged
merged 4 commits into from Apr 15, 2021
Merged

Updated scheduled tests #1846

merged 4 commits into from Apr 15, 2021

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Apr 13, 2021

Detailed description:
Scheduled transactions were updated in accordance with the redesign. This resulted in a new protobuf and a new sdk version

  • Pull in sdk version 2.0.5-beta.7 which uses new protobuf into data-generator, monitor and test modules
  • Update ScheduleClient to no longer sign inner transaction but outer
  • Update ScheduleScenario to handle verifications, including additional signatures that aren't required
  • Update monitor Schedule transaction logic
  • Update monitor publish logic to handle transactions with nodes set
  • Add HCS message publish in background to reduce likelihood of stale data

Which issue(s) this PR fixes:
Fixes #1822
Fixes #1821

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

…tests

Signed-off-by: Nana-EC <56320167+Nana-EC@users.noreply.github.com>
…scenario

Signed-off-by: Nana-EC <56320167+Nana-EC@users.noreply.github.com>
@Nana-EC Nana-EC added enhancement Type: New feature P2 test Test infrastructure, automated tests required, etc process Build, test and deployment-process related tasks labels Apr 13, 2021
@Nana-EC Nana-EC added this to the Mirror 0.32.0 milestone Apr 13, 2021
@Nana-EC Nana-EC requested a review from a team April 13, 2021 05:16
@Nana-EC Nana-EC self-assigned this Apr 13, 2021
@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

Merging #1846 (77b97de) into master (8125fd6) will decrease coverage by 0.37%.
The diff coverage is 8.41%.

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

@@             Coverage Diff              @@
##             master    #1846      +/-   ##
============================================
- Coverage     87.37%   87.00%   -0.38%     
- Complexity     1743     1745       +2     
============================================
  Files           315      315              
  Lines          7691     7731      +40     
  Branches        735      738       +3     
============================================
+ Hits           6720     6726       +6     
- Misses          744      778      +34     
  Partials        227      227              
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.13% <0.00%> (-0.43%) 1.00 <0.00> (ø)
...dera/mirror/monitor/publish/PublishProperties.java 78.57% <33.33%> (-4.77%) 4.00 <0.00> (ø)
...or/monitor/expression/ExpressionConverterImpl.java 88.88% <100.00%> (+0.17%) 10.00 <0.00> (ø)
...or/generator/ConfigurableTransactionGenerator.java 100.00% <100.00%> (ø) 13.00 <0.00> (ø)
...a/mirror/monitor/generator/ScenarioProperties.java 95.23% <100.00%> (+0.50%) 14.00 <2.00> (+1.00)
.../hedera/mirror/monitor/publish/PublishRequest.java 90.00% <100.00%> (+1.11%) 9.00 <1.00> (+1.00)
transactions.js 98.11% <0.00%> (ø) 0.00% <0.00%> (ø%)

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 896b905...fa13c35. Read the comment docs.

Signed-off-by: Nana-EC <56320167+Nana-EC@users.noreply.github.com>
@Nana-EC Nana-EC marked this pull request as ready for review April 13, 2021 19:00
@steven-sheehy steven-sheehy deleted the updated-scheduled-tests branch April 14, 2021 03:43
Signed-off-by: Nana-EC <56320167+Nana-EC@users.noreply.github.com>
@steven-sheehy steven-sheehy restored the updated-scheduled-tests branch April 14, 2021 03:48
@steven-sheehy steven-sheehy reopened this Apr 14, 2021
@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2021

@Nana-EC Nana-EC requested a review from xin-hedera April 14, 2021 16:26
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.

Looks good, one small nit.

hedera-mirror-datagenerator/pom.xml Show resolved Hide resolved
@Nana-EC Nana-EC requested a review from ijungmann April 14, 2021 19:57
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

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

LGTM

@Nana-EC Nana-EC merged commit a10baec into master Apr 15, 2021
@Nana-EC Nana-EC deleted the updated-scheduled-tests branch April 15, 2021 02:04
ijungmann pushed a commit that referenced this pull request May 18, 2021
Scheduled transactions were updated in accordance with the [redesign](https://github.com/hashgraph/hedera-services/blob/master/docs/scheduled-transactions/revised-spec.md). This resulted in a new protobuf and a new sdk version

- Pull in sdk version `2.0.5-beta.7` which uses new protobuf into data-generator, monitor and test modules
- Update `ScheduleClient` to no longer sign inner transaction but outer
- Update `ScheduleScenario` to handle verifications, including additional signatures that aren't required
- Update monitor Schedule transaction logic
- Update monitor publish logic to handle transactions with nodes set
- Add HCS message publish in background to reduce likelihood of stale data

Signed-off-by: Nana-EC <56320167+Nana-EC@users.noreply.github.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 P2 process Build, test and deployment-process related tasks test Test infrastructure, automated tests required, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update scheduled transaction acceptance tests Updated scheduled transactions support in monitor
4 participants