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

Fix incorrect signatures in .pyi stubs #131

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

piotr-roslaniec
Copy link

@piotr-roslaniec piotr-roslaniec commented Jun 20, 2023

Type of PR:

  • Bugfix

Required reviews:

  • 1

What this does:

  • Updates the definition of ValidatorMessage in Python bindings
  • Replaces former usage in .pyi file, examples, etc.

Issues fixed/closed:

Why it's needed:

  • To provide correct type hints and concrete types in Python bindings

Notes for reviewers:

@piotr-roslaniec piotr-roslaniec changed the base branch from hide-dkg-public-params to fix-dkg-pk-deser-wasm June 20, 2023 13:20
@piotr-roslaniec piotr-roslaniec marked this pull request as ready for review June 20, 2023 13:21
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2023

Codecov Report

Merging #131 (4aeda15) into fix-dkg-pk-deser-wasm (e516562) will decrease coverage by 0.12%.
The diff coverage is 56.00%.

@@                    Coverage Diff                    @@
##           fix-dkg-pk-deser-wasm     #131      +/-   ##
=========================================================
- Coverage                  78.78%   78.66%   -0.12%     
=========================================================
  Files                         24       24              
  Lines                       4869     4880      +11     
=========================================================
+ Hits                        3836     3839       +3     
- Misses                      1033     1041       +8     
Impacted Files Coverage Δ
ferveo/src/bindings_python.rs 54.28% <56.00%> (-0.49%) ⬇️

@derekpierre
Copy link
Member

If this is will affect nucypher/nucypher-core downstream, we should have a parallel nucypher-core/nucypher open PR before this is merged. Presumably, you can install the updated ferveo module locally for downstream development...?

No use in merging/releasing this code etc. to then catch problems in nucypher-core/nucypher for which a ferveo fix is needed.

@derekpierre
Copy link
Member

derekpierre commented Jun 20, 2023

Although I guess it looks like this goes into a feature branch fix-dkg-pk-deser-wasm before merging into main/development...if that's the case then I stand corrected. Presumably, the downstream changes will be done using this feature branch before the feature branch is merged into main/development.

@piotr-roslaniec
Copy link
Author

@derekpierre My plan was to create a PR from development to main with collective changes and then test that PR against nucypher-core. On nucypher-core I would create a similar PR that will get tested against nucypher. I would keep those PRs open to implement feedback from each downstream dependency and only merge them (in reverse order) when the lowermost dependency (nucypher) gets reviewed positively.

Illustrating the idea:
ferveo: main <= development
nucypher-core: main <= ferveo-dev (contains ferveo:development changes)
nucypher: main <= nucypher-core-dev (contains nucypher-core:ferveo-dev changes)

Order of feedback: nucypher => nucypher-core => ferveo
Order of merging: Same

@derekpierre
Copy link
Member

Perfect 👌 !

Order of feedback: nucypher => nucypher-core => ferveo
Order of merging: Same

Order of merging the PRs once reviewed and working would be:

  1. merge ferveo changes
  2. update ferveo dependency, and merge nucypher-core changes, then release
  3. update nucypher-core release dependency and merge nucypher

Copy link
Member

@KPrasch KPrasch left a comment

Choose a reason for hiding this comment

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

👨🏻‍🚀

Copy link
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

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

🎸

@piotr-roslaniec piotr-roslaniec changed the base branch from fix-dkg-pk-deser-wasm to development June 21, 2023 13:33
@piotr-roslaniec piotr-roslaniec merged commit 0d4e973 into development Jun 21, 2023
9 checks passed
@piotr-roslaniec piotr-roslaniec deleted the fix-validator-msg-stub branch June 21, 2023 13:34
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.

None yet

4 participants