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

Snapshot all auths during a test not just last invokes #1168

Merged
merged 8 commits into from
Nov 18, 2023
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 18, 2023

What

Snapshot all auths during a test not just last invokes.

Why

The test snapshot logic is using the authorization manager of the host to get auths that have occurred. However, the authorization manager only has the auths from the last invoke. To get all auths for the Envs lifetime the contract invocation hook needs to be used to tell us when each call to the host finishes so that the auths can be collected as the test executes.

Close #1164

Merging

Intended for merging to main after:

@leighmcculloch leighmcculloch changed the base branch from main to upd November 18, 2023 01:26
soroban-sdk/src/env.rs Show resolved Hide resolved
@leighmcculloch leighmcculloch marked this pull request as ready for review November 18, 2023 01:58
@leighmcculloch leighmcculloch marked this pull request as draft November 18, 2023 01:59
Base automatically changed from upd to main November 18, 2023 02:14
@leighmcculloch leighmcculloch marked this pull request as ready for review November 18, 2023 02:21
@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 18, 2023
Merged via the queue into main with commit 0a58abc Nov 18, 2023
@leighmcculloch leighmcculloch deleted the authall branch November 18, 2023 05:43
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.

Integrate top-level call enter/exit hooks into generation of test snapshots
2 participants