mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
[ci] Enable flacky collector for tests (#1439)
This commit is contained in:
committed by
GitHub
parent
bd23c8d9d7
commit
1346143194
@@ -19,7 +19,7 @@ rules:
|
|||||||
condition:
|
condition:
|
||||||
include: .*
|
include: .*
|
||||||
# excluding files from 'Runtime files' and 'CI files' rules
|
# excluding files from 'Runtime files' and 'CI files' rules
|
||||||
exclude: ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$|^cumulus/parachains/common/src/[^/]+\.rs$|^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))|^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*
|
exclude: ^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/assets/(asset-hub-kusama|asset-hub-polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/bridge-hubs/(bridge-hub-kusama|bridge-hub-polkadot)/src/[^/]+\.rs$|^cumulus/parachains/runtimes/collectives/collectives-polkadot/src/[^/]+\.rs$|^cumulus/parachains/common/src/[^/]+\.rs$|^substrate/frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))|^polkadot/runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.github/.*
|
||||||
min_approvals: 2
|
min_approvals: 2
|
||||||
teams:
|
teams:
|
||||||
- core-devs
|
- core-devs
|
||||||
|
|||||||
@@ -36,9 +36,23 @@ test-linux-stable:
|
|||||||
--no-fail-fast \
|
--no-fail-fast \
|
||||||
--features try-runtime,experimental \
|
--features try-runtime,experimental \
|
||||||
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
||||||
|
# Upload tests results to Elasticsearch
|
||||||
|
- echo "Upload test results to Elasticsearch"
|
||||||
|
- cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json
|
||||||
|
- |
|
||||||
|
curl -v -XPOST --http1.1 \
|
||||||
|
-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD} \
|
||||||
|
https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID} \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d @target/nextest/default/junit.json || echo "failed to upload junit report"
|
||||||
# run runtime-api tests with `enable-staging-api` feature on the 1st node
|
# run runtime-api tests with `enable-staging-api` feature on the 1st node
|
||||||
- if [ ${CI_NODE_INDEX} == 1 ]; then time cargo nextest run -p sp-api-test --features enable-staging-api; fi
|
- if [ ${CI_NODE_INDEX} == 1 ]; then time cargo nextest run -p sp-api-test --features enable-staging-api; fi
|
||||||
# todo: add flacky-test collector
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- target/nextest/default/junit.xml
|
||||||
|
reports:
|
||||||
|
junit: target/nextest/default/junit.xml
|
||||||
|
|
||||||
test-linux-oldkernel-stable:
|
test-linux-oldkernel-stable:
|
||||||
extends: test-linux-stable
|
extends: test-linux-stable
|
||||||
|
|||||||
Reference in New Issue
Block a user