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

Add a contract that allows materializing arbitrarily large values. #1210

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Nov 14, 2023

What

Add a contract that allows materializing arbitrarily large values.

This is for end-to-end testing from Core (stellar/stellar-core#4004). We could also cover the same cases in the host tests, but Core tests are higher priority as they potentially exercise additional logic (e2e invoke, Rust bridge).

Also did a bit of diagnostics cleanup based on findings from running the core tests.

Why

Enhancing test coverage.

Known limitations

N/A

This is for end-to-end testing from Core. We could also cover the same cases in host tests, but Core tests are higher priority as they potentially exercise additional logic (e2e invoke, Rust bridge).
- Don't try to attach non-serializable value to the error in `from_host_val`. This led to infinite recursion in diagnostics mode (that still worked ok-ish thanks to shadow budget though)
- Output the number of elided events
@dmkozh dmkozh requested review from graydon, sisuresh and a team as code owners November 14, 2023 23:11
@dmkozh dmkozh added this pull request to the merge queue Nov 15, 2023
Merged via the queue into stellar:main with commit 2c49d79 Nov 15, 2023
10 checks passed
@dmkozh dmkozh deleted the large_val branch November 15, 2023 22:28
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.

2 participants