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

Soroban tests need to work with closeLedger #4451

Closed
dmkozh opened this issue Sep 3, 2024 · 0 comments · Fixed by #4455
Closed

Soroban tests need to work with closeLedger #4451

dmkozh opened this issue Sep 3, 2024 · 0 comments · Fixed by #4455
Assignees
Labels

Comments

@dmkozh
Copy link
Contributor

dmkozh commented Sep 3, 2024

Currently almost all the Soroban tests rely on directly committing LTXs, which will no longer work with BucketListDB. There is currently a 'workaround' that just closes the ledger, but skips the tx result and tx meta and both are necessary for Soroban tests to function properly. Thus before we can disable SQL DB for the Soroban tests, we have to populate all the necessary data and fix all the tests that break due to using closeLedger (some of the tests also rely on the ledger sequence not being bumped between applied transactions).

@dmkozh dmkozh added the bug label Sep 3, 2024
@dmkozh dmkozh self-assigned this Sep 3, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 10, 2024
# Description

Resolves #4451

Switch Soroban tests to always use closeLedger to apply txs.

This is a necessary change for the BucketListDB support as it doesn't
materialize changes on LTX commit. I've also changed a single test
('basic contract invocation') to only use in-memory LTX in order to
cover lower-level logic.

# Checklist
- [ ] Reviewed the
[contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes)
document
- [ ] Rebased on top of master (no merge commits)
- [ ] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio
extension)
- [ ] Compiles
- [ ] Ran all tests
- [ ] If change impacts performance, include supporting evidence per the
[performance
document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant