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

[Merged by Bors] - Updates to make crates publishable #2472

Closed
wants to merge 15 commits into from

Conversation

realbigsean
Copy link
Member

@realbigsean realbigsean commented Jul 21, 2021

Issue Addressed

Related to: #2259

Made an attempt at all the necessary updates here to publish the crates to crates.io. I incremented the minor versions on all the crates that have been previously published. We still might run into some issues as we try to publish because I'm not able to test this out but I think it's a good starting point.

Proposed Changes

  • Add description and license to ssz_types and serde_util
  • rename serde_util to eth2_serde_util
  • increment minor versions
  • remove path dependencies
  • remove patch dependencies

Additional Info

Crates published:

  • tree_hash -- need to publish tree_hash_derive and eth2_hashing first
  • eth2_ssz_types -- need to publish eth2_serde_util first
  • tree_hash_derive
  • eth2_ssz
  • eth2_ssz_derive
  • eth2_serde_util
  • eth2_hashing

- rename `serde_util` to `eth2_serde_util`
- increment minor versions
- remove path dependencies
@realbigsean
Copy link
Member Author

realbigsean commented Jul 21, 2021

I pulled in #2465 to include the release script here in case we want to use it during the manual publishes.

After figuring out this: #2465 (comment)

@realbigsean realbigsean added ready-for-review The code is ready for review and removed do-not-merge labels Jul 29, 2021
@realbigsean realbigsean mentioned this pull request Jul 29, 2021
@realbigsean
Copy link
Member Author

Crate publishing went pretty smoothly!

@realbigsean
Copy link
Member Author

realbigsean commented Jul 29, 2021

Wow, rust 1.54.0 just dropped and requires a change in eth2_ssz_derive for a new lint. Some timing.

Good chance to test out this in CI!

I added the sigp github group for crates.io to the new crates (eth2_serde_util,eth2_ssz_types) by the way.

…ke-crates-publishable

� Conflicts:
�	common/eth2/src/lighthouse_vc/http_client.rs
@realbigsean
Copy link
Member Author

I incremented the versions on these crates because they've all had lint-related updates since I published them:
tree_hash
eth2_ssz_types
tree_hash_derive
eth2_ssz
eth2_ssz_derive

So if we want to merge this to unstable, we can test the auto-publish workflow by pushing these tags:

tree-hash-v0.2.1
eth2-ssz-types-v0.1.1
tree-hash-derive-v0.3.1
eth2-ssz-v0.2.1
eth2-ssz-derive-v0.2.1

…ke-crates-publishable

� Conflicts:
�	common/rest_types/Cargo.toml
…ke-crates-publishable

� Conflicts:
�	Cargo.lock
�	beacon_node/genesis/Cargo.toml
�	consensus/cached_tree_hash/Cargo.toml
�	consensus/merkle_proof/Cargo.toml
�	consensus/swap_or_not_shuffle/Cargo.toml
�	consensus/tree_hash/Cargo.toml
�	consensus/types/Cargo.toml
�	crypto/bls/Cargo.toml
�	lcli/Cargo.toml
�	validator_client/Cargo.toml
�	validator_client/slashing_protection/Cargo.toml
@realbigsean
Copy link
Member Author

realbigsean commented Aug 24, 2021

Since last merging with unstable there have been some breaking changes in newly published dependencies so I've manually published the following versions:

tree_hash -> v0.3.0
eth2_ssz-> v0.3.0
eth2_ssz_types -> v0.2.0

I manually published these as well because there were small changes but there were no breaking changes associated with them:
tree_hash_derive -> v0.3.1
eth2_ssz_derive -> v0.2.1

General question: should these all be 1.x.x? Because lighthouse is now running in production

@michaelsproul michaelsproul added the v2.0.0 Altair on mainnet release (v2.0.0) label Aug 30, 2021
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Awesome, this will be a great contribution to Rust/Eth2 community!

I've added the CARGO_API_TOKEN token to the secrets, hopefully it works 🤞

Only one change requested from me: common/rest_types/Cargo.toml (empty file) has been raised from the dead and should be deleted again 🙏

Happy to merge once that file is deleted!

@paulhauner paulhauner added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Aug 31, 2021
@paulhauner
Copy link
Member

I think this will also resolve #1690, since we're removing the patches!

@realbigsean realbigsean removed the waiting-on-author The reviewer has suggested changes and awaits thier implementation. label Sep 1, 2021
@realbigsean realbigsean added the ready-for-review The code is ready for review label Sep 1, 2021
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Nice one! bors r+

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Sep 2, 2021
@paulhauner
Copy link
Member

Oops, forgot to newline the bors command!

bors r+

bors bot pushed a commit that referenced this pull request Sep 3, 2021
## Issue Addressed

Related to: #2259

Made an attempt at all the necessary updates here to publish the crates to crates.io. I incremented the minor versions on all the crates that have been previously published. We still might run into some issues as we try to publish because I'm not able to test this out but I think it's a good starting point.

## Proposed Changes

- Add description and license to `ssz_types` and `serde_util`
- rename `serde_util` to `eth2_serde_util`
- increment minor versions
- remove path dependencies
- remove patch dependencies 

## Additional Info
Crates published: 

- [x] `tree_hash` -- need to publish `tree_hash_derive` and `eth2_hashing` first
- [x] `eth2_ssz_types` -- need to publish `eth2_serde_util` first
- [x] `tree_hash_derive`
- [x] `eth2_ssz`
- [x] `eth2_ssz_derive`
- [x] `eth2_serde_util`
- [x] `eth2_hashing`


Co-authored-by: realbigsean <[email protected]>
@bors bors bot changed the title Updates to make crates publishable [Merged by Bors] - Updates to make crates publishable Sep 3, 2021
@bors bors bot closed this Sep 3, 2021
@realbigsean realbigsean deleted the make-crates-publishable branch November 21, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. v2.0.0 Altair on mainnet release (v2.0.0)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants