-
Notifications
You must be signed in to change notification settings - Fork 380
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
Add SBPFv1 tests to the CI pipeline #5126
base: master
Are you sure you want to change the base?
Conversation
74c6878
to
dd3fbc8
Compare
for i in 10..MAX_CALL_DEPTH { | ||
let stack = &mut stack[i * STACK_FRAME_SIZE..][..STACK_FRAME_SIZE]; | ||
assert!(stack == &ZEROS[..STACK_FRAME_SIZE], "stack not zeroed"); | ||
stack.fill(42); | ||
} | ||
|
||
#[cfg(feature = "dynamic-frames")] |
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.
Numbers here should not be hard coded but calculated from the constants (MAX_CALL_DEPTH * STACK_FRAME_SIZE
).
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.
I can make a guesstimate of (MAX_CALL_DEPTH - 2) * STACK_FRAM_SIZE
for here, but the truth is that estimating the number of zeroed bytes with STACK_FRAME_SIZE = 4096
is more intricate now, since stack frames have no predefined size.
Problem
There are three new SBPF versions already released in the platform tools that are compatible with the current validator configuration, but we do not test them actively in the CI.
Summary of Changes
programs/sbf
folder Makefile.