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

backport(v0.80.x): app: create event for when app parameters change #5108

Open
wants to merge 2 commits into
base: release/v0.80.x
Choose a base branch
from

Conversation

cronokirby
Copy link
Contributor

Describe your changes

Adds an event which fires whenever the app parameters change, to easily allow indexing components to track the current parameters as needed.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Adds a new event.

@conorsch
Copy link
Contributor

conorsch commented Mar 3, 2025

CI is failing here, due to very old CI trying to install unpinned deps. I'll work on a minimal change to add here so we can get CI green again. As for substantive review of the backport, first I need to handle penumbra-zone/reindexer#32, which will unblock functional testing of the new indexing logic.

It's unfortunate that we can't put this somewhere else to avoid including
cnidarium, and thus rocksdb, when you just want to read the event.
A refactoring of the app crate to allow consuming it "as a component"
can be added later.
@conorsch conorsch force-pushed the event-param-change-v0.80.x branch from 95c5c60 to 1dfbda9 Compare March 6, 2025 03:09
@conorsch conorsch changed the title app: create event for when app parameters change backport(v0.80.x): app: create event for when app parameters change Mar 6, 2025
cherry picked from commit 5717176,
then bumped 1.80 -> 1.83. Also includes a `nix flake update` so that
rust 1.83 is available. Doing this on a backport branch, so that CI
passes against the `v0.80.x` code. This is necessary because the
docs-lint dependencies aren't pinned, but should be.

A few other fix-it commits were squashed into this one:

lint: allow dead code in test modules

lint: cargo fmt

chore: bump proptest derive

Required for getting `cargo check` to pass, errors were

error: non-local `impl` definition, `impl` blocks should be written at the same level as their item
  --> crates/crypto/tct/src/epoch.rs:79:53
   |
79 | #[cfg_attr(any(test, feature = "arbitrary"), derive(proptest_derive::Arbitrary))]
   |                                                     ^-------------------------
   |                                                     |
   |                                                     `Arbitrary` is not local
   |                                                     move the `impl` block outside of this constant `_IMPL_ARBITRARY_FOR_Root`
80 | pub struct Root(pub Hash);
   |            ---- `Root` is not local
@conorsch conorsch force-pushed the event-param-change-v0.80.x branch from 2eb9a24 to 4f81e91 Compare March 6, 2025 21:33
conorsch added a commit to penumbra-zone/reindexer that referenced this pull request Mar 6, 2025
Updating the pinned commits for the git deps, based on recent changes to
the CI in the corresponding protocol repo PRs [0, 1]. No functional
changes to the logic.

[0] penumbra-zone/penumbra#5109
[1] penumbra-zone/penumbra#5108
conorsch added a commit to penumbra-zone/reindexer that referenced this pull request Mar 6, 2025
Updating the pinned commits for the git deps, based on recent changes to
the CI in the corresponding protocol repo PRs [0, 1]. No functional
changes to the logic.

[0] penumbra-zone/penumbra#5109
[1] penumbra-zone/penumbra#5108
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