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

Conversation

@coriolinus
Copy link
Contributor

@coriolinus coriolinus commented Aug 24, 2020

Makes progress towards #1620. Does not close that issue.

Integrates #1697.

Note: because this work involves replacing the old service with service-new, this needs some burn-in to ensure that we can still follow the existing chains and author blocks.

Note: initially, the goal was to do all the work necessary for #1620 in this PR, hence the branch name. However, recently I've been spending a lot of time just keeping up with changes to master which update service but not service-new, and that gets old fast. There are therefore a couple of changes in here not related to the service update, which would probably be more effort than they're worth to extract.

[edit] Burnin running on kusama-sentry-ue1-0 / kusama-validator-ue1-0

@coriolinus coriolinus self-assigned this Aug 24, 2020
@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Aug 24, 2020
coriolinus and others added 9 commits September 10, 2020 12:47
This is necessary because one of the current errors when building
the test service boils down to:

the trait bound `polkadot_test_runtime::RuntimeApiImpl<...>`:
  `polkadot_primitives::v1::ParachainHost<...>` is not satisfied

This is WIP because it appears to be causing some std leakage into
the wasm environment, or something; the compiler is currently
complaining about duplicate definitions of `panic_handler` and `oom`.
Presumably I have to identify all std types (Vec etc) and replace
them with sp_std equivalents.
it wasn't std leakage, after all
Andronik Ordian and others added 4 commits September 16, 2020 15:06
* master:
  Bump Nominator Reward Limits (#1668)
Note: something changed in the `sc_cli::init_logger` call relatively
recently; I had to update it slightly for things to work.
Copy link

@ordian ordian left a comment

Choose a reason for hiding this comment

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

LGTM

@coriolinus coriolinus merged commit af14ea5 into master Sep 18, 2020
@coriolinus coriolinus deleted the prgn-run-rococo branch September 18, 2020 08:27
@bkchr
Copy link
Member

bkchr commented Sep 18, 2020

Was this also tested on Polkadot nodes?

We can not merge a pr that touches such a sensible part of the code base without testing it on Polkadot.

coriolinus added a commit that referenced this pull request Sep 18, 2020
@coriolinus coriolinus restored the prgn-run-rococo branch September 18, 2020 09:00
@tomaka
Copy link
Contributor

tomaka commented Sep 18, 2020

Nothing problematic, but on the burnin I see that we're running 15 tasks/node named DummySubsystem, is that normal?

@coriolinus
Copy link
Contributor Author

Yes, for now. Replacing those with real subsystems is next up.

@bkchr bkchr deleted the prgn-run-rococo branch September 18, 2020 09:05
@bkchr
Copy link
Member

bkchr commented Sep 18, 2020

Nothing problematic, but on the burnin I see that we're running 15 tasks/node named DummySubsystem, is that normal?

We still need to test it at least once on Polkadot.

coriolinus added a commit that referenced this pull request Sep 18, 2020
coriolinus added a commit that referenced this pull request Sep 18, 2020
i.e.
Revert "Revert "Remove service, migrate all to service-new (#1630)" (#1731)"

This reverts commit c68aee3.

This allows us to get the changeset from #1630 into a new branch
which can be merged sometime in the future after appropriate burnin
tests have completed.
client.info().best_number,
10,
);
assert_eq!(client.info().best_number, 10,);
Copy link
Member

Choose a reason for hiding this comment

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

was this done intentionally or is an automatic formatter being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case rustfmt generated the change.

&get_header(10),
&get_header(10),
),
voting_rule.restrict_vote(&*client, &get_header(0), &get_header(10), &get_header(10),),
Copy link
Member

Choose a reason for hiding this comment

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

with the exception of 1-item tuples, ,) is an invalid string in our codebase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK: 372f4f6.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though I suspect that it is also valid when used appropriately in macros, i.e.

( $( $hash:expr ),* $(,)? ) => [

= service::new_full_nongeneric(
config, None, authority_discovery_enabled, grandpa_pause, false,
= service::build_full(
config, None, authority_discovery_enabled, grandpa_pause,
Copy link
Member

Choose a reason for hiding this comment

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

invalid formatting (though this PR makes it no worse).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK: 944b745.

target_header = backend.header(BlockId::Hash(target_hash)).ok()?
.expect("Header known to exist due to the existence of one of its descendents; qed");
target_header = backend.header(BlockId::Hash(target_hash)).ok()?.expect(
"Header known to exist due to the existence of one of its descendents; qed",
Copy link
Member

Choose a reason for hiding this comment

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

previous formatting was better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK: b7b45b3.

ordian pushed a commit that referenced this pull request Sep 22, 2020
* master:
  Revert "Remove service, migrate all to service-new (#1630)" (#1731)
  Remove service, migrate all to service-new (#1630)
  Updating tracing dependency (#1722)
ghost pushed a commit that referenced this pull request Sep 28, 2020
* Restore "Remove service, migrate all to service-new (#1630)"

i.e.
Revert "Revert "Remove service, migrate all to service-new (#1630)" (#1731)"

This reverts commit c68aee3.

This allows us to get the changeset from #1630 into a new branch
which can be merged sometime in the future after appropriate burnin
tests have completed.

* remove ',)' from codebase outside of macros

* restore bdfl-preferred formatting

* attempt to improve destructuring formatting

* rename polkadot-service-new -> polkadot-service

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <[email protected]>

* remove unused import

* Update runtime/rococo-v1/README.md

Co-authored-by: Bastian Köcher <[email protected]>

Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
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. 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.

9 participants