This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
malus: add the nemesis use cases #3639
Closed
Closed
Changes from all commits
Commits
Show all changes
157 commits
Select commit
Hold shift + click to select a range
1ea0bcf
test/malus: craft the first maliciously disputing actor
drahnr 64b5769
initial draft
drahnr 54bfb57
Add Dockerfile and instructions how to use it to build malus image lo…
radupopa2010 6493fb6
Forgot one flag for the build cmd
radupopa2010 84bdc32
we are not docker specific, we are happy to use any containerruntime
drahnr 49f6b83
shuffle things around
drahnr f03474e
add initial tera based integration test
drahnr 8f7390a
chores
drahnr 765c466
fixins
drahnr 5f4c020
simple setup to start
drahnr 433ac96
other samples (WIP)
drahnr 47a2ecc
add Docker version with cargo-chef
radupopa2010 5882374
update substarte and small change of orders in commands in the contai…
radupopa2010 fc4dc08
metrics one
drahnr 3cee6a0
fmt
drahnr 1165add
minor
drahnr ed9d983
fixin
drahnr 22ba0a3
fix metric names
drahnr 5286ebd
-d
drahnr 3830275
add open gauge
drahnr dc37848
fmt
drahnr d3e370c
spellcheck
drahnr 99fb7f9
fix test
drahnr d889a9a
adjust to changed error messages
drahnr 7a5f424
refactor, more malus impls
drahnr 71a5006
more malus changes
drahnr e0835bb
foo
drahnr f1d67eb
minor cleanup
drahnr de2c4e6
suggest garbage candidate
drahnr b06b8e9
chore
drahnr a61fad8
fix suggest garabge malus
drahnr 0ac0a75
malus: back garbage candidate
drahnr a94cd01
Merge remote-tracking branch 'origin/master' into bernhard-malus-fx
drahnr 246cfa4
cargo lock
drahnr 45b4418
re-introduce metrics
drahnr 5227e3a
chore: cargo fmt
drahnr bb7f696
undoe 1.54.0 output, CI uses 1.53.0 rustc
drahnr edb2144
Merge remote-tracking branch 'origin/master' into bernhard-malus-fx
drahnr 7e171f4
update location of js types
radupopa2010 70338d7
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 2b71ebe
Fix trybuild
bkchr 8e21ba2
add tag to image name also; this will be replaced in the prod version
radupopa2010 de58741
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 9b499f2
Tests fixed
grbIzl 5ce4261
Merge branch 'master' into bernhard-malus-fx
ordian f371b1d
add some fix me
radupopa2010 43a288c
add dockerfile for ci
radupopa2010 c826f29
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 55d7aae
Add docker file for malus for ci
radupopa2010 5738e1d
use variables in .toml file
radupopa2010 a68906d
add chnages for malus test
radupopa2010 987e4e9
some fixes
ordian 4b98f7e
some more fixes
ordian 26a808f
Update .gitlab-ci.yml
ordian 2926a80
add local build for polkadot and malus
radupopa2010 77574c8
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 497cf40
Merge branch 'master' into bernhard-malus-fx
ordian 4818242
some fixes
ordian d854fa8
enable disputes feature in CI
ordian 67ddae5
ok, ok
ordian 7449c86
Merge branch 'master' into bernhard-malus-fx
ordian eb2171a
rename: MsgFilter -> MessageInterceptor
drahnr 08f97bd
remove TODO that would not have worked
drahnr 22b5558
intercept
drahnr 4ff6d8f
refactor
drahnr 8994728
fix README and containers
drahnr e410fbb
fix
drahnr d4a3a49
chore: cargo fmt
drahnr 93878de
avoid some more malus-$VARIANT references
drahnr 38ef732
fix argument order
drahnr a11fe9c
chore: add about
drahnr 970647f
Update sanity check in relay chain selection
Lldenaurois 139ecf9
fix order, add dispute-unavailable-block malus
drahnr 336cbe2
fixup: avoid underflow issue
drahnr 6b3ae25
it's all u32
drahnr 8d4a792
fix conditional use
drahnr ebdbafa
Revert "it's all u32"
drahnr 4a93c46
Revert "fixup: avoid underflow issue"
drahnr faa96ff
Revert "Update sanity check in relay chain selection"
drahnr 4bcd239
update the malus bin
radupopa2010 adbbd66
Update node/malus/integrationtests/0003-dispute-unavailable-block.fea…
drahnr 8f0f646
add some FIXME reminders
radupopa2010 01b3f47
update path to index.js
radupopa2010 6d30765
Update .gitlab-ci.yml
ordian 09c4136
Update node/malus/integrationtests/0001-dispute-valid-block.toml
ordian 27665ac
try 1: make malus test run
radupopa2010 508fe73
merge recent changes
radupopa2010 ed8d1c2
chore: cargo fmt
drahnr 6e96143
temporary fix
ordian 20bff53
use subcommand syntax from latest gurke
ordian c3a8205
cargo +nightly fmt
ordian 7edc660
Merge branch 'master' into bernhard-malus-fx
ordian 6f7666c
add collator to a a test
ordian 7a352be
docs: add env vars to README
drahnr 6723967
update ci to run dispute-valid-block test
radupopa2010 d87f0e7
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 f01c3c1
needs the polkadot image
radupopa2010 ee0d312
Fix path for nodejs container
grbIzl 720c91a
Merge branch 'master' into bernhard-malus-fx
ordian 68ea3a5
post merge fix
ordian 186bff4
download proper dir containg configs for malus test
radupopa2010 4081d02
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
radupopa2010 87c48f3
update the malus ci job
radupopa2010 45cb0e1
merge master, keep my chnages
radupopa2010 1f6ae66
rm a whitespace
radupopa2010 1d155fe
temp build for malus
radupopa2010 72c1426
use correct build command for temp malus
radupopa2010 5d8292b
remove subcommands for now
ordian 99cb6e0
Merge branch 'master' into bernhard-malus-fx
ordian 76a0837
set max validators per core in the default HostConfig
ordian 0d162b6
tabs
ordian 93c6d06
Merge branch 'master' into bernhard-malus-fx
ordian f0f9551
Merge branch 'master' into bernhard-malus-fx
ordian a5f8b8b
update beefy
ordian f8de68a
fixup
ordian cd65b53
fixup II
ordian 5827196
Merge branch 'master' into bernhard-malus-fx
ordian e0f8223
Merge branch 'master' into bernhard-malus-fx
ordian 718301f
make one variant compile
ordian 1b9ad32
make other variants compile
ordian 2823592
revert changes to chain_spec
ordian f2e6e03
fmt
ordian e91d5a1
build malus image from polkadot-test-malus again
ordian e1bfca4
revert unrelated changes
ordian 7bf62a9
try fixing build-malus job
ordian e04bcc9
Merge branch 'master' into bernhard-malus-fx
ordian 9c3bf47
Revert "remove subcommands for now"
ordian a1b345c
try fixing build-malus job II
ordian d5cd103
Merge branch 'master' into bernhard-malus-fx
ordian bbbaa66
MVP working dispute-ancestor
ordian d356678
renames
ordian 98389e4
Merge branch 'master' into bernhard-malus-fx
ordian e4bbd30
Merge branch 'master' into bernhard-malus-fx
ordian d0a17b2
fix PVF execution on malus
ordian e86c1ba
fix test
ordian e4a05e0
fix typo
ordian 6c52998
fmt
ordian aa6695f
checkmate
ordian 52b8864
try something
ordian fca9deb
make it actually work
ordian 7e8626e
some tweaks to 01 feature test
ordian c504eb7
fmt
ordian 8bef2c2
sleep a bit more
ordian 517859b
complete wococoization
ordian 2ff7637
some tweaks to 01 feature test
ordian 42474af
typo fix
ordian b4e639e
use correct metric names
ordian 8e345e9
fix
ordian 6002ba1
ffs
ordian 7aabc4f
.
ordian 45dbef6
try some rearrangement
ordian efb7cd3
Attempt to wait till initial node bootstrap in test
grbIzl 3bf9f49
Fix test syntax
grbIzl 6cee882
Run malus tests with v2 script
grbIzl b3ef403
Merge branch 'master' into bernhard-malus-fx
ordian c46e26a
Proper symlink created
grbIzl 06ac937
simnet v14
radupopa2010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,59 @@ | ||
| # malus | ||
|
|
||
| Create nemesis nodes with alternate, at best fault, at worst intentionally destructive behavior traits. | ||
| Create nemesis nodes with alternate, at best faulty, at worst intentionally destructive behavior traits. | ||
|
|
||
| The first argument determines the behavior strain. The currently supported are: | ||
|
|
||
| * `suggest-garbage-candidate` | ||
| * `back-garbage-candidate` | ||
| * `dispute-ancestor` | ||
|
|
||
| ## Integration test cases | ||
|
|
||
| To define integration tests create file | ||
| in the toml format as used with [gurke][gurke] | ||
| under `./integrationtests` with either extension | ||
| `.toml` or `.toml.tera` depending on if you use | ||
| tera based templating. | ||
|
|
||
| > For the time being non-templated variants should be preferred! | ||
| ## Usage | ||
|
|
||
| > Assumes you already gained permissiones, followed the [GKE access guide][gke], | ||
| > and you installed [gurke][gurke]. | ||
|
|
||
| To launch a test case in the development cluster use (e.g. for the ./node/malus/integrationtests/0001-dispute-valid-block.toml): | ||
|
|
||
| ```sh | ||
| # declare the containers pulled in by gurke test definitions | ||
| export SYNTHIMAGE=paritypr/synth-wave:3639-0.9.9-7edc6602-ed5fb773 | ||
| export COLIMAGE=paritypr/colander:3639-7edc6602 | ||
| export MALUSIMAGE=paritypr/malus:3639-7edc6602 | ||
| export SCRIPTSIMAGE=paritytech/simnet:v9 | ||
|
|
||
| # login chore, once, with the values as provided in the above guide | ||
| gcloud auth login | ||
| gcloud config set project "parity-simnet" | ||
| gcloud container clusters get-credentials "parity-simnet-devtest" --zone "europe-west3-b" | ||
|
|
||
| # launching the actual test | ||
| gurke run -c ./node/malus/integrationtests/0001-dispute-valid-block.toml -n parity-simnet-devtest ./node/malus/integrationtests/0001-dispute-valid-block.feature | ||
|
|
||
| # Access individual logs | ||
| kubectl -n parity-simnet-devtest logs mal | ||
| ``` | ||
|
|
||
| This will also teardown the cluster after completion. | ||
|
|
||
| ## Container Image Building Note | ||
|
|
||
| In order to build the container image you need to have the latest changes from | ||
| polkadot and substrate master branches. | ||
|
|
||
| ```sh | ||
| pwd # run this from the current dir | ||
| podman build -t paritypr/malus:v1 -f Containerfile ../../.. | ||
| ``` | ||
|
|
||
| [gurke]: https://github.com/paritytech/gurke | ||
| [gke]: (https://github.com/paritytech/gurke/blob/main/docs/How-to-setup-access-to-gke-k8s-cluster.md) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.