Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coretime test using zombienet-sdk #4883

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9dade06
add coretime test using zombienet-sdk
pepoviola Jun 26, 2024
ff8e9f1
fmt
pepoviola Jun 26, 2024
3b1c261
update lock
pepoviola Jun 26, 2024
9a04b65
exclude from taplo and add license
pepoviola Jun 26, 2024
cfee08b
clippy fixes
pepoviola Jun 26, 2024
06f7404
taplo format
pepoviola Jun 26, 2024
e02ecec
merge master
pepoviola Jun 26, 2024
306f170
merge master
pepoviola Jun 26, 2024
3ef54cb
Merge remote-tracking branch 'origin/master' into jv-add-coretime-rev…
s0me0ne-unkn0wn Jun 26, 2024
6e91ea6
Use dynamic subxt api generation
s0me0ne-unkn0wn Jun 26, 2024
09edcb6
fetch metadata files at build stage
pepoviola Jun 27, 2024
f2833bd
add comment
pepoviola Jun 27, 2024
9325dc8
add metadata files
pepoviola Jun 27, 2024
680de24
wip: move to integration test
pepoviola Jul 4, 2024
b5a55a5
finish build script
pepoviola Jul 5, 2024
cdf9066
update lock
pepoviola Jul 5, 2024
86ccbd1
merge master
pepoviola Jul 5, 2024
629fbf0
change build/test pipeline
pepoviola Jul 5, 2024
436c37c
fmt
pepoviola Jul 6, 2024
ff0b19a
fmt and license
pepoviola Jul 6, 2024
66abb06
fix ci
pepoviola Jul 6, 2024
a9166ed
remove metadata file
pepoviola Jul 6, 2024
e5a265b
fix clippy, use char
pepoviola Jul 6, 2024
82511c5
This test was beautiful, now make it awesome
s0me0ne-unkn0wn Jul 6, 2024
30a7a43
Update polkadot/zombienet-sdk-tests/build.rs
pepoviola Jul 7, 2024
320d9f2
update lock file
pepoviola Jul 8, 2024
0070162
merge master
pepoviola Jul 8, 2024
a15cb4b
fix build path
pepoviola Jul 8, 2024
f45bfc8
merge master
pepoviola Jul 8, 2024
6a6025c
fmt
pepoviola Jul 8, 2024
5900b6e
check if metadata feature is enabled and force build if needed
pepoviola Jul 8, 2024
3242c60
clippy fixes
pepoviola Jul 8, 2024
d596d68
more clippy fixes
pepoviola Jul 8, 2024
9b93074
rollback changes
pepoviola Jul 9, 2024
f20b134
Merge branch 'master' into jv-add-coretime-revenue-test
pepoviola Jul 9, 2024
927a973
Merge branch 'master' into jv-add-coretime-revenue-test
pepoviola Jul 10, 2024
b92f9c1
Trigger gitspigel
pepoviola Jul 10, 2024
859fbc9
update lock
pepoviola Jul 10, 2024
fb9bb6e
debug ci
pepoviola Jul 10, 2024
97fea7e
use nextest
pepoviola Jul 11, 2024
2540b26
update lock
pepoviola Jul 11, 2024
8bfd38b
merge master
pepoviola Jul 11, 2024
4b09b6f
typo yml
pepoviola Jul 11, 2024
beeee35
unset nextest output vars for zombienet
pepoviola Jul 11, 2024
8a73896
typo yml, path
pepoviola Jul 11, 2024
e02e430
add debug
pepoviola Jul 11, 2024
2730f1a
add more debug
pepoviola Jul 12, 2024
8f4f689
update lock
pepoviola Jul 12, 2024
133a2c5
update lock
pepoviola Jul 12, 2024
d38ac89
set env var to run in ci
pepoviola Jul 12, 2024
ccfb093
fix logs
pepoviola Jul 13, 2024
2a665d0
use multi_thread flavor
pepoviola Jul 13, 2024
9b1c30e
remove log trace
pepoviola Jul 14, 2024
7fc345d
merge master
pepoviola Aug 19, 2024
c89b6d1
Remove outdated comment
s0me0ne-unkn0wn Aug 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ rustdocflags = [
# Needed for musl builds so user doesn't have to install musl-tools.
CC_x86_64_unknown_linux_musl = { value = ".cargo/musl-gcc", force = true, relative = true }
CXX_x86_64_unknown_linux_musl = { value = ".cargo/musl-g++", force = true, relative = true }
CARGO_WORKSPACE_ROOT_DIR = { value = "", relative = true }
3 changes: 2 additions & 1 deletion .github/scripts/deny-git-deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'simple-mermaid': ['xcm-docs'],
# Fix in <https://github.com/paritytech/polkadot-sdk/issues/2922>
'bandersnatch_vrfs': ['sp-core'],
'subwasmlib': ['polkadot-zombienet-sdk-tests'],
}

root = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
Expand All @@ -24,7 +25,7 @@
def check_dep(dep, used_by):
if dep.location != DependencyLocation.GIT:
return

if used_by in KNOWN_BAD_GIT_DEPS.get(dep.name, []):
print(f'🤨 Ignoring git dependency {dep.name} in {used_by}')
else:
Expand Down
19 changes: 19 additions & 0 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,25 @@ build-short-benchmark:
- target/release/polkadot --version
- cp ./target/release/polkadot ./artifacts/

build-polkadot-zombienet-tests:
stage: build
extends:
- .docker-env
- .common-refs
- .run-immediately
- .collect-artifacts
needs:
- job: build-linux-stable
artifacts: true
- job: build-linux-stable-cumulus
artifacts: true

script:
- cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --features zombie-metadata --archive-file polkadot-zombienet-tests.tar.zst
- mkdir -p artifacts
- cp polkadot-zombienet-tests.tar.zst ./artifacts


# build jobs from cumulus

build-linux-stable-cumulus:
Expand Down
4 changes: 4 additions & 0 deletions .gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.105"
PUSHGATEWAY_URL: "http://zombienet-prometheus-pushgateway.managed-monitoring:9091/metrics/job/zombie-metrics"
DEBUG: "zombie,zombie::network-node,zombie::kube::client::logs"
ZOMBIE_PROVIDER: "k8s"
RUST_LOG: "info,zombienet_orchestrator=debug"
RUN_IN_CI: "1"
timeout: 60m

include:
# substrate tests
Expand Down
22 changes: 22 additions & 0 deletions .gitlab/pipeline/zombienet/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
- echo "colander image ${COL_IMAGE}"
- echo "cumulus image ${CUMULUS_IMAGE}"
- echo "malus image ${MALUS_IMAGE}"
# RUN_IN_CONTAINER is env var that is set in the dockerfile
- if [[ -v RUN_IN_CONTAINER ]]; then
echo "Initializing zombie cluster";
gcloud auth activate-service-account --key-file "/etc/zombie-net/sa-zombie.json";
gcloud container clusters get-credentials parity-zombienet --zone europe-west3-b --project parity-zombienet;
fi
stage: zombienet
image: "${ZOMBIENET_IMAGE}"
needs:
Expand All @@ -54,6 +60,7 @@
MALUS_IMAGE: "docker.io/paritypr/malus"
GH_DIR: "https://github.com/paritytech/substrate/tree/${CI_COMMIT_SHA}/zombienet"
LOCAL_DIR: "/builds/parity/mirrors/polkadot-sdk/polkadot/zombienet_tests"
LOCAL_SDK_TEST: "/builds/parity/mirrors/polkadot-sdk/polkadot/zombienet-sdk-tests"
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
RUN_IN_CONTAINER: "1"
artifacts:
Expand Down Expand Up @@ -335,3 +342,18 @@ zombienet-polkadot-malus-0001-dispute-valid:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}/integrationtests"
--test="0001-dispute-valid-block.zndsl"

zombienet-polkadot-coretime-revenue:
extends:
- .zombienet-polkadot-common
needs:
- job: build-polkadot-zombienet-tests
artifacts: true
before_script:
- !reference [".zombienet-polkadot-common", "before_script"]
- export POLKADOT_IMAGE="${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
script:
# we want to use `--no-capture` in zombienet tests.
- unset NEXTEST_FAILURE_OUTPUT
- unset NEXTEST_SUCCESS_OUTPUT
- cargo nextest run --archive-file ./artifacts/polkadot-zombienet-tests.tar.zst --no-capture -- smoke::coretime_revenue::coretime_revenue_test
Loading