Files
pezkuwi-subxt/polkadot/scripts/ci/github/check_weights_swc.sh
T
Martin Pugh b50e512ed4 [CI] Add weights verification jobs (#6996)
* add weights verification job

* switch to a github action

* rename script..

* add swc check

* fix perms...

* debugging

* fix comments, remove artifact. I hate CI

* switch to swc compare files

* sigh

* switch back to compare commits

* fix output

* fix output... again. yay markdown!

* remove test version number

* remove TODO

* switch to docker image

* Revert "remove TODO"

This reverts commit c313afd4604c437ebd25ffa84bb8cc7d95cd1092.

* fix docker registry url

* revert docker experiment

too janky. will fix upstream stuff and fix as a separate PR

reverts commits:

- 3be2043a95f15579453e68ff96360f60aeae24e3
- fd17a0fbf8a75449720fe3861f941f4a91fcc9c7
- 59f0ebfef49e37060cb2dc63cf67c7809befcf57

---------

Co-authored-by: parity-processbot <>
Co-authored-by: Martin <parity@tofu.lan>
2023-04-13 15:28:00 +00:00

21 lines
458 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Need to set globstar for ** magic
shopt -s globstar
RUNTIME=$1
VERSION=$2
echo "<details>"
echo "<summary>Weight changes for $RUNTIME</summary>"
echo
swc compare commits \
--method asymptotic \
--offline \
--path-pattern "./runtime/$RUNTIME/src/weights/**/*.rs" \
--no-color \
--format markdown \
--strip-path-prefix "runtime/$RUNTIME/src/weights/" \
"$VERSION"
#--ignore-errors
echo
echo "</details>"