Skip to content
  1. Sep 20, 2024
  2. Sep 19, 2024
    • dependabot[bot]'s avatar
      Bump the known_good_semver group across 1 directory with 2 updates (#5736) · 221565d2
      dependabot[bot] authored
      
      
      Bumps the known_good_semver group with 2 updates in the / directory:
      [clap](https://github.com/clap-rs/clap) and
      [syn](https://github.com/dtolnay/syn).
      
      Updates `clap` from 4.5.11 to 4.5.13
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/clap-rs/clap/releases">clap's
      releases</a>.</em></p>
      <blockquote>
      <h2>v4.5.13</h2>
      <h2>[4.5.13] - 2024-07-31</h2>
      <h3>Fixes</h3>
      <ul>
      <li><em>(derive)</em> Improve error message when
      <code>#[flatten]</code>ing an optional <code>#[group(skip)]</code></li>
      <li><em>(help)</em> Properly wrap long subcommand descriptions in
      help</li>
      </ul>
      <h2>v4.5.12</h2>
      <h2>[4.5.12] - 2024-07-31</h2>
      </blockquote>
      </details>
      <details>
      <summary>Changelog</summary>
      <p><em>Sourced from <a
      href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's
      changelog</a>.</em></p>
      <blockquote>
      <h2>[4.5.13] - 2024-07-31</h2>
      <h3>Fixes</h3>
      <ul>
      <li><em>(derive)</em> Improve error message when
      <code>#[flatten]</code>ing an optional <code>#[group(skip)]</code></li>
      <li><em>(help)</em> Properly wrap long subcommand descriptions in
      help</li>
      </ul>
      <h2>[4.5.12] - 2024-07-31</h2>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/clap-rs/clap/commit/d222ae4cb62d08b4d8f635aa80ddb3c880b82e6e"><code>d222ae4</code></a>
      chore: Release</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/a8abcb40c5f2628bfa671adf61a090a1bbfbcfa2"><code>a8abcb4</code></a>
      docs: Update changelog</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/2690e1bdb19df3e4dde7a50fc33b14a3bf6f0b8a"><code>2690e1b</code></a>
      Merge pull request <a
      href="https://redirect.github.com/clap-rs/clap/issues/5621">#5621</a>
      from shannmu/dynamic_valuehint</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/7fd7b3e40bd835070253432accf4076bb020beda"><code>7fd7b3e</code></a>
      feat(clap_complete): Support to complete custom value of argument</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/fc6aaca52b42d0e4ae13805e7480cbb05f63a0ca"><code>fc6aaca</code></a>
      Merge pull request <a
      href="https://redirect.github.com/clap-rs/clap/issues/5638">#5638</a>
      from epage/cargo</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/631e54bc715ed2fa53d8457dc273a25b92d3b354"><code>631e54b</code></a>
      docs(cookbook): Style cargo plugin</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/6fb49d08bb2acfbc2f2aa5f717ccd4a4018ca872"><code>6fb49d0</code></a>
      Merge pull request <a
      href="https://redirect.github.com/clap-rs/clap/issues/5636">#5636</a>
      from gibfahn/styles_const</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/6f215eee98c4f73099b0ede2ac62ba019ada24ce"><code>6f215ee</code></a>
      refactor(styles): make styles example use a const</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/bbb2e6fdde1c724e39c2f2616332310252c12ab8"><code>bbb2e6f</code></a>
      test: Add test case for completing custom value of argument</li>
      <li><a
      href="https://github.com/clap-rs/clap/commit/999071c46dca0367d93f66ecd97b2e3507963284"><code>999071c</code></a>
      fix: Change <code>visible</code> to <code>hidden</code></li>
      <li>Additional commits viewable in <a
      href="https://github.com/clap-rs/clap/compare/clap_complete-v4.5.11...clap_complete-v4.5.13">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      Updates `syn` from 2.0.65 to 2.0.77
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/dtolnay/syn/releases">syn's
      releases</a>.</em></p>
      <blockquote>
      <h2>2.0.77</h2>
      <ul>
      <li>Support parsing <code>Expr::Tuple</code> in non-&quot;full&quot;
      mode (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1727">#1727</a>)</li>
      </ul>
      <h2>2.0.76</h2>
      <ul>
      <li>Enforce that tail call <code>become</code> keyword is followed by an
      expression (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1725">#1725</a>)</li>
      </ul>
      <h2>2.0.75</h2>
      <ul>
      <li>Automatically fill in missing turbofish when printing ExprPath and
      other paths in expression position (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1722">#1722</a>)</li>
      </ul>
      <h2>2.0.74</h2>
      <ul>
      <li>Fix <em>&quot;temporary is dropped and runs the destructor for type
      `impl Iterator`&quot;</em> regression affecting certain use of
      <code>Generics</code> iterator methods (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1719">#1719</a>)</li>
      </ul>
      <h2>2.0.73</h2>
      <ul>
      <li>Support parsing unnamed C varargs within function pointer types (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1711">#1711</a>)</li>
      <li>Improve synthesized error message on unexpected tokens at the end of
      the expected contents of a delimited group (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1713">#1713</a>)</li>
      <li>Support parsing unstable tail call syntax (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1714">#1714</a>, <a
      href="https://redirect.github.com/rust-lang/rust/issues/112788">rust-lang/rust#112788</a>)</li>
      <li>Add <a
      href="https://docs.rs/syn/2.0.73/syn/enum.Fields.html#method.members"><code>Fields::members</code></a>
      iterator (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1716">#1716</a>,
      thanks <a
      href="https://github.com/Fancyflame"><code>@​Fancyflame</code></a>)</li>
      </ul>
      <h2>2.0.72</h2>
      <ul>
      <li>Parse <code>use&lt;'a, T&gt;</code> precise capturing bounds (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1707">#1707</a>,
      thanks <a
      href="https://github.com/compiler-errors"><code>@​compiler-errors</code></a>)</li>
      </ul>
      <h2>2.0.71</h2>
      <ul>
      <li>Do not require mutable borrow in Punctuated::get() (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1706">#1706</a>,
      thanks <a
      href="https://github.com/lemunozm"><code>@​lemunozm</code></a>)</li>
      </ul>
      <h2>2.0.70</h2>
      <ul>
      <li>Improve parenthesization of closures, jumps, ranges, chained
      comparisons, and let (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1694">#1694</a>, <a
      href="https://redirect.github.com/dtolnay/syn/issues/1695">#1695</a>, <a
      href="https://redirect.github.com/dtolnay/syn/issues/1698">#1698</a>, <a
      href="https://redirect.github.com/dtolnay/syn/issues/1699">#1699</a>, <a
      href="https://redirect.github.com/dtolnay/syn/issues/1700">#1700</a>)</li>
      </ul>
      <h2>2.0.69</h2>
      <ul>
      <li>Correctly parenthesize labeled loops inside a break value (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1692">#1692</a>)</li>
      <li>Add <code>Punctuated::get</code> and <code>get_mut</code> (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1693">#1693</a>)</li>
      </ul>
      <h2>2.0.68</h2>
      <ul>
      <li>Improve panic location when <code>parse_quote!</code> parses invalid
      syntax (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1690">#1690</a>,
      thanks <a
      href="https://github.com/stepancheg"><code>@​stepancheg</code></a>)</li>
      <li>More efficient peek implementation for <code>Group</code> and
      <code>Lifetime</code> (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1687">#1687</a>)</li>
      </ul>
      <h2>2.0.67</h2>
      <ul>
      <li>Produce more accurate error message locations for errors located at
      the end of a nested group (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1679">#1679</a>, <a
      href="https://redirect.github.com/dtolnay/syn/issues/1680">#1680</a>)</li>
      <li>Support peeking <code>LitCStr</code> in ParseStream::peek (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1682">#1682</a>)</li>
      </ul>
      <h2>2.0.66</h2>
      <ul>
      <li>Allow braced structs when parsing ExprLet (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1671">#1671</a>)</li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/dtolnay/syn/commit/6232266b0b522ca144eb2910a51670eb9685bca5"><code>6232266</code></a>
      Release 2.0.77</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/97acbf0ffae4fa17f971cc15cd0586ea94bc7423"><code>97acbf0</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1727">#1727</a>
      from dtolnay/exprparen</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/a3b5a5c10942c2dfc42f7c7dbd80d2d6672dbcb9"><code>a3b5a5c</code></a>
      Support parsing Expr::Tuple in derive</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/3c24f576d7e1655da51bac4a6f80ded898fb9840"><code>3c24f57</code></a>
      Run upload-artifact action regardless of previous step failure</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/78608a3ebe0bab46d0791e91f35b9966a92962df"><code>78608a3</code></a>
      Upload CI Cargo.lock for reproducing failures</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/ef3e9c6dde79be7590fc90278772663ca31c1a73"><code>ef3e9c6</code></a>
      Release 2.0.76</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/8f7365ff9685c8ca9527c2de409204179a3efcdf"><code>8f7365f</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1725">#1725</a>
      from dtolnay/tailcall</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/6cddd9ea714fe034466b4f02d3f7abb484c65ea0"><code>6cddd9e</code></a>
      Make tail call expr mandatory</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/d1746fe29d18ca704ed285844c365a14a77e8757"><code>d1746fe</code></a>
      Release 2.0.75</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/b6936825a637376dd7584653e13776034759d3fd"><code>b693682</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1722">#1722</a>
      from dtolnay/exprpath</li>
      <li>Additional commits viewable in <a
      href="https://github.com/dtolnay/syn/compare/2.0.65...2.0.77">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore <dependency name> major version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's major version (unless you unignore this specific
      dependency's major version or upgrade to it yourself)
      - `@dependabot ignore <dependency name> minor version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's minor version (unless you unignore this specific
      dependency's minor version or upgrade to it yourself)
      - `@dependabot ignore <dependency name>` will close this group update PR
      and stop Dependabot creating any more for the specific dependency
      (unless you unignore this specific dependency or upgrade to it yourself)
      - `@dependabot unignore <dependency name>` will remove all of the ignore
      conditions of the specified dependency
      - `@dependabot unignore <dependency name> <ignore condition>` will
      remove the ignore condition of the specified dependency and ignore
      conditions
      
      
      </details>
      
      ---------
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      Co-authored-by: command-bot <>
      221565d2
    • Iulian Barbu's avatar
      cumulus/minimal-node: added prometheus metrics for the RPC client (#5572) · c8d5e5a3
      Iulian Barbu authored
      
      
      # Description
      
      When we start a node with connections to external RPC servers (as a
      minimal node), we lack metrics around how many individual calls we're
      doing to the remote RPC servers and their duration. This PR adds metrics
      that measure durations of each RPC call made by the minimal nodes, and
      implicitly how many calls there are.
      
      Closes #5409 
      Closes #5689
      
      ## Integration
      
      Node operators should be able to track minimal node metrics and decide
      appropriate actions according to how the metrics are interpreted/felt.
      The added metrics can be observed by curl'ing the prometheus metrics
      endpoint for the ~relaychain~ parachain (it was changed based on the
      review). The metrics are represented by
      ~`polkadot_parachain_relay_chain_rpc_interface`~
      `relay_chain_rpc_interface` namespace (I realized lining up
      `parachain_relay_chain` in the same metric might be confusing :).
      Excerpt from the curl:
      
      ```
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="0.001"} 15
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="0.004"} 23
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="0.016"} 23
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="0.064"} 23
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="0.256"} 24
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="1.024"} 24
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="4.096"} 24
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="16.384"} 24
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="65.536"} 24
      relay_chain_rpc_interface_bucket{method="chain_getBlockHash",chain="rococo_local_testnet",le="+Inf"} 24
      relay_chain_rpc_interface_sum{method="chain_getBlockHash",chain="rococo_local_testnet"} 0.11719075
      relay_chain_rpc_interface_count{method="chain_getBlockHash",chain="rococo_local_testnet"} 24
      ```
      
      ## Review Notes
      
      The way we measure durations/hits is based on `HistogramVec` struct
      which allows us to collect timings for each RPC client method called
      from the minimal node., It can be extended to measure the RPCs against
      other dimensions too (status codes, response sizes, etc). The timing
      measuring is done at the level of the `relay-chain-rpc-interface`, in
      the `RelayChainRpcClient` struct's method 'request_tracing'. A single
      entry point for all RPC requests done through the
      relay-chain-rpc-interface. The requests durations will fall under
      exponential buckets described by start `0.001`, factor `4` and count
      `9`.
      
      ---------
      
      Signed-off-by: default avatarIulian Barbu <[email protected]>
      c8d5e5a3
    • Andrei Eres's avatar
      Use maximum allowed response size for request/response protocols (#5753) · 0c9d8fed
      Andrei Eres authored
      # Description
      
      Adjust the PoV response size to the default values used in the
      substrate.
      Fixes https://github.com/paritytech/polkadot-sdk/issues/5503
      
      ## Integration
      
      The changes shouldn't impact downstream projects since we are only
      increasing the limit.
      
      ## Review Notes
      
      You can't see it from the changes, but it affects all protocols that use
      the `POV_RESPONSE_SIZE` constant.
      - Protocol::ChunkFetchingV1
      - Protocol::ChunkFetchingV2
      - Protocol::CollationFetchingV1
      - Protocol::CollationFetchingV2
      - Protocol::PoVFetchingV1
      - Protocol::AvailableDataFetchingV1
      
      ## Increasing timeouts
      
      
      https://github.com/paritytech/polkadot-sdk/blob/fae15379
      
      /polkadot/node/network/protocol/src/request_response/mod.rs#L126-L129
      
      I assume the current PoV request timeout is set to 1.2s to handle 5
      consecutive requests during a 6s block. This setting does not relate to
      the PoV response size. I see no reason to change the current timeouts
      after adjusting the response size.
      
      However, we should consider networking speed limitations if we want to
      increase the maximum PoV size to 10 MB. With the number of parallel
      requests set to 10, validators will need the following networking
      speeds:
      - 5 MB PoV: at least 42 MB/s, ideally 50 MB/s.  
      - 10 MB PoV: at least 84 MB/s, ideally 100 MB/s.
      
      The current required speed of 50 MB/s aligns with the 62.5 MB/s
      specified [in the reference hardware
      requirements](https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#reference-hardware).
      Increasing the PoV size to 10 MB may require a higher networking speed.
      
      ---------
      
      Co-authored-by: default avatarAndrei Sandu <[email protected]>
      0c9d8fed
    • yjh's avatar
      chore: fast return for invalid request of node health (#5762) · d31bb8ac
      yjh authored
      Co-authored-by: command-bot <>
      d31bb8ac
    • Francisco Aguirre's avatar
      [xcm-emulator] Better logs for message execution and processing (#5712) · b230b0e3
      Francisco Aguirre authored
      When running XCM emulated tests and seeing the logs with `RUST_LOG=xcm`
      or `RUST_LOG=xcm=trace`, it's sometimes a bit hard to figure out the
      chain where the logs are coming from.
      
      I added a log whenever `execute_with` is called, to know the chain which
      makes the following logs. Looks like so:
      
      <img width="1499" alt="Screenshot 2024-09-13 at 20 14 13"
      src="https://github.com/user-attachments/assets/a31d7aa4-11d1-4d3e-9a65-86f38347c880">
      
      There are already log targets for when UMP, DMP and HRMP messages are
      being processed. To see them, you have to use the log targets `ump`,
      `dmp`, and `hrmp` respectively. So `RUST_LOG=xcm,ump,dmp,hrmp` would let
      you see every log.
      I prefixed the targets with `xcm::` so you can get all the relevant logs
      just by filtering by `xcm`. You can always use the whole target to see
      just the messages being processed.
      
      These logs showed the message as an array of bytes, I made them show a
      hexadecimal string instead since that's easier to copy in case you want
      to decode it or use it in another tool. They look like this now:
      
      <img width="1499" alt="Screenshot 2024-09-13 at 20 17 15"
      src="https://github.com/user-attachments/assets/5abf4a97-1ea7-4832-b3b0-d54c54905d1a">
      
      The HRMP and UMP ones are very similar.
      b230b0e3
  3. Sep 18, 2024
    • Maksym H's avatar
      make update-ui-test executable (#5760) · 69b02a3c
      Maksym H authored
      69b02a3c
    • dependabot[bot]'s avatar
      Bump soketto from 0.7.1 to 0.8.0 (#5719) · 37bdc897
      dependabot[bot] authored
      
      
      Bumps [soketto](https://github.com/paritytech/soketto) from 0.7.1 to
      0.8.0.
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/paritytech/soketto/releases">soketto's
      releases</a>.</em></p>
      <blockquote>
      <h2>v0.8.0</h2>
      <h2>0.8.0</h2>
      <ul>
      <li>[changed] move to rust 2021 <a
      href="https://redirect.github.com/paritytech/soketto/pull/56">#56</a></li>
      <li>[changed] Replace sha-1 v0.9 with sha1 v0.10 <a
      href="https://redirect.github.com/paritytech/soketto/pull/62">#62</a></li>
      <li>[changed] Update hyper requirement from v0.14 to v1.0 <a
      href="https://redirect.github.com/paritytech/soketto/pull/99">#99</a></li>
      <li>[changed] Update base64 requirement from 0.13 to 0.22 <a
      href="https://redirect.github.com/paritytech/soketto/pull/97">#97</a></li>
      <li>[changed] Bump MSRV to 1.71.1.</li>
      <li>[fixed] doc typo on Client resource field <a
      href="https://redirect.github.com/paritytech/soketto/pull/97">#79</a></li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Changelog</summary>
      <p><em>Sourced from <a
      href="https://github.com/paritytech/soketto/blob/master/CHANGELOG.md">soketto's
      changelog</a>.</em></p>
      <blockquote>
      <h2>0.8.0</h2>
      <ul>
      <li>[changed] move to rust 2021 <a
      href="https://redirect.github.com/paritytech/soketto/pull/56">#56</a></li>
      <li>[changed] Replace sha-1 v0.9 with sha1 v0.10 <a
      href="https://redirect.github.com/paritytech/soketto/pull/62">#62</a></li>
      <li>[changed] Update hyper requirement from v0.14 to v1.0 <a
      href="https://redirect.github.com/paritytech/soketto/pull/99">#99</a></li>
      <li>[changed] Update base64 requirement from 0.13 to 0.22 <a
      href="https://redirect.github.com/paritytech/soketto/pull/97">#97</a></li>
      <li>[changed] Bump MSRV to 1.71.1.</li>
      <li>[fixed] doc typo on Client resource field <a
      href="https://redirect.github.com/paritytech/soketto/pull/97">#79</a></li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/paritytech/soketto/commit/7fee76678b7d08b21f5081de0f9041c7c9c1afdd"><code>7fee766</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/100">#100</a>
      from paritytech/chore-release-soketto-0.8</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/f392c852b2ad7d6146accb5b75989dd60cbeaed1"><code>f392c85</code></a>
      chore: release v0.8.0</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/6f31ad11e742a3e83ec9b9b75644b2e0242f5da7"><code>6f31ad1</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/88">#88</a>
      from paritytech/dependabot/github_actions/actions/chec...</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/322240516dc844abd5deb9d740df3b16614c08b9"><code>3222405</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/99">#99</a>
      from paritytech/chore-update-hyper</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/afe56f5d26687b60b038522e7f10277adfd73c14"><code>afe56f5</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/97">#97</a>
      from paritytech/dependabot/cargo/base64-0.22</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/420216aad917301e3513905ad55f60ffc068a4e0"><code>420216a</code></a>
      chore(deps): update hyper v1.0</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/050d44ba45cd800877729b649a898ac483fbff97"><code>050d44b</code></a>
      Update base64 requirement from 0.21 to 0.22</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/3d65c54d37162a57c8401f6428b3f9213bed8fd7"><code>3d65c54</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/95">#95</a>
      from paritytech/dependabot/cargo/env_logger-0.11.1</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/153cd94dfcdcded2e0f6857ef8623d14ca4cc91a"><code>153cd94</code></a>
      Update env_logger requirement from 0.10.0 to 0.11.1</li>
      <li><a
      href="https://github.com/paritytech/soketto/commit/26a2fc647258345da8cdefe3f8d9f0a01553eb46"><code>26a2fc6</code></a>
      Merge pull request <a
      href="https://redirect.github.com/paritytech/soketto/issues/87">#87</a>
      from kayabaNerve/master</li>
      <li>Additional commits viewable in <a
      href="https://github.com/paritytech/soketto/compare/v0.7.1...v0.8.0">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      [![Dependabot compatibility
      score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=soketto&package-manager=cargo&previous-version=0.7.1&new-version=0.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore this major version` will close this PR and stop
      Dependabot creating any more for this major version (unless you reopen
      the PR or upgrade to it yourself)
      - `@dependabot ignore this minor version` will close this PR and stop
      Dependabot creating any more for this minor version (unless you reopen
      the PR or upgrade to it yourself)
      - `@dependabot ignore this dependency` will close this PR and stop
      Dependabot creating any more for this dependency (unless you reopen the
      PR or upgrade to it yourself)
      
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      37bdc897
    • Alexander Theißen's avatar
      revive: Limit the amount of static memory a contract can use (#5726) · 310ef5ce
      Alexander Theißen authored
      
      
      This will make sure that when uploading new code that the declared
      static memory fits within a defined limit. We apply different limits to
      code and data. Reason is that code will consume much more memory per
      byte once decoded during lazy execution.
      
      This PR:
      
      1) Remove the MaxCodeLen from the `Config` to we maintain tight control
      over it.
      2) Defines a single `STATIC_MEMORY_BYTES` knob that limits the maximum
      decoded size.
      3) Enforces them only on upload but not on execution so we can raise
      them later.
      4) Adapt the worst case calculation in `integrity_check`.
      5) Bumps the max stack depth from 5 to 10 as this will still fit within
      our memory envelope.
      6) The memory limit per contract is now a cool 1MB that can be spent on
      data or code.
      7) Bump PolkaVM for good measure
      8) The blob is limited to 256kb which is just a sanity check to not even
      try parsing very big inputs.
      
      ---------
      
      Co-authored-by: default avatarCyrill Leutwiler <[email protected]>
      310ef5ce
    • Javier Viola's avatar
      Add timeout for script/after_script and debug (#5748) · 08d171e3
      Javier Viola authored
      Fix tests:
      - minimal_template_block_production_test
      - parachain_template_block_production_test
      08d171e3
    • Kazunobu Ndong's avatar
      Remove libp2p dependency from sc-network-sync (#4974) · 70633959
      Kazunobu Ndong authored
      
      
      ## Issue
      https://github.com/paritytech/polkadot-sdk/issues/4858
      
      ## Description
      This PR removes `libp2p::request_response::OutboundFailure` from
      `substrate/client/network/sync/src/engine.rs`. This way, the dependency
      with the library `libp2p` is removed from `sc-network-sync`.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarDmitry Markin <[email protected]>
      Co-authored-by: default avatarAlexandru Vasile <[email protected]>
      70633959
    • Alexander Samusev's avatar
      [ci] Remove cargo check osx from gitlab (#5752) · 5524c116
      Alexander Samusev authored
      PR removes cargo check job that runs on osx runner from gitlab and moves
      `cargo-check-each-crate-macos` job to be required
      
      cc https://github.com/paritytech/ci_cd/issues/1037
      5524c116
    • Cyrill Leutwiler's avatar
      [pallet-revive] write sandbox output according to the provided output buffer length (#5743) · c0d5c4d8
      Cyrill Leutwiler authored
      
      
      Instead of error out if the provided output buffer is smaller than what
      we want to write, we can just write what fits into the output buffer
      instead. We already write back the actual bytes written to the in-out
      pointer, so contracts can check it anyways.
      
      This in turn introduces the benefit of allowing contracts to implicitly
      request only a portion of the returned data from calls and incantations.
      Which is especially beneficial for YUL as the `call` family opcodes have
      a return data size argument and this change removes the need to work
      around it in contract code.
      
      ---------
      
      Signed-off-by: default avatarxermicus <[email protected]>
      c0d5c4d8
    • Javier Viola's avatar
      add `coretime` test using `zombienet-sdk` (#4883) · ba38d31d
      Javier Viola authored
      Related to #4882
      cc: @s0me0ne-unkn0wn
      
       
      
      ```sh
      RUST_LOG=info,zombie=debug cargo test -p polkadot-zombienet-sdk-tests smoke::coretime_revenue::coretime_revenue_test --features zombie-metadata  -- --exact
      ```
      
      ---
      
      _Update_: This pr is now ready for review. `warp-sync` failing test are
      not related.
      
      ---------
      
      Co-authored-by: default avatarDmitry Sinyavin <[email protected]>
      Co-authored-by: default avatars0me0ne-unkn0wn <[email protected]>
      ba38d31d
    • gupnik's avatar
      Adds support for generics in`derive-impl` (#5584) · 69e96659
      gupnik authored
      As raised by @Kianenigma
      
       in
      https://github.com/sam0x17/macro_magic/issues/15, this PR adds the
      support for generics while using `derive_impl`.
      
      This can then be used in conjunction with `FliteFrameSystem` being
      defined [here](https://github.com/kianenigma/flite) as
      ```diff
      +#[derive_impl(FliteFrameSystem<Configuration>)]
      impl frame_system::Config for Runtime {
        type Block = Block;
      
        // .. Rest can be removed
      }
      ```
      
      ---------
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      69e96659
  4. Sep 17, 2024
    • Bastian Köcher's avatar
      pallet-treasury: Improve `remove_approval` benchmark (#5713) · 9cdbdc5a
      Bastian Köcher authored
      When `SpendOrigin` doesn't return any `succesful_origin`, it doesn't
      mean that `RejectOrigin` will do the same. Thus, this pr fixes a
      potential wrong benchmarked weight for when `SpendOrigin` is set to e.g.
      `NeverOrigin`.
      9cdbdc5a
    • Nazar Mokrynskyi's avatar
      Syncing strategy refactoring (part 2) (#5666) · 43cd6fd4
      Nazar Mokrynskyi authored
      # Description
      
      Follow-up to https://github.com/paritytech/polkadot-sdk/pull/5469 and
      mostly covering https://github.com/paritytech/polkadot-sdk/issues/5333.
      
      The primary change here is that syncing strategy is no longer created
      inside of syncing engine, instead syncing strategy is an argument of
      syncing engine, more specifically it is an argument to `build_network`
      that most downstream users will use. This also extracts addition of
      request-response protocols outside of network construction, making sure
      they are physically not present when they don't need to be (imagine
      syncing strategy that uses none of Substrate's protocols in its
      implementation for example).
      
      This technically allows to completely replace syncing strategy with
      whatever strategy chain might need.
      
      There will be at least one follow-up PR that will simplify
      `SyncingStrategy` trait and other public interfaces to remove mentions
      of block/state/warp sync requests, replacing them with generic APIs,
      such that strategies where warp sync is not applicable don't have to
      provide dummy method implementations, etc.
      
      ## Integration
      
      Downstream projects will have to write a bit of boilerplate calling
      `build_polkadot_syncing_strategy` function to create previously default
      syncing strategy.
      
      ## Review Notes
      
      Please review PR through individual commits rather than the final diff,
      it will be easier that way. The changes are mostly just moving code
      around one step at a time.
      
      # Checklist
      
      * [x] My PR includes a detailed description as outlined in the
      "Description" and its two subsections above.
      * [x] My PR follows the [labeling requirements](
      
      https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
      ) of this project (at minimum one label for `T` required)
      * External contributors: ask maintainers to put the right label on your
      PR.
      * [x] I have made corresponding changes to the documentation (if
      applicable)
      43cd6fd4
  5. Sep 16, 2024
  6. Sep 13, 2024
  7. Sep 12, 2024
  8. Sep 11, 2024
    • Pavlo Khrystenko's avatar
      Deprecation info support in RuntimeMetadataIR (#4851) · ec9a734f
      Pavlo Khrystenko authored
      
      
      ### Description: 
      * Adds `DeprecationStatusIR` enum to sp_metadata_ir.
      Deprecation info for simple items.
      * Adds `DeprecationInfoIR` enum to sp_metadata_ir.
      It is a deprecation info for an enums/errors/calls. Contains
      `DeprecationStatusIR`.
      Denotes full/partial deprecation of the type or its variants/calls
      * Adds `deprecation_info` field to 
             - `RuntimeApiMetadataIR`
             - `RuntimeApiMethodMetadataIR`
             - `StorageEntryMetadataIR`
             - `PalletConstantMetadataIR`
             - `PalletCallMetadataIR`
             - `PalletMetadataIR`
             - `PalletEventMetadataIR`
             - `PalletErrorMetadataIR`
      
      ### Testing done: 
      - Unit tests to check whether or not correct `note`/`since` texts are
      getting propagated to the metadata structs.
      - UI test to check for error message in case of incorrect attribute
      usage.
      There's also some test updates to make sure that deprecation attributes
      are getting propagated to the relevant structs.
      
      see: #4098, Solution: A
      
      ### Examples of produced deprecation info metadata
      They can be found in:
       - Tests for `frame-support`
       - hackmd link https://hackmd.io/@Zett98/Bys0YgbcR
      
      ---------
      
      Co-authored-by: default avatarGitHub Action <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      ec9a734f