8000 chore[tests]: improve env.meta usage by mvadari · Pull Request #5457 · XRPLF/rippled · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore[tests]: improve env.meta usage #5457

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

Merged
merged 4 commits into from
May 29, 2025
Merged

Conversation

mvadari
Copy link
Collaborator
@mvadari mvadari commented May 28, 2025

High Level Overview of Change

This PR changes the ledger close in env.meta to be conditional on if it hasn't already been closed (i.e. the current ledger doesn't have any transactions in it).

There is no source code change in this PR.

Context of Change

This makes it a bit easier to use, as it will still work if you close the ledger outside of this usage. Previously, if you accidentally closed the ledger outside of the meta function, it would segfault and it was incredibly difficult to debug.

Type of Change

  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)

Copy link
codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.7%. Comparing base (9e1fe9a) to head (adede40).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #5457   +/-   ##
=======================================
  Coverage     78.7%   78.7%           
=======================================
  Files          816     816           
  Lines        70542   70542           
  Branches      8284    8282    -2     
=======================================
+ Hits         55494   55496    +2     
+ Misses       15048   15046    -2     

see 4 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bthomee bthomee requested a review from vvysokikh1 May 28, 2025 19:53
@bthomee bthomee added the Trivial Simple change with minimal effect, or already tested. Only needs one approval. label May 28, 2025
@mvadari mvadari added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label May 29, 2025
@bthomee bthomee enabled auto-merge (squash) May 29, 2025 15:55
@bthomee bthomee merged commit 0510574 into XRPLF:develop May 29, 2025
26 checks passed
This was referenced Jun 12, 2025
@legleux legleux mentioned this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Trivial Simple change with minimal effect, or already tested. Only needs one approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0