Skip to content

feat: allow disabling consensus WAL #1723

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 3 commits into from
Mar 8, 2024

Conversation

deelawn
Copy link
Contributor

@deelawn deelawn commented Mar 2, 2024

This allows for the consensus state's WAL to be disabled. This is desirable for testing against a running node when we don't care about the WAL -- it avoids potential permissions issues by not writing anything to disk. This allows for our integration testing package to be imported and used outside of the gno repository.

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@github-actions github-actions bot added 📦 🌐 tendermint v2 Issues or PRs tm2 related 📦 ⛰️ gno.land Issues or PRs gno.land package related labels Mar 2, 2024
Copy link

codecov bot commented Mar 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.47%. Comparing base (d32b583) to head (20540e7).
Report is 17 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1723   +/-   ##
=======================================
  Coverage   47.47%   47.47%           
=======================================
  Files         385      385           
  Lines       61376    61376           
=======================================
  Hits        29139    29139           
  Misses      29802    29802           
  Partials     2435     2435           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💯

Thank you for enabling this option 🙏

Copy link
Member

@gfanton gfanton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides that, I'm not sure why this file was initialized in GNOROOT by default instead of GNOHOME. Generally speaking, we should avoid initializing anything inside GNOROOT and GNOROOT should be treated as a read-only directory.

@thehowl
Copy link
Member

thehowl commented Mar 4, 2024

@gfanton: Generally speaking, we should avoid initializing anything inside GNOROOT and GNOROOT should be treated as a read-only directory.

Good one! 😆 (jk, I agree)

@thehowl thehowl merged commit 45c8f90 into gnolang:master Mar 8, 2024
albttx pushed a commit to albttx/gno that referenced this pull request Mar 15, 2024
<!-- please provide a detailed description of the changes made in this
pull request. -->
This allows for the consensus state's WAL to be disabled. This is
desirable for testing against a running node when we don't care about
the WAL -- it avoids potential permissions issues by not writing
anything to disk. This allows for our integration testing package to be
imported and used outside of the gno repository.
<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>

---------

Co-authored-by: Morgan <git@howl.moe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related 📦 ⛰️ gno.land Issues or PRs gno.land package related
Projects
Status: Done
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants