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

Improve CI TPS metering input #5548

Merged
merged 12 commits into from
Apr 12, 2024
Merged

Conversation

janezpodhostnik
Copy link
Contributor

@janezpodhostnik janezpodhostnik commented Mar 15, 2024

closes: #5490

CI TPS metering can now optionally take load parameters from a yaml file.

This PR also contains a small cleanup of unused TPS monitor features.

@janezpodhostnik janezpodhostnik self-assigned this Mar 15, 2024
@janezpodhostnik janezpodhostnik requested a review from a team March 15, 2024 10:33
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.70%. Comparing base (5429925) to head (99362c4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5548      +/-   ##
==========================================
+ Coverage   55.65%   55.70%   +0.05%     
==========================================
  Files        1041     1033       -8     
  Lines      101935   101503     -432     
==========================================
- Hits        56729    56544     -185     
+ Misses      40846    40609     -237     
+ Partials     4360     4350      -10     
Flag Coverage Δ
unittests 55.70% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

initialTPSFlag := flag.Int("tps-initial", 10, "starting transactions per second")
maxTPSFlag := flag.Int("tps-max", *initialTPSFlag, "maximum transactions per second allowed")
minTPSFlag := flag.Int("tps-min", *initialTPSFlag, "minimum transactions per second allowed")
loadTypeFlag := flag.String("load-type", string(defaultLoadType), "load type (token-transfer / const-exec / evm from the load config file)")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
loadTypeFlag := flag.String("load-type", string(defaultLoadType), "load type (token-transfer / const-exec / evm from the load config file)")
loadTypeFlag := flag.String("load-type", string(defaultLoadType), "load type (token-transfer / const-exec / evm) from the load config file")

@janezpodhostnik janezpodhostnik requested review from a team and sideninja April 12, 2024 11:29
@@ -21,7 +21,8 @@ commits_file="/opt/commits.recent"
load_types=("token-transfer" "create-account" "ledger-heavy" "evm-transfer")

# get the merge commits from the last week from master ordered by author date
for commit in $(git log --merges --first-parent --format="%S:%H" origin/master --since '1 week' --author-date-order )
# TEMPORARY: DO NOT MERGE!!
Copy link
Contributor

Choose a reason for hiding this comment

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

ok to merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah thanks for that :) , I forgot about it!

I wish we had CI for this. Something like this https://github.com/JJ/github-pr-contains-action but listening to "DO NOT MERGE".

@janezpodhostnik janezpodhostnik added this pull request to the merge queue Apr 12, 2024
Merged via the queue into master with commit 2b7a321 Apr 12, 2024
55 checks passed
@janezpodhostnik janezpodhostnik deleted the janez/improve-tps-metering branch April 12, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TPS loader] Make TPS loader input more flexible
4 participants