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

v2.0: Runtime: Core BPF: Add test for CPI post-migration (backport of #2531) #2665

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 19, 2024

Problem

Our test suite for migrating builtin programs to BPF sends a transaction with an instruction for the newly migrated program, to test that it can be loaded and executed successfully. However, this test suite is missing a test for CPI'ing to this program.

Building on the back of #2483, we should have coverage for this case.

Summary of Changes

Add a mocked-out builtin processor designed to CPI to the provided program to the test suite. Then simply send a transaction to this builtin (like we're already doing with the newly migrated program) directing it to CPI to the newly migrated program.


This is an automatic backport of pull request #2531 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner August 19, 2024 20:19
@buffalojoec buffalojoec merged commit 3b0cdbf into v2.0 Aug 20, 2024
38 checks passed
@buffalojoec buffalojoec deleted the mergify/bp/v2.0/pr-2531 branch August 20, 2024 12:45
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.

3 participants