Skip to content

apollo_propeller: add tree generation error type#11050

Merged
sirandreww-starkware merged 1 commit intomain-v0.14.1-committerfrom
12-23-apollo_propeller_add_tree_generation_error_type
Jan 15, 2026
Merged

apollo_propeller: add tree generation error type#11050
sirandreww-starkware merged 1 commit intomain-v0.14.1-committerfrom
12-23-apollo_propeller_add_tree_generation_error_type

Conversation

@sirandreww-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

sirandreww-starkware commented Dec 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

This was referenced Dec 24, 2025
Copy link
Contributor

@guy-starkware guy-starkware left a comment

Choose a reason for hiding this comment

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

@guy-starkware reviewed 1 file.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noamsp-starkware, @ShahakShama, and @sirandreww-starkware).

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed all commit messages and made 2 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @noamsp-starkware and @sirandreww-starkware).


a discussion (no related file):
It's hard for me to review these errors without seeing them used. I think that you should start with no variants and add each variant in the PR where you use it for the first time


crates/apollo_propeller/src/types.rs line 74 at r1 (raw file):

impl std::error::Error for ShardSignatureVerificationError {}

// ****************************************************************************

remove this

@sirandreww-starkware sirandreww-starkware changed the base branch from 12-23-apollo_propeller_add_shardsignatureverificationerror to graphite-base/11050 January 4, 2026 17:07
Copy link
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

@sirandreww-starkware made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @ShahakShama).


a discussion (no related file):

Previously, ShahakShama wrote…

It's hard for me to review these errors without seeing them used. I think that you should start with no variants and add each variant in the PR where you use it for the first time

Please see previous PR


crates/apollo_propeller/src/types.rs line 74 at r1 (raw file):

Previously, ShahakShama wrote…

remove this

see previous PR


crates/apollo_propeller/src/types.rs line 106 at r1 (raw file):

Previously, guy-starkware wrote…

same comment as previous PR

see previous PR

@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from 30c3c0a to 60f511a Compare January 4, 2026 17:13
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/11050 to 12-23-apollo_propeller_add_shardsignatureverificationerror January 4, 2026 17:13
Copy link
Contributor

@guy-starkware guy-starkware left a comment

Choose a reason for hiding this comment

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

@guy-starkware reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @noamsp-starkware and @ShahakShama).

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed all commit messages, made 6 comments, and resolved 1 discussion.
Reviewable status: all files reviewed, 7 unresolved discussions (waiting on @noamsp-starkware and @sirandreww-starkware).


crates/apollo_propeller/src/types.rs line 79 at r2 (raw file):

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum TreeGenerationError {

When is this error used? Where do you generate trees in propeller? Maybe we can find a better name than TreeGeneration


crates/apollo_propeller/src/types.rs line 80 at r2 (raw file):

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum TreeGenerationError {
    PublisherNotFound {

Rename to PublisherNotInChannel


crates/apollo_propeller/src/types.rs line 84 at r2 (raw file):

        publisher: PeerId,
    },
    LocalPeerNotInPeerWeights,

Same here. LocalPeerNotInChannel


crates/apollo_propeller/src/types.rs line 84 at r2 (raw file):

        publisher: PeerId,
    },
    LocalPeerNotInPeerWeights,

It's not clear what local peer means


crates/apollo_propeller/src/types.rs line 91 at r2 (raw file):

}

impl std::fmt::Display for TreeGenerationError {

Remove this and use thiserror instead. You can just have a TODO for now


crates/apollo_propeller/src/types.rs line 110 at r2 (raw file):

}

impl std::error::Error for TreeGenerationError {}

Same here

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama resolved 1 discussion.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @noamsp-starkware and @sirandreww-starkware).

@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_shardsignatureverificationerror branch from f8c70d8 to 78e61e7 Compare January 12, 2026 14:23
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from 60f511a to 1f407b8 Compare January 12, 2026 14:23
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_shardsignatureverificationerror branch from 78e61e7 to 6a3e6f6 Compare January 13, 2026 10:54
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from 1f407b8 to 73b7be3 Compare January 13, 2026 10:54
Copy link
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

@sirandreww-starkware made 6 comments.
Reviewable status: 0 of 1 files reviewed, 6 unresolved discussions (waiting on @guy-starkware, @noamsp-starkware, and @ShahakShama).


crates/apollo_propeller/src/types.rs line 79 at r2 (raw file):

Previously, ShahakShama wrote…

When is this error used? Where do you generate trees in propeller? Maybe we can find a better name than TreeGeneration

so, TreeGenerationError is the error you get when trying to gauge the topology of the channel. Actions that may return this error are:

  1. you receive shard x and you want to know who is the peer that should send you this shard
  2. you want to see what shard you are responsible for

crates/apollo_propeller/src/types.rs line 80 at r2 (raw file):

Previously, ShahakShama wrote…

Rename to PublisherNotInChannel

Done.


crates/apollo_propeller/src/types.rs line 84 at r2 (raw file):

Previously, ShahakShama wrote…

It's not clear what local peer means

What would be a better name for "me"?


crates/apollo_propeller/src/types.rs line 84 at r2 (raw file):

Previously, ShahakShama wrote…

Same here. LocalPeerNotInChannel

Done.


crates/apollo_propeller/src/types.rs line 91 at r2 (raw file):

Previously, ShahakShama wrote…

Remove this and use thiserror instead. You can just have a TODO for now

not sure what this is referring to or if it is outdated. Please resolve if it is outdated.


crates/apollo_propeller/src/types.rs line 110 at r2 (raw file):

Previously, ShahakShama wrote…

Same here

not sure what this is referring to or if it is outdated. Please resolve if it is outdated.

Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed 1 file and all commit messages, and resolved 6 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).

@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from 73b7be3 to d18e3df Compare January 13, 2026 11:14
Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

@ShahakShama reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).

@graphite-app graphite-app bot changed the base branch from 12-23-apollo_propeller_add_shardsignatureverificationerror to graphite-base/11050 January 14, 2026 08:05
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from d18e3df to 0dc41cb Compare January 14, 2026 09:16
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/11050 to 12-23-apollo_propeller_add_shardsignatureverificationerror January 14, 2026 09:16
@sirandreww-starkware sirandreww-starkware changed the base branch from 12-23-apollo_propeller_add_shardsignatureverificationerror to main-v0.14.1-committer January 15, 2026 08:35
@sirandreww-starkware sirandreww-starkware force-pushed the 12-23-apollo_propeller_add_tree_generation_error_type branch from 0dc41cb to a1be91d Compare January 15, 2026 08:36
@graphite-app
Copy link

graphite-app bot commented Jan 15, 2026

Merge activity

  • Jan 15, 8:36 AM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@sirandreww-starkware sirandreww-starkware added this pull request to the merge queue Jan 15, 2026
Merged via the queue into main-v0.14.1-committer with commit 80633e3 Jan 15, 2026
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments