Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

prepare orchestra crate publishing #5579

Merged
merged 2 commits into from
May 24, 2022
Merged

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented May 21, 2022

Prepare it to be published as an independent crate (all crates are reserved to avoid the squatting pitfal).

Note publishing with unleash is currently borked due to paritytech/cargo-unleash#77 , so the following should work but currently does not. One has to publish them one by one

cargo unleash version set 0.0.1 -p orchestra -p orchestra-proc-macro
cargo unleash em-dragons --dry-run -p orchestra -p orchestra-proc-macro -p prioritized-metered-channel

@drahnr drahnr changed the title prepare orchestra publish prepare orchestra crate publishing May 21, 2022
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label May 21, 2022
@drahnr drahnr force-pushed the bernhard-orchestra-prep-publish branch from 97e0a53 to a360fca Compare May 21, 2022 14:08
@drahnr drahnr requested review from sandreim and vstakhov May 21, 2022 14:08
@drahnr drahnr added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels May 21, 2022
Copy link
Contributor

@sandreim sandreim left a comment

Choose a reason for hiding this comment

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

Just one nit, otherwise LGTM!

Is this one flaky test or something really broke ?
thread 'tests::import_approval_bad' panicked at 'msg send timeout', node/network/approval-distribution/src/tests.rs:86:10

node/metered-channel/Cargo.toml Outdated Show resolved Hide resolved
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
@drahnr
Copy link
Contributor Author

drahnr commented May 22, 2022

Just one nit, otherwise LGTM!

Is this one flaky test or something really broke ? thread 'tests::import_approval_bad' panicked at 'msg send timeout', node/network/approval-distribution/src/tests.rs:86:10

Flaky test timeouts I assume, since no functionality was changed

@bkchr
Copy link
Member

bkchr commented May 22, 2022

Why should they be published? What is the reasoning behind this?

@drahnr
Copy link
Contributor Author

drahnr commented May 23, 2022

Why should they be published? What is the reasoning behind this?

It's been a long sought milestone, to give the "pattern" a clear interface boundary and not interleave polkadot specifics with the guts of the generated orchestra-code. In the past, things bled into one another, i.e. this whole Event and NetworkBridge message stuff was pulled into the Overseer where there was no need to do so, besides a minor dispatch benefit.

We don't want to repeat past mistakes, publishing is stage one, there should be a discussion to separate it into it's own repo eventually - but that's out of scope for this PR.

@bkchr
Copy link
Member

bkchr commented May 23, 2022

I'm not sure how publishing will help with this. How often will this be updated on crates.io? How will take care to update it? What is the benefit of having it on crates.io? I mean if you want to separate it, fine, but crates.io doesn't solve this magically. Or is the expected working style then to first publish and integrate the changes in a new pr?

@drahnr
Copy link
Contributor Author

drahnr commented May 23, 2022

I'm not sure how publishing will help with this. How often will this be updated on crates.io? How will take care to update it? What is the benefit of having it on crates.io? I mean if you want to separate it, fine, but crates.io doesn't solve this magically. Or is the expected working style then to first publish and integrate the changes in a new pr?

Publishing was a long standing nice-to-have goal ( CC @rphmeier ) since the it's actually completely independent of any polkadot specifics. @vstakhov will be taking care of the maintenance, and I'll be available for code review on for the foreseeable future.

Or is the expected working style then to first publish and integrate the changes in a new pr?

This has yet to be discussed, but in my books, that would be desirable mid-term.

@rphmeier
Copy link
Contributor

Orchestra is a pretty stable component at this point, and as Bernhard says it deliberately avoids Polkadot specifics. This is code which doesn't need to change very often, although there will be a few changes over the next months as we work on optimizations in subsystem communication.

IMO we will really want this to be a library for the community to build parachains whose nodes also do custom DB and networking logic. I don't think publishing it on crates.io will cause any major issues, so we might as well.

@drahnr drahnr merged commit 8bf83b6 into master May 24, 2022
@drahnr drahnr deleted the bernhard-orchestra-prep-publish branch May 24, 2022 09:06
@drahnr drahnr self-assigned this May 24, 2022
al3mart pushed a commit that referenced this pull request Jul 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants