Commit 2180bd0
2755 operator vs txn fees (#2781)
* test: added E2E test for preemtive rate limit (#2753)
* test: added E2E test fir preemtive rate limit
Signed-off-by: Logan Nguyen <[email protected]>
* Update hbarLimiter.spec.ts
Signed-off-by: Logan Nguyen <[email protected]>
---------
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* test: expand integration tests for SDK client (#2756)
* test: expand integration tests for SDK client
Signed-off-by: Victor Yanev <[email protected]>
* chore: minor improvements to sdkClient.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: typescript error
Signed-off-by: Victor Yanev <[email protected]>
* fix: simplify test data
Signed-off-by: Victor Yanev <[email protected]>
* chore: formatting
Signed-off-by: Victor Yanev <[email protected]>
* chore: fix typescript errors and warnings
Signed-off-by: Victor Yanev <[email protected]>
* chore: optimize imports
Signed-off-by: Victor Yanev <[email protected]>
* chore: address comments
Signed-off-by: Victor Yanev <[email protected]>
* chore: improve readability of tests
Signed-off-by: Victor Yanev <[email protected]>
* test: fix wrong MIRROR_NODE_LIMIT_PARAM in relay tests
Signed-off-by: Victor Yanev <[email protected]>
* fix: wrong env file loaded
Signed-off-by: Victor Yanev <[email protected]>
* test: remove hardcoded usages of MIRROR_NODE_LIMIT_PARAM in relay tests
Signed-off-by: Victor Yanev <[email protected]>
* test: revert changes to rpc_batch1.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* chore: remove unused import
Signed-off-by: Victor Yanev <[email protected]>
* chore: fix test after merge
Signed-off-by: Victor Yanev <[email protected]>
* chore: fix test after merge
Signed-off-by: Victor Yanev <[email protected]>
* chore: revert changes to usages of MIRROR_NODE_LIMIT_PARAM
Signed-off-by: Victor Yanev <[email protected]>
* chore: revert changes to usages of MIRROR_NODE_LIMIT_PARAM
Signed-off-by: Victor Yanev <[email protected]>
---------
Signed-off-by: Victor Yanev <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* feat: search contract logs only by transaction hash (#2762)
* chore: refactor eth.ts
Signed-off-by: nikolay <[email protected]>
* chore: bump hedera-local version
Signed-off-by: nikolay <[email protected]>
---------
Signed-off-by: nikolay <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* chore: Implement memory leak detection in tests (#2695)
* chore: Implement memory leak detection in tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: Implement memory leak detection in tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: Implement memory leak detection in tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: Implement memory leak detection in tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: Implement memory leak detection in tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: add docs
Signed-off-by: Victor Yanev <[email protected]>
* chore: fix sonar issues
Signed-off-by: Victor Yanev <[email protected]>
* chore: formatting
Signed-off-by: Victor Yanev <[email protected]>
* chore: small fix
Signed-off-by: Victor Yanev <[email protected]>
* chore: trace GC and write snapshot if memory leak > 0.5 MB
Signed-off-by: Victor Yanev <[email protected]>
* chore: revert false changes to eth.ts
Signed-off-by: Victor Yanev <[email protected]>
* chore: optimize code
Signed-off-by: Victor Yanev <[email protected]>
* Merge branch 'main' into 2260-Implement-a-Memory-Leak-detection-Test
Signed-off-by: Victor Yanev <[email protected]>
# Conflicts:
# package-lock.json
# package.json
# packages/server/tsconfig.json
* fix: Do not write heap snapshots for acceptance tests
Signed-off-by: Victor Yanev <[email protected]>
* fix: add TODO for removing --trace_gc flag
Signed-off-by: Victor Yanev <[email protected]>
* test: add github comment in cases a test is having memory leaks
Signed-off-by: Victor Yanev <[email protected]>
* test: add github context env variables
Signed-off-by: Victor Yanev <[email protected]>
* test: extract common logic for github api calls
Signed-off-by: Victor Yanev <[email protected]>
* test: console.debug -> console.log for successful PR comments
Signed-off-by: Victor Yanev <[email protected]>
* test: fix request to github API
Signed-off-by: Victor Yanev <[email protected]>
* Merge branch 'main' into 2260-Implement-a-Memory-Leak-detection-Test
Signed-off-by: Victor Yanev <[email protected]>
# Conflicts:
# packages/server/tests/acceptance/index.spec.ts
* Merge branch 'main' into 2260-Implement-a-Memory-Leak-detection-Test
Signed-off-by: Victor Yanev <[email protected]>
# Conflicts:
# packages/server/tests/acceptance/index.spec.ts
* fix: request to github API
Signed-off-by: Victor Yanev <[email protected]>
* chore: add upload heap snapshots step in github workflow for acceptance and integration tests
Signed-off-by: Victor Yanev <[email protected]>
* fix: add `subject_type: file` to github request for adding comment on PR
Signed-off-by: Victor Yanev <[email protected]>
* fix: fix path in request to github API
Signed-off-by: Victor Yanev <[email protected]>
* chore: extract github request logic in new file - githubClient.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: path of upload-artifact action for uploading heap snapshots
Signed-off-by: Victor Yanev <[email protected]>
* fix: requests in githubClient.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: requests in githubClient.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: format message of github-actions[bot]
Signed-off-by: Victor Yanev <[email protected]>
* fix: format message of github-actions[bot]
Signed-off-by: Victor Yanev <[email protected]>
* chore: remove unused github context env variable
Signed-off-by: Victor Yanev <[email protected]>
* chore: formatting
Signed-off-by: Victor Yanev <[email protected]>
* chore: formatting
Signed-off-by: Victor Yanev <[email protected]>
* chore: formatting
Signed-off-by: Victor Yanev <[email protected]>
* fix: `formatBytes` returns `NaN undefined` when `0` is passed to it
Signed-off-by: Victor Yanev <[email protected]>
* fix: `formatBytes` returns `NaN undefined` when negative number is passed to it
Signed-off-by: Victor Yanev <[email protected]>
* fix: predicate for updating existing comment
Signed-off-by: Victor Yanev <[email protected]>
* fix: remove unused constant + temporary console logs
Signed-off-by: Victor Yanev <[email protected]>
* fix: make memory leak report more descriptive
Signed-off-by: Victor Yanev <[email protected]>
* chore: remove unnecessary console logs
Signed-off-by: Victor Yanev <[email protected]>
* chore: reduce MEMORY_LEAK_SNAPSHOT_THRESHOLD to 500 KB
Signed-off-by: Victor Yanev <[email protected]>
* fix: update logic for detecting memory leak based on heap size threshold
Signed-off-by: Victor Yanev <[email protected]>
* fix: add separate threshold for taking heap snapshots
Signed-off-by: Victor Yanev <[email protected]>
* fix: set `WRITE_SNAPSHOT_ON_MEMORY_LEAK` to be `false` by default
Signed-off-by: Victor Yanev <[email protected]>
* test: add warm-up phase to memory leak detection
Signed-off-by: Victor Yanev <[email protected]>
* chore: revert changes to rpc_batch1.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
---------
Signed-off-by: Victor Yanev <[email protected]>
Signed-off-by: Eric Badiere <[email protected]>
Co-authored-by: Eric Badiere <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* feat: deprecate `ETH_POPULATE_SYNTHETIC_CONTRACT_RESULTS` env (#2768)
* chore: remove env
Signed-off-by: nikolay <[email protected]>
* chore: modify test
Signed-off-by: nikolay <[email protected]>
---------
Signed-off-by: nikolay <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* Bump versions for v0.53.0-rc1
Signed-off-by: Swirlds Automation <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* feat: reused executetransaction for methods in sdkclient and improved… (#2776)
feat: reused executetransaction for methods in sdkclient and improved logging (#2749)
* fix: reused executeTransaction() in deleteFile() method
* fix: reworked executeTransaction() to accept executeAll
* feat: fix: reused executeTransaction() in fileCreate() method
* fix: removed check rate limit in executeGetTransactionRecord
* fix: fixed SDK HBAR limiter tests
* fix: reverted rework executeTransaction()
* fix: reworked formatRequestIdMessage
* feat: added executeAllTransaction() method
* fix: made shouldLimit optional in executeTransaction()
* Update packages/relay/src/lib/clients/sdkClient.ts
* fix: addressed comments
* fix: extracted handleExecuteAllError()
* fix: renamed handleExecuteAllError to getTransactionMetrics and reuse it in executeTransaction
---------
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Co-authored-by: Logan Nguyen <[email protected]>
Co-authored-by: Victor Yanev <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* Bump versions for v0.53.0-rc2
Signed-off-by: Swirlds Automation <[email protected]>
Signed-off-by: ebadiere <[email protected]>
* fix: reduce hbar limit only by operator fees (#2755)
* fix: reduce hbar limit only by operator fees
Signed-off-by: Ivo Yankov <[email protected]>
* chore: update expected values
Signed-off-by: Ivo Yankov <[email protected]>
* chore: fix code smells
Signed-off-by: Ivo Yankov <[email protected]>
* nit: re-trigger ci
Signed-off-by: Ivo Yankov <[email protected]>
* chore: addressing comments
Signed-off-by: Ivo Yankov <[email protected]>
* fix: hbar limit error handle
Signed-off-by: Ivo Yankov <[email protected]>
* fix: reduce test flakiness
Signed-off-by: Ivo Yankov <[email protected]>
* fix: reduce test flakiness
Signed-off-by: Ivo Yankov <[email protected]>
* nit: update comment
Signed-off-by: Ivo Yankov <[email protected]>
* fix: unit test mocks
Signed-off-by: Ivo Yankov <[email protected]>
* fix: update assertions and mocks
Signed-off-by: Ivo Yankov <[email protected]>
---------
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Eric Badiere <[email protected]>
Co-authored-by: Eric Badiere <[email protected]>
Signed-off-by: ebadiere <[email protected]>
---------
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: ebadiere <[email protected]>
Signed-off-by: Victor Yanev <[email protected]>
Signed-off-by: nikolay <[email protected]>
Signed-off-by: Eric Badiere <[email protected]>
Signed-off-by: Swirlds Automation <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Co-authored-by: Logan Nguyen <[email protected]>
Co-authored-by: Victor Yanev <[email protected]>
Co-authored-by: Nikolay Atanasow <[email protected]>
Co-authored-by: Swirlds Automation <[email protected]>
Co-authored-by: Ivo Yankov <[email protected]>1 parent 842fad1 commit 2180bd0
File tree
8 files changed
+235
-18
lines changed- packages
- relay
- src
- lib/clients
- tests
- lib
- eth
- server/tests
- acceptance
- helpers
8 files changed
+235
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
| |||
317 | 327 | | |
318 | 328 | | |
319 | 329 | | |
| 330 | + | |
320 | 331 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
565 | 567 | | |
566 | 568 | | |
567 | 569 | | |
| |||
700 | 702 | | |
701 | 703 | | |
702 | 704 | | |
703 | | - | |
| 705 | + | |
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
438 | | - | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
470 | | - | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
436 | 444 | | |
437 | 445 | | |
438 | 446 | | |
439 | | - | |
| 447 | + | |
440 | 448 | | |
441 | 449 | | |
442 | 450 | | |
| |||
682 | 690 | | |
683 | 691 | | |
684 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
685 | 727 | | |
686 | 728 | | |
687 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
51 | 54 | | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
265 | 276 | | |
266 | 277 | | |
267 | 278 | | |
268 | | - | |
| 279 | + | |
269 | 280 | | |
270 | 281 | | |
271 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
| 2090 | + | |
2090 | 2091 | | |
2091 | 2092 | | |
2092 | 2093 | | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
2093 | 2101 | | |
2094 | 2102 | | |
2095 | 2103 | | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
2096 | 2111 | | |
2097 | 2112 | | |
2098 | 2113 | | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
2099 | 2121 | | |
2100 | 2122 | | |
2101 | 2123 | | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2102 | 2141 | | |
2103 | 2142 | | |
2104 | 2143 | | |
| |||
2107 | 2146 | | |
2108 | 2147 | | |
2109 | 2148 | | |
| 2149 | + | |
2110 | 2150 | | |
2111 | 2151 | | |
2112 | 2152 | | |
| |||
2155 | 2195 | | |
2156 | 2196 | | |
2157 | 2197 | | |
2158 | | - | |
| 2198 | + | |
| 2199 | + | |
2159 | 2200 | | |
2160 | 2201 | | |
2161 | 2202 | | |
| |||
0 commit comments