-
Notifications
You must be signed in to change notification settings - Fork 1.9k
set max gas limit for check/simulate upkeeps #7423
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
Conversation
|
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
infiloop2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also need to add a limit on performData size when we remove simulation gas limits
* add task to calculate string length * add task to calculate less than operation * add max performdata check in pipeline * fixes * small fix * format toml * another attempt at formatting * add integration test for max perform data size * add env var for max perform data size * small rename * fix unit test * add mocks and test data * fix tests * fix tests * generate docs Co-authored-by: FelixFan1992 <[email protected]>
| encode_check_upkeep_tx [type=ethabiencode | ||
| abi="checkUpkeep(uint256 id, address from)" | ||
| data="{\"id\":$(jobSpec.upkeepID),\"from\":$(jobSpec.fromAddress)}"] | ||
| check_upkeep_tx [type=ethcall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. should format this
infiloop2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Will also be good to have a review from core on the new pipeline tasks added
cc @pinebit
| TaskTypeETHABIDecode TaskType = "ethabidecode" | ||
| TaskTypeETHABIDecodeLog TaskType = "ethabidecodelog" | ||
| TaskTypeMerge TaskType = "merge" | ||
| TaskTypeLength TaskType = "length" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must:
- Describe these new tasks in our documentation here https://github.com/smartcontractkit/documentation and provide a link to the PR, so both are reviewed together.
- Mention the new tasks and other changes in CHANGELOG, so QA team knows what changes to test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. documentation PR smartcontractkit/documentation#989
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You added gasUnlimited param to eth_call task, that also need to be reflected in the doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed an update to the PR. There were some other parameters missing, i've also added documentation for them, could you verify that once
Add two new pipeline tasks: length and less than. Docs here add docs for length and less than task documentation#989
use unlimited gas in check/perform simulation. Add step in pipeline to limit perform data size