Skip to content

Commit f209b31

Browse files
authored
Make downloads in parallel and give more time to complete (#1699)
Fix flaky test (e.g https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3787906). Sometimes just timeout when trying to download the artifacts from ci. This make the download in parallel and allow for more time to complete. Thx! cc: @michalkucharczyk
1 parent b18fb35 commit f209b31

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

polkadot/zombienet_tests/misc/0002-download-polkadot-from-pr.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ export PATH=$CFG_DIR:$PATH
1212

1313
cd $CFG_DIR
1414
# see 0002-upgrade-node.zndsl to view the args.
15-
curl -L -O $1/polkadot
16-
curl -L -O $1/polkadot-prepare-worker
17-
curl -L -O $1/polkadot-execute-worker
15+
curl -L -O $1/polkadot &
16+
curl -L -O $1/polkadot-prepare-worker &
17+
curl -L -O $1/polkadot-execute-worker &
18+
wait
19+
1820
chmod +x $CFG_DIR/polkadot $CFG_DIR/polkadot-prepare-worker $CFG_DIR/polkadot-execute-worker
1921
echo $(polkadot --version)

polkadot/zombienet_tests/misc/0002-upgrade-node.zndsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dave: parachain 2001 block height is at least 10 within 200 seconds
1111
# with the version of polkadot you want to download.
1212

1313
# avg 30s in our infra
14-
alice: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_ARTIFACTS_URL}}" within 40 seconds
15-
bob: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_ARTIFACTS_URL}}" within 40 seconds
14+
alice: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_ARTIFACTS_URL}}" within 60 seconds
15+
bob: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_ARTIFACTS_URL}}" within 60 seconds
1616
alice: restart after 5 seconds
1717
bob: restart after 5 seconds
1818

0 commit comments

Comments
 (0)