mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 17:47:56 +00:00
PVF worker: Maintain lists of used syscalls (#1663)
Co-authored-by: Mira Ressel <mira@parity.io>
This commit is contained in:
@@ -503,3 +503,23 @@ cargo-hfuzz:
|
||||
- cargo hfuzz build
|
||||
- for target in $(cargo read-manifest | jq -r '.targets | .[] | .name'); do
|
||||
cargo hfuzz run "$target" || { printf "fuzzing failure for %s\n" "$target"; exit 1; }; done
|
||||
|
||||
# cf https://github.com/paritytech/polkadot-sdk/issues/1652
|
||||
test-syscalls:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
variables:
|
||||
SKIP_WASM_BUILD: 1
|
||||
script:
|
||||
- cargo build --locked --profile production --target x86_64-unknown-linux-musl --bin polkadot-execute-worker --bin polkadot-prepare-worker
|
||||
- cd polkadot/scripts/list-syscalls
|
||||
- ./list-syscalls.rb ../../../target/x86_64-unknown-linux-musl/production/polkadot-execute-worker --only-used-syscalls | diff -u execute-worker-syscalls -
|
||||
- ./list-syscalls.rb ../../../target/x86_64-unknown-linux-musl/production/polkadot-prepare-worker --only-used-syscalls | diff -u prepare-worker-syscalls -
|
||||
after_script:
|
||||
- if [[ "$CI_JOB_STATUS" == "failed" ]]; then
|
||||
printf "The x86_64 syscalls used by the worker binaries have changed. Please review if this is expected and update polkadot/scripts/list-syscalls/*-worker-syscalls as needed.\n";
|
||||
fi
|
||||
allow_failure: true # TODO: remove this once we have an idea how often the syscall lists will change
|
||||
|
||||
Reference in New Issue
Block a user