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

Auto manage SpecBuilder prev fork inheritance #3436

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

dapplion
Copy link
Member

Setting PREVIOUS_FORK_OF to FORK_B, but then inheriting from the SpecBuilder of FORK_C downstream issues that are hard to debug except for experienced mantainers.

This PR reduces a potential footgun by computing the inheritance of SpecBuilder objects automatically from the fork relationships specified in PREVIOUS_FORK_OF

return spec
ssz_dep_constants_verification,
]
return "\n\n\n".join([str.strip("\n") for str in spec_strs if str]) + "\n"
Copy link
Member Author

Choose a reason for hiding this comment

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

Because of the automated nature of computing the spec parts, I needed a way to ensure a constant 2 blank lines separation between each section

Copy link
Contributor

Choose a reason for hiding this comment

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

I love this clean up <3

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

@dapplion I like it!
Indeed, maintaining auto-mergeable forks seems more straightforward than managing inheritance spec builders. 👍

return spec
ssz_dep_constants_verification,
]
return "\n\n\n".join([str.strip("\n") for str in spec_strs if str]) + "\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

I love this clean up <3

setup.py Outdated Show resolved Hide resolved
@hwwhww hwwhww merged commit cc021de into ethereum:dev Jun 26, 2023
@dapplion dapplion deleted the auto-spec-builder-dependency branch June 26, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants