1. Aug 16, 2023
  2. Aug 15, 2023
    • Adrian Catangiu's avatar
      Revert "companion for 14754: cli: move no-beefy flag to sc-cli (#7600)" (#7613) · 022a3b97
      Adrian Catangiu authored
      * Revert "companion for 14754: cli: move no-beefy flag to sc-cli (#7600)"
      
      This reverts commit 26adab4f.
      
      * update lockfile for {"substrate"}
      
      * fix merge damage
      
      ---------
      
      Co-authored-by: parity-processbot <>
      022a3b97
    • alexd10s's avatar
      Change the Config of the MaxRococoNum Slot from a Constant to a Storage function (#7217) · bf785881
      alexd10s authored
      
      
      * set MaxPermanentSlots and MaxTemporarySlots with a extrinsic instead of a constant
      
      * delete the  MaxPermanentSlots and MaxTemporarySlots constants from config on  Rococo and Westend
      
      * migration code for assigned slots
      
      * remove getters
      
      * little refactor
      
      * set values in the GenesisConfig
      
      * refactor in the migration, adding it in the rococo runtime
      
      * refactor: fmt
      
      * Minor fix
      
      * pre_upgrade check
      
      * add migration to mod v1
      
      * Logs following Substrate#12873
      
      * fix: current storage version set to 1
      
      * use enact when try-runtime
      
      * Vec seems to be missing
      
      * feature gate import
      
      * fix as per #13993
      
      * address comments
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * address  comments
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * benchmarking for assign_perm_parachain_slot extrinsic
      
      * benchmark all the extrinsics of the pallet
      
      * cargo fmt for assigned slots
      
      * migration added for westend
      
      * licence in benchmarking file
      
      * BuildGenesisConfig
      
      * assigned_slots default in genesis
      
      * cargo fmt
      
      * assigned_slots fix tests config
      
      * cargo fmt
      
      * fix benchmarking compile error
      
      * fix benchmarking imports
      
      * benchmark worst case scenario for validation code and head data
      
      * add assigned_slots in frame_benchmarking on Rococo and Westend
      
      * modify values for para_id in benchmarking
      
      * delete the assigned_slots in westend frame_benchmarking
      
      * fix benchmarkings and add it to westend
      
      * cargo fmt
      
      * ".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtime=rococo --target_dir=polkadot --pallet=runtime_common::assigned_slots
      
      * ".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtime=westend --target_dir=polkadot --pallet=runtime_common::assigned_slots
      
      * use generated weights in assigned_slots pallet
      
      * small changes in set_max_permanent_slots and set_max_temporary_slots
      
      * revert last commit
      
      * address some comments
      
      * wrap migration with VersionCheckedMigrateToV1
      
      * add experimental feature in pallet, and assers in post_upgrade migration
      
      * clean warnings
      
      * clean unnecesary experimental flag
      
      * small typo in comments
      
      * cargo fmt
      
      * small comments fixes
      
      ---------
      
      Co-authored-by: default avataral3mart <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: command-bot <>
      bf785881
    • Bastian Köcher's avatar
      Remove superflous parameter `overseer_enable_anyways` and make parachain node... · cf3271fe
      Bastian Köcher authored
      Remove superflous parameter `overseer_enable_anyways` and make parachain node type more explicit (#7617)
      
      * Remove superflous parameter `overseer_enable_anyways`
      
      We don't need this flag, as we don't need the overseer enabled when the
      node isn't a collator or validator.
      
      * Rename `IsCollator` to `IsParachainNode`
      
      `IsParachainNode` is more expressive and also encapsulates the state of
      the parachain node being a full node. Some functionality like the
      overseer needs to run always when the node runs alongside a parachain
      node. The parachain node needs the overseer to e.g. recover PoVs. Other
      things like candidate validation or pvf checking are only required for
      when the node is running as validator.
      
      * FMT
      
      * Fix CI
      cf3271fe
  3. Aug 14, 2023
  4. Aug 11, 2023
    • Adrian Catangiu's avatar
      companion for 14754: cli: move no-beefy flag to sc-cli (#7600) · 26adab4f
      Adrian Catangiu authored
      
      
      * cli: move no-beefy flag to substrate sc-cli config
      
      * bump substrate ref
      
      ---------
      
      Signed-off-by: default avatarAdrian Catangiu <[email protected]>
      26adab4f
    • Chevdor's avatar
      Publish RC container images (#7556) · 693a29da
      Chevdor authored
      
      
      * WIP
      
      * Add missing checkout
      
      * Add debuggin
      
      * Fix VAR name
      
      * Bug fix
      
      * Rework jobs
      
      * Revert "Rework jobs"
      
      This reverts commit 2bfa79fd3ae633c17403b838f9a5025f0f7fc3f3.
      
      * Add cache
      
      * Add temp default for testing
      
      * Add missing checkout
      
      * Fix patch
      
      * Comment out the GPG check for now
      
      * Rename polkadot_injected_release into a more appropriate polkadot_injected_debian
      
      * Refactoring / renaming
      
      * Introduce a generic image for binary injection
      
      * Flag files to be deleted and changes to be done
      
      * WIP
      
      * Fix multi binaries images
      
      * Add test build scripts
      
      * Remove old file, add polkadot build-injected script
      
      * Fix doc
      
      * Fix tagging
      
      * Add build of the injected container
      
      * Fix for docker
      
      * Remove the need for TTY
      
      * Handling container publishing
      
      * Fix owner and registry
      
      * Fix vars
      
      * Fix repo
      
      * Fix var naming
      
      * Fix case when there is no tag
      
      * Fix case with no tag
      
      * Handle error
      
      * Fix spacings
      
      * Fix tags
      
      * Remove unnecessary grep that may fail
      
      * Add final check
      
      * Clean up and introduce GPG check
      
      * Add doc
      
      * Add doc
      
      * Update doc/docker.md
      
      Co-authored-by: default avatarMira Ressel <[email protected]>
      
      * type
      
      Co-authored-by: default avatarMira Ressel <[email protected]>
      
      * Fix used VAR
      
      * Improve doc
      
      * ci: Update .build-push-image jobs to use the new build-injected.sh
      
      * ci: fix path to build-injected.sh script
      
      * Rename the release artifacts folder to prevent confusion due to a similar folder in the gitlab CI
      
      * ci: check out polkadot repo in .build-push-image
      
      This seems far cleaner than copying the entire scripts/ folder into our
      job artifacts.
      
      * feat(build-injected.sh): make PROJECT_ROOT configurable
      
      This lets us avoid a dependency on git in our CI image.
      
      * ci: build injected images with buildah
      
      * ci: pass full image names to zombienet
      
      * Add missing ignore
      
      ---------
      
      Co-authored-by: default avatarMira Ressel <[email protected]>
      693a29da
  5. Aug 10, 2023
  6. Aug 09, 2023
  7. Aug 08, 2023
  8. Aug 07, 2023
  9. Aug 05, 2023
  10. Aug 04, 2023
  11. Aug 03, 2023
  12. Aug 02, 2023
  13. Aug 01, 2023
    • eskimor's avatar
      Take into account size as well in weight limiting. (#7369) · 367098ba
      eskimor authored
      
      
      * Take into account size as well in weight limiting.
      
      * Fix logging.
      
      * More logs.
      
      * Remove randomized selection in provisioner
      
      No longer supported by runtime.
      
      * Fix and simplify weight calculation.
      
      Random filtering of remote disputes got dropped.
      
      * Make existing tests pass.
      
      * Tests for size limiting.
      
      * Fix provisioner.
      
      * Remove rand dependency.
      
      * Better default block length for tests.
      
      * ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::paras_inherent
      
      * ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::paras_inherent
      
      * ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::paras_inherent
      
      * Update runtime/parachains/src/paras_inherent/mod.rs
      
      Co-authored-by: default avatarTsvetomir Dimitrov <[email protected]>
      
      * Update runtime/parachains/src/paras_inherent/mod.rs
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * Add back missing line.
      
      * Fix test.
      
      * fmt fix.
      
      * Add missing test annotation
      
      ---------
      
      Co-authored-by: default avatareskimor <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarTsvetomir Dimitrov <[email protected]>
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      367098ba
    • Branislav Kontur's avatar
      ` XcmContext` to `buy_weight / refund_weight` (#7563) · 4980b644
      Branislav Kontur authored
      
      
      * added XcmContext to WeightTrader trait
      
      * cargo fmt
      
      * make xcm context optional
      
      * make compile
      
      * fix compile
      
      * `XcmContext` to `buy_weight / refund_weight`
      
      ---------
      
      Co-authored-by: default avatarPatricio Napoli <[email protected]>
      Co-authored-by: default avatarGiles Cope <[email protected]>
      Co-authored-by: parity-processbot <>
      4980b644
    • Marcin S.'s avatar
      PVF: Fix external workers being required for non-collator full nodes (#7566) · f226cd5a
      Marcin S. authored
      * PVF: Fix external workers being required for non-collator full nodes
      
      * Fix
      
      * Make check more precise
      
      > This might as well be if role.is_authority() as there aren't really any nodes
      > that are both authorities and collators. But if there were a node that is an
      > authority and a collator, it'd probably want to validate candidates (in its
      > role as an authority).
      
      * Just seeing if this fixes zombienet CI...
      f226cd5a
  14. Jul 31, 2023
    • Marcin S.'s avatar
      98.6% OF DEVELOPERS CANNOT REVIEW THIS PR! [read more...] (#7337) · 85b06f18
      Marcin S. authored
      
      
      * [WIP] PVF: Split out worker binaries
      
      * Address compilation problems and re-design a bit
      
      * Reorganize once more, fix tests
      
      * Reformat with new nightly to make `cargo fmt` test happy
      
      * Address `clippy` warnings
      
      * Add temporary trace to debug zombienet tests
      
      * Fix zombienet node upgrade test
      
      * Fix malus and its CI
      
      * Fix building worker binaries with malus
      
      * More fixes for malus
      
      * Remove unneeded cli subcommands
      
      * Support placing auxiliary binaries to `/usr/libexec`
      
      * Fix spelling
      
      * Spelling
      
      Co-authored-by: default avatarMarcin S. <[email protected]>
      
      * Implement review comments (mostly nits)
      
      * Fix worker node version flag
      
      * Rework getting the worker paths
      
      * Address a couple of review comments
      
      * Minor restructuring
      
      * Fix CI error
      
      * Add tests for worker binaries detection
      
      * Improve tests; try to fix CI
      
      * Move workers module into separate file
      
      * Try to fix failing test and workers not printing latest version
      
      - Tests were not finding the worker binaries
      - Workers were not being rebuilt when the version changed
      - Made some errors easier to read
      
      * Make a bunch of fixes
      
      * Rebuild nodes on version change
      
      * Fix more issues
      
      * Fix tests
      
      * Pass node version from node into dependencies to avoid recompiles
      
      - [X] get version in CLI
      - [X] pass it in to service
      - [X] pass version along to PVF
      - [X] remove rerun from service
      - [X] add rerun to CLI
      
      - [X] don’t rerun pvf/worker’s (these should be built by nodes which have rerun enabled)
      
      * Some more improvements for smoother tests
      
      - [X] Fix tests
      - [X] Make puppet workers pass None for version and remove rerun
      - [X] Make test collators self-contained
      
      * Add back rerun to PVF workers
      
      * Move worker binaries into files in cli crate
      
      As a final optimization I've separated out each worker binary from its own crate
      into the CLI crate. Before, the worker bin shared a crate with the worker lib,
      so when the binaries got recompiled so did the libs and everything transitively
      depending on the libs. This commit fixes this regression that was causing
      recompiles after every commit.
      
      * Fix bug (was passing worker version for node version)
      
      * Move workers out of cli into root src/bin/ dir
      
      - [X] Pass in node version from top-level (polkadot)
      - [X] Add build.rs with rerun-git-head to root dir
      
      * Add some sanity checks for workers to dockerfiles
      
      * Update malus
      
        + [X] Make it self-contained
        + [X] Undo multiple binary changes
      
      * Try to fix clippy errors
      
      * Address `cargo run` issue
      
      - [X] Add default-run for polkadot
      - [X] Add note about installation to error
      
      * Update readme (installation instructions)
      
      * Allow disabling external workers for local/testing setups
      
        + [X] cli flag to enable single-binary mode
        + [X] Add message to error
      
      * Revert unnecessary Cargo.lock changes
      
      * Remove unnecessary build scripts from collators
      
      * Add back missing malus commands (should fix failing ZN job)
      
      * Some minor fixes
      
      * Update Cargo.lock
      
      * Fix some build errors
      
      * Undo self-contained binaries; cli flag to disable version check
      
        + [X] Remove --dont-run-external-workers
        + [X] Add --disable-worker-version-check
        + [X] Remove PVF subcommands
        + [X] Redo malus changes
      
      * Try to fix failing job and add some docs for local tests
      
      ---------
      
      Co-authored-by: default avatarDmitry Sinyavin <[email protected]>
      Co-authored-by: default avatars0me0ne-unkn0wn <[email protected]>
      Co-authored-by: parity-processbot <>
      85b06f18
  15. Jul 28, 2023
  16. Jul 27, 2023