Juan Girini
a310df263d
Move developer-hub to polkadot-sdk-docs ( #2598 )
...
This PR is a continuation of
https://github.com/paritytech/polkadot-sdk/pull/2102 and part of an
initiative started here https://hackmd.io/@romanp/rJ318ZCEp
What has been done:
- The content under `docs/*` (with the exception of `docs/mermaid`) has
been moved to `docs/contributor/`
- Developer Hub has been renamed to Polkadot SDK Docs, and the crate has
been renamed from `developer-hub` to `polkadot-sdk-docs`
- The content under `developer-hub/*` has been moved to `docs/sdk`
---
Original PR https://github.com/paritytech/polkadot-sdk/pull/2565 , it has
been close due to too many rebase conflicts
---------
Co-authored-by: Serban Iorga <serban@parity.io >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Egor_P <egor@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-12-05 10:23:24 +01:00
Kian Paimani
eaf1bc5633
Introduce Polkadot-Sdk developer_hub ( #2102 )
...
This PR introduces the new crate `developer_hub` into the polkadot-sdk
repo. The vision for the developer-hub crate is detailed in [this
document](https://docs.google.com/document/d/1XLLkFNE8v8HLvZpI2rzsa8N2IN1FcKntc8q-Sc4xBAk/edit?usp=sharing ).
<img width="1128" alt="Screenshot 2023-11-02 at 10 45 48"
src="https://github.com/paritytech/polkadot-sdk/assets/5588131/1e12b60f-fef5-42c4-8503-a3ba234077c3 ">
Other than adding the new crate, it also does the following:
* Remove the `substrate` crate, as there is now a unique umbrella crate
for multiple things in `developer_hub::polkadot_sdk`.
* (backport candidate) A minor change to `frame-support` macros that
allows `T::RuntimeOrigin` to also be acceptable as the origin type.
* (backport candidate) A minor change to `frame-system` that allows us
to deposit events at genesis because now the real genesis config is
generated via wasm, and we can safely assume `cfg!(feature = "std")`
means only testing. related to #62 .
* (backport candidate) Introduces a small `read_events_for_pallet` to
`frame_system` for easier event reading in tests.
* From https://github.com/paritytech/polkadot-sdk-docs/issues/31 , it
takes action on improving the `pallet::call` docs.
* From https://github.com/paritytech/polkadot-sdk-docs/issues/31 , it
takes action on improving the `UncheckedExtrinsic` docs.
## Way Forward
First, a version of this is deployed temporarily
[here](https://blog.kianenigma.nl/polkadot-sdk/developer_hub/index.html ).
I will keep it up to date on a daily basis.
### This Pull Request
I see two ways forward:
1. We acknowledge that everything in `developer-hub` is going to be WIP,
and merge this asap. We should not yet use links to this crate anywhere.
2. We make this be the feature branch, make PRs against this, and either
gradually backport it, or only merge to master once it is done.
I am personally in favor of option 1. If we stick to option 2, we need a
better way to deploy a staging version of this to gh-pages.
### Issue Tracking
The main issues related to the future of `developer_hub` are:
- https://github.com/paritytech/polkadot-sdk-docs/issues/31
- https://github.com/paritytech/polkadot-sdk-docs/issues/4
- https://github.com/paritytech/polkadot-sdk-docs/issues/26
- https://github.com/paritytech/polkadot-sdk-docs/issues/32
- https://github.com/paritytech/polkadot-sdk-docs/issues/36
### After This Pull Request
- [ ] create a redirect for
https://paritytech.github.io/polkadot-sdk/master/substrate/
- [x] analytics
- [ ] link checker
- [ ] the matter of publishing, and how all of these relative links for
when we do, that is still an open question. There is section on this in
the landing page.
- [ ] updated https://paritytech.github.io/
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: Juan Girini <juangirini@gmail.com >
Co-authored-by: bader y <ibnbassem@gmail.com >
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
2023-11-30 12:15:46 +01:00
Lulu
495d24d730
Add ci check for parity-publish and fix current check issues ( #1887 )
...
Co-authored-by: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-10-31 18:04:31 +00:00
Mira Ressel
447e753323
ci: bump ci image to rust 1.73.0 ( #1830 )
...
Co-authored-by: command-bot <>
2023-10-11 19:49:59 +02:00
Michal Kucharczyk
50242a61d7
rococo-runtime: RococoGenesisExt removed ( #1490 )
...
[`RococoGenesisExt`](https://github.com/paritytech/polkadot-sdk/blob/a414ea7515c9cdc81f1d12410e646afc148250e8/polkadot/node/service/src/chain_spec.rs#L152-L171 )
is removed. It was the hack to allow overwriting
`EpochDurationInBlocks`. Removal of `RococGenesisExt` prevents from
manipulating the state to change the runtime constants.
Changes:
- Environment variable which controls the `time::EpochDurationInBlocks`
value was added: `ROCOCO_EPOCH_DURATION` (epoch duration will be set to
the value of env),
- `10,100,600` versions of rococo-runtime are built in CI and put into `polkadot-debug` docker image.
`rococo-runtime` building examples:
- to build runtime for `versi_staging_testnet` which had
EpochDurationInBlocks set to 100:
```
ROCOCO_EPOCH_DURATION=100 cargo build --features=fast-runtime -p
rococo-runtime
```
- to build runtime for `wococo_development`
```
ROCOCO_EPOCH_DURATION=10 cargo build --features=fast-runtime -p
rococo-runtime
```
- to build `versi-staging` chain spec:
```
ROCOCO_EPOCH_DURATION=100 cargo run -p polkadot --features=fast-runtime
-- build-spec --chain versi-staging --raw
```
- to build `wococo-dev` chain spec:
```
ROCOCO_EPOCH_DURATION=10 cargo run -p polkadot --features=fast-runtime
-- build-spec --chain wococo-dev --raw
```
It is also possible to change the epoch duration by replacing the `code` field in the chain spec with the hex dump of pre-built runtime wasm blob (because the epoch duration is hard-coded into wasm blob).
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-09-28 18:29:12 +02:00
Alexander Samusev
e6f5e23b0f
[ci] Publish implementers guide ( #1615 )
...
PR adds a job that publishes implementers guide
cc https://github.com/paritytech/polkadot-sdk/issues/1614
cc https://github.com/paritytech/ci_cd/issues/879
2023-09-18 16:35:40 +02:00
Oliver Tale-Yazdi
fea7bcd625
[CI] Disable runtime logging for benchmarks ( #1463 )
...
Changes:
- Disable runtime logging in benchmarks by building with a specific
profile
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-09-12 14:07:09 +02:00
Liam Aharon
77c867baff
fix simple analytics injection script ( #1501 )
...
When `process_file` is run by `xargs`, it is executed inside a new shell
without access to variables defined outside of its scope.
This resulted in `script_content` being an empty string.
By exporting `script_content` prior to running `xargs` it is available
inside the new shells.
2023-09-12 08:13:27 +02:00
Oliver Tale-Yazdi
4b8bd9060e
Delete staking miner ( #1480 )
...
* Delete staking miner
New repo should be used instead https://github.com/paritytech/staking-miner-v2
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove staking-miner CI jobs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-09-11 17:54:27 +02:00
s0me0ne-unkn0wn
9bfb6529d1
Introduce default-members to the workspace root ( #1420 )
2023-09-09 11:35:26 +02:00
Alexander Samusev
09503b1d2d
[ci] Return publish-rustdoc ( #1402 )
...
* [WIP][ci] Return publish-rustdoc
* rm files
* fix ref
* add build doc
* add comment
* move test-deterministic-wasm to test stage
* rm test-deterministic-wasm from root
* test publish
* enable pipeline
* add test_deterministic_wasm.sh for resolving conflicts
* rm unused bash script
2023-09-07 13:39:53 +03:00
Egor_P
eeb368ed9c
GHW for building and publishing docker images ( #1391 )
...
* add ghw and scripts for docker image deployment
* debug
* add permissions for content
* fix path to the bin folder
* add tags
* rename env
* fix path to docker file
* make polkadot-parachain executable
* fix typo
* fix more typos
* test
* revert back use of working directory
* mke bin executable in the artifacts folder
* use cd instead of working directory
* change path to cash
* fix path to cash
* change cache key
* delete old flows
* addressed PR comments
* fix path
* reorg docker files
2023-09-06 17:11:10 +03:00
Liam Aharon
7217a5da65
rust docs: add simple analytics ( #1377 )
...
* inject simple analytics
* comments
* fix chown
* comments
* doc features
2023-09-05 12:31:57 +10:00
Branislav Kontur
15cb0af58c
Added short-benchmarks for cumulus ( #1183 )
...
* Added short-benchmarks for cumulus
* Added `--bin` flag for short-benchmarks
* fix dependency for short-benchmark-cumulus
* Fixed benchmark with new XCM::V3 `MAX_INSTRUCTIONS_TO_DECODE`
* Fixed benchmark for bridge messages pallets
---------
Co-authored-by: alvicsam <alvicsam@gmail.com >
Co-authored-by: Javier Viola <javier@parity.io >
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2023-09-01 14:27:18 +03:00
Oliver Tale-Yazdi
36b4f2583e
Fix CI ( #1316 )
...
* Fix deterministic WASM check
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix build-staking-miner
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove Kusama and Polkadot runtime-migration checks
Will be removed in https://github.com/paritytech/polkadot-sdk/pull/1304 anyway.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-30 21:55:41 +02:00
Alexander Samusev
b13a3187f2
[ci] Add DAG ( #1244 )
...
* [ci] Add DAG
* add dag
* add more dag and disable deny
* test cancel pipeline
* fix clippy
2023-08-29 17:00:17 +03:00
Alexander Samusev
6e394f84f8
[ci] Add missing components to CI ( #1201 )
...
* [ci] Add missing components to CI
* add timestamp
* add pipeline-stopper-artifacts to jobs
* break clippy
* mv definition
* fix clippy
* comment timestamp, rm verbose
* commen cancel
* rm --verbose from build jobs
* disable rusty-cachier before_script
* enable timestamp back
* rollback .gitignore
* rollback .gitignore
* rollback .gitignore
2023-08-28 21:33:16 +03:00
Alexandru Gheorghe
4252e488a0
ci: fix worker binaries could not be found ( #1198 )
...
* ci: fix worker binaries could not be found
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* Add missing bits
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* Fix malus build
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
---------
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2023-08-28 14:51:32 +03:00
Alexander Samusev
e49493442a
Add CI for monorepo ( #1145 )
...
* Add CI for monorepo
* fix frame tests
* Format features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add note for skipping tests and disable test-linux-stable-all
* Fix tests and compile issues (#1152 )
* Fix feature dependant import
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Bump test timeout
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove feature gate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add resolver 2
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove old lockfile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Format features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix check-dependency-rules
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* rm test-runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Actually fix script
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* enable cargo-check-each-crate-macos
* Run check-each-crate on 6 machines (#1163 )
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-25 16:35:22 +02:00